feat(correction): implement cross-plan correction cascading with child plan state handling #562
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!562
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/m6-cross-plan-correction"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements the four child-plan-state-dependent behaviours defined in the specification (§ Cross-Plan Correction Cascading) when a correction's affected subtree includes child plans.
Closes #547
Changes
Domain Models (
correction.py)ChildPlanStateenum:NOT_STARTED,IN_PROGRESS,COMPLETED_UNAPPLIED,APPLIEDCorrectionRejection: Result type withreasonandaffected_applied_child_plan_idsCascadeAction: Per-child-plan action record (cancel,cancel_and_rollback,reject)CascadeResult: Full cascade outcome with all actions, cancelled/rolled-back plan listsCorrectionStatus.REJECTED: New terminal status for rejected correctionsService (
cross_plan_correction_service.py)CrossPlanCorrectionService: Orchestrates cross-plan cascading with:evaluate_cascade()— dry-run evaluation of cascade actionsexecute_cascade()— atomic cascade execution with rollback on failureexecute_correction_with_cascade()— integration point for CorrectionServiceChildPlanLookup,ChildPlanCanceller,SandboxRollbackerclassify_cascade_action()helper functionCascade Behaviour Table
CorrectionRejectionMixed states: reject if any child plan is already applied (even if others are cancellable).
Testing
features/cross_plan_correction.feature)robot/cross_plan_correction.robot)benchmarks/cross_plan_correction_bench.py)Quality Gates
nox -s lint✅nox -s typecheck✅ (0 errors, no# type: ignore)nox -s unit_tests✅ (8158 scenarios passed)nox -s integration_tests✅ (1145 tests passed)nox -s coverage_report✅ (97% ≥ threshold)3c69798443a85b7c5812a85b7c5812012ed7408e012ed7408e4ca4874c4d