Original articles
Before you replace old software, replay a week of orders
Replay past orders before replacing an order system. The comparison can uncover missing pricing rules, protect margins and help finance and operations decide when to switch.
Imagine a distributor replacing its old order system. The new app processes a split shipment and produces a valid invoice. Then finance spots the problem: the customer’s negotiated discount disappeared. The old system applies it when an order ships in two parts. The replacement team missed that rule.
Even a small pricing error creates work. Finance may have to issue a credit note, explain the discrepancy and reconcile it against the order. If the replacement gives an extra discount, margin can slip without anyone challenging the invoice. A test that only checks whether the system produces an invoice will miss both problems.
At DevMojos, we’d start with a week of past orders and add the exceptions finance and operations know are easy to miss. A useful sample might include a negotiated price, a partial shipment, an order on credit hold and a return. We’d replay those cases in a test environment with billing, stock updates and customer notifications disabled. Then we’d compare what matters on each order: the unit price, discount, tax and invoice total, alongside any hold or back-order decision.
The old system gives us a starting point for the comparison. Some differences will expose rules the new system missed. Others may be agreed improvements, such as a rounding rule finance wants to correct. AI can help group recurring discrepancies and suggest where to investigate. The people who own pricing, fulfilment and invoicing decide what behaviour to keep and why.
Anthropic ran into a similar gap when replacing its Messages API. Its new implementation passed about 98% of its tests at one point, while only about a quarter of inputs matched on production traffic. The company describes how comparing the two systems exposed differences the test suite had missed at https://www.anthropic.com/research/migrating-api-to-rust
For the distributor, we’d agree before switching what counts as a release blocker. An unexplained change to a price or invoice total would stop the rollout. We’d track how many orders require manual correction, how long reconciliation takes and whether exceptions still reach the right person. Those measures give the business a way to compare the cost of the migration with the work it actually removes.
The first step is small. Pick one workflow that moves money, pull a week of its transactions and ask the team which cases would hurt most if the replacement got them wrong. Turn those cases into checks the team can repeat before every rollout.

