What’s inside.
Each chapter ends with a lab, a short exercise on paper and an entry in your check log.
- 01
Green is not proof
Why passing tests invite trust, and the one question that turns trusting into checking.
- 02
Say what you want before you ask
A short request with examples and edges, written before any code exists.
- 03
Your tests first
Tests from the request, aimed at the wrong answers you can imagine.
- 04
Give the agent a small, fenced job
Size a job by what you can check, write its fence, and prove it stayed inside.
- 05
Map the change
Every file, what kind of change, and whether anybody asked for it, before you read a line.
- 06
A changed test is a changed requirement
Find every weakened, skipped or deleted test, and decide who may change a requirement.
- 07
Where AI code goes wrong
Invented packages and slopsquatting, the versions you support, failure paths, security, data and fit.
- 08
Run it on purpose
A run sheet, realistic data, and every dependency broken once.
- 09
Ask another model, carefully
What a reviewing model is good for, what it cannot know, and how it fools you.
- 10
Prove every test can fail
Break each behaviour, watch its test go red, and repair the tests that never do.
- 11
Mutation testing in an afternoon
Run Stryker or mutmut on one module and read the survivors, not the score.
- 12
Flaky tests and false greens
Timing, order, the clock and retries, and the checks that catch them before merging.
- 13
Match the checking to the risk
Set the level in a minute, and write a verdict another person could check.
- 14
Taking it to your team
Four shared answers, a one-hour session, a pull request template and five numbers.