fix command spawns a fresh fixer subagent to repair only what the verifier identified. The fixer reads spec.md, verdict.json, and problems.md, reconfirms each listed problem in the live codebase, makes the smallest safe change set, and regenerates the evidence bundle. It does not write verdict.json or claim final PASS.
Parent prompt
Copy this prompt verbatim when delegating to the fixer subagent. Replace<TASK_ID> with the actual task identifier.
What the fixer reads
The fixer reads only these three files:spec.md
The frozen acceptance criteria. The fixer uses this to avoid regressions and understand the intended behavior.
verdict.json
The verifier’s overall verdict and per-AC statuses. Identifies which criteria are
FAIL or UNKNOWN.problems.md
Structured remediation guidance for each non-
PASS criterion, including minimal reproduction steps and corrective hints.Fix steps
Reconfirm each problem
Before editing any file, the fixer must independently verify that each
FAIL or UNKNOWN condition from problems.md still exists in the current codebase. Do not apply fixes blindly.Make the smallest safe change
Apply only the changes required to satisfy the failing criteria. Broad refactors are prohibited unless a criterion explicitly requires one.
Avoid regressions
Rerun the relevant checks to confirm that already-passing criteria are not broken by the fix.
Regenerate evidence
After the fix, regenerate the full evidence bundle:
.agent/tasks/<TASK_ID>/evidence.md.agent/tasks/<TASK_ID>/evidence.json- Updated raw artifacts under
raw/
What the fixer returns
The fixer returns only:- files changed — all files modified or regenerated
- checks rerun — commands run to verify the fix
- remaining risks — any uncertainties or partial fixes that the next verifier should pay attention to
Hard boundaries
Must not write
verdict.json. Final judgment belongs to the fresh verifier only.Must not claim
Final
PASS. The fixer stops after evidence regeneration and waits for the next verify run.After the fixer finishes, the workflow loops back to
verify. Spawn a new fresh verifier subagent — do not reuse the previous verifier session.