How I Built A Billing Pipeline That Can Prove Every Invoice Is Right, Down To The Cent
An invoice you can't recompute is an invoice you can't defend. Four design decisions that held up under 1 million usage events and a live Salesforce org, the two bugs that taught me the most, and why this kind of proof matters more when AI agents write the code.
- Full event log of 999,589 events replayed twice: all 200 invoices rebuilt with identical SHA-256 hashes
- Live Salesforce Developer Edition org queried directly: $598,167.89 on both sides, matched to the cent
- A 205-second aggregation query cut to 2.1 seconds with one
ANALYZEon a temp table





