This spring Anthropic rewrote its Messages API in Rust, and the new service passed about 98% of the old test suite. Then the team ran real traffic through both versions and compared the input each one built for the model. The two versions matched on roughly a quarter of requests.
Neither number is wrong. They count different things. A test suite gives each case one vote, whether it covers a feature one customer uses once a year or something that happens on every call. Production votes by volume. So one small, boring difference can alter the exact text on an enormous share of traffic. Python and Rust escape certain characters in JSON a little differently, and every one of those requests still reports success.
That should bother you. A pass rate counts the cases someone thought to write down. It can't tell you how often the missing ones show up. The only complete record of what the old service did was the old service, running. So the team compared against it directly. The Rust version handled the same live requests in the background, and its results were checked and thrown away.
Weight failures by traffic: a mismatch on most requests outranks dozens of failures on rare features, no matter what the pass rate says.
Check content as well as status: a request can report success and still send the model different text.
Audit the tests you ported: the old tests leaned on Python-only stand-ins for billing and rate limiting, so they had to be rewritten too. A later review found 100+ whose checks had been loosened along the way.
Look for what the suite never tried: real users sent feature combinations no test covered.
Run the model once: in Anthropic's setup, the model's output was fed through both services. Inference was never paid for twice.
Compare both directions: check the input sent to the model and the reply sent back as separate questions.
Fence off side effects: the shadow copy was blocked from billing customers or counting against rate limits.
Read the headline figure with care: "a quarter matching" is a seven-day median from Anthropic's own reporting, with six days of misleading data excluded.

