
A business rule that passes the examples it was written from has shown only that it agrees with its author. An assistant can draft a plausible matching rule quickly, and plausible is where the risk begins. Routine data is less cooperative. The same supplier submits an invoice twice, a line arrives without an amount, and two open orders fit one invoice equally well. If the first real test is a live batch, those rows become the experiment and a record absorbs every wrong answer. Rehearse the rule first on invented rows shaped like a normal day’s mess, with each correct answer written down before the run and no ability to change anything while it happens.
“Yesterday-shaped” does not mean yesterday’s records. It means the shapes of a normal day’s problems: clean, repeated, incomplete, conflicting and tied. The owner who knows what usually goes wrong describes those shapes, an assistant can help invent rows for each one, and no real supplier, amount or identifier enters the set. This is a shadow evaluation in its smallest form. The rule reports what it would do, and nothing acts on the report.
Take an invented purchase-order reconciliation. A frozen list holds nine open purchase orders. The challenge set has ten invoice rows: four clean rows, two rows that repeat one invoice number, one row with no amount, one row whose amount is 10.00 above its order, and two rows with no order reference from the same supplier for 120.00, where two open orders fit either row. Every supplier, order number and amount is invented, and nothing here is accounting advice.
The draft rule is short. Accept a row when its supplier and order reference match an open order and its amount does not disagree. When the reference is blank, propose the one open order with the same supplier and amount, and send zero or several candidates to review. Hold every copy of a repeated invoice number. Before anything runs, the owner writes the expected result for each row and freezes the list: a match for each clean row, a hold for both repeats, an exception for the missing amount, an exception for the conflict, and an exception naming both candidate orders for each tied row. The pass condition has two parts. No tied row may change a record, and every expected exception must appear in the output.
Make the rehearsal read-only in a way you can check. The rule runs against copies of both tables, returns one disposition per row and has no write path to either. Hash each input before and after the run. Matching hashes show that nothing moved, which a “do not modify” instruction cannot.
The shadow-evaluation sheet has one line per row: the frozen expectation, the rule’s output, an error category and, last, the owner’s decision, which stays empty until a person fills it in. A short Python script that uses only the standard library runs the draft and compares every output with its frozen answer. It is a demonstration with invented rows, not a measurement of any real system. Both tied rows come back as exceptions that name both candidate orders, so no record would change. The repeated invoice is held as a pair, and the conflict is caught. Two lines differ from their expectations:
A clean row whose amount was typed 75.5 where its order says 75.50. Expected: match. Output: conflict. Category: false exception.
The row with no amount. Expected: incomplete exception. Output: match. Category: hidden exception.
The first mismatch comes from a data format, not a business error. Python’s csv documentation says each row is returned as a list of strings, and that no automatic type conversion happens unless a format option asks for it. The draft compared the text 75.5 with the text 75.50 and found a disagreement between two amounts that are the same number. The second mismatch comes from the rule’s own wording. “Does not disagree” is satisfied by an absent amount, because nothing is there to disagree with. The draft accepted a row it should have refused to judge. Against the pass condition, it kept the first part and broke the second.
These two errors are not the same kind, and one pass rate would average them together. A false exception sends a reviewer to a row that needed no review, which costs time. A hidden exception accepts a row that needed a person, so it never reaches the exception register and a record would change without anyone deciding. A wrong class sends the reviewer to the wrong question, such as treating a repeat as a missing order. Assign each mismatch to a category by what it would have done to a record had the rule been live, not by how surprising the output looked.
Discussion Topic:
Which row from your own workflow would you add to a challenge set first: a repeat, an incomplete row, a conflict, or a tie?
The owner decides which categories the business can afford. Suppose the owner calls the false exception tolerable, because a reviewer clears it in seconds, and the hidden exception unacceptable, because the pass condition says every expected exception must appear in the output. Only the second has to be fixed before the trial continues: treat a missing field as an exception rather than as agreement. The first is a one-line fix as well, so the owner asks for amounts to be compared as decimal numbers, which makes 75.5 and 75.50 the same value. Rerun the same ten rows against the same frozen answers. An expectation moves only when the owner decides it was wrong, and the change is recorded with its reason. Editing answers until the output passes turns the sheet into a description of the rule instead of a test of it.
After the repair, all ten rows agree. That result says the rule handles ten shapes someone thought to include. It is not an accuracy rate. The rows were chosen, not sampled, so no rate follows from them, and each row is ten points of any percentage you might compute. Even a random sample of ten with no errors cannot exclude an error rate near one in four. A BMJ note on zero complication rates explains why: with no observed failures, the true rate still has an upper limit, roughly three divided by the sample size once the sample passes 30. With ten rows, exact binomial arithmetic puts that limit near 26 percent at 95 percent confidence. A rule with a 26 percent error rate would still pass ten random rows cleanly about one time in twenty.
NIST’s AI Risk Management Framework is written for AI systems rather than hand-built rules, but its measurement language fits this sheet. It asks that performance be demonstrated for conditions similar to the deployment setting, and that limits on generalizing beyond the conditions of development be documented. The first phrase is the case for yesterday-shaped rows. The second is the case for a “not covered” line on the sheet: partial deliveries, credit notes, currency differences and rounding, until someone adds rows for them.
A shadow run on live inputs is a separate step. Amazon SageMaker’s shadow-test documentation describes the pattern for model endpoints: a copy of real requests goes to the new variant, only the production variant’s responses return to the caller, and the shadow responses can be discarded or logged for offline comparison. The same shape would suit a reconciliation rule, provided the copied data stays inside the fields and destinations its owner has approved. A rule that only proposes matches for a person to confirm can reasonably ask for that step next. A rule allowed to change a record needs far more evidence than ten rows, and the owner decides when it has enough. The challenge set earns the request for a shadow run. It does not replace the run.
AI can speed the unglamorous parts. It can invent rows for each described shape, draft a first expectation list for the owner to correct, run the comparison and sort mismatches into categories. It should not write the rule and its expected answers in one pass and treat their agreement as evidence, since both would inherit the same assumptions. It also cannot decide that a hidden exception is acceptable. That judgment belongs to the person who answers for the record.
Give the rule a bad day before it gets a real one. Before the first live batch, decide in writing which mismatch categories the business can tolerate and which end the trial.
If this was useful, forward it to one engineer who needs less noise in their feed.

