Developers / task-contracts · v3.1.3
Task Contracts
Initialization, lifecycle states, evidence collection, checkpoints, and completion gates.
Lifecycle & Mandatory Gates
1. start_task: Initializes a task with description, type, projectDir, ordered plan, Definition of Done items, and a Mermaid flowchart.
2. Execution: Agents mark plan steps (mark_plan_step) and prove each DoD item with observed command/test evidence (mark_dod_item).
3. Verification & Release: check_ready_to_commit verifies clean DoD + tests + docs before commit_and_push and complete_task.
4. Continuity: checkpoint_task, handoff_task, and resume_session preserve durable state across machine or context switches.