ToolNavs Find Useful AI Tools
Submit Sign in
Back to AI Q&A
How the Claude Code Team Verifies Code: 90% Written by AI, Checked With Three Tests and Four Rules

How the Claude Code Team Verifies Code: 90% Written by AI, Checked With Three Tests and Four Rules

AI Q&A • Admin • • 4 views

About 90% of the Claude Code team's code is written and reviewed by Claude, and on November 16 the team published how it verifies that code: instead of humans checking line by line, agents are made to prove with evidence that a change is correct. Without a verification loop, only one or two Claudes can run at a time; with it, dozens or hundreds can run in parallel. For teams using AI to write code the same way, three ideas in this method can be copied directly.

Three kinds of tests, each with its own job

The team values end-to-end tests most, because they run a real user flow: the whole feature either passes or fails, there is no way to fake it, and they pinpoint exactly which step broke. Property tests watch the edges people easily miss: first write an assertion that "can never be wrong", then use a test library to generate thousands of inputs trying to disprove it — round-trip encoding and decoding, balances that must never go negative, and idempotency all belong here. Differential tests fit large migrations: the old and new systems run the same batch of inputs, and any difference in results means a bug or a breaking change; inputs are best generated randomly or sampled from real traffic. The three kinds don't replace each other — end-to-end tests guard the main flow, property tests guard the edges, and differential tests guard migrations.

Four rules to stop the verification itself being gamed

Tests can be written, and verification can be gamed, so the team set hard rules. Review rules may only be read from the main branch, so a change cannot touch the standard that judges it; a failed check gets at most three fix rounds, then goes to a human; every commit must be stamped with how it was verified, including "not verified", so it can be queried later; and a new commit gate first runs in observation mode, recording what it would block, and only switches to hard blocking once false positives prove rare. The team also keeps a 39-item reliability checklist, where each item can be triggered from a code change — only the items that match are checked, so nobody has to memorize past incidents.

Which rules a small team can copy

Don't copy the whole system — start with three: end-to-end tests covering the single most important user flow, a three-round cap on failed checks, and a verification stamp on every commit. These cost the least and best close the gap of "AI changed the code and nobody knows if it's right". For property tests, start with core invariants — write two or three first, such as amounts never going negative, or a repeated submission taking effect only once. Internal tests also showed that adding one independently scored grading step to structured-file generation tasks can raise task success rates by up to 10 percentage points — a small team only needs that one addition, not the full 39-item list. Claude Code team publishes its verification method

Recommended Tools

More