EMPVResearch NotesIT
EMPV / RESEARCH NOTESNOTE / 028

TECH NOTE / AI ENGINEERING

Anthropic: when writing software with AI becomes easier than verifying it

The Messages API migration from Python to Rust shows why a nearly green test suite cannot establish equivalence between two production systems.

Published2026-11-30 ยท 3 min
AnthropicClaudeRustAI agentsSoftware testingSoftware migration
01 / Migration

Moving from Python to Rust

On November 25, 2026, Anthropic described its migration of the Messages API, the service through which applications and customers access Claude. Claude generated an initial version of the core request path in about a week.

Following the migration, the company reports roughly 70% lower CPU consumption per request and a roughly 20% reduction in median time to first token.

02 / Verification

Passing 98% of tests was not enough

In April the new API passed about 98% of its tests, yet only around a quarter of the inputs compared on production traffic matched the Python version. An audit also found more than 100 weakened assertions in the ported tests.

The two metrics measured different things: tests counted individual cases, while traffic comparisons weighted actual requests. A defect in a frequently used function could therefore affect a large share of the service.

Bun's migration from Zig to Rust offers a useful contrast: its test suite was written in TypeScript and could be reused without porting it to the new runtime's language. Changing both a program and its evaluation criteria makes it harder to determine which contains an error.

03 / Method

Two systems running in parallel

Anthropic kept Python as its reference, comparing it with Rust on actual requests (shadow testing). The inference result was reused to avoid model variability and duplicate accounting.

Agents received diagnostic information about discrepancies rather than the text of customer requests. They reproduced issues in isolated environments and proposed fixes and tests; engineers reviewed changes before deployment.

This separates verification of an outcome from assessment of the solution's quality. A test can establish that two outputs match without showing that the implementation is maintainable or suitable for release.

04 / Implications

Modernizing an ERP without losing operational rules

Replacing business software can present the same problem. An ERP may contain exceptions accumulated over years: commercial rounding, payment terms, authorization and inventory rules that documentation does not fully describe.

Before rewriting it, identify which behaviors must be retained, which should be corrected and which authorized data can be used to compare results. Operations with external effects, such as document issuance or stock movements, must be simulated or isolated to prevent duplication.

Anthropic's results concern its own service and are self-reported. They do not estimate the savings achievable on an ERP or establish that every rewrite is worthwhile. Acceptance criteria still have to be defined for each business.

EMPV / TAKEAWAY

Code generation reduces part of the migration effort. Replacing a system still requires evidence about software behavior and the operational consequences of the change.

EMPV / SHARE

Share this Research Note.

Research Notes