Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Parallel run and cutover/Diffing old and new outputs
Reference · Parallel run and cutover

Diffing old and new outputs

Part of Parallel run and cutover. Install the skill and your agent reads this page when it needs the depth.

Capture

Normalization

Normalize only what the business does not care about. Each rule is written down and reviewed, because a normalization rule that hides a real difference is the worst bug a diff can have.

Classify every difference

Class Meaning Who decides Next
Intended Listed before the run Already decided None
Bug in new The new version is wrong Builder Fix, then re-shadow that branch
Bug in old The new version is right and the old one was wrong Process owner Keep the fix and tell downstream teams, or reproduce the old behavior for now
Noise Timing or formatting nobody consumes Reviewer Add a written normalization rule

An accepted bug in the old version moves to the intended list, with the owner's decision recorded. The match rate is computed after normalization and after removing intended differences, so it measures what is still unexplained.

The diff report

  1. Window, run count, branches covered and branches replayed from history.
  2. Match rate per field, with the business-critical fields first.
  3. Count of differences per class.
  4. For each class, up to 5 examples with input keys, the old value and the new value.
  5. Open items: every unexplained difference, with an owner.

Worked case: order-to-invoice sync rewritten

Two weeks of shadow, spanning a month-end: 3,412 runs.

Field Match Differences Class and decision
Customer id 100% 0
Recipient 100% 0
Total 99.97% 1 Rounding: the old version rounded each line, the new one rounded the total. Accounting reconciles per line, so the owner chose the old behavior. Bug in new, fixed.
Tax 99.59% 14 The old version used a tax rate that had since changed. Bug in old. The owner kept the fix and told accounting. Moved to the intended list.
Due date 98.09% 65 The new version computed dates in UTC, so orders placed after 22:00 local time landed a day late. Bug in new, fixed.
Skipped orders - 23 The old version silently skipped orders with no billing email. The new one sends them to a review queue. On the intended list from the start.

The first window failed the criteria at 97.7% overall. After the two fixes, 4 more days of shadow (1,020 runs) showed zero unexplained differences. The due-date fault would have hit 2% of invoices in production and would have surfaced only as late-payment disputes weeks later.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.