In the film that gave WDD its name, the band leader does not care how the drummer feels about his playing. There is a tempo, and it is either right or it is not. In WDD that judge is the verifier: one command that exits with success only when the goal is met.

Everything else in WDD depends on it. A push without a verifier is noise. A loop without one never ends. A goal without one is a wish.

Five properties of a good verifier

Objective. It exits zero or non-zero, with no human in between. “The tests pass”, “the build succeeds with no warnings”, “the benchmark reports under 16.7 ms a frame”, “the compiled bytes match”.

Fast. It runs every round. Minutes are fine; an hour is not. If the full check is slow, run a relevant subset each round and the full set before you accept the result.

Deterministic. The same code gives the same answer. A flaky check makes the agent chase ghosts and wastes rounds; fix flakiness first, or run the flaky part many times and require every run to pass.

Hard to fool. A persistent agent under pressure will look for the cheapest way to green. Close the obvious ones in the verifier itself:

  • fail if any file under the test folder changed (compare with the main branch);
  • fail on skipped, pending or .only tests;
  • fail on new lint-disable comments, @ts-ignore or any, if those are the shortcuts in your codebase;
  • keep a holdout: tests or samples the agent never sees, run only at the end.

Talkative. When it fails, it should say what failed, briefly, at the end of its output. The loop sends the last lines back to the agent as part of the push; make those lines count.

A verifier is often a script

Real verifiers are usually a short script that runs several checks:

#!/usr/bin/env bash
set -e
git diff --quiet origin/main -- tests/ || { echo "Test files changed: not allowed"; exit 1; }
! grep -rn "\.skip(\|\.only(" tests/ || { echo "Skipped or focused tests found"; exit 1; }
npm run build
npm test

Numbers beat yes or no

Where you can, print a score as well as pass or fail: “412 of 620 cases pass”, “match 96%”, “48 FPS”. A number lets the agent (and you) see whether a round helped, and lets the loop notice when progress stalls.

When you cannot write one

Then the task is not ready for WDD. Sometimes the fix is to split it: the mechanical part gets a verifier and a loop, and the part that needs judgement stays with a person. Sometimes the fix is to write tests first (TDD, done by you or a separate, reviewed agent session). The tempo check helps you see which.

Writing the verifier is not overhead. In WDD it is the most valuable thing you write: it is the definition of done, the progress meter and the safety net, all in one command.