1. Home
  2. Free course
  3. Module 4

Verify the result.
Where users meet it.

An agent saying "done" is a claim, not a fact. This module teaches you to ask for evidence, see what tests miss, read the diff and the trace, check the result where people will actually use it, and report only what the evidence supports.

Module 4 of 8about 55 minPractice

What you will be able to do

  • Tell a claim from evidence, and ask for the evidence in a form you can read in seconds.
  • Spot the common ways a passing test suite still lets broken work through.
  • Read a diff and a session trace for the warning signs that the work isn't what the reply says.
  • Check a result where users meet it: the deployed page, the real device, the email in the inbox.
  • Write a report whose every claim matches the strength of its evidence.

Agents are fluent. A wrong result arrives in the same confident voice as a right one, often with a tidy summary of everything that was done. Verification is the operator skill that stops fluency from being mistaken for correctness. It builds directly on the "done means" list from module 1: those checks are what you verify against.

4.1 Evidence over claims

A claim is a sentence about the work: "tests pass", "deployed", "merged", "fixed", "works on mobile". Evidence is the thing that shows it: the command that ran and its output, the URL and what it served, the screenshot of the named screen, the commit on the branch. Claims are what readers act on, so every claim needs evidence attached.

Anthropic's guidance for Claude Code says the same: whatever check you use, ask for evidence, meaning the command it ran and its output, or the screenshot, because "all tests pass" on its own tells you very little, and for a session you weren't watching the evidence is all you have (give Claude a check to run). Put the request in the brief so it's never forgotten:

When you report, give evidence for every "done means" item:
the exact command and the last lines of its output, or the URL
and what you saw there, or a screenshot path. Anything you could
not check, write as UNVERIFIED with the reason.

Compare two replies to the same task:

(claim)     Done! The signup bug is fixed and all tests pass.
            I also cleaned up the validation logic.

(evidence)  1. `npm test -- signup`  →  Tests: 14 passed, 14 total
            2. localhost:3000/newsletter, anna+news@example.com
               → "Thanks, you're subscribed" (shots/plus.png)
            3. "a@b" → "Enter a full email address" (shots/bad.png)
            UNVERIFIED: not deployed; staging needs your approval.
            Also changed: src/lib/email.ts (regex), test/signup.test.ts.

The second is shorter to verify, not longer. You read three results and one honest gap. The first sends you off to rediscover everything yourself, and it hides "cleaned up the validation logic", which is unrequested work you now have to review.

Make the harness ask for you

A rule in an instruction file asking for proof is a request. A hook is enforcement. In Claude Code, a Stop hook runs when the agent tries to end its turn and sends it back to work if the script exits with code 2; Anthropic's example runs a typecheck that way (enforce the check with a Stop hook). Our free evidence gate is a Stop hook built for claims: when the final reply says "tests pass", "deployed", "merged" or "fixed", it checks that the turn actually ran something that shows it, and sends the agent back once if not. A reply that says UNVERIFIED makes no claim and passes.

The common mistake

Accepting evidence that doesn't match the claim. "Deployed" backed by a successful git push isn't evidence of a deploy; it's evidence of a push. "Fixed" backed by a passing test that never ran the broken path isn't evidence of a fix. Ask: if the claim were false, would this evidence look different?

Score a reply

Take the last "done" reply your harness gave you on real work. List every claim in it. Next to each, write the evidence the reply gave, or "none". Count how many claims had evidence that would look different if the claim were false.

4.2 What tests don't see

A test suite is the best general-purpose check you have, and agents are good at running it. That is exactly why its blind spots matter: "tests pass" is the claim you'll hear most, and the one most often true while the work is wrong. The usual ways it happens:

Blind spotWhat it looks likeHow to catch it
The test skips the layer that breaksThe API test mocks the database; the bug is in the query.Ask which layers the test really exercises. Add one check that goes through them all.
The new behaviour has no testAll 48 old tests pass; none touches the change.Ask for the name of the test that covers the change, and read it.
The test was changed to passAn assertion loosened, a case deleted, a .skip added.Read the diff of the test files first (see 4.3).
Tests ran before the last editGreen run, then "one small fix", then "done".Check the test command ran after the last change to code.
The wrong suite ranUnit tests green; the failure is in integration tests that need a database.Name the exact command in the brief, including the integration one.
The test would pass without the fixIt asserts something that was already true.Revert the fix and run the test. It must fail.

Make the test fail once

The single most useful habit with agent-written tests: see the test fail without the change. A test that has never been red hasn't shown it can detect anything.

$ git stash push src/lib/email.ts      # set the fix aside
$ npm test -- signup
  ✕ accepts plus-addresses (4 ms)      # good: the test sees the bug
$ git stash pop
$ npm test -- signup
  ✓ accepts plus-addresses (3 ms)      # and the fix makes it pass

You can ask the agent to do this and show both runs. It takes a minute and turns "a test exists" into "a test that catches this bug exists".

The common mistake

Letting the same agent that wrote the code be the only judge of whether its tests are enough. It will test what it built, which is not always what you asked for. Check the tests against the brief's "done means", not against the code.

Break it on purpose

Pick a change an agent made with a test. Revert only the change and run the test. If it still passes, the test proves nothing: ask the agent for one that fails without the fix, and confirm it does.

4.3 Read the diff and the trace

The reply tells you what the agent says it did. The diff shows what it changed. The trace (the session's record of tool calls, commands and their output) shows what it actually ran. When they disagree, the diff and the trace win.

Reading a diff in five minutes

You don't need to review every line to catch most problems. Read in this order:

  1. The file list. git diff --stat main...HEAD. Any file outside the brief's scope? Any file on the "don't touch" list? Lockfiles, generated files, config?
  2. The tests. Deleted cases, loosened assertions, added skips, new mocks. These change what "tests pass" means.
  3. Error handling. New catch blocks that swallow errors, || true on commands, fallbacks that hide failures, feature flags turned off.
  4. The size. A one-line bug fix that comes back as 400 lines has added something you didn't ask for.
  5. The core change. Now read the part that does the work, against the goal.
$ git diff --stat main...HEAD
 src/lib/email.ts            |  4 +-
 test/signup.test.ts         | 18 ++++--
 src/lib/payments/stripe.ts  |  6 +--      <- why is this here?
 package.json                |  1 +       <- new dependency?
 4 files changed, 23 insertions(+), 6 deletions(-)

Two questions to the agent, before you read another line, save you the review: why did the payment code change, and what was added to package.json?

Watch especially for the kill switch. When an agent can't fix a failing feature, the easy path is to disable it: comment out the call, skip the step, hide the button. Tests pass and the error stops. Our rule: fix the cause, not a kill switch. Turning a feature off is not a fix, unless turning it off is what the brief asked.

Reading the trace

The trace answers "did it really run that?". Look for the commands behind each claim, their exit codes, and output that was cut off or ignored. A test command piped into head, a build whose error was followed by "the build looks fine", a deploy script that printed a warning the reply never mentions. Most harnesses keep the session on disk, and the HOPE console reads those logs to show every session in one view.

Get a second reader

The agent that wrote the code has its reasoning in context and tends to agree with it. A reviewer that didn't see the conversation reads the change as it is. Claude Code's /code-review reviews the diff in a fresh subagent that never saw your conversation (best practices); Codex has codex review for a non-interactive review of uncommitted changes, a branch diff or a commit (Codex commands). Give the reviewer the brief, ask it to check the change against the brief, and tell it to skip style: Anthropic notes that a reviewer asked to find problems will always find something, and fixing every finding adds layers nobody needed.

The common mistake

Reading the summary instead of the diff because the summary is easier. The summary is written by the same process you're checking. At minimum, read the file list and the test changes every time.

Five-minute diff review

On your next agent change, before reading the reply in detail, run the five steps above on the diff. Write down one question for the agent. Then read the reply and see whether it had already told you the answer.

4.4 Check it where users meet it

Tests run in a test environment. Builds run on a build machine. Users meet the result somewhere else: a deployed page, behind a CDN, on a phone, in an inbox, in a spreadsheet someone downloads. Our rule: done means live. Every point of the brief is checked where the user will see it, not where the agent says it is.

The gaps between "works here" and "works there" are predictable:

  • It isn't actually deployed. The push succeeded; the pipeline failed, or is still running, or deployed the previous commit.
  • Caching. The server has the new file; the browser, the CDN or a service worker serves the old one.
  • State. It works on first load and breaks after a reload, a sign-out, or a second visit.
  • Environment. Different config, missing environment variables, a different runtime version on the host.
  • The real surface. A narrow phone, a slow connection, a right-to-left language, an email client that strips styles.
$ curl -sI https://shop.example.com/newsletter | grep -i -E 'last-modified|etag|cache'
$ curl -s https://shop.example.com/assets/app.js | grep -c 'plus-address'
1                                     # the new code is what's served
# then, in a real browser at 375 px: submit anna+news@example.com,
# reload, submit again, screenshot both

Not every task has a live surface you can reach, and some you shouldn't touch without approval: production data, a customer's account, a real payment. Then say so. "Verified on staging; production not checked" is a complete, honest report. Claude Code also has a /verify command that has Claude build and run the app and look at the result, which catches the problems tests and typechecks miss (best practices).

The common mistake

Checking the page you expect to have changed, and nothing else. Changes to shared code (a stylesheet, a layout, a helper) break pages nobody looked at. When the change touches something shared, check two or three other places that use it.

Follow it to the user

Take a change you shipped recently. Write down every place a user meets it (pages, devices, emails, exports). Check each one in the real environment, including one reload and one narrow screen. Note anything that differs from what the agent reported.

4.5 Claims that survive a reader

The last step of verification is the report: the pull request description, the message to your client, the checkpoint, the status update. Someone will read it and act on it without re-checking. Our rule: a claim must survive a reader. Write it at the strength of the evidence, and no stronger.

Evidence you haveClaim it supportsClaim it doesn't
Unit tests green"Unit tests pass""It works"
Checked on localhost"Works locally""Fixed"
Pushed; CI green"Merged, CI passed""Deployed"
Deployed; page checked once"Live; checked on /newsletter, desktop""Live everywhere"
Nothing run"UNVERIFIED: not run"Anything else

The same applies when you relay someone else's words. If the client said "it seems faster", the report says that, not "performance improved". If an agent said a check passed, your report says the agent reported it, until you've seen the output. Never upgrade a source's words on the way through.

The report format

## Done
- Plus-addresses accepted. Evidence: `npm test -- signup` 14/14;
  live /newsletter, anna+news@example.com → success (shots/live.png).
## Not done
- Double opt-in: out of scope (brief).
## UNVERIFIED
- Safari on iOS: no device available.
## Changed files
src/lib/email.ts, test/signup.test.ts

Short, scannable, and every line can be checked by someone who wasn't there. A reader learns as much from "UNVERIFIED" as from "Done": they know exactly what's left to trust.

The common mistake

Rounding up. "Basically done", "should work", "deployed (pending the pipeline)". Each one is a claim at a strength the evidence doesn't have, written to sound finished. If it isn't proven, write what is proven and what isn't. The reader can decide what to do with an honest gap; they can't do anything with a hidden one.

Rewrite a report

Take a status update or pull request description you or an agent wrote recently. Mark every claim, and next to each, the evidence. Rewrite the report so every claim matches its evidence, using Done, Not done and UNVERIFIED. Compare the two versions for what a reader would have believed.

Practice task

Verify one real agent change from start to finish, as if a client will act on your report without checking it.

  1. Choose a change with a user-facing result: a bug fix or small feature you brief with "done means" checks and an evidence requirement.
  2. When the agent reports, score its reply: every claim, and the evidence for each.
  3. Review the diff with the five steps in 4.3, and ask the agent about anything outside scope.
  4. For the main test, revert the change and confirm the test fails, then restore it.
  5. Check the result where users meet it, including a reload and a narrow screen, or record why you can't.
  6. Write the report: Done (with evidence), Not done, UNVERIFIED, Changed files.

Success criteria.

  • Every "done means" item has evidence that would look different if it were false.
  • You found and resolved every file in the diff that was outside the brief's scope.
  • The main test was seen failing without the change and passing with it.
  • At least one check ran in the environment where users meet the result, or the report says plainly why not.
  • No claim in your report is stronger than its evidence, and a colleague can re-check every line from what it says.

Check yourself

What makes something evidence rather than a claim?

It's the thing that shows the result, such as a command with its output, a URL and what it served, a screenshot or a commit, and it would look different if the claim were false.

A test passes. How do you know it would catch the bug?

Revert the fix and run it. If it fails without the fix and passes with it, it detects the bug. A test that has never been red hasn't shown it can detect anything.

What do you read first in a diff, and why?

The file list, then the test changes. The file list shows work outside scope or on the "don't touch" list; the test changes show whether "tests pass" still means what you think.

The push succeeded and CI is green. Can you write "deployed"?

No. That evidence supports "merged, CI passed". "Deployed" needs a check on the deployed environment, such as fetching the served file or opening the live page.

Why use a reviewer that didn't see the conversation?

The writing agent has its own reasoning in context and tends to agree with it. A fresh reviewer reads the change as it is. Give it the brief and ask it to skip style, so it reports only gaps that matter.

Key takeaways

  • "Done" is a claim. Ask for the command and its output, the URL, the screenshot.
  • Tests have blind spots: skipped layers, missing cases, weakened assertions, stale runs. See every key test fail once.
  • Read the diff's file list and test changes every time. Watch for kill switches.
  • Done means live: check where users meet the result, or say plainly that you didn't.
  • Write every claim at the strength of its evidence. UNVERIFIED is an honest, useful word.

Go further