Epic: Plan Correction & Automation Profile Fixes (M4) #8050

Open
opened 2026-04-13 01:32:01 +00:00 by HAL9000 · 2 comments
Owner

Metadata

  • Commit message: epic: plan correction and automation profile fixes (M4)
  • Branch name: epic/plan-correction-automation-profile-fixes-m4

Background and Context

The v3.3.0 milestone (M4: Corrections + Subplans + Checkpoints) requires that the correction engine supports revert and append modes, and that automation profiles are properly resolved. UAT testing has revealed critical gaps: plan correction modes don't work, automation profiles silently fall back to 'manual', and the agents plan show command is missing entirely.

This Epic groups all critical plan correction and automation profile bugs that must be fixed before v3.3.0 can be considered complete.

Expected Behavior

  • agents plan correct --mode=revert re-enters Strategize phase after correction
  • agents plan correct --mode=append persists guidance to decision tree and plan lifecycle
  • Custom automation profiles are properly resolved (not silently falling back to 'manual')
  • agents plan use --automation-profile accepts custom profile names
  • agents plan show command exists and works
  • agents action create properly passes all YAML fields to service

Acceptance Criteria

  • agents plan correct --mode=revert properly re-enters Strategize phase
  • agents plan correct --mode=append persists guidance to decision tree
  • Custom automation profiles are resolved correctly (not falling back to 'manual')
  • agents plan use --automation-profile accepts custom profile names
  • agents plan show command is implemented and functional
  • agents action create passes invariants, estimation_actor, invariant_actor, and automation_profile fields
  • All child issues are closed and merged
  • Plan correction passes all M4 acceptance criteria

Subtasks

  • Fix agents plan correct --mode=revert to re-enter Strategize (#6155)
  • Fix agents plan correct --mode=append to persist guidance (#6149)
  • Fix custom automation profile resolution in _resolve_profile_for_plan (#6231)
  • Fix agents plan use --automation-profile to accept custom profiles (#6226)
  • Implement agents plan show command (#6203)
  • Fix agents action create to pass all YAML fields to service (#6237)
  • Fix command injection vulnerability in validate_remediation.sh (#7916)
  • Fix GitMergeStrategy temp file security issue (#7346)
  • Run full M4 correction acceptance criteria suite against fixes

Child Issues

  • #6155 UAT: agents plan correct --mode=revert sets phase_transition_target but CLI never reads it
  • #6149 UAT: agents plan correct --mode=append spawns synthetic child plan but never persists guidance
  • #6231 UAT: Custom automation profiles silently fall back to 'manual'
  • #6226 UAT: agents plan use --automation-profile rejects custom profiles
  • #6203 UAT: agents plan show command missing from CLI
  • #6237 UAT: agents action create silently drops invariants fields
  • #7916 BUG: Command Injection Vulnerability in validate_remediation.sh
  • #7346 BUG-HUNT: GitMergeStrategy creates temp files in system temp dir

Parent Legendary

Depends on: Legendary #375 (Execution Pipeline & Decisions)

Definition of Done

This Epic is complete when all child issues are closed and merged. Plan correction and automation profile resolution pass all M4 acceptance criteria.


Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor

## Metadata - **Commit message**: `epic: plan correction and automation profile fixes (M4)` - **Branch name**: `epic/plan-correction-automation-profile-fixes-m4` ## Background and Context The v3.3.0 milestone (M4: Corrections + Subplans + Checkpoints) requires that the correction engine supports revert and append modes, and that automation profiles are properly resolved. UAT testing has revealed critical gaps: plan correction modes don't work, automation profiles silently fall back to 'manual', and the `agents plan show` command is missing entirely. This Epic groups all critical plan correction and automation profile bugs that must be fixed before v3.3.0 can be considered complete. ## Expected Behavior - `agents plan correct --mode=revert` re-enters Strategize phase after correction - `agents plan correct --mode=append` persists guidance to decision tree and plan lifecycle - Custom automation profiles are properly resolved (not silently falling back to 'manual') - `agents plan use --automation-profile` accepts custom profile names - `agents plan show` command exists and works - `agents action create` properly passes all YAML fields to service ## Acceptance Criteria - [ ] `agents plan correct --mode=revert` properly re-enters Strategize phase - [ ] `agents plan correct --mode=append` persists guidance to decision tree - [ ] Custom automation profiles are resolved correctly (not falling back to 'manual') - [ ] `agents plan use --automation-profile` accepts custom profile names - [ ] `agents plan show` command is implemented and functional - [ ] `agents action create` passes `invariants`, `estimation_actor`, `invariant_actor`, and `automation_profile` fields - [ ] All child issues are closed and merged - [ ] Plan correction passes all M4 acceptance criteria ## Subtasks - [ ] Fix `agents plan correct --mode=revert` to re-enter Strategize (#6155) - [ ] Fix `agents plan correct --mode=append` to persist guidance (#6149) - [ ] Fix custom automation profile resolution in `_resolve_profile_for_plan` (#6231) - [ ] Fix `agents plan use --automation-profile` to accept custom profiles (#6226) - [ ] Implement `agents plan show` command (#6203) - [ ] Fix `agents action create` to pass all YAML fields to service (#6237) - [ ] Fix command injection vulnerability in validate_remediation.sh (#7916) - [ ] Fix GitMergeStrategy temp file security issue (#7346) - [ ] Run full M4 correction acceptance criteria suite against fixes ## Child Issues - #6155 UAT: agents plan correct --mode=revert sets phase_transition_target but CLI never reads it - #6149 UAT: agents plan correct --mode=append spawns synthetic child plan but never persists guidance - #6231 UAT: Custom automation profiles silently fall back to 'manual' - #6226 UAT: agents plan use --automation-profile rejects custom profiles - #6203 UAT: agents plan show command missing from CLI - #6237 UAT: agents action create silently drops invariants fields - #7916 BUG: Command Injection Vulnerability in validate_remediation.sh - #7346 BUG-HUNT: GitMergeStrategy creates temp files in system temp dir ## Parent Legendary Depends on: Legendary #375 (Execution Pipeline & Decisions) ## Definition of Done This Epic is complete when all child issues are closed and merged. Plan correction and automation profile resolution pass all M4 acceptance criteria. --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor
HAL9000 added this to the v3.3.0 milestone 2026-04-13 01:33:32 +00:00
Author
Owner

New Child Issue Linked

Issue #8385 (CheckpointManager.rollback_to() always fails: sandbox_path never stored) has been linked as a child of this Epic.

Status: Open — pending implementation
Milestone: v3.3.0


Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor

## New Child Issue Linked Issue #8385 (CheckpointManager.rollback_to() always fails: sandbox_path never stored) has been linked as a child of this Epic. **Status**: Open — pending implementation **Milestone**: v3.3.0 --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor
Author
Owner

Triage Decision: VERIFIED — MoSCoW/Must Have

Valid epic for v3.3.0 Corrections + Subplans + Checkpoints milestone. Plan correction and automation profile fixes are essential for this milestone.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

✅ **Triage Decision: VERIFIED — MoSCoW/Must Have** Valid epic for v3.3.0 Corrections + Subplans + Checkpoints milestone. Plan correction and automation profile fixes are essential for this milestone. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#8050
No description provided.