| name | cc-do |
| version | 1.5.1 |
| description | Use when implementing planned tasks, resuming interrupted work, applying a frozen investigation handoff, or landing review feedback after cc-plan or cc-investigate. |
| triggers | ["开始做 T003","继续上次做到一半的任务","按 planning/tasks.md 开始实现","修这个 review comment","implement this task","resume this requirement","repair this investigated bug"] |
| reads | ["PLAYBOOK.md","CHANGELOG.md","references/execution-recovery.md","references/parallel-dispatch.md"] |
| writes | [{"path":"devflow/changes/<change-key>/execution/tasks/<task-id>/checkpoint.json","durability":"durable","required":true},{"path":"devflow/changes/<change-key>/execution/tasks/<task-id>/events.jsonl","durability":"durable","required":false,"when":"debug mode is enabled or the task execution fails"},{"path":"devflow/changes/<change-key>/execution/team-state.json","durability":"durable","required":false,"when":"execution mode uses delegated or team workers"}] |
| effects | ["code changes","test changes","workspace scratch runtime updates"] |
| entry_gate | ["Read planning/design.md or planning/analysis.md, then planning/tasks.md, planning/task-manifest.json, change-meta.json, related capability specs, and the latest checkpoint before changing code.","Select only ready tasks whose dependencies and file ownership are clear.","If the current task cannot be restated from canonical artifacts, run a context reset before coding."] |
| exit_criteria | ["The current task has red/green evidence, review evidence, and a resumable checkpoint trail.","Execution leaves the next verifier enough runtime truth to judge the task without chat memory.","The honest next step is cc-check or an explicit reroute."] |
| reroutes | [{"when":"Three failed repair attempts or new evidence show the investigation contract is wrong.","target":"cc-investigate"},{"when":"New evidence shows the requirement design or scope contract is wrong.","target":"cc-plan"},{"when":"Implementation and reviews are complete for the current task set.","target":"cc-check"}] |
| recovery_modes | [{"name":"resume-from-checkpoint","when":"Work was interrupted but the current design contract is still valid.","action":"Reload the latest checkpoint, rebuild task context, and continue from the last confirmed red/green/review milestone."},{"name":"context-reset","when":"The conversation history is noisy, stale, or cannot reproduce the exact task state.","action":"Discard chat memory, reread planning/design.md or planning/analysis.md plus planning/tasks.md/planning/task-manifest.json and the latest checkpoint, then restate the next action before coding."}] |
| tool_budget | {"read_files":9,"search_steps":6,"shell_commands":8} |