feat(plans): implement plan correct --mode=revert and --mode=append correction engine #11061

Open
HAL9000 wants to merge 4 commits from feature/pr-9599-plan-correct-correction-engine into master

4 Commits

Author SHA1 Message Date
controller-ci-rerun 2179c07748 chore: re-trigger CI [controller]
CI / load-versions (pull_request) Successful in 14s
CI / push-validation (pull_request) Successful in 25s
CI / lint (pull_request) Failing after 46s
CI / typecheck (pull_request) Failing after 59s
CI / quality (pull_request) Successful in 57s
CI / integration_tests (pull_request) Failing after 1m7s
CI / security (pull_request) Failing after 1m10s
CI / build (pull_request) Successful in 45s
CI / helm (pull_request) Successful in 40s
CI / unit_tests (pull_request) Failing after 45m24s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 3s
2026-06-17 06:39:02 -04:00
controller-ci-rerun a9bd24dbd3 chore: re-trigger CI [controller] 2026-06-17 06:39:02 -04:00
HAL9000 f11efab46d fix(plans): split correction services, create CLI, fix type ignores and remove empty step files
- Split correction_service.py (1255→279 lines) into orchestration-only service
  that delegates BFS impact analysis to new ImpactAnalysisService
- Created correction_impact_service.py (190 lines) with BFS traversal, risk
  classification, cost estimation, tree topology helpers
- Created plan_correction_cli.py (208 lines) extracted from plan.py for
  'agents plan correct' command entry point
- Removed all 51 empty step files in features/steps/ that had no content
- Replaced '# type: ignore' comments with cast() in plan.py (lines 4066, 4078)
- All new service files stay under 500-line limit

ISSUES CLOSED: #9599
2026-06-17 06:39:02 -04:00
HAL9000 cca5d5c757 feat(projects): implement plan correct --mode=revert and --mode=append correction engine (#9599)
Add comprehensive BDD tests for the full correction engine supporting both
revert (invalidate subtree + archival) and append (spawn child plan) modes,
including dry-run impact analysis, CLI output formatting (rich/plain/json),
decision tree and influence DAG propagation, validation error handling,
and idempotent dry-run behavior.

Fixes: #9599
Epic: plan-correct-engine

ISSUES CLOSED: #9599
2026-06-17 06:39:02 -04:00