Make every criterion observable
Name the unit to count, the condition that must hold, and how to report a check that cannot run. A strong criterion can be tested using the original input and resulting artifact. Decide what to do with invalid records before any conversion.
Reconcile a sample invoice export
Invoice A17 is 28.50, A18 is 71.50, and A19 has no amount. Ask for a normalized CSV and an exception list. Require the number of source records, accepted rows, rejected rows, and accepted total in the handoff.
State the expected arithmetic
The result should contain two accepted rows, one rejected row for A19, and a total of 100.00. The counts should reconcile to three input records. A summary should say that the total covers valid input rows.
Verify an edge case
Replace A19’s missing amount with 0.00 and rerun. It should become a valid third row while the total stays 100.00. This checks that the rule distinguishes an explicit zero from a blank, something the grand total alone cannot reveal.