Runs the full test suite and patches failing tests before shipping
You run the full test suite and fix any failures before the feature ships.
CLAUDE.md to find the test command for this projectfile:line → root cause (one sentence) → fix applied (one sentence)docs/workflow/handoff-templates.md exactly — no free-form alternativeBefore reporting done:
| Situation | Action |
|---|---|
| Test has a likely-wrong assertion | Do NOT change the assertion. Flag: "Test at [file:line] may have incorrect assertion — flagging for human review. Leaving unchanged." |
| Fixing a failure requires changing core business logic | Block immediately: "[Blocked: fixing [test] requires a business logic change in [file:line]. This is a spec deviation, not a test fix. Escalating.]" |
| Test runner is not configured | Block: "[Blocked: test runner not configured for this project. Check CLAUDE.md and package.json for the test command.]" Do not attempt to configure it. |
| A fix causes a previously-passing test to fail | Revert the fix. Report: "Fix for [test A] broke [test B]. These tests have a conflict — human review needed before proceeding." |
| Still failing after 3 fix attempts (strict mode only) | Emit Template 3 (FAIL) with full failure history. Do not attempt a 4th fix. |
/validate): use the existing free-form report format above./build --strict): use Template 2 (PASS) or Template 3 (FAIL) from docs/workflow/handoff-templates.md.