29. září 2026

Yes or No - Verification Engineering

Yes or No?

Arcos  @0xarcos


https://x.com/0xarcos/status/2123038548580245659

Verification Engineering: The $400K Skill of Running 30 Fable 5.2 Agents (Full Course)
Companies now pay $400K+ a year for one skill: shipping agent code you never had to read.
For months I ran 3 Claude Code agents. Never more.
Not because of tokens. Because I was the check.
Every "done" meant another diff to read. Three agents was exactly as many as one human can babysit.
Last month I ran 30 Fable 5.2 agents. I read 4 reports. Not 4,000 diffs.
Same model. Same repo. What changed is who gets to say "done".
On the Claude Code team at Anthropic, Claude writes and reviews about 90% of the code. Addy Osmani put the reason in one line: when you generate software faster than you can review it, the bottleneck shifts to proving that it works.
Addy Osmani
@addyosmani
Give your agent a way to verify its work. This can dramatically improve the quality of output. With this process in place, Claude Code was able to write 90%+ of its code itself. When generating software at a faster rate than you can review it, the bottleneck shifts to proving
Quote
ClaudeDevs
@ClaudeDevs
Claude writes about 90% of Claude Code's code. From June to September, merged PRs more than doubled while the share reverted fell by more than 40%. We wrote about how we changed code review to get there, and how to adopt it: claude.dev/blog/solving-c
Andrej Karpathy saw this wall coming more than a year earlier. LLMs made writing code almost instant. They did very little for the part that takes most of the time: staring at the code and deciding if it's right.
Andrej Karpathy
@karpathy
Good post from on the "verification gap". You could see it as there being two modes in creation. Borrowing GAN terminology: 1) generation and 2) discrimination. e.g. painting - you make a brush stroke (1) and then you look for a while to see if you improved the
Quote
Balaji
@balajis
AI PROMPTING → AI VERIFYING AI prompting scales, because prompting is just typing. But AI verifying doesn’t scale, because verifying AI output involves much more than just typing. Sometimes you can verify by eye, which is why AI is great for frontend, images, and video. But
That second part has a name now.
Prompts → Agents → Harness → Loops → Graphs → Verification
Graphs let you run 30 agents at once. Verification is why you stop reading them.
Almost nobody builds this layer. They add a second model that says "looks good" and call it review.
This is the whole layer, file by file, rebuilt from how the Claude Code team actually does it. The stuff $2,000 agent bootcamps charge for, free. Works on any repo with a test command.
(It's long. Bookmark it - the files at the end are built to steal)
What you'll walk away with:
→ why "done" from an agent is a claim, not a fact
→ the 7 ways an agent fakes "done", and the check that catches each one
→ the one rule that makes a check impossible to cheat
→ the verify skill that makes Claude run your app before it says a word
→ a commit gate that starts in observe mode, so it never blocks your team on day one
→ how every miss becomes a rule, so the same bug can't ship twice
Let's build it.

00. The 30-second version

If you only read one section, read this one.
→ An agent saying "done" proves nothing. A command that exits 0 does.
→ The check must live where the change can't touch it.
→ Run the real app, not only the tests. End-to-end is the hardest test to fool.
→ No proof, no "done": a Stop hook sends Claude back until evidence.md says PASS. Three fails, then a human.
→ You stop reading diffs. You read one evidence file per change.
→ Every miss becomes one line in a checklist. The same bug can't ship twice.
This is what makes 30 agents possible. Give each one its own git worktree and its own Claude Code session. Each runs its own verify, hits its own stop gate, writes its own evidence.md.
You don't watch 30 agents. You open only the reports that don't say PASS. Last month that was 4.

01. "Done" is a claim, not a fact

Here's a real list an agent handed me last month.
plaintext
tests pass              ✓
types check             ✓
lint clean              ✓
login works             ✓
rate limit returns 429  ✓
no secrets in diff      ✓
Six green checks.
Then I opened the app. Login failed on the second try. The rate limiter never fired.
Two of the six were a story.
The agent wasn't lying. It believed it. It ran the unit tests, they passed, and nothing in its world could say otherwise.
That's the whole problem in one sentence: the agent grades its own exam, so the exam is always easy.
Addy's rule from the Claude Code team: clearly define "done" before review starts. A reviewer asked to "find bugs" with no definition of done will always find something to improve, and never tell you if it works.
Addy Osmani
@addyosmani
Verification is one of the most important things for getting great results out of your agent. Clearly define "done" before code review starts. A reviewer, human or agent, asked to find bugs without this may still find something that could be improved. Give Claude checks it
Quote
Lucas
@lucas_builds
Asking Claude to review your code is a slot machine. Every review finds brand new bugs. Review again: more. Review a tenth time: it still finds something. It never runs out of bugs to find... so how do you decide your code is actually done?
"Done" has to be something a program can fail.
Not "looks good". Not "I'm confident". An exit code. A screenshot of the real app. A test that went red before the fix and green after.

02. The 7 ways an agent fakes "done"

"The agent got it wrong" isn't a diagnosis. It's a shrug.
Name the fake and you already know which check catches it.
plaintext
FAKE          WHAT YOU SEE                     → CAUGHT BY
NO-OP TEST    a test that can't fail           → property tests
TEST EDIT     the test changed to pass         → locked checks
HAPPY PATH    only the case that works         → end-to-end run
SELF REVIEW   the same model says lgtm         → a check with an exit code
MOCK WORLD    everything mocked, nothing real  → the verify skill
SILENT SKIP   "3 skipped" buried in the log    → skipped = failed
SCOPE CREEP   a fix became a rewrite           → file list
Every fake has a guard. Every guard lives in a file. No guard lives in a prompt.
Look at TEST EDIT twice. An agent that's allowed to edit the test will pass the test. Every time.
Which brings us to the one rule that kills half this table.

03. A check the change can edit is a suggestion

On the Claude Code team, the review rules live in a file called REVIEW.md, and it's read from the base branch. Never from the pull request.
The change being judged can't touch the rules that judge it.
If a change can modify its own check, the check is broken.
Same for tests. Same for hooks. Same for the gate itself.
So the setup below does three things:
→ reads the checklist from main with git show, not from your working copy
→ fails any change that touches the checks, the hooks or the verify skill
→ stamps every commit with how it was verified, including "none", so you can find the ones that weren't
A rule the agent can rewrite is a rule it will rewrite.

04. "Just add a second reviewer." Read the fine print.

It's the first thing everyone tries. Claude writes, another Claude reviews.
It feels like safety. Two opinions.
It's a group chat.
Same model, same blind spots. The reviewer reads the author's confident summary and nods. Models also tend to leave a teammate's work as it is, even when it's wrong.
The Claude Code team tested this. Adding a second, more expensive reviewer on top of the primary one is often worse than tuning the primary. They don't stack reviewers. They keep one, give it a REVIEW.md that says what matters in this code, and point every new round at the failures from earlier rounds. Cheaper, and it finds more.
Addy Osmani
@addyosmani
How the Claude Code team thinks about verification
On the Claude Code team, the vast majority of our code (~90%) is written and reviewed by Claude. At this scale, how we equip our agents to verify their work with evidence becomes extremely important....
When they do use a separate grader, it grades against a rubric. In their testing on structured file generation, a separate grader with a rubric improved task success by up to 10 points, with the biggest gains on the hardest problems.
So the fine print isn't "never use a second model".
It's this:
→ a reviewer with no rubric gives you vibes
→ a reviewer with a rubric gives you a verdict
→ a command with an exit code gives you a fact
Facts first. Verdicts second. Vibes never.

05. The 3 tests worth your tokens

Not all tests are equal. Flaky ones train the agent to rerun instead of fix. Slow ones get skipped.
These are the three the Claude Code team says are worth investing in.
End-to-end. A real user flow: open the page, log in, add to cart, check out. Either the whole feature works or it doesn't. If you build only one kind, build this one. It's the hardest test to fool, and it kills MOCK WORLD and HAPPY PATH.
Property tests. You write a statement that can't be false, and a library throws thousands of inputs at it trying to prove it wrong. Hypothesis for Python, fast-check for JS and TS, proptest for Rust. The inputs aren't written by the agent that wrote the code, so they don't share its blind spots. This kills NO-OP TEST.
python
# test_props.py - a test the agent can't pass by accident
from hypothesis import given, strategies as st
from app.codec import encode, decode
from app.ledger import Ledger

@given(st.text())
def test_round_trip(s):
    assert decode(encode(s)) == s

@given(st.lists(st.integers(min_value=0, max_value=10_000)))
def test_balance_never_negative(deposits):
    ledger = Ledger()
    for d in deposits:
        ledger.deposit(d)
    assert ledger.balance >= 0
Boris Cherny, the engineer who built Claude Code, took this to the extreme. He had Claude formally verify the Claude Agent SDK in Lean. A couple of short prompts, 16 PRs fixing bugs and race conditions.
Boris Cherny
@bcherny
I used Opus 5.5 to formally verify the Claude Agent SDK using Lean. A couple short prompts = 16 PRs fixing various bugs and race conditions. Video attached. TLA+ also works well. I sometimes combine Lean and TLA+ to look for issues around data flow, concurrency, and state mgmt.
0:06 / 1:41
Differential tests. For rewrites and migrations. Run the old system and the new one on the same inputs. Any difference is a bug or a breaking change. The old code is the answer key.
python
# test_diff.py - the old code is the oracle
import random
from legacy.pricing import price as old_price
from app.pricing import price as new_price

def test_new_matches_old():
    random.seed(7)
    for _ in range(5000):
        cart = [random.randint(1, 500) for _ in range(random.randint(0, 12))]
        assert new_price(cart) == old_price(cart), cart

06. Run the change, not just the tests

This is the line from the Claude Code team I'd tape to the monitor: running the app end to end matters more than tests.
You wouldn't ship an iOS change without opening the simulator. Claude shouldn't either.
They codify it as a skill called verify. Claude uses it before every commit: start the app, drive it like a QA engineer, look at what actually happens.
Simon Willison calls it agentic manual testing. Having agents "manually" try out the code catches what the automated tests never will.
Unit tests ask: does this function return the right thing?
The verify skill asks: can a user actually do the thing?
Different questions. Only one of them is what you're shipping.
Boris says the same about long runs: self-verification is the ingredient that lets the model run much longer and land closer to what you meant, without you checking in.
Boris Cherny
@bcherny
We talk a lot about how important it is to set up self-verification loops. Especially in the age of powerful models that can run for long periods of time, self-verification is a key ingredient that enables the model to run for much longer, delivering a result that is closer to
Quote
ClaudeDevs
@ClaudeDevs
How do you get Claude Code to check its own work before handing it back? Watch how you can encode your manual checks so Claude closes its own feedback loop:
0:04 / 5:57

07. Build it in 30 minutes

One skill. Two hooks. One checklist. One evidence file.
plaintext
your-repo/
  CLAUDE.md                        the definition of done
  .claude/skills/verify/SKILL.md   run the real app, write the proof
  .claude/hooks/stop_gate.py       no PASS, no "done"
  .claude/hooks/commit_gate.py     no proof, no commit
  .claude/settings.json            turns both hooks on
  .verify/checks.json              checks with triggers from the diff
  .verify/triggers.py              which checks this diff needs
  .verify/gate.json                off / observe / enforce
  .verify/evidence.md              written fresh for every change

The lazy way: one prompt

Open Claude Code in your repo, paste this article, then paste this. Fable 5.2 builds the whole thing in a few minutes.
plaintext
Set up the verification layer from the article above in this repo.

1. Create these files exactly as the article shows them:
   CLAUDE.md (append if it exists), .claude/skills/verify/SKILL.md,
   .claude/hooks/stop_gate.py, .claude/hooks/commit_gate.py,
   .claude/settings.json (merge with mine if it exists),
   .verify/checks.json, .verify/triggers.py, .verify/gate.json
2. Find this repo's real test command and how to start the app locally.
   Write both into the Run section of the verify skill.
3. Add .verify/.tries, .verify/gate.log and .verify/proof/ to .gitignore.
4. Set .verify/gate.json to observe. Do not turn on enforce.
5. If this machine has no python3 command, use python in settings.json.
6. Commit the new files on main, so the checks live on the base branch.
7. Show me the file tree. Don't change any app code.
Then come back here, because the steps explain why each file exists.

Step 1. CLAUDE.md, the definition of done

markdown
# Done means proven

- You are done when .verify/evidence.md says VERDICT: PASS for this change. Not when it looks done.
- Before you say done, use the verify skill. Every time. Even for "small" changes.
- Never edit tests, .verify/, .claude/hooks/ or .claude/skills/verify/ to make something pass.
- A skipped test is a failed test. Say which one and why.
- If verify fails 3 times, stop and write what blocks you in .verify/NEEDS-HUMAN.md.
- Every commit message ends with the Verified-by: line from evidence.md.
Read the third line twice.

Step 2. The verify skill

Skills live in .claude/skills. Claude reads the description and pulls the skill in when the job matches. Keep it close to the code it checks, and add more than one if your repo has more than one app.
markdown
---
name: verify
description: Prove a change works before saying done. Run the real app, run the checks the diff triggers, write .verify/evidence.md. Use before every commit and before saying a task is finished.
---
# Verify

## Run
- Tests: npm test        (replace with this repo's test command)
- App:   npm run dev, then open http://localhost:3000

## Steps
1. Run the tests. Copy the summary line, with skipped and failed counts.
2. Run: python3 .verify/triggers.py
   It prints the checks this diff triggers. Do every one of them.
3. Start the app and do the user flow your change touches, the way a QA
   engineer would. Browser for web, a simulator for mobile, curl for an API.
   Try the happy path and at least 2 ways it can break.
4. Save screenshots or responses to .verify/proof/
5. Write .verify/evidence.md in the format below. Fill every field.

## evidence.md format
VERDICT: PASS or FAIL
CHANGE: one line
TESTS: <summary line> (skipped must be 0)
TRIGGERED: <check id>: pass/fail, one line of proof each
E2E: what you did in the real app, what you saw, file in proof/
NOT CHECKED: what you could not verify, and why
VERIFIED-BY: e2e,unit,checks(<n>)

Never write PASS if anything above failed or was skipped.

Step 3. checks.json, triggers from the diff

The Claude Code team keeps a reliability checklist with 39 items. Each one has a trigger you can read from a diff, a check, and the incident behind it. Claude reads the diff and runs only the items whose trigger matches. Usually 3 to 10. Nobody has to memorize past outages.
Start with five. Add one every time something breaks.
json
{
  "checks": [
    {"id": "auth-retry", "when": ["src/auth/*"], "check": "log in twice in a row, then with a wrong password: 2nd login works, wrong one gets 401", "why": "login broke on the 2nd try"},
    {"id": "rate-limit", "when": ["src/api/*", "*ratelimit*"], "check": "send 11 requests in 10 seconds: the 11th gets 429", "why": "limiter silently disabled"},
    {"id": "old-data", "when": ["*schema*", "*migrations/*", "*models/*"], "check": "load a record saved before this change: no crash, no missing field", "why": "old rows had no new column"},
    {"id": "secrets", "when": ["*"], "check": "no keys, tokens or .env values in the diff", "why": "a key shipped in a commit"},
    {"id": "deps", "when": ["package.json", "requirements*.txt", "*.lock"], "check": "fresh install and build pass from a clean clone", "why": "worked only on one machine"}
  ]
}

Step 4. , read from main

This is where the lock from section 03 lives. The checklist is read from the base branch with git show, so the change you're checking can't rewrite its own exam.
python
# .verify/triggers.py - prints the checks this diff triggers.
# Reads checks.json from the BASE branch, so a change can't rewrite its own checklist.
import fnmatch, json, subprocess, sys

BASE = "main"
LOCKED = [".verify/checks.json", ".verify/triggers.py", ".claude/hooks/*", ".claude/skills/verify/*"]

def git(*args):
    return subprocess.run(["git", *args], capture_output=True, text=True).stdout

checks = json.loads(git("show", f"{BASE}:.verify/checks.json") or "{}").get("checks", [])
changed = git("diff", "--name-only", BASE).split() + git("ls-files", "--others", "--exclude-standard").split()

touched = [f for f in changed if any(fnmatch.fnmatch(f, p) for p in LOCKED)]
if touched:
    print("FAIL locked file changed: " + ", ".join(touched))
    sys.exit(1)

hits = [c for c in checks if any(fnmatch.fnmatch(f, p) for f in changed for p in c["when"])]
for c in hits:
    print(f"[{c['id']}] {c['check']}  (why: {c['why']})")
print(f"{len(hits)} checks triggered by {len(changed)} changed files")
What it does, in plain words:
→ reads the checklist from main, not from your branch (TEST EDIT)
→ fails the run if the change touched the checks, the hooks or the skill
→ prints only the checks this diff needs, with the incident behind each one

Step 5. The stop gate: no PASS, no "done"

This is a Stop hook. Claude Code runs it every time Claude is about to finish. Exit code 2 means Claude can't stop, and it reads the reason.
python
# .claude/hooks/stop_gate.py - Claude can't say "done" without a fresh PASS.
# 3 rounds max, then a human gets NEEDS-HUMAN.md.
import json, os, subprocess, sys

event = json.load(sys.stdin)
root = event.get("cwd", ".")
ev = os.path.join(root, ".verify", "evidence.md")
tries = os.path.join(root, ".verify", ".tries")

status = subprocess.run(["git", "status", "--porcelain"], cwd=root, capture_output=True, text=True).stdout
files = [l[3:] for l in status.splitlines() if not l[3:].startswith(".verify/")]
if not files:
    sys.exit(0)  # nothing changed, nothing to prove

last_edit = max([os.path.getmtime(os.path.join(root, f)) for f in files if os.path.isfile(os.path.join(root, f))] or [0])
fresh = os.path.exists(ev) and os.path.getmtime(ev) >= last_edit
passed = fresh and "VERDICT: PASS" in open(ev, encoding="utf-8").read()
n = int(open(tries).read()) if os.path.exists(tries) else 0

if passed or n >= 3:
    if not passed:
        open(os.path.join(root, ".verify", "NEEDS-HUMAN.md"), "a").write("verify failed 3 times, see evidence.md\n")
    if os.path.exists(tries):
        os.remove(tries)
    sys.exit(0)

open(tries, "w").write(str(n + 1))
print("Not done: no fresh VERDICT: PASS in .verify/evidence.md. Use the verify skill, fix what fails, then finish.", file=sys.stderr)
sys.exit(2)
It checks one thing: is there an evidence file, written after your last edit, that says PASS?
Old proof doesn't count. A PASS from before the last edit is a PASS for different code.
Three rounds, then it lets go and writes NEEDS-HUMAN.md. The Claude Code team uses the same number: if a check still fails after three rounds, Claude stops and brings in a person. If three tries didn't fix it, the fourth won't either.

Step 6. The commit gate, in observe mode first

A PreToolUse hook runs before Claude uses a tool. This one watches for git commit. No PASS, no Verified-by line, no commit.
python
# .claude/hooks/commit_gate.py - blocks commits without proof. Modes: off / observe / enforce.
import json, os, sys, time

event = json.load(sys.stdin)
cmd = event.get("tool_input", {}).get("command", "")
if "git commit" not in cmd:
    sys.exit(0)
root = event.get("cwd", ".")
mode = json.load(open(os.path.join(root, ".verify", "gate.json"))).get("mode", "observe")
if mode == "off" or "Verified-by: none" in cmd:
    sys.exit(0)  # an honest "none" with a reason is allowed, and you can find it later

ev = os.path.join(root, ".verify", "evidence.md")
text = open(ev, encoding="utf-8").read() if os.path.exists(ev) else ""
why = []
if "VERDICT: PASS" not in text:
    why.append("no VERDICT: PASS in .verify/evidence.md")
if "Verified-by:" not in cmd:
    why.append("no Verified-by: line in the commit message")
if not why:
    sys.exit(0)

sid = event.get("session_id", "-")
log = os.path.join(root, ".verify", "gate.log")
open(log, "a").write(f"{time.strftime('%Y-%m-%d %H:%M')} {mode} would-block {sid}: {'; '.join(why)}\n")
blocked = open(log).read().count(f"enforce would-block {sid}")
if mode == "observe" or blocked > 2:
    sys.exit(0)  # observe never blocks; enforce lets the 3rd try in a session through, logged
print("Commit blocked: " + "; ".join(why) + ". Use the verify skill, or add 'Verified-by: none - <reason>'.", file=sys.stderr)
sys.exit(2)
And this turns both hooks on, in .claude/settings.json:
json
{
  "hooks": {
    "Stop": [
      {"hooks": [{"type": "command", "command": "python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/stop_gate.py\""}]}
    ],
    "PreToolUse": [
      {"matcher": "Bash", "hooks": [{"type": "command", "command": "python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/commit_gate.py\""}]}
    ]
  }
}
And the mode lives in .verify/gate.json:
json
{"mode": "observe"}
On Windows, write python instead of python3.

Step 7. The stamp

Every commit ends with one line:
plaintext
Verified-by: e2e,unit,checks(4)
Or, honestly:
plaintext
Verified-by: none - docs only, nothing to run
The Claude Code team stamps every commit this way, "none" included, so they can query exactly which commits nobody proved. One command shows you your blind spots:
bash
git log --since="2 weeks ago" --grep="Verified-by: none" --oneline

08. One real run

Here's what it looks like when it all works. Goal: add "remember me" to login.
Fable 5.2 wrote the change and tried to finish. The stop gate sent it back:
plaintext
Not done: no fresh VERDICT: PASS in .verify/evidence.md.
It ran the verify skill. matched 3 checks. The browser run caught what the unit tests didn't: the remember-me cookie survived logout.
It fixed it, ran everything again, and this was waiting for me:
plaintext
VERDICT: PASS
CHANGE: "remember me" checkbox on login, 30-day cookie
TESTS: 214 passed, 0 failed, 0 skipped
TRIGGERED: auth-retry: pass, 2nd login ok, wrong password 401
           rate-limit: pass, 11th request 429
           secrets: pass, no keys in diff
E2E: logged in with remember-me, closed the tab, reopened: still in
     logged out, reopened: logged out (failed on try 1, fixed)
     proof/remember-1.png, proof/remember-2.png
NOT CHECKED: Safari private mode, no Safari on this machine
VERIFIED-BY: e2e,unit,checks(3)
I read 12 lines. Not 340 lines of diff.
And the one thing it couldn't check, it told me. That line is worth more than the other eleven.
Karpathy asked for exactly this from LLMs two years ago: proof next to the answer, so you don't have to go dig it up yourself.
Andrej Karpathy
@karpathy
One built-in UI/UX feature of LLM interfaces I'd love is proof. I almost always do this manually - for example if the LLM recommends running some commands with some switches, I manually look up and verify the API in the docs to make sure those switches are correct and that I

09. Start every gate in observe mode

The fastest way to kill this setup is to turn on enforce on day one.
The gate blocks a commit it shouldn't. Someone loses an hour. Someone deletes the hook. You're back to reading diffs.
The Claude Code team ships every new gate the same way: off, then observe, then enforce.
plaintext
MODE      WHAT HAPPENS                       HOW LONG
off       nothing                            until the files exist
observe   logs "would block", blocks none    1 to 2 weeks
enforce   blocks, 3rd try passes, logged     from then on
In observe, read .verify/gate.log once a week. Every "would block" is either a real miss (good, the gate works) or a false alarm (fix the check, not the gate). When a week goes by with no false alarms, flip it.
And enforce still lets the third try through, logged. A gate that can trap an agent forever isn't strict. It's broken. Claude Code isn't perfect, and your gate shouldn't pretend to be.

10. Every miss becomes a rule

A gate that never learns is a gate you'll outgrow in a month.
Here's how the Claude Code team turns misses into rules, and it's stricter than you'd guess:
→ a pattern becomes a candidate only if it showed up in at least 2 PRs and can be spotted from a diff
→ three agents then try to disprove it
→ a human approves it in a PR
In this setup the loop is simpler. Same ratchet:
→ something broke that verify didn't catch
→ add one check to checks.json: the trigger, the check, the incident
→ commit it to main, so the next diff that touches that code runs it
Flaky tests get the same treatment. Claude can't skip them, add sleeps, or retry until green. If it can't find the root cause, it deletes the test and writes down why. A test that passes on the third try teaches the agent that red means "try again".
And prune. Checklists only grow if you let them. Once a month, delete every check that hasn't fired in 60 days.
It's a ratchet. The agent can't make the same mistake twice, and every miss makes the whole repo a little harder to break.

11. Which check are you missing?

plaintext
SYMPTOM                                    → MISSING
"tests pass" but the feature is broken     → end-to-end in the verify skill
a test changed in the PR it judges         → locked files, checks read from main
works for "hello", breaks on emoji         → property tests
rewrite returns slightly different data    → differential tests
the same outage twice                      → one check in checks.json
"done" with no proof                       → the stop gate
you still read every diff                  → evidence.md + Verified-by
the gate keeps blocking good work          → back to observe mode
Find your symptom. Build that one check first. You don't need all of it on day one.

12. The only number that tells you it's working

Your test pass rate tells you nothing. It's 100% on the day login breaks.
Track these two instead:
plaintext
reads per ship =
  diffs you actually opened
  ─────────────────────────
  changes that shipped

escapes =
  bugs found after merge that a check should have caught
Day one, reads per ship is close to 1.0. You open everything, and you should.
The goal is under 0.1. One look for every ten changes that ship.
Escapes should drop to zero for any bug class that's already in checks.json. If the same class escapes twice, your ratchet is broken, not your agent.
The Claude Code team reviews its reviewers the same way: how many merged changes got reverted, how many a maintainer rejected, compared with changes of the same size that stayed clean.

13. What it can and can't do

This setup CAN:
→ stop Claude from saying "done" without fresh proof
→ make Claude run your app like a QA engineer before every commit
→ lock the checks so a change can't grade itself
→ run only the checks this diff needs, not all of them
→ stamp every commit, so unverified code is one git log away
→ get stricter every time something escapes
This setup CAN'T:
→ write good checks for you. The gate is only as honest as checks.json
→ test what you never told it to look at
→ replace your eyes on payments, auth and data deletion. Keep those for yourself
→ run for free. Every verify run costs tokens and minutes
→ fix a vague goal. "Make it better" has no definition of done
Security deserves its own pass. Claude Code ships one: it can review your code for security vulnerabilities automatically. Add it as one more check, not instead of yours.
Anthropic
@AnthropicAI
Claude Code can now automatically review your code for security vulnerabilities.
Quote
Claude
@claudeai
We just shipped automated security reviews in Claude Code. Catch vulnerabilities before they ship with two new features: - /security-review slash command for ad-hoc security reviews - GitHub Actions integration for automatic reviews on every PR
0:01 / 0:39

14. Tonight: the one-evening protocol

You don't need the whole thing to feel the difference. Do this tonight:
→ 20 min: paste the lazy prompt. Gate in observe.
→ 10 min: write your first 5 checks, one for each outage you still remember
→ 15 min: give Claude one real task. Don't read the diff. Read evidence.md
→ 5 min: open .verify/gate.log. Every "would block" is a commit you'd have read by hand
→ next week: flip the gate to enforce
By Friday you'll know which half of your reviewing was actually checking something.

The checklist

Save this. Run it before you trust a single "done".
plaintext
[ ] "Done" is defined before the work starts
[ ] Every change ends with evidence.md: VERDICT, TESTS, E2E, NOT CHECKED
[ ] Claude runs the real app, not only the tests
[ ] Skipped tests count as failed
[ ] Checks are read from main, never from the branch
[ ] No change can touch tests, checks, hooks or the verify skill
[ ] One reviewer with a rubric, not two without one
[ ] 3 failed rounds stops the agent and brings in a human
[ ] Every commit has a Verified-by line, "none" included
[ ] New gates start in observe mode
[ ] Every escape becomes one check, pruned after 60 quiet days

The shift

Karpathy said it this year: coding agents basically didn't work before last December, and basically work since. And he named the catch. They work best on tasks where you can verify and test what they did.
Andrej Karpathy
@karpathy
It is hard to communicate how much programming has changed due to AI in the last 2 months: not gradually and over time in the "progress as usual" way, but specifically this last December. There are a number of asterisks but imo coding agents basically didn’t work before December
A senior engineer was never the one who wrote the most code.
They were the one who knew how to tell if it worked.
Prompts asked:
What do I say?
Graphs asked:
What can run at the same time?
Verification asks:
How do you know?
Your agents don't need a reviewer.
They need a definition of done they can't argue with.
Write it once. Then stop reading diffs.
If this saved you a week of reading diffs:
→ Bookmark it. The files and the checklist are built to steal.
→ Follow - this is Field Manual Nº 003: Verification Engineering. The next one goes deeper.
→ Reply with the last "done" an agent told you that turned out to be a lie. I'll tell you which check catches it.

 





zes or no ;-)













Žádné komentáře: