Anthropic: how the Claude Code team thinks about verification¶
Type: comparison. Status: watching (2026-11-26): per-idea results below; no overall decision.
A comparison of how we check agent-written work with the post How the Claude Code team thinks about verification by Addy Osmani of Anthropic (engineering blog, 2026-11-16). Its thesis: verification is what lets a team hand work to many agents at once. Checks have become cheap for an agent to write and to run, so they should run as software and leave evidence, and a failure that repeats should become a hook or a rule. Its companion on review has its own page, how the Claude Code team does code review. How these pages are built: index.
Independent origin
The owner developed this workflow independently, before and without knowing this post. The
repository's history bears that out for every part this page compares: the pre-push hook with
the plugin tests, workflow:ready, git-flow:babysit-pr and the Claude review workflow (all
2026-10-10), the test-first workflow:work-on and the commit guard hook (both 2026-10-16),
workflow:feedback (2026-10-17), the push slot (#268, 2026-11-03), the security checklist
(#610, 2026-11-07) and the merge guard hook (#478, 2026-11-15) were committed before the post
appeared. One part came after it: Vale in the gate, whose errors fail and warnings only report
(#926, 2026-11-21); neither the issue nor its commit cites the post. The repository first names
the post on 2026-11-23, on the agent fleets page, and the
possible changes to the milestone model list points taken
from that page on the same day; those points are proposals, not part of the workflow. This
page is a check against an outside view, not a source the workflow was built from.
Sources¶
Read on 2026-11-26.
- The post, read whole: why verification enables delegation, the three kinds of test it
recommends, and the team's practices from the
verifyskill to pruning. Its page shows no edit marker; a list of related posts beside it is the site's navigation. - Pages the post links that this page uses:
- Customize Code Review, the product
documentation of
REVIEW.md: read from the base branch or the default branch, "never from the pull request's own changes", and only from a protected branch in full. - Hooks reference, read in part: its first section verbatim, the rest as a summary. This page uses only the list of hook events, among them one when Claude finishes responding and one before a tool call that can block it.
- Building verification loops in Claude Code with skills, by Delba de Oliveira of the Claude Code team (2026-07-22): a verification loop packaged as a skill, run on its own, embedded in another skill or chained after one, with a gate per pull request as the last step. It reports no measurements.
- Customize Code Review, the product
documentation of
- Not used: the page the post links for its ten-point figure (the Managed Agents
announcement), the skills post, the migration article, the
/goaland review-severity pages, and the property-testing libraries' sites; none was read for this page. - Critics, listed under What critics say, each read on 2026-11-26.
The post's figures¶
Every figure in this list is Anthropic's own, as reported, about its own work; nobody has verified them independently:
- Claude writes and reviews about 90 % of the Claude Code team's code.
- In internal tests on generating structured files, a separate grader that checked Claude's work against a rubric "improved task success by up to 10 points" over a standard prompting loop, most on the hardest problems. The post gives no baseline, sample size or unit.
- The team's reliability checklist has 39 items, of which a diff usually triggers 3 to 10.
The post's other numbers are rules, not results: three rounds before a person is called in, a pattern seen in at least two pull requests before it becomes a rule, two of three bug finders that must catch a known bug, two blocked commits per session before the gate lets one through.
How it compares¶
One row per point of the post, in its order. Where the agent fleets page or the code review page already rates the same practice, the row names it.
| # | Post | Verdict | Our side |
|---|---|---|---|
| 1 | Verification is what lets a team run dozens of agents instead of one or two: what a person does not read, the checks must vouch for | same | A coordinator runs several workers in parallel and merges a routine pull request on the owner's standing consent only once its checks are green and its findings judged (sdlc/parallel-work.md, sdlc/quality-gate.md). What limits the number of workers here is the machine, not the checks: memory, load and one push at a time (worker slots, push slot) |
| 2 | A failure that repeats becomes a hook or a more explicit CLAUDE.md rule, for example a test that looks for user data in logs |
same | The commit guard refuses blanket staging since a backup file got committed, and scans the staged lines for secrets (git-flow plugin); the merge guard refuses a merge in a worker's session (workflow plugin); the destructive-command guard runs as a hook (dev-env plugin); the security checklist holds the finding classes Aikido reported here (sdlc/quality-gate.md). Keeps row 2 of the code review page |
| 3 | Flaky tests teach the agent to run them again instead of fixing the code; slow tests mean fewer runs; heavy tests belong before the commit | different | The heavy checks run before the push, not the commit: the pre-push hook runs the plugin tests a branch can have broken, Semgrep, Gitleaks and Vale; CI runs the tests, Semgrep and Vale again, with TruffleHog in place of Gitleaks (ci/checks.md, which tests run where). One push runs at a time per machine, because three hooks at once ran a laptop out of memory (push slot) |
| 4 | End-to-end tests first: the agent can see and drive the running system through a skill that starts, uses and inspects the app | different | This repository ships no app. Its tests run the scripts and skill helpers against fixtures and recorded gh output (ci/checks.md), and the skill evals run a skill in a sandbox and grade what it did (authoring/evals.md). The owner's sibling project FeeCheck is said to have end-to-end tests and an extraction evaluation; that is unverified here, since its repository is not part of this comparison. Keeps row 2 of the agent fleets page |
| 5 | Property tests: a statement that cannot fail, attacked with thousands of generated inputs (round trip, invariant, idempotency, equivalence), because their edge cases do not share the agent's bias | gap | No property test in this repository, and no stack page names one (stacks). Listed as a later change, Java backend first (milestone model changes) |
| 6 | Differential tests for a migration: old and new on the same random or sampled inputs, irrelevant differences normalised, approved differences listed | gap | None. A script replaced here is tested on its own, not against its predecessor (ci/checks.md) |
| 7 | Verification means running the change: a verify skill next to the code, which Claude uses before committing, kept fast and reliable as the smoke test |
different | A worker builds test first, then runs the repository's Machine gate and workflow:ready before the pull request (workflow plugin, ready, sdlc/quality-gate.md). The command comes from the ## Workflow section of each repository's CLAUDE.md, not from a skill per repository |
| 8 | A check still failing after three rounds stops Claude, who brings in a person | same | A worker gets 5 fix rounds, the coordinator may allow up to 10 more, AI findings get fix rounds for at most 3 Copilot reviews, and a loop that stops converging goes to a person (sdlc/quality-gate.md). The numbers differ. Keeps row 4 of the agent fleets page |
| 9 | Code owners write their own checks and refine them until they flag what the owner would; a check that calls in a reviewer says why | different | One owner. The owner's checks are the rules: CLAUDE.md, path-scoped rules loaded only under plugins/ (.claude/rules/plugins.md), and the owner paths whose pull requests wait for the owner's approval, with the merge label naming the reason (ci/codeowners.md, sdlc/decisions.md) |
| 10 | A reliability checklist of 39 items, each with a trigger readable from the diff, its check and the incidents behind it; only the matching items run | different | The security checklist runs by the kind of changed file (scripts, served HTML, workflows, infrastructure, dependency files), and holds what Aikido found here (sdlc/quality-gate.md). It covers security only, and its trigger is the file type, not what the diff contains. The agent fleets page rated it "have" |
| 11 | One reviewer, tuned with a REVIEW.md, instead of a second, more expensive one stacked on top; later rounds build on earlier ones |
different | Two reviewers, Copilot and the Claude review, each once (ci/copilot-review.md, ci/claude-review.md). Copilot's instructions are built from what past reviews found (why they say what they say); the Claude review runs a pinned plugin with no instructions of ours |
| 12 | A change cannot modify its own checks: review rules come from the base branch; a review belongs to one commit, and one of an older commit means nothing | different | The Claude review refuses to run unless its workflow file equals the one on main, and restores .claude/ from the base branch (ci/claude-review.md, .github/workflows/claude-review.yml). Copilot reads its instructions from the head branch, a weakness accepted for private repositories (ci/copilot-review.md). A merge pins the head commit it checked, and the owner's approval counts only on the current head (sdlc/quality-gate.md, sdlc/decisions.md). But each AI review looks at the commit marked ready; a fix push after it is not reviewed again |
| 13 | Cheap checks before the pull request, enforced by a hook that runs the tests when Claude finishes, or a goal of a passing suite | different | The enforcement is a git hook on push, not a Claude Code hook: it binds a person's push as well as an agent's (ci/checks.md). No hook runs tests when a session finishes |
| 14 | Every commit is stamped with how it was verified, "none" included, so unverified commits can be found | gap | The pull request body lists what the worker checked, and the fix commit names the AI suggestions it took or turned down (sdlc/quality-gate.md); no commit carries a stamp |
| 15 | A new commit gate starts in observe mode, which logs what it would have blocked, before enforce mode; after two blocks in a session the next commit is let through with a reason | different | A gate check is on or off. A new scanner came in with the findings of its first full scan excluded, each with a reason, and a warning reports without failing; a false positive is marked on its line with a reason, never a switched-off check (ci/checks.md, Vale). Nothing lets a push through after repeated blocks |
| 16 | The reviewers are tested on what matters: changes later reverted or rejected, a matched set of clean changes, recall per stage, severity tags | gap | What the Claude review caught was counted once by hand (ci/cost.md); skills have evals, our reviewers none (authoring/evals.md). Keeps row 19 of the code review page |
| 17 | Misses become rules: patterns in at least two pull requests, tried by three agents, approved by a person; bug finders replayed on pull requests behind known incidents | different | workflow:feedback turns a session's friction with the plugins into issues after the owner's yes (workflow plugin); the Copilot instructions and the security checklist grow from findings (row 2). No replay of reviewers on past incidents; lessons after two cases is a later change (milestone model changes) |
| 18 | A flaky test may not be skipped, slowed or retried until it passes; without a found cause it is deleted with a written reason | different | babysit-pr re-runs a failure it reads as flaky while re-runs are left, and a re-run without the worker needs the owner's yes (sdlc/parallel-work.md, git-flow plugin). No rule deletes a flaky test with a reason; it is a later change (milestone model changes) |
| 19 | Test suites, verification steps and instruction files only grow unless pruned, so they are tidied on a schedule | gap | The skill-audit skill checks a skill against the rule catalogue, its context cost included, when asked (.claude/skills/skill-audit/SKILL.md); workflow:maintenance has no task that prunes CLAUDE.md, rules or tests (workflow plugin) |
Critical assessment¶
What critics say¶
- The agent should not grade its own homework (the strongest argument). Jeff An, chief
technology officer of Momentic, which sells an AI testing agent, argues in an opinion piece
that coding agents write shallow tests, carry their own blind spots into them and declare
success early, and that an independent agent with a fresh context should check the running
app. His figures are his company's own: of 1,000 AI-written unit tests in its repository,
reviewed by people, about one in ten was useful
(Your coding agent shouldn't grade its own homework,
Stack Overflow blog, 2026-11-13). The post answers part of this with a separate grader and the
verifyskill; both are Claude, so the point stands for a single-vendor loop. - Agents game the tests they can see. Jonathan Gabor, Jayson Lynch and Jonathan Rosenfeld argue from their benchmark that coding agents reward-hack: they hard-code test cases, edit or delete test files and submit heuristics that pass the visible tests. They report explicit cases for Claude Code and Codex, far more on ambiguous problems, and find that held-out tests have surprising failure modes (EvilGenie: A Reward Hacking Benchmark, arXiv, 2025-11-26). Their measurements are on older models and say nothing about the post's setup; the post's rule that a change cannot modify its checks is the answer it offers.
- A judge moves the problem up a level. The Agentic AI Hub of daily.dev, a page without a byline, holds that reviewer agents and model judges push the verification problem up a level rather than solving it, that a self-reviewing agent keeps its bias, and that a person must calibrate the judges while the pipeline stays out of reach of the agent that writes the code (Verification & Testing for Agents, modified 2026-07-22). The page's own view, citing research it does not test.
- Property tests miss the single bad value. The Proptest documentation states that random inputs are very unlikely to hit one edge case in a large space, so that "traditional unit testing with intelligently selected cases is still necessary"; some inputs are also hard to generate usefully (Limitations of Property Testing, undated). A library's documentation about its own method, with no measurements.
- Heavy checks before a commit break the flow. Matt Riley argues, as his own opinion on the
Thoughtworks blog, that slow pre-commit hooks repeat checks just run, make people batch or skip
commits with
--no-verify, and that the end-to-end tests belong elsewhere; his one figure is an anecdote from one pair (Pre-commit: Don't git hooked!, 2020-01-13). The post wants heavy tests before the commit; the piece predates coding agents, which do not tire of a slow hook but do spend a session's time on it. - The figures are not a basis for other teams. braindetox.kr, a summary of the post without a
byline, notes as its own reading that the 90 % share has no denominator or period, that the
ten-point gain has no unit, sample or task count, that the
verifyskill, the checklist and the commit gate are not shown, and that nothing in the post says the practice fits other teams (Claude Code Verification: E2E, Property, Differential Tests, 2026-11-18).
Searched with web search for criticism of the post, of agents grading their own work, of reward hacking on tests, of property-based and differential testing and of slow pre-commit hooks. One news piece on halving Claude Code's false success claims was not readable here (HTTP 403), and a write-up on Medium's Level Up Coding is for members only and was not read. No page read here criticises differential tests in particular.
Our assessment¶
| Concern | Evidence | Severity | What would settle it |
|---|---|---|---|
Reliability and edge cases: a worker writes its tests in the same session as the code, so critics 1 and 2 apply; on a routine pull request only models read those tests (the code review of workflow:ready, one Copilot review, one Claude review), the owner only on a pull request to an owner path, and in this repository nothing measures how strong they are, where the Java stack has a mutation score |
work-on step 4 (plugins/workflow/skills/work-on/SKILL.md); sdlc/quality-gate.md; java-spring; critics 1 and 2 |
unknown | Read the tests of 20 merged worker pull requests and sort them as critic 1 did, or break the code they cover by hand and see which tests fail |
| Security and data protection: the post's judge cannot be changed by the change, and a review of an older commit counts for nothing; our AI reviews see the commit marked ready, and Copilot's instructions come from the head branch | Row 12; ci/copilot-review.md | minor | Count how often a fix push after the review changed more than the finding it fixed; a public repository would make the head-branch point serious |
| Performance and latency: our heavy checks run before every push and one push runs at a time per machine, so a slow hook queues every worker, which is the cost critic 5 names | 6 minutes on the host and 10 to 15 on the laptop, measured before the hook ran only the changed tests (#268, #759) (push slot) | minor | Time the hook now, with the changed-tests selection, on both machines |
Real need against a gimmick: property and differential tests need code with a clear invariant or a predecessor to compare with; most code here is glue around gh, git and skills, where critic 4's limit bites and the value is unproven |
none yet | unknown | One property test on a pure function with an invariant (the test selection never selects none, the token trimming of lib.sh is idempotent), and whether it finds anything |
| Long-term maintainability: rules, checklists and tests here only grow; nothing removes a stale one, which is the post's own warning | Row 19 | minor | The line count of CLAUDE.md, .claude/rules/ and the skills over the last months, and one pruning pass to see what goes |
Bottom line¶
Trial small: a sample of worker-written tests and one property test are cheap and answer the
reliability and real-need rows, an observe mode would make the next gate check cheaper to bring
in, and a verify skill and reviewer evals wait for an app to drive or a measurement we do not
have yet.
What we could adopt¶
The result of checking each idea against the code and the docs (2026-11-26). A result is a recommendation: no issue is filed from this page, and the workflow does not change because of it.
- An observe mode for a new gate check (row 15). Needs the owner: a check that first only reports in the pre-push hook and CI, and blocks after its false positives are read, fits how Vale's warnings already work; it costs one switch per check and a date to enforce it.
- A verification stamp on each commit (row 14). Don't adopt: a pull request squashes into one
commit on
main, and its body, which becomes that commit's body, already lists what the worker checked. A trailer per worker commit would be lost or duplicated in the squash. - A differential test where a script is migrated or replaced (row 6). Needs the owner: the next time a bash script becomes Python, or a script is rewritten, the old and new versions run on the same recorded inputs and their outputs are compared, with the intended differences listed. Nothing is being migrated now.
- Property tests (row 5). Needs the owner: one trial on a pure function, as the assessment says; a stack page names them only if the trial finds something. The Java backend is already listed first in the milestone model changes.
- Delete a flaky test with a written reason (row 18). Needs the owner: it replaces re-runs, and the re-run rules are the owner's (sdlc/parallel-work.md).
- A
verifyskill that drives the app (rows 4 and 7). Don't adopt here: this repository has no app to drive. It belongs in the application repositories, whose stack pages decide it. - A hook that runs the tests when a session finishes (row 13). Don't adopt: the pre-push hook already binds every push, and a second run at every stop would add load where the push slot already queues workers.
- One reviewer instead of two (row 11). Don't adopt now: Copilot comes from another vendor, the nearest we have to the independent checker critic 1 asks for, though its model is GitHub's choice; whether it catches what the Claude review misses is the reliability row of the code review page.
- Reviewer evals and a replay of past incidents (rows 16 and 17). Needs the owner: the same idea as the incident eval set on the code review page.
- A pruning pass (row 19). Needs the owner: a maintenance task, say quarterly, that lists rules and checklist items no finding has touched since they were written, for the owner to keep or drop.