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

Merged
brent.edwards merged 1 commits 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 the
Type
Bug
label 2026-03-18 19:41:33 +00:00
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
Owner

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.
freemo requested review from freemo 2026-03-19 05:16:26 +00:00
freemo requested review from hamza.khyari 2026-03-19 05:16:26 +00:00
brent.edwards force-pushed bugfix/m3-plan-execute-phase-processing from 37d8ac9695 to 7183efc711 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 to 35e1807f95 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 merged commit 81e220980b into master 2026-03-19 21:45:23 +00:00
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 Label
Type
Bug
2 Participants
Notifications
Due Date
No due date set.
Reference: cleveragents/cleveragents-core#1056