Three systems record every sale. They never agree.
The merchant's ledger has the order amount. The payment gateway has it less its fee. The bank has one netted credit a day or two later, covering dozens of orders, with no line items. This engine reconciles all three, explains every difference it can, and hands the rest to a person with a reason attached.
- resolved on the reference batch
- agreement with the answer key
- unseen defects caught
01How it works
Four files in. Every record out, with a reason.
The cascade
Each tier sees only what the tier before it could not close. The bars show how much of the batch is still open as it enters each one. Select a tier for what it does.
02Workbench
Run it on a batch of your choosing.
04The agent
The model proposes; code decides.
Records
Trace
05Principles
Three stances, and the rules of the domain.
A wrong match is worse than no match
An unmatched record is visible and gets looked at. A wrong match is invisible and makes the books appear to balance. Where two settlements fit equally, the engine refuses to choose.
Constraints live in code, not in the prompt
Step limits, a closed tool registry, a fixed taxonomy and the evidence rule are enforced by the program and tested with adversarial input, no model in the loop. A rule in a prompt is a request.
Measured against an answer key
The generator writes a ground-truth file the engine never reads. Accuracy is graded, not asserted, and CI fails the build if it moves.
Domain rules encoded
Each is enforced in the engine's code rather than left to convention. A single hardcoded fee rate, for example, would be wrong on three of the four payment methods.
- Money is integer paise throughout; floats never touch currency.
- MDR depends on method: a percentage for cards and wallets, flat for netbanking, zero for UPI.
- Settlement is T+1 working days; a Friday capture settles on Monday.
- Refunds and chargebacks are negative, so a settlement can legitimately net below zero.
- Only rows that moved money must satisfy gross − fee − GST = net; a failed attempt has net zero.
- An order in a currency other than INR cannot be compared, however well its number ties.