Your replacement can pass every test and still misread a real order. Run both versions on the same input without letting the new one take action.
Say an AI helps you replace an order-processing service. The new one passes your tests. Then a customer retries after a timeout, and the new service reads that retry as a second order. You don’t want to discover the difference when somebody gets charged twice.
There’s a better test: let the old system keep doing the work. Have the new one look at the same inputs and show what it would have done, without letting it send, charge or write anything. Engineers call this a shadow run.

Original illustration.
What Anthropic checked before switching
In its November 25 engineering write-up, Anthropic says Claude wrote the first version of the core request path in about a week. Knowing whether the new Rust API behaved like the old Python one took a different kind of work. Model responses can vary on the same request, and running the entire request twice could have counted twice toward a customer’s limits or bill. Its team compared behavior around a single inference, including request handling and how the response was assembled.
That’s what I’d borrow for a smaller project. You don’t need Anthropic’s traffic or its tooling. You need to know which parts of the old behavior customers are counting on and what the new version is allowed to do during the test.
Compare decisions before allowing actions
- Start with sanitized examples. Replay a normal order, a repeat submission and an order with missing information in a test environment. Keep sensitive data out of the test unless you have a clear reason and the right controls.
- Keep the old service in charge. Have the new service produce a proposed outcome. In the shadow environment, disable live credentials and use test substitutes for anything that can send a message, write to the real order system or charge a card.
- Compare the things customers would notice. Would both versions accept the order, charge the same amount, ignore the same duplicate and tell the customer the same thing? A differently worded internal note matters less than a second charge.
- Read the disagreements before switching. The old version may be wrong. Decide which differences are deliberate and add a regression test for any bug you fix. Start with a small live group only after that, and know how you’ll switch back.
The rule I’d use: if you can’t see what the new version would have done without letting it do it, test it offline first. A green test suite is useful. It’s more convincing when you can show why the replacement won’t turn an ordinary retry into an expensive mistake.