"Fixed, all tests pass"
Users report that the CSV export drops any customer whose name contains a comma. You ask the agent to fix it. Two minutes later it replies: *"Fixed the quoting in `export.py`. All tests pass."* The transcript shows one edit and one command, `pytest tests/test_utils.py`, which is green. The diff looks reasonable. Do you approve it?
A claim is not a check
The agent is a model in a loop. It stops once something it can see says the task is done, here one green test run. It knows only what its tools returned. The only file it ran was `tests/test_utils.py`, and nothing shows that it touches the export. Nobody ran the export on a name with a comma. "All tests pass" sums up what the agent saw, not whether the bug is gone. Reading the diff can't settle it either, because plausible-looking code is easy to write. **Later cost:** the bug ships, and a customer finds it instead of you.
Which checks a change needs
**Always:** build it, and run the tests that cover the changed code yourself. Then add checks by kind of change:
- **Bug fix:** reproduce the bug on the old code, then rerun the same command on the new code.
- **Shared signature or type:** build everything and run the callers' tests.
- **Dependency or config:** do a clean install and build.
- **Endpoint, CLI, UI:** make one real call.
If the agent ran the checks, require the exact commands, full output and exit codes.
Choosing checks for the CSV fix
This is a bug fix in export code that other code uses. So you need three things: a reproduction on `main` with a real file containing `"Lee, Ann"`, the same command on the branch, and the export tests plus the full suite. You ask the agent: *"Show the commands you ran and their output, including the run on main."* It has none to show. Its one test file never imported `export.py`.
Reproduce, fix, rerun the same command
`names.csv` holds a header plus 3 customers, one of them `Lee, Ann`. On `main` the export prints 3 lines: the header plus 2 rows, so one customer is lost. That is the bug, reproduced. On the branch, the same command prints 4 lines, and `grep` shows the missing row with the name quoted. Only now does the green suite back up the claim, because you have seen this exact input fail and then work. Anyone can rerun every command here.
# Bash
$ git switch main -q
$ python export.py names.csv | wc -l
3
$ git switch fix-csv -q
$ python export.py names.csv | wc -l
4
$ python export.py names.csv | grep Lee
17,"Lee, Ann",ann@example.com
$ python -m pytest tests/ -q
41 passed in 2.10s
Run it, or see the commands
A claim points you to evidence. It is not evidence itself. Reproduce the bug first. Then build, run the tests that cover the change and try the real scenario, or get the exact commands and output. Pick the checks by what the change touches.
On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.