Three-way reconciliation: matching the books, the payments and the bank each day: Checks
The 13,354 payments built from the extract held every cent of its US$605.4 million, on one county's public records.
The checks that the records were read and rebuilt without losing a cent.
The source adds up
- Paid US$598,354,126.44, cancelled US$1,184,977.71 and issued but never presented US$5,861,259.68 add to US$605,400,363.83, the sum of the extract's rows and the money in the 13,354 payments.
- The extract has 46,126 rows, the count the county's portal itself reports for fiscal year 2024. They are pinned by a checksum, checked every time the feeds are built.
- 45,417 invoice lines remain after the 709 lines of zero-net documents are left out, and every one belongs to exactly one payment.
The close ties at every month end
At each of the 12 month ends of 2024, payments issued less voids less bank debits equalled the money in payments not yet cleared, payment by payment. The gap was 0 cents every time. On real bank data this is the check that fails first; here it passes by construction, so it shows the arithmetic, not the data.
Wrong pairings are counted against the truth
The feed builders keep which records truly belong together, and the planting code adds each planted record's truth. A pairing is wrong when its two records do not belong together. A planted spurious record belongs to nothing.
What the real data held
- 229 payments issued and never presented to the bank, worth US$5,861,259.68. They stay open to the last close under every rule.
- 171 payments whose lines carry more than one payment date.
- 173 documents whose lines net to zero, left out as above.
Tests
The tests pin the data checksum and the feed counts. They run each rule on small fixed test cases: a split payment, a shared amount, a void and a late check. They also check that every event kind plants 20 instances, that the independent event grammar applies and that the first version's results file is unchanged. One more checks that a lone fit never matches a debit in reach to the wrong payment.
Limits
The month-end tie is a bookkeeping identity here, because the bank lines are built from the county's own table.