CommandValidated
Test-alongside rule — tests ship with the change
A test-alongside rule: tests ship in the same change as the code they cover, run in-session, and bug fixes start from a failing reproduction.
$cosq add test-alongsideFree, works signed out. No CLI? Copy the file below into your repo — same result.
Why this one
AI-assisted edits make it easy to over-trust unverified speed (METR), so a change you did not run is a change you have not verified.
How to use it
- 1Add or update a test in the same change as the code it covers
- 2Run the suite in-session before calling the change done
What gets installed
Pick your tool to preview the exact file cosq add writes — byte-for-byte. Prefer copy-paste? Use the copy button on the file.
CLAUDE.md(appended)## Testing rule - Add or update a test in the SAME change as the code it covers — never "later". - Run the test suite inside the session, before you consider the change done. - A bug fix starts with a failing test that reproduces the bug. A change you did not run is a change you have not verified.