---
name: dod-contract
description: Generate definition-of-done contracts from task descriptions. Output structured acceptance criteria, test plan, rollback strategy, and blast radius.
---

# DoD Contract

Generate a Definition of Done contract before executing any task with MODERATE or HIGH blast radius.

## Procedure

1. Read task description + any linked plan sections
2. Generate contract per `references/contract-template.md`
3. Output as JSON: `{acceptance_criteria: [...], test_commands: [...], rollback_plan: "...", blast_radius: "low|moderate|high"}`
4. Store contract in `plans/_dashboard/contracts/<task-id>.json`

## When to Use

- Before any implementation task (auto-generated by `/meta-dev`)
- Before dispatching a subagent with MODERATE+ blast radius
- On explicit request via `/meta-dod <task-id>`
