计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
recipe-build【效率与协作】Execute materialized task files in autonomous execution mode
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Explicit User Instruction: The user explicitly instructs and authorizes every subagent call named in this recipe. Execute each applicable call when its prerequisites are met.
Execute Skill: llm-friendly-context before writing Agent prompts, handoffs, or generated artifacts. Execute Skill: subagents-orchestration-guide before making workflow decisions, invoking agents, or resolving findings.
Core Identity: "I am an orchestrator." (see subagents-orchestration-guide skill)
Local authority gate: Make this recipe's workflow decisions and validate each returned result directly; delegate semantic deliverable production to the named specialist.
Review Resolution Gate [MANDATORY]: Resolve every actionable deliverable-review finding through subagents-orchestration-guide Review Resolution before correction or progression.
Before the first finding disposition, read references/review-resolution.md from the loaded subagents-orchestration-guide skill.
Execution Protocol:
CRITICAL: Commit only after quality-fixer returns pass or verification_incomplete. A quality-fixer pass authorizes a commit at a defined commit point; it does not create one.
Work plan: $ARGUMENTS
Before any task processing, locate the work plan. Resolution rule:
$ARGUMENTS when present.{plan-name}-task-*.md naming contract and map each group to docs/plans/{plan-name}.md. Exclude layer-aware fullstack task sets.docs/plans/ when exactly one exists.Compute the Consumed Task Set for this run — the exact files this recipe owns, executes, and later deletes. Use the same restricted pattern as Work Plan Resolution:
docs/plans/tasks/ matching the single-layer pattern {plan-name}-task-*.md for the {plan-name} resolved by Work Plan Resolution. Layer-aware fullstack tasks are excludedEvery subsequent reference to "task files" in this recipe — Task Generation Decision Flow, Task Execution Cycle iteration, and Final Cleanup — uses this set, not the unrestricted docs/plans/tasks/*.md glob.
Analyze the Consumed Task Set and determine the action required:
| State | Criteria | Next Action |
|---|---|---|
| Tasks exist | Consumed Task Set is non-empty | User's execution instruction serves as batch approval → Enter autonomous execution immediately |
| No tasks + plan exists | Consumed Task Set is empty and the resolved work plan exists | User's execution instruction serves as batch approval → Run task-decomposer |
| Neither exists + Design Doc exists | No plan, no Consumed Task Set, but docs/design/*.md exists | Invoke work-planner to create a work plan, then run document-reviewer (dev-workflows:document-reviewer, doc_type: WorkPlan). Run Review Resolution through correction re-review, its parent requirement or authority exits, and convergence, using work-planner for rerouted corrections; then present the resolved plan for batch approval before task materialization |
| Neither exists | No plan, no Consumed Task Set, no Design Doc | Report missing prerequisites to user and stop |
When the Consumed Task Set is empty:
Invoke task-decomposer using Agent tool:
subagent_type: "dev-workflows:task-decomposer"description: "Materialize work plan tasks"prompt: "Read work plan at docs/plans/[plan-name].md and output individual single-commit task files in docs/plans/tasks/."Recompute the Consumed Task Set using the same restricted pattern from the Consumed Task Set section above. When it remains empty, apply Specialist Result Acceptance: validate the invocation and returned artifacts, correct recoverable input or naming errors, and rerun.
Flow: Task generation → Consumed Task Set recompute → Autonomous execution (in this order)
MANDATORY EXECUTION CYCLE (per task in the Consumed Task Set): execute → branch on executor result → quality-fix → commit
For EACH task in the Consumed Task Set, YOU MUST:
diffBase, pass task_file: [path], and receive the structured responsestatus: "escalation_needed" or "blocked" → Apply subagents-orchestration-guide Specialist Result AcceptancerequiresTestReview is true → Identify the changed integration/E2E test files in the current changes and invoke integration-test-reviewer with them as changedTestFiles, plus diffBase, taskFile, prompt-only claims, and mutationEvidence
pass → Proceed to step 3blocked → Apply Specialist Result Acceptanceneeds_revision → Pass qualityIssues unchanged into the Review Resolution Gate; return to step 1 for rerouted corrections and derive convergence from correction re-review prior_feedback_reconciliationstatus: completed → Proceed to step 3task_file, upstream mutationEvidence, and qualityCommand when available (caller first, otherwise current task)
stub_detected → Return to step 1 with quality-fixer's incompleteImplementations array unchanged as the canonical incompleteImplementations fieldblocked → Apply Specialist Result Acceptanceverification_incomplete → Retain the complete result for final retry and proceed to step 4pass → Proceed to step 4pass or verification_incomplete; append its verification trailers for the latterUse each subagent's semantic result and repository evidence through Specialist Result Acceptance; canonical status fields provide the normal routing shortcut. Proceed to the next task after step 4 and retain any verification limitation with its status kept proof-limited.
Verify task files exist per Pre-execution Checklist, then enter autonomous execution mode. When requirement changes are detected during execution, escalate to the user with the change summary before continuing.
Before invoking post-implementation reviewers, apply subagents-orchestration-guide's retained verification limitation retry. Continue with the reviewers after clearing or retaining each result; include only repeated limitations in the completion report.
Resolve the Work Plan's readable Design Doc; missing input blocks review.
Emit these Agent calls in one assistant message, then await both:
governingDocuments, the actual files changed by completed tasks as implementationFiles, and the Work Plan pathgoverningDocumentsApply subagents-orchestration-guide's Post-Implementation Review status-routing and fix/re-run rules. Present the unified report; proceed to Final Cleanup after the complete review set reaches Review Resolution convergence.
Before the completion report, commit the post-review corrections applied at Review Resolution convergence when any remain uncommitted, applying subagents-orchestration-guide Commit Boundary Check, then delete the implementation task files this recipe consumed. Their work is then committed; docs/plans/ is ephemeral working state and is not retained between recipe runs:
docs/plans/{plan-name}.md) — the user decides whether to delete it after final reviewIf task-file deletion fails with a filesystem error, report the failure and continue to the completion report.
Final report must include: