A summary is a claim#
"Fixed the export limit, added a test, all tests pass" contains four claims. Each has a record that can disagree:
| Claim | Record | What disagreement looks like |
|---|---|---|
| Fixed the export limit | git diff --stat BASE HEAD | Files outside the export changed |
| Added a test | The test on the old code | It passes before the fix too |
| All tests pass | The command, its count and exit code | A filter selected none of them |
| Nothing else was needed | Skips, ignores and configuration in the diff | A failing test became a skip |
A person's handoff makes the same claims. With an agent, the prose is often more fluent than the evidence behind it, so the records matter more.
The four checks#
git diff --stat BASE HEAD
git diff BASE HEAD -- '*test*' '*spec*' | grep -nE '^\+.*(skip|todo|only|xfail|fixme|retries)'
git diff --name-only BASE HEAD -- '*lock*' '*.config.*' '.github/'
Matches are a reason to read that line. A skip may be correct and explained, and an empty result does not clear the change: a weakened assertion contains none of those words. To see weakened assertions, read the removed lines in test files with git diff BASE HEAD -- '*test*' | grep '^-'.
Then run the new test against the old code:
git worktree add ../before BASE
git -C ../before checkout HEAD_SHA -- tests/export.test.ts
Run the test in ../before. It should fail, and for the stated reason. A missing import is also a failure, and it proves nothing about the defect. If the test passes there, it does not test the fix. The regression test guide covers what to do next.
Ask for a receipt in the handoff#
Give this to whoever or whatever prepares the change:
- Base and head commit.
- Each command, verbatim, with its exit code and the number of tests it ran.
- Files changed outside the task, with the reason.
- Assumptions made where the task was unclear.
- What was not run, and why.
An agent can produce a list like this without having run anything, so sample it. Rerun one command from item 2 and compare the count. If that count differs, treat the other lines as unverified.
Decide#
| Result of the checks | Next decision |
|---|---|
| Scope matches, test fails before and passes after | Review the code |
| Extra files | Ask for them to be split or explained first |
| Test passes on the old code | Return it. The fix is untested, whether or not it is right |
| A count cannot be reproduced | Run the whole suite yourself before reading further |
Worked example#
This example is fictional. An agent reports "12 tests pass". Its command used a name filter, and the runner printed 12 skipped and exited 0. The diff is in scope. The new test, run on the base, fails with the wrong row count, which matches the claim. So the fix is likely right and the pass count was wrong. Ben runs the full suite, finds one failure in a neighboring module, and returns the change with that single result.
Filters deserve their own check, which the collection's first guide describes. Finding by finding, see fixing findings with a coding agent.