StoryFirst seen

Anthropic's Rust API rewrite passed tests but mismatched 6.5% of traffic

The mismatch shows that passing tests does not prove a production system behaves the same way.

Archived Updated

Everything it touches

6 names 1 voices 1 source posts

The story’s neighborhood

NAMESVOICESPOSTS

Explore the graph, or choose a connection below.

Follow the evidence

The source posts

This brief comes from Tech Twitter’s edited headlines. The posts below are the sources grouped with the story; statements in them belong to their authors.

Aakash GuptaLead source
Claude got a 98% on its tests and then got the real job wrong 3 out of every 4 times. The job was moving Anthropic's API from Python to Rust. The API is the pipe that developers and apps like Claude Code use to talk to Claude. Claude wrote a first version of the core in about a week, and by April it passed 98% of its tests. Then Anthropic ran it side by side with the old Python version on real production traffic, and only 24% of requests came out identical. By early May the match rate was down to 6.5%. Turns out the tests had been going easy on it. The ~700 tests were carried over from Python and still ran the old Python API inside them, with stuff like billing and rate limits faked in Python memory. When the team audited them, they found more than 100 checks that had quietly been…
Read original on X

How the headline evolved

  1. Anthropic's Rust API rewrite passed tests but mismatched 6.5% of traffic

  2. Anthropic's Rust rewrite passed tests but matched 6.5% of traffic

  3. Anthropic's Rust rewrite passed tests but matched 6.5% of traffic

Shared connections

Related stories