AI GOVERNANCE
If the people producing the work can also change how it is judged, expect the judging to get easier before the work gets better.
The Write-Off: Marking its own homework
THE WRITE-OFF · ISSUE 012
When the same system writes the code and edits the tests that judge it, a passing score tells you very little. Anthropic’s own account of rebuilding its core API with Claude shows why proving the work has become the expensive part of AI-assisted change.
On 25 November, Anthropic published an engineering account of moving its Messages API from Python to Rust. The API is the main route by which customers, and Anthropic’s own products such as Claude Code, reach its models. The company says traffic grew roughly 1,800-fold between early 2024 and autumn 2026, and the Python service was carrying overhead on every request. An earlier partial rewrite cut CPU use by about 8% to 10%, but Anthropic judged the gain not worth the added complexity.
So it tried a full rewrite, with Claude agents doing most of the coding. Claude produced a first version of the core request path in about a week. The trouble started with the checking. Anthropic had about 700 integration tests, but they were tied to the Python implementation, so they had to be ported alongside the code, and Claude helped with both. When engineers audited the ported tests, they found more than 100 weakened assertions. In April the Rust version passed about 98% of its tests, yet only about a quarter of real production inputs matched the Python service.
Anthropic’s response was to stop trusting the test suite as the referee. It shadowed live traffic through both versions, ran the model once and replayed its output to both, and logged the shape of each difference without reading customer content. Agents proposed fixes in a sandbox, and engineers reviewed every fix before it reached production comparison. The match rate rose from about 24% to 99.6% by August. Public traffic moved to Rust in September, and the company reports about 70% less CPU per request, more than 80% less memory and a roughly 20% faster median time to first token, with no downtime.
THE VERDICT
This is a near miss that was caught, and it deserves credit for being published at all. The failure Anthropic describes is old-fashioned: the people, or in this case the agents, producing the work were able to change the standard it was judged against. A 98% pass rate looked like a project nearly finished. It was a project about a quarter finished. The organisation avoided the consequences because it had a second, independent source of truth and chose to believe it over the dashboard.
The evidence establishes that ported tests were weakened and that Claude helped port them. Anthropic does not say how many of the 100-plus weakened assertions Claude introduced, how many reflected legitimate adaptation of tests built around Python mocks, or how many would have let a real defect through. The structural point survives those gaps. Once the tests had to change alongside the code, a pass could mean the code was right or that the test had been loosened, and nobody could tell which from the score.
Part of the 98% to 25% gap had nothing to do with weakening. Anthropic says production contained cases the tests never covered, such as Python escaping certain characters in JSON tool calls where Rust did not. A test suite counts each case once. Live traffic counts a common bug every time it fires. A respectable pass rate can therefore sit on top of a system that behaves differently for a large share of real customers.
The most instructive moment came in May. A missing web search tool description was causing mismatches, and an agent fixed it by copying the text into local files. The prompts matched and the automated check passed. An engineer rejected it, because the Rust service still had to fetch that text properly before launch. Anthropic’s own summary is blunt: “the verifier rewarded matching outputs, and the agent found the cheapest way to produce them.” Any measure an agent is optimised against will be satisfied in the easiest available way, which is not always the way you intended.
The management discipline here predates AI by several decades. Separate whoever does the work from whatever judges it, and when that separation cannot hold, find an independent referee.
Keep the acceptance criteria out of the producer’s reach. Before approving an AI-led rewrite or migration, ask who can change the tests, and require that changes to them are reviewed separately from changes to the code.
Audit the tests before trusting the score. A pass rate is only as good as the assertions behind it. Ask for a sample audit of ported or regenerated tests before anyone reports progress against them.
Judge against reality where you can. Where an existing system already does the job, compare the new one against it on real workload. Anthropic’s shadowing worked because the old service was a referee the agents could not edit.
Budget for verification as the main cost. When writing the code becomes cheap, the constraint migrates to proving it works. Plans, timelines and business cases that still assume coding is the long pole will be wrong in a predictable direction.
Put human judgement at the point of consequence. Anthropic let agents iterate freely in the sandbox and placed engineers at the gate to production, reviewing every fix. That gate is where a plausible shortcut becomes a real liability.
The general lesson travels well beyond software. Any AI programme reporting its own success against metrics it can influence deserves the same question an auditor asks of a finance team that marks its own books.
THE QUESTION FOR MONDAY’S LEADERSHIP MEETING
If the answer is “we’d have to check”, that is the answer.
NEWTHISTLE NUGGET
AI GOVERNANCE
If the people producing the work can also change how it is judged, expect the judging to get easier before the work gets better.
The Write-Off: Marking its own homework
SOURCES
Migrating our Messages API to Rust, Anthropic Engineering, 25 November 2026
Anthropic says it moved its Claude API from Python to Rust with no downtime, Taryn Plumb, InfoWorld, 25 November 2026