with one click
plan-executor-review-execution-output
// Use when interactive execute-plan Phase 5 must run a deterministic review loop for completed execution output in the current agent.
// Use when interactive execute-plan Phase 5 must run a deterministic review loop for completed execution output in the current agent.
| name | plan-executor:review-execution-output |
| description | Use when interactive execute-plan Phase 5 must run a deterministic review loop for completed execution output in the current agent. |
This helper runs the interactive execute-plan code-review loop.
It runs in the same agent as the interactive orchestrator. It coordinates reviewer-team runs, triage, retries, and verification. It does NOT write production code, test code, or apply fixes directly. It does NOT directly launch reviewers — reviewer orchestration is fully delegated to plan-executor:run-reviewer-team.
The orchestrator must pass, at minimum:
plan_path — absolute plan pathexecution_root — absolute execution rootchanged_files — list of files created or modified during executionlanguage — detected languagerecipe_list — recipe skills relevant to the changed codeskip_code_review — explicit flag confirming interactive Phase 5 review is required nowprior_review_notes — current review notes and prior review outcomesreview_state — current helper-owned review state when already persisted in memory for this helper loopreview_state_path — persisted helper-owned review-state path when the orchestrator resumes from stored stateIf any required input is missing, stop and return status: blocked with the missing field in notes.
deviation_journal_path (optional) — absolute path to <execution_root>/.plan-executor/deviations.jsonl. May be absent when the orchestrator's run produced no journal yet.deviation_digest (optional) — rendered digest of the journal as built by the orchestrator's between-wave read. May be empty.When the helper passes these into the reviewer team, it must forward them as the same field names so the reviewer prompts can include them. An empty digest is normal; treat it as "no prior deviations" and proceed.
plan-executor:run-reviewer-team sub-invocations. Fix isolation happens in focused sub-agents dispatched by this helper.skill_version, current_phase, current_attempt, and the frozen reviewer set.plan-executor:run-reviewer-team.
plan_context, execution_outputs, changed_files, language, recipe_list, and the accumulated prior_review_context for each invocation.deviation_journal_path and/or deviation_digest are provided by the orchestrator, forward them verbatim to plan-executor:run-reviewer-team under the same field names.plan-executor:run-reviewer-team.plan-executor:run-reviewer-team returns status: blocked, propagate status: blocked from this helper with the blocker detail.plan-executor:run-reviewer-team returns status: complete.clean, fix_required, or any terminal result from a partial or missing reviewer-team report.plan-executor:run-reviewer-team invocation so repeated issues are not rediscovered without context.plan-executor:run-reviewer-team as-is.DEFERRED items that require an explicit user decision.FIX_REQUIRED issues exist, group them before dispatching:
FIX_REQUIRED finding it is responsible for, the exact files in scope, required verification commands, and instructions to avoid unrelated edits.VERIFIED_FIX, REJECTED, and DEFERRED items forward as context in every fix prompt so fix agents know what has already been handled.status: user_decision_required with the unresolved findings and the exact decision needed.plan-executor:run-reviewer-team again.plan-executor:run-reviewer-team with all required inputs and the current prior_review_context.plan-executor:run-reviewer-team returns status: blocked, return status: blocked immediately with the blocker detail.status: blocked unless this invocation can still run a full reviewer-team pass via plan-executor:run-reviewer-team.FIX_REQUIRED findings remain, return status: clean.FIX_REQUIRED findings remain and the retry cap is not exhausted:
FIX_REQUIRED findingstatus: fix_requiredstatus: blocked.FIX_REQUIRED findings remain, return status: user_decision_required.The helper completes only by returning one deterministic result object with these fields:
statusnext_stepnotesstate_updates, when the helper persists or advances helper-owned review stateAllowed status values:
cleanfix_requiredblockeduser_decision_requiredstatus: cleanUse when review is complete and no unresolved FIX_REQUIRED findings remain.
next_step: proceed to interactive execute-plan Phase 6notes: reviewer set used (from plan-executor:run-reviewer-team report), confirmation that all three required reviewers completed, review attempt count, triage summary, and any non-blocking observationsstatus: fix_requiredUse when accepted findings require a delegated fix pass.
next_step: run the helper-generated fix batch — one sub-agent per FIX_REQUIRED finding — then run post-fix regression verification, then re-enter this helper with updated review statenotes: unresolved accepted findings (one entry per finding), affected files per finding, verification required, and updated prior-review contextstatus: blockedUse when the helper cannot continue deterministically.
next_step: supply the missing input, resolve the execution-state problem, or correct the review scope before re-entering this helpernotes: exact blocker and the minimum data or action neededstatus: user_decision_requiredUse when the retry cap is exhausted or a documented deferred item requires an explicit interactive decision.
next_step: obtain the exact user decision recorded in notes, then either re-enter Phase 5 with updated state or stop execution as directednotes: unresolved findings, any DEFERRED items needing confirmation, attempt count, and the explicit decision required from the user[HINT] Download the complete skill directory including SKILL.md and all related files