Blogmark

Migrating our Messages API to Rust

via [email protected]

https://www.anthropic.com/research/migrating-api-to-rust

We wondered if Claude could now help us write code that would empirically capture every behavior and fix in the production system. But the question became: how could we verify that the behavior of our migration was correct? Verification, not generation, had become the bottleneck.

The really interesting aspects of this migration are the moving target (the team is still building on the existing messages API) combined with the nondeterminism of the model output and the privacy constraint. This would have been a very fun problem to work on. You have to get really creative to work inside those constraints. Shadowing makes me think of gold master testing, which we would use on legacy codebases with poor test coverage, because the way the system behaved in production was the “gold master”, warts and all.