# How the Claude Code team thinks about verification
<!--
ref: @content/web/anthropic/2026-11-16-how-the-claude-code-team-thinks-about-verification
tags: [agent-verification, testing, code-review, claude-code, agent-workflows, reliability, ci-gates]
version: 2
updated_at: 2026-11-21T17:13:45.353Z
-->

**[Read the original](https://claude.dev/blog/how-the-claude-code-team-thinks-about-verification/)**


*Synthesized from Addy Osmani's article on claude.dev Blog, 2026-11-16.*

The article describes how the Claude Code team gets Claude to check its own work. About 90% of the team's code is written and reviewed by Claude. The author argues that verification loops are what let a person delegate more work: without them one or two Claude sessions can run at a time, and with them dozens or hundreds can run in parallel. The approach combines end-to-end, property and differential tests, a human escalation rule, a per-change reliability checklist, and commit gates that record how each commit was verified.

## Core Thesis

Addy Osmani argues that the engineer's job shifts from reading every diff to defining what "done" means and reviewing the evidence that the work meets it. Verification has to sit outside the changes it judges: the review configuration is read from the base branch rather than the PR, and checks are graded against bugs that actually mattered. Each miss should become a rule, and rules and test suites should be pruned regularly.

## Key Insights

- **Verification unlocks scale.** In internal testing on structured file generation, a separate grader checking output against a rubric improved task success by up to 10 points over a standard prompting loop, with the largest gains on the hardest problems.
- **Three test types are worth investing in.** End-to-end tests describe real user flows (add to cart, checkout, confirmation page) and produce traces and screenshots; unit tests can pass while a feature is broken. Property tests state an invariant (for example, an account balance can never go negative) and use a generator such as fast-check (JS/TS), Hypothesis (Python) or proptest (Rust) to try thousands of inputs. Differential tests run old and new systems on the same inputs, such as sampled production traffic, normalize irrelevant differences like whitespace, and keep a list of approved changes.
- **Flaky and slow tests are the main failure modes.** Flaky tests train agents to rerun instead of fix; slow tests reduce how many checks run per batch.
- **Claude runs the change itself.** It tests the app like a QA engineer, using the Claude Chrome extension for web, iOS and Android MCPs for mobile, computer use for desktop, or a local service for backend work. A `verify` skill in `.claude/skills/` codifies how to start the app or simulator.
- **Escalation is bounded.** Claude tries to fix failing checks; after three failed rounds it stops and brings in a human. Code owners write their own checks, and each check should explain why it pulled in a reviewer.
- **A reliability checklist of 39 items.** Each item has a trigger that can be read in a diff. Claude checks only the matching items, usually 3 to 10 per change. One example item is "--resume loads old transcripts."
- **One primary reviewer, several rounds.** Rather than stacking reviewers, the team tunes a single reviewer through REVIEW.md. Later rounds build on earlier context and past failures.
- **Reviews are pinned to commits.** A review of an outdated commit is treated as meaningless. Cheap checks (tests, build, linter) run before a PR is opened, enforced by a hook that runs tests when Claude finishes or by a `/goal` requiring a passing suite.
- **Commit stamps and a gate.** Each commit records how it was verified, including "none." A commit gate in off, observe or enforce mode can block commits unless the session ran `/code-review` or `/verify`. Observe logs what would be blocked; enforce blocks, but after two blocks in a session the next commit is allowed through.
- **Review the reviewers.** The team tracks reverts, maintainer rejections and a size-matched clean control set. Its evaluation uses past incidents, one-sentence answer keys and a split tuning and test set, and measures raw-finding recall, post-verification recall and final recall separately. Findings are tagged Important, Nit or Pre-existing. Tuning stops once further gains would be overfitting.
- **Misses become rules under constraints.** A pattern must appear in at least two PRs and be detectable from a diff. Candidate rules are challenged by three agents and approved by a human. Flaky tests are never skipped, retried or padded with sleeps; if the root cause cannot be found, the test is deleted and the reason is documented.

## Actionable Takeaways

- Build an end-to-end check for each real user flow before delegating work in that area, and make it produce traces or screenshots.
- Add property tests for invariants that should never break, using fast-check, Hypothesis or proptest as the stack allows.
- For a refactor or rewrite, run old and new code on the same inputs and review differences, keeping an approved-changes list.
- Put a `verify` skill in `.claude/skills/` that starts the app or simulator, so the agent can run the change itself.
- Set a hard stop after three failed fix rounds and hand the failure to a human.
- Store the review configuration (REVIEW.md) on the base branch so a change cannot edit its own checks.
- Run tests, build and linter before opening a PR, using a hook or a `/goal` that requires a passing suite.
- Require each commit to record how it was verified, and start the gate in observe mode before enforcing it.
- Only turn a repeated miss into a rule when it appears in at least two PRs and can be seen in a diff.

---

*Related: `@content/web/github/2026-11-25-followups-scope-issue-112120` · `@content/web/github/2026-11-25-claude-code-v2-1-332` · `@content/web/claude-dev/2026-11-24-the-work-after-you-open-a-pr` · `@content/web/github/2026-11-24-builtin-ship-shadows-user-skill` · `@content/web/github/2026-11-23-claude-code-v2-1-331`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*