fix(cli): restore phase-aware execution in plan execute command #1056

Merged
brent.edwards merged 1 commit from bugfix/m3-plan-execute-phase-processing into master 2026-03-19 21:45:23 +00:00
Member

Summary

  • Consolidate redundant service.get_plan() call in execute_plan — the read-only pre-check now reuses the same current_plan reference used for null-check and phase detection, eliminating one extra round-trip
  • Update the command-table description from stale "Transition to Execute phase" to "Run phase-aware plan execution" to accurately reflect the handler's full behavior (strategize + execute dispatch)
  • Replace the static post-execution hint with a state-aware message that distinguishes execute/complete (ready for lifecycle-apply) from intermediate states (continue with plan execute)
  • Update Behave test mocks to match the reduced get_plan call sequence and the updated output panel title

ISSUES CLOSED: #967

## Summary - Consolidate redundant `service.get_plan()` call in `execute_plan` — the read-only pre-check now reuses the same `current_plan` reference used for null-check and phase detection, eliminating one extra round-trip - Update the command-table description from stale "Transition to Execute phase" to "Run phase-aware plan execution" to accurately reflect the handler's full behavior (strategize + execute dispatch) - Replace the static post-execution hint with a state-aware message that distinguishes `execute/complete` (ready for `lifecycle-apply`) from intermediate states (continue with `plan execute`) - Update Behave test mocks to match the reduced `get_plan` call sequence and the updated output panel title ISSUES CLOSED: #967
brent.edwards added this to the v3.2.0 milestone 2026-03-18 19:41:36 +00:00
freemo approved these changes 2026-03-19 04:55:23 +00:00
Dismissed
freemo left a comment

Code Review — PR #1056 fix(cli): restore phase-aware execution in plan execute command

Clean fix that eliminates a redundant get_plan() call and adds state-aware post-execution output. The hint now correctly references lifecycle-apply instead of apply. Test mocks properly updated to match the reduced call sequence. Good improvement to user-facing messaging with conditional output based on plan state.

Approved. No issues found.

## Code Review — PR #1056 `fix(cli): restore phase-aware execution in plan execute command` Clean fix that eliminates a redundant `get_plan()` call and adds state-aware post-execution output. The hint now correctly references `lifecycle-apply` instead of `apply`. Test mocks properly updated to match the reduced call sequence. Good improvement to user-facing messaging with conditional output based on plan state. **Approved.** No issues found.
brent.edwards force-pushed bugfix/m3-plan-execute-phase-processing from 37d8ac9695
All checks were successful
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 17s
CI / build (pull_request) Successful in 29s
CI / quality (pull_request) Successful in 30s
CI / security (pull_request) Successful in 52s
CI / typecheck (pull_request) Successful in 1m3s
CI / unit_tests (pull_request) Successful in 3m7s
CI / integration_tests (pull_request) Successful in 3m50s
CI / e2e_tests (pull_request) Successful in 3m59s
CI / docker (pull_request) Successful in 56s
CI / coverage (pull_request) Successful in 7m30s
CI / benchmark-regression (pull_request) Successful in 38m56s
to 7183efc711
Some checks failed
CI / coverage (pull_request) Blocked by required conditions
CI / benchmark-regression (pull_request) Blocked by required conditions
CI / docker (pull_request) Blocked by required conditions
CI / lint (pull_request) Successful in 24s
CI / benchmark-publish (pull_request) Has been skipped
CI / build (pull_request) Successful in 26s
CI / unit_tests (pull_request) Failing after 4m5s
CI / integration_tests (pull_request) Successful in 4m10s
CI / e2e_tests (pull_request) Successful in 8m1s
CI / quality (pull_request) Failing after 14m3s
CI / security (pull_request) Failing after 14m13s
CI / typecheck (pull_request) Failing after 14m27s
2026-03-19 20:57:53 +00:00
Compare
brent.edwards scheduled this pull request to auto merge when all checks succeed 2026-03-19 20:58:58 +00:00
brent.edwards force-pushed bugfix/m3-plan-execute-phase-processing from 7183efc711
Some checks failed
CI / coverage (pull_request) Blocked by required conditions
CI / benchmark-regression (pull_request) Blocked by required conditions
CI / docker (pull_request) Blocked by required conditions
CI / lint (pull_request) Successful in 24s
CI / benchmark-publish (pull_request) Has been skipped
CI / build (pull_request) Successful in 26s
CI / unit_tests (pull_request) Failing after 4m5s
CI / integration_tests (pull_request) Successful in 4m10s
CI / e2e_tests (pull_request) Successful in 8m1s
CI / quality (pull_request) Failing after 14m3s
CI / security (pull_request) Failing after 14m13s
CI / typecheck (pull_request) Failing after 14m27s
to 35e1807f95
Some checks failed
CI / lint (pull_request) Successful in 14s
CI / typecheck (pull_request) Successful in 37s
CI / security (pull_request) Successful in 37s
CI / benchmark-publish (pull_request) Has been skipped
CI / quality (pull_request) Successful in 41s
CI / build (pull_request) Successful in 22s
CI / integration_tests (pull_request) Successful in 2m44s
CI / unit_tests (pull_request) Successful in 3m44s
CI / docker (pull_request) Successful in 39s
CI / coverage (pull_request) Successful in 5m3s
CI / e2e_tests (pull_request) Successful in 5m28s
CI / benchmark-regression (pull_request) Failing after 22m0s
2026-03-19 21:13:10 +00:00
Compare
brent.edwards dismissed freemo's review 2026-03-19 21:13:10 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

brent.edwards deleted branch bugfix/m3-plan-execute-phase-processing 2026-03-19 21:45:24 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core!1056
No description provided.