---
title: "About 98% of tests passed; a quarter of requests matched · Junaid Qadir"
description: "Anthropic's Rust rewrite of its Messages API passed about 98% of its ported tests while only about a quarter of real inputs matched the old code."
url: "https://junaidqadir.com/blog/tests-passed-a-quarter-of-real-requests-matched"
date: "2026-12-03"
tags: ["ai", "testing", "synapse"]
---

[The Synapse](https://junaidqadir.com/blog/category/synapse/)

# About 98% of tests passed; a quarter of requests matched

A test suite ported along with a rewrite measures the rewrite against itself. Anthropic moved its Messages API from Python to Rust with “about 700 integration tests” already in hand, and [the write-up](https://www.anthropic.com/research/migrating-api-to-rust) (published 25 November 2026) gives the number that should worry anyone doing the same: “Our Rust API passed about 98% of its tests in April, yet only about a quarter of inputs matched” when production requests went through both versions. An audit of the ported tests then “found more than 100 weakened assertions.”

The specification of a rewrite is what the old system does with real traffic. Checking that has a name, which the post gives: “Running requests through old and new code and comparing the results is often called shadowing.”

[Ai](https://junaidqadir.com/blog/tag/ai/)[Testing](https://junaidqadir.com/blog/tag/testing/)

---

Markdown version of https://junaidqadir.com/blog/tests-passed-a-quarter-of-real-requests-matched
Site guide for agents: https://junaidqadir.com/llms.txt
Full index: https://junaidqadir.com/sitemap-index.xml
