A nightly job finishes in 41 minutes against a 90-minute window. That is a pass. Two years later the same job finishes in 88 minutes against the same window. That is also a pass, reported the same way, on the same green tile, by the same dashboard.
The job did not get worse, exactly. It grew: more tenants, more rows, one more index, a partition scheme that stopped being optimal at some point nobody can name. What disappeared was not correctness. It was the margin — the distance between what the system does and the point where it stops working.
Pass/fail collapses a distribution into a single bit, and the bit is the same for a measurement that is comfortably inside the limit and one that is one migration away from it. The margin layer is the practice of recording that distance, because it is the only number that tells you how much room you have left.
The margin is the distance, in the units of the thing that varies
A margin is not a percentage. "We're at 78% of capacity" sounds reassuring and can be meaningless, because the thing that varies is not the capacity number — it is the arrival rate, the payload size, the tenant count, the retry storm. A useful margin is expressed in the units of the variation:
- Capacity: the job takes 41 minutes against a 90-minute window, and the run time grows about 3 minutes per month. Margin is 16 months, not "54% utilized."
- Correctness: the rounding error is 2 cents against a 5-cent tolerance, and error scales with invoice size. Margin is "invoices above 2.5× the largest one we have."
- Rate limits: the client sends 800 requests per minute against a 1,000 limit, and traffic doubles at the start of each quarter. Margin is one quarter, not "80%."
- Cost: the pipeline costs €0.031 per document against a €0.05 budget, and a model upgrade is scheduled. Margin is one model version.
The conversion from percent to time or to an event is the whole job. A percent tells you where you are. A margin tells you when you will arrive somewhere you do not want to be.
Three margins, and why teams usually only track one
1. Headroom (capacity margin). How much more load before the thing bends. This is the one teams track, because it is the one that produces an outage with a clear owner.
2. Tolerance (correctness margin). How much error before the answer is wrong. A reconciliation job that is off by €0.004 today is passing; the same job is failing when volume triples and the error scales with volume. Tolerance margins are usually invisible because the check is binary: balances match, or they do not. The interesting state is "they match by 0.004 and they used to match by 0.0001."
3. Freshness (evidence margin). How long the proof is still true. A test measured against a schema that has since changed twice still passes, and its freshness margin is negative — it has already expired, and nobody has noticed. This is the half-life ledger's column, viewed as a distance instead of a date.
Most incident reviews ask about headroom. The expensive ones are tolerance and freshness, because both fail quietly: the number is still inside the threshold, so no alert fires, and the only signal is that the number moved.
Why margins disappear from reporting
Three mechanisms, all of them reasonable on their own:
The report asks a yes/no question. "Did the SLA hold?" "Did the migration finish in the window?" Once the question is binary, the answer is binary, and the distance is not collected. Nobody decided to stop measuring the margin; the reporting shape did not have a column for it.
The dashboard draws a threshold line, and the eye goes to the line. A chart with a red line at 90 minutes trains everyone to look at the gap between the curve and the line — which is exactly right — but the summary tile says "OK," and the summary tile is what gets read.
Optimization spends margin by design. Almost every cost, latency, or reliability improvement is paid for out of margin somewhere else: a smaller instance class, a tighter timeout, a cache with a shorter TTL, a retry budget trimmed to save load. Each of those is a good decision and each of them shortens a margin that was not written down, so nobody can see the cumulative spend. A system can be optimized twenty times and end up at the edge without a single bad decision.
Record the value, the threshold, and the spread
A margin entry needs three numbers and one unit:
| Metric | Value | Threshold | Spread (what varies, measured) | Margin | Owner |
|---|---|---|---|---|---|
| Nightly retention purge | 41 min p95 | 90 min window | +3 min/month, ±6 min week to week | 16 months (≈ 8 months at p99) | D. Marchetti |
| Invoice rounding error | €0.004 | €0.05 tolerance | scales linearly with invoice size | safe to 12.5× current max invoice | finance-eng |
| Model cost per document | €0.031 | €0.05 budget | ±22% across document types | €0.008 headroom at p95 | P. Andersen |
| Connector rate limit | 800 rpm | 1,000 rpm | doubles at quarter start | 0 quarters (breaches at next Q start) | platform |
The spread column is the one that makes the margin real. Without it, "41 minutes against 90" reads as 54% utilized; with it, the same numbers read as sixteen months. The difference between those two readings is whether anyone schedules the work.
The p99 column matters too, and it is usually the honest one. A p95 that passes comfortably can hide a p99 that is already touching the threshold once a week, which is a different system than the p95 suggests.
Margins decay faster than they look
Margins are not linear, because the things that consume them compound. Run time grows with rows, rows grow with tenants, tenants grow with sales, and the index that made the query fast is now the reason the write path is slow. A job at 41 minutes with 3 minutes per month of growth does not have 16 months in any practical sense; it has 16 months until the average case fails, and considerably less until the first bad night fails.
The useful discipline is to recompute the margin on a schedule tied to the variation, not the value: whenever tenant count grows 25%, whenever the largest payload doubles, whenever the model changes. Three or four events a year, each one a five-minute recomputation, and the trend is visible before it is a page.
Report the closest thing to breach, not the number of breaches
A weekly report that says "0 breaches" is a report about the past and says nothing about next week. The same report with one added line — the three smallest margins across all monitored limits — is a report about next week. It costs one query and it changes what gets scheduled.
The phrasing matters. "Closest to breach" is not an alarm; it is a work queue. The team that reviews it weekly fixes the top item when it is cheap, which is exactly the behavior that keeps the number of breaches at zero without anyone promising that it will be.
The uncomfortable part
A margin is invisible to the customer. Nobody thanks you for the 49 minutes of headroom, and nobody notices when it drops to 2. Margin gets spent in optimization meetings where the benefit is visible and the cost is a number that was never written down.
That means the margin is a business decision made by nobody in particular, twenty times, one reasonable trade at a time. The register does not prevent that. It makes the trade visible while it is still a choice, which is the most any worksheet can do.
Passing is not a state. It is a position relative to a limit, and the position moves whether or not anyone is looking.
Friday exercise
Pick the three limits your team watches most closely — a timeout, a budget, a rate limit, a retention window. For each, write the current value, the threshold, the measured spread, and the margin in a unit a human can plan around: months, quarters, multiples of today's largest input.
Then find the one whose margin is smallest and put it in next week's planning, not next quarter's backlog. If you cannot write the spread, you do not have a margin — you have a snapshot, and snapshots only tell you that today was fine.
If you are watching a limit that still passes but has been quietly narrowing — 54% of capacity two years ago, 82% now, the same green tile — say so in the comments. We keep a one-page register that records the value, the threshold, the measured spread, and the margin converted into months or into the event that ends it, and I will send the worksheet over. No form, no email list.



