messages api rust migration — entry #487

messages api rust migration

The interesting part is the verification. Anthropic says tests were not enough: its ported Rust tests were coupled to Python, with more than 100 weakened assertions found in an audit. The Rust API passed about 98% of tests in April, yet only about a quarter of inputs matched on production traffic. So the live Python API served as the reference. The model ran once and its output was replayed to Rust. Differences were recorded as fingerprints without reading customer text, and agents fixed them in loops. Input matches reached 99.6%. According to Anthropic, a partial rewrite of only the output parser saved just 8% to 10% CPU. A human engineer also rejected one agent shortcut that matched outputs but was throwaway code.

↑ 0 net votes☆ save · 0Report entry