Correction and Cleanup (400 Series)
The 400 series handles two adjacent kinds of follow-up work:
- failure triage and correction when a red test does not clearly point to test or source
- cleanup-only refinement on an already-changed scope
The split
Section titled “The split”401 and 402 are different workflows:
401-cleanup: cleanup-only refinement on an existing changed set402-test-correction: investigate a failing test and decide whether the right fix is in the test, in source, or in intended behavior
The 401 rule
Section titled “The 401 rule”One target type per run: source code or test code, never both.
This constraint keeps cleanup small, reviewable, and safe to roll back. When you want both source and test cleanup, run 401 twice — once for each.
Skills in this series
Section titled “Skills in this series”- 401 Cleanup — cleanup-only refinement on an already-changed scope
- 402 Test Correction — classify and correct a failing test without guessing the fix path