ddflow_workflow_gate
Define or update a command or agent quality gate, then add it to a task or phase pipeline to enforce completion requirements.
Instructions
Define or change one gate, and optionally put it in a pipeline. WRITES to this project's config.
command makes it a COMMAND gate: ddflow runs it and the exit code is the evidence. prompt makes it an AGENT gate: you perform it and record what you did. A gate needs one of the two — one with neither tells an agent nothing and gives a reviewer no contract, so it is refused.
into adds it to a pipeline (after places it; default is last). required means an item cannot complete without it.
Ask the operator first, and prefer dry_run to show them the change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The gate id, e.g. 'lint' or 'security_scan'. | |
| cwd | No | 'worktree' (default) or 'repo'. | |
| into | No | Add to the 'task', 'phase' or 'both' pipeline(s). | |
| after | No | Place it after this gate. Default: last. | |
| title | No | Human-readable name. | |
| prompt | No | What an agent must do. Makes it an agent gate. | |
| command | No | Shell command to run. Makes it a command gate. | |
| dry_run | No | Report the change and write nothing. | |
| timeout | No | Seconds before the command counts as unavailable. | |
| required | No | An item cannot complete without it. | |
| reviewer | No | 'different_family' to require a reviewer from another model family, or 'same_family_ok'. | |
| applies_to | No | 'task', 'phase' or 'both'. |