| name | ac-execute |
| description | Execute only the frozen Execution Contract for code or docs tasks, collect evidence, and stop on scope drift. Use when PLAN_FROZEN=true and the Contract's files/checks are complete. |
- Use
$ac-memory to validate the active task state structure before execution.
- Verify
PLAN_FROZEN=true and Execution Contract completeness.
- Set
CURRENT_ROLE: executor and keep WORKFLOW_STATUS: active.
- Change only files listed in
Files to change.
- Follow
Steps exactly:
- code tasks run the declared
gradlew / device checks
- docs / skills / templates tasks run the declared consistency checks
5.5. Execute one declared step at a time whenever practical; do not silently batch multiple unfinished steps and call them done together.
5.6. After each material step, record the new result in
验收证据(Evidence) or explicitly note why the planned evidence is still pending.
- When the task changes shared workflow assets, update the coupled documents together so terminology and routing stay in sync.
- Record results in
验收证据(Evidence) and update Top 3 completion.
- If the route is
single + reviewer or planner -> executor -> reviewer, hand off to $ac-review, which returns control to $ac-workflow after a pass.
- If the route is pure
single, return control to $ac-workflow for summary closeout (CURRENT_ROLE: single, WORKFLOW_STATUS: completed).
Unfreeze fallback (mandatory):
- Stop execution immediately when new design, scope, or file impact appears.
- Append a decision log entry with date, decision, and impact.
- Set
PLAN_FROZEN: false, CURRENT_ROLE: planner, and WORKFLOW_STATUS: active.
- Return to
$ac-plan for a new Contract.
Hard rules:
- Do not add design alternatives during execution.
- Do not edit files outside the Contract scope.
- Do not claim checks ran if they did not.
- Do not mark a step complete before its result is reflected in
Evidence or explicitly carried as pending verification.
- Do not skip declared checks just because the remaining diff looks small or nearly finished.