Exact-Money Engineering Standard
Design every financial operation to be exactly correct
- Difficulty
- Advanced
- Time to result
- ~ongoing to results
- Steps
- 6
- Confidence
- 94%
The Exact-Money Engineering Standard begins by separating financial software from probabilistic products such as search engines. Search can succeed when its first few results are approximately useful; a payment fails if its amount, destination, timing, or ledger state is wrong. Teams therefore define one exact expected financial outcome, validate inputs and balances, execute with deterministic controls, and reconcile the result against an authoritative ledger. They also test duplicate, partial, delayed, and failed transactions because normal-path accuracy alone is insufficient. Any unexplained discrepancy becomes a blocking incident rather than an acceptable error rate. Applied consistently across product decisions, implementation, testing, and operations, the standard produces money movement that users, banks, and regulators can trust.
Origin
Extracted from Leaders In Payments, where Chris Dean contrasted probabilistic machine-learning products with the exactness required when handling money.
Core principles
- 01Treat every penny as consequential
- 02Do not apply probabilistic product standards to money movement
- 03Use exact system states and deterministic controls
- 04Reconcile outputs against authoritative records
- 05Design failures to stop safely rather than silently degrade
How to run it
- 1
Define the Exact Outcome
State the required amount, currency, source, destination, timing, and final ledger state. Make success objectively testable.
Pro tip Write expected balances before and after each transaction.
Watch out Ambiguous acceptance criteria allow financially incorrect behavior to appear successful.
- 2
Validate Before Moving Money
Check transaction instructions, permissions, balances, limits, and identifiers before execution. Reject inputs that cannot produce the defined outcome.
Pro tip Use idempotency controls to protect against repeated requests.
Watch out Do not rely on downstream systems to repair malformed instructions.
- 3
Execute Deterministically
Use precise monetary representations and explicit transaction states. Ensure retries cannot create duplicate movement.
Pro tip Model pending, posted, reversed, and failed states separately.
Watch out Floating-point arithmetic and implicit state transitions can create hidden discrepancies.
- 4
Reconcile the Result
Compare the payment-system result with the authoritative ledger and settlement records. Investigate every mismatch regardless of size.
Pro tip Automate reconciliation but preserve an auditable exception queue.
Watch out A small unexplained difference may reveal a repeatable systemic flaw.
- 5
Test Failure Paths
Exercise partial completion, timeouts, duplicates, reversals, stale balances, and unavailable dependencies. Verify that each scenario stops or recovers without losing money.
Pro tip Test the combined payment and ledger workflow, not only individual services.
Watch out A system proven only on the happy path is not safe for financial use.
- 6
Make Exactness Cultural
Teach product, engineering, and operations teams that approximate correctness is unacceptable for customer money. Use incidents and reviews to strengthen the controls continuously.
Pro tip Include financial-state invariants in design and code reviews.
Watch out Teams accustomed to probabilistic products may underestimate the consequences of rare errors.
In the wild
A customer instructs a platform to send one million dollars for a house purchase. Before releasing funds, the system validates the amount and beneficiary, records the expected ledger transition, executes once, and reconciles the bank response. A result of $900,000 is treated as a failed transaction, not a mostly correct one.
→ The transfer either completes exactly as instructed or stops for investigation without silently losing value.
A payment API times out after submission, leaving the client uncertain whether processing occurred. Instead of submitting a fresh transaction, the client retries with the same idempotency key, checks the authoritative state, and reconciles the resulting ledger entry.
→ The intended payment posts once despite network uncertainty.
Common mistakes
Accepting Mostly Correct Results
A team imports an accuracy-rate mindset from search or machine learning. In payments, the rare incorrect result can directly harm a customer and trigger regulatory consequences.
Testing Only Successful Payments
The normal path works, but retries, timeouts, and partial failures are unexamined. These edge conditions are where duplicate or missing money movement often emerges.
Ignoring Penny-Level Differences
Small discrepancies are dismissed as immaterial instead of investigated. Repeated at scale, they can expose a fundamental ledger or settlement defect.
Is it for you?
Best for
It is best for engineers, product leaders, and operators building payment, ledger, banking, or settlement systems.
Not ideal for
It is not intended for low-stakes discovery products where approximate ranking or probabilistic output is acceptable.
From the transcript
“They care about every penny, and so you have to get it right”
“You just have to get mostly right. You don't have to get it exactly right”
“you can't get the payment wrong. You just can't.”
From the episode
Chris Dean, Co-Founder & CEO of Treasury Prime
Chris Dean