Usage-based billing turns a telemetry pipeline into a revenue system, and most teams notice only after the first enterprise customer sends back an invoice with their own usage export attached. Metering is accounting that happens to run on streaming infrastructure: every unit has an identity, every stage must conserve units, every price is effective-dated, and the invoice has to be reproducible years later from inputs you can show to an auditor. This chapter treats it that way — the pipeline, the windows, the entitlement service that sits on your hot path, the price changes that must not break contracts, and the reconciliation that proves the whole thing is right.
A usage event has three consumers with incompatible requirements, and most metering failures come from building one pipeline tuned for the wrong one. Billing needs completeness and exactness, and tolerates latency measured in days. Enforcement — quotas, overage throttling, spend caps — needs an answer in milliseconds and tolerates a bounded error. Customer-facing usage views need freshness of minutes and must never disagree with the invoice by more than the customer can explain. Telemetry stacks are built for the second and third and are structurally wrong for the first: metrics are pre-aggregated and cardinality-limited, logs are sampled and dropped under backpressure, and traces are sampled by design.
The error costs are asymmetric, which should decide your defaults. Take an illustrative $40M of annual usage revenue. A pipeline that silently loses 0.2% of events costs $80k a year — real money, but it shows up in nobody’s inbox. A pipeline that double-counts 0.2% produces the same dollar error in the other direction, and it is found by the one customer who reconciles against their own logs, who then invokes their contract’s audit clause, asks for credits back to the start of the relationship and tells procurement at their next vendor review. Under-billing is a margin problem; over-billing is a trust incident. When a stage has to choose between failing toward loss and failing toward duplication, choose loss and detect it (6.7).
The same product usually needs three rows: an outbox for discrete billable operations, deltas for anything priced per unit-time, and the vendor bill as a reconciliation source for resold cost (tokens, SMS, egress). Access logs belong in the recon column only.
The first design decision is where usage is observed, and the rule is to emit at the point where the billable work commits, in the same transaction. If an API call is billed per document processed, the outbox row is written in the transaction that persists the processed document — not by middleware after the HTTP response, and not from the access log. Middleware emission loses every event in flight during a deploy drain or a crash, and it bills failed work whenever the response was a 200 with a partial result. Access-log emission bills client retries as usage, which means your own timeouts become revenue.
The objection to the outbox is write amplification, and it is only valid if you get the grain wrong. The outbox row is per business operation, with quantity as a field — one row for “request R consumed 1,843 tokens”, not 1,843 rows. At that grain the cost is one extra insert, one relay read and one delete per operation, which on Postgres at an illustrative 5k billable operations per second is 5k extra dead tuples per second for autovacuum to chase on a narrow, append-and-delete table: noticeable, not dangerous, provided the relay deletes in batches and the table is not sharing a vacuum budget with your hottest OLTP table. Per-unit rows are where the outbox genuinely stops scaling, and the fix is to change the grain, not to move the emit point out of the transaction. The one case where the outbox cannot follow the work is when the billable work does not commit to your database at all — a streamed LLM response, a proxied egress byte — and there the emit point is the end of the stream, with a partial-completion record written periodically during it, so a stream cut at minute nine of ten bills nine minutes rather than zero or ten.
The second decision is whether the meter is a counter (discrete operations: calls, documents, tokens) or a gauge priced over time (storage, seats, provisioned capacity). Gauges are where sampling quietly becomes policy, and 6.2 shows how much. Decide per meter, write it down in the meter’s definition, and make the definition itself versioned: a meter definition is part of the contract, because changing what counts as “one API call” is a price change.
Architect's note · resold cost
Every stage of a metering pipeline is at-least-once somewhere — relays retry, consumers replay from committed offsets, finalization jobs get re-run by an operator at 2am. The only way to get exactly-once outcomes is to assign each unit of usage a deterministic identity at the emit point and make every later stage idempotent on that identity. Derive the event ID from business identity — a hash of tenant, operation ID and meter — rather than generating a UUID at send time. A UUID generated in the relay turns a relay retry into a new billable event; a derived ID means the retried event is recognisably the same one. The Kafka mechanics are covered in Kafka & the Log (Data Engineering) and the API-side contract in Idempotency, Retries & Long-Running Operations; the metering-specific point is that the identity must survive every transformation, including re-emission from a backfill script.
business txn + outbox
emit point
›relay
outbox → log
›log
partitioned by tenant
›dedupe
(tenant, event_id)
›aggregate
event-time windows
›rate + invoice
per period
loses a unit when
counts twice when
guard
Exactly-once is not a property of any single box. It holds end to end only if the identity of a unit of usage is fixed at the emit point and every later stage is idempotent on that identity. A regenerated ID anywhere downstream silently converts at-least-once delivery into double billing.
Deduplication is where the cost model bites. At an illustrative 20k events per second, a day is 1.7 billion events; a dedupe window long enough to cover a three-day replay needs about 5 billion keys, which at around 50 bytes per key in a tuned key-value store is a few hundred gigabytes of hot state that must be correct, not approximate. A Bloom filter is the wrong tool: its failure mode is a false positive, which drops a real event and loses revenue silently — exactly the failure you cannot see. Two designs make this tractable. First, bucket the keys by (tenant, event-hour) so the window is enforced by dropping whole buckets rather than per-key TTLs, and reject events older than the window into an exception path instead of letting them through undeduplicated. Second, pre-aggregate at the producer: each producer emits per-minute partial sums keyed by (producer, tenant, meter, minute, sequence), which cuts dedupe keys by two or three orders of magnitude. The price of producer-side aggregation is lost event-level evidence, so write raw events to cheap object storage in parallel; you will need them the first time a customer disputes an invoice line.
1.7B
events/day at 20k/s
~5B
keys for a 3-day window
100–1000×
fewer keys, producer pre-agg
0
acceptable false positives
Aggregation sinks are the second place duplicates are born. A consumer that increments a counter (UPDATE … SET n = n + ?) and crashes before committing its offset will increment twice on restart. Write aggregates as full-value upserts keyed by (tenant, meter, dimension set, window), carrying the input offset range or a version, so a replay rewrites the same value instead of adding to it. This is the same idempotent-sink argument as any streaming job; it matters more here because the output is money.
Gauges need different machinery. The standard implementation samples current state periodically — storage per tenant every hour — and multiplies by the interval. That is an approximation whose error is systematic rather than random, and it lands on precisely the tenants whose usage changes. Worse, sampling turns collector outages into billing policy: someone has to decide whether a missing sample means “same as last time” or “zero”, and both answers are wrong.
GB-hours billed
Sampling error is systematic, not noise: it lands on exactly the tenants whose usage changes, which are the ones who check.
The fix is to meter gauges as state-change deltas — “tenant T’s storage became 20 GB at 09:30:12” — and integrate the piecewise-constant function exactly at rating time. Deltas are events, so they go through the same outbox, identity and dedupe path as counters, and a collector outage delays the bill rather than changing it. Keep a daily absolute snapshot alongside the deltas as a checkpoint; if the integrated delta stream and the snapshot disagree at the checkpoint, you have lost a delta, and you know which day to investigate.
A billing period is an event-time window that must eventually close, and the invoice is issued on it while events for it are still in flight: a mobile SDK that buffered usage offline for two days, a regional pipeline that was partitioned for six hours, a batch job that emits yesterday’s usage at 02:00. Every billing system therefore needs an explicit late-data policy with three parts: a grace window after period end before the invoice finalizes; a carry-forward rule for events that arrive after finalization, which are billed on the next invoice as a line labelled with the original service period; and a hard limit beyond which late events go to an exception queue for a human decision rather than onto an invoice.
Finalizing on wall-clock time is the mistake to avoid. Use per-source completeness markers: each producer or regional pipeline asserts “I have emitted everything for event time up to T”, and the period closes only when every source has asserted past the period end, or a timeout fires and pages someone. A stalled producer then blocks or alerts rather than vanishing — which is what happens when the aggregator just takes whatever arrived by the deadline. Size the grace window from the measured arrival-lag distribution per source, not from intuition: if an offline-capable SDK’s lag has a p99.9 of four days, a 72-hour grace window guarantees a carry-forward line on some invoice every month, and the cheaper fix is often to give that source its own later close rather than delay every tenant’s invoice. Labelling carried-forward lines with their service period keeps finance’s revenue recognition correct even though the cash moves a month later; your finance team will care about this long before engineering does.
Period boundaries are also less uniform than the storage layout assumes. Contracts close periods in the customer’s contractual time zone, and anniversary billing closes each tenant’s period on its own signup date. Hourly aggregates in UTC can be re-summed into any whole-hour offset, but not into India (UTC+5:30) or Nepal (UTC+5:45): a boundary falls mid-bucket. Either aggregate at 15-minute grain, or recompute the two boundary hours from raw events. Discovering this when your first large customer in Bangalore disputes a period total is avoidable.
Pricing structure decides how painful late data is, and this is under-appreciated when product chooses the pricing model. Under graduated tiers, each unit is priced by the tier its position in the running total falls into, so the invoice is continuous and monotone in usage, and a late event changes one marginal line. Under volume tiers, all units are priced at the tier the total lands in, so the invoice is discontinuous and not monotone.
Under volume pricing the invoice is not monotone in usage and not additive across events: one late event can re-price every unit already billed, and customers learn to buy a few thousand phantom units near a boundary. Graduated pricing makes each event’s marginal price depend only on the running total, so late data changes one line, not all of them.
Volume pricing has three engineering consequences. A late event can re-price every unit already billed, so carry-forward lines must be computed as the difference between re-rating the whole period and what was invoiced, not as the late units times a price. Real-time cost estimates shown to the customer can go down when usage goes up, which support will have to explain. And customers near a boundary have a rational incentive to buy usage they do not need: at the 10,000-unit cliff above, the next unit is worth $299.93 to them. If commercial insists on volume tiers, ask for a smoothed variant; if not, build the re-rating path first.
Pitfall · the correction that runs backwards
An entitlement is what a tenant may do right now — distinct from the plan (a commercial bundle) and from billing (what is owed); if tenant.plan == "enterprise" in product code is the familiar symptom of conflating them. Resolve entitlements in one service from layered sources — plan version, add-ons, contract overrides, time-boxed grants, operational overrides — into a versioned, per-tenant effective snapshot, and have every other service read only the snapshot.
precedence (top wins)
ops override
abuse block, kill switch · wins over everything
grant / trial
time-boxed, expires_at mandatory
contract override
signed terms, effective-dated
add-ons
purchased modules and packs
plan version
price book vN defaults
effective snapshot
tenant T · v 1843
signed, pushed on change
↓
local evaluator
in-process, O(1), no network
Entitlement checks are on every request path, so the snapshot must be evaluated locally: pushed to an in-process cache or sidecar on change, with version numbers so a service can report which version it enforced, and a periodic full refresh to repair missed pushes. The entitlement service being down must never be a request-path outage. That raises the real design question, which is what each key does when the snapshot is stale or missing, and the answer is per key, not global. Feature flags fall back to last-known-good. Count limits are checked on create only — never enforce a downgrade by deleting the tenant’s 51st project. Security controls fail closed, asymmetrically: if “SSO required” cannot be resolved, password login stays disabled, and a lapsed payment must never turn off an SSO requirement or an IP allowlist (the entitlements from Per-Tenant Security, Keys & Identity are exactly the keys where a helpful default is a vulnerability).
Metered quotas are the hard class, because enforcement needs the usage counter in real time and billing’s counter is days behind. Use a separate enforcement counter, and accept that it is approximate. Its error is architecture, not noise. Precision only matters at the moment of exhaustion, and exhaustion is usually a burst — a tenant’s backfill job hitting its quota at full speed. With 40 nodes serving that burst at an illustrative 3,000 requests per second, local counters synced every 5 seconds can overshoot by up to 15,000 calls — 1.5% of a 1M monthly quota. A central counter per request removes the overshoot and puts a single hot key with 3,000 writes per second on your critical path. The workable middle is leases: each node takes a chunk of quota from the central counter and spends it locally, so overshoot is zero and coordination drops to one call per chunk. Fixed chunks strand quota — 40 nodes holding 1,000 unused calls each means the tenant is throttled with 4% of their quota unspent, and a node that dies holding a lease strands its chunk until the lease TTL reclaims it — so give leases a short TTL and shrink the chunk as the remaining balance falls, for example remaining ÷ (2 × nodes). Coordination rises only in the last few percent of the quota, which is the only place precision matters.
15,000
overshoot · 5 s sync
3,000/s
writes · central counter
~3/s
lease calls · 1k chunks
4%
stranded · fixed chunks
Two production details decide whether leases work. The lease grant must be a single conditional decrement on the central counter (grant min(chunk, balance), never read-then-write), and the counter must be sharded by tenant, not by meter, so a whale’s exhaustion burst lands on one partition instead of fanning out. And the lease holder must return unspent balance on shutdown; otherwise every rolling deploy strands up to nodes × chunk units until the TTL expires, and a tenant near its limit sees throttling that correlates with your release calendar — a bug that gets reported as “your API is flaky on Tuesdays”.
Then decide which way the approximation errs, and say so in the contract. A soft limit with an overage rate absorbs enforcement error commercially: the tenant is billed for the few thousand extra calls from the billing-grade meter, and nobody argues. A hard limit without overage turns enforcement error into either free usage or premature throttling, and customers notice throttling. For anything a customer pays for per unit, prefer soft limits with alerting at 80% and 100%, and keep hard limits for resources you actually cannot oversell.
Pitfall · the downgrade exploit
The most dangerous edge between billing and entitlements is payment failure. The naive wiring — billing provider fires “invoice.payment_failed”, a handler flips the tenant to a restricted plan — couples revenue collection to availability through a webhook you do not operate. Webhooks arrive out of order and in bursts after a provider incident; a card-network outage fails thousands of renewals in the same hour; a bug in your own dunning job can mark every annual renewal as unpaid. Each of these walks a large slice of paying customers down the degradation ladder on the same schedule, and the damage surfaces two weeks later, when they all hit read-only on the same morning. Model dunning as a state machine owned by the entitlement service, fed by billing events but advancing on its own clock, with each step mapped to explicit entitlement changes and a fleet-level circuit breaker on transitions.
active
d0
full plan
—
›past_due
d0–d7
full access + banner; smart retries
card updater, retry schedule
›grace
d7–d14
full access; admins emailed daily
CSM task above an ARR threshold
›restricted
d14–d30
no new metered usage, no new seats; reads + export work
writes queued, never dropped
›suspended
d30–d60
login + export only; compute stopped
data untouched
›terminated
d60 + notice
offboarding: retention clock, then crypto-shred (ch. 05)
irreversible — human sign-off
trigger
provider webhook outage, a card-network incident, or a bad deploy of the dunning job marks 2,000 tenants past_due in one hour
unguarded cascade
each tenant walks the ladder on schedule; two weeks later hundreds of paying tenants go read-only on the same morning; support queue ×20
guard
circuit-break transitions: if tenants entering restricted in 24h exceed ~3× the trailing p99, freeze the ladder and page billing on-call
Three rules come out of the incidents. Degradation must be reversible within one snapshot push: the moment payment clears, the tenant is whole, with no manual re-provisioning. Restricted states block new consumption but never lose the customer’s writes or strand their data — holding a paying customer’s data hostage over a declined card is a trust incident, and often a contractual breach. And the thresholds scale with contract value: a $50/month self-serve tenant can walk the ladder automatically, while a six-figure enterprise account going past_due is almost always a procurement or PO issue, and should create a task for a human rather than a countdown.
Every SaaS company changes its prices, and at any point in time the customer base is a stack of cohorts on different terms: the original price for early customers, the current list price, enterprise contracts negotiated at a discount with a renewal cap, and a few customers on a plan that no longer exists. The only design that survives this is an immutable, versioned price book: a price version is never edited, a subscription references the exact version it was sold on, and a price change is a new version plus an explicit migration of cohorts onto it. Billing providers enforce the same idea — Stripe, for example, does not let you change the amount on an existing Price object; you create a new one — and the reason is the same: an edited price silently re-prices history.
Moving a cohort to a new price is a data migration with a legal clock, not a config change. Contracts and consumer law in many jurisdictions require advance notice of price increases, so the migration has a notice date, an effective date per tenant (usually the next renewal, not a common date), an opt-out path, and a rollback plan. Run it like any other migration: select the cohort by query, snapshot it, shadow-rate the cohort’s last full period on the new version and diff against what they actually paid, and send the diff distribution to commercial before anyone emails a customer. A new price that raises the median bill by 8% and the p99 bill by 300% (illustrative) is two different launches, and only the second one gets escalated to the CEO.
Contracts add effective-dated terms that the price book cannot express: committed spend with drawdown, ramp deals whose committed amount rises each quarter, negotiated rates on specific meters, and caps on renewal increases. Model these as contract versions with effective intervals that override price-book entries for a tenant, and make every rating run ask two time questions: what terms were in force during the service period, and what terms did we know about when we rated it. That is a bitemporal model, and without it you cannot answer the question every amended contract raises — “what would we have invoiced for March, given what we knew in April?”
The retroactive amendment is the case that breaks single-timeline designs. If contract terms are stored as one effective-dated table and the March row is simply overwritten on April 20, the April 3 invoice can no longer be reproduced — its inputs no longer exist — and the credit note becomes an unexplained number. With both axes recorded, the credit note is the difference of two reproducible ratings, and finance can book it against the right period. The cost is real but bounded: every contract query takes an as-of pair instead of a date, and the rater’s test suite has to cover the corner where valid-from precedes recorded-at. A cheap guard is to reject any amendment whose valid-from precedes an already-finalized period unless it carries an explicit “retroactive” flag, so retroactivity is a decision someone signs, not a side effect of a date picker.
Seat-based pricing interacts badly with SCIM provisioning (chapter 05). A 5,000-seat tenant with 1% daily churn in its directory produces around 50 seat changes a day; prorating each one produces an invoice with over a thousand lines that nobody can check. Enterprise contracts rarely want that. Bill seats as a gauge — high-water mark or average daily seats, in arrears, with a quarterly true-up against the committed seat count — and let proration apply only to deliberate plan changes. The choice between high-water mark and average is commercial, but the consequence is technical: high-water mark makes a directory sync bug that briefly provisions 2,000 extra users a billing incident, so seat meters need the same anomaly checks as usage meters.
Where the conventional advice is wrong
Rating — turning aggregated usage into priced lines — should be a pure, deterministic function: invoice = f(usage snapshot, contract version, price version, credit balance, tax context). Record the identity of every input on the invoice — a content hash of the usage snapshot, the exact versions — so that any invoice can be re-derived byte for byte years later, and a re-derivation that disagrees is a bug report rather than a shrug. This single property enables most of the rest: shadow-rating a price change, re-rating a period after a late-data correction, answering an audit, and testing the rater with property tests — for instance, that the invoice is monotone in usage under graduated tiers, and that the incremental path used for carry-forward lines, rate(a + b) − rate(a), always equals the full re-rate of the period. (Note that rate(a + b) ≠ rate(a) + rate(b) under any tiering with falling unit prices; a rater that shards a tenant’s usage and sums the shards’ ratings overcharges, which is a real bug in parallelised raters.)
The purity claim fails quietly at two inputs that are not yours: tax and FX. A tax engine called at finalization answers from its rate tables and your customer’s address as of that moment; call it again next year to “reproduce” an invoice and you get this year’s rates and last month’s address change. The same holds for an exchange rate fetched at rating time. Neither can be recomputed, so they must be captured as inputs: store the tax engine’s full request and response (jurisdiction, rate, taxable basis per line) and the FX rate with its source and timestamp, content-hashed alongside the usage snapshot. Reproduction then means re-running f over recorded inputs, and a credit note for March reverses March’s tax exactly rather than today’s. Teams that skip this discover it at the first tax audit, when the question is not what the tax is but what you calculated and why.
Once finalized, an invoice is immutable. Corrections are credit notes and adjustment lines that reference the original, never edits — for the same reasons a ledger never updates a posted entry; the mechanics are in Double-Entry Ledgers at Scale in the Money & Ledger Systems track. Make finalization idempotent on a natural key such as (tenant, period, contract version) with a unique constraint, so the re-run that an operator will eventually do cannot issue a second invoice.
Calendar billing concentrates all of this into one hour a month. If every tenant’s period closes at 00:00 UTC on the 1st, the finalizer rates the whole fleet at once, and the billing provider’s API rate limits, the tax engine and your own usage store all see their monthly peak in the same window. As an illustration, 40,000 tenants × roughly 6 provider calls each (upsert usage lines, create invoice, finalize, attach tax, pay, fetch) is 240,000 calls; at an illustrative sustained 50 calls per second after backoff, that is about 80 minutes — longer than many teams’ grace for “the invoice run finished” and long enough for the run to be killed and restarted halfway. The restart is safe only if every step is idempotent on the invoice key. Two designs flatten the peak: decouple close from finalize — freeze the usage snapshot at period end, which is cheap and local, and push to the provider through a rate-limited queue over the following hours — and move self-serve tenants to anniversary billing, which spreads the load across the month for free. Keep calendar billing only for the enterprise contracts that require it.
Rounding is where pure functions still produce wrong answers. Take an illustrative meter priced at $0.0004 per unit, and a tenant making 400,000 calls a month at 3 units per call: 1.2M units, $480. Round per call to cents and each call is $0.0012, which rounds to zero — the tenant pays nothing. Round each call up, as some well-meaning implementations do to avoid under-billing, and each call costs $0.01: $4,000, an 8.3× overcharge that the customer will find in an afternoon. The rule is to aggregate in exact arithmetic and round once, per invoice line, at the currency’s minor unit, with the rounding mode written into the price definition. Currency exponents and allocation that always sums are covered in Modelling Money Correctly; the metering-specific trap is that sub-cent unit prices make per-event rounding catastrophic rather than merely imprecise.
$480
aggregate, round once
$0
round each call
$4,000
round each call up
8.3×
the overcharge
Credits have ordering semantics that finance cares about and engineers usually leave to chance. When a tenant has a promotional credit expiring this month, a prepaid commitment expiring next year and a service credit from an SLA breach, which does this month’s usage burn first? Burning the soonest-expiring first is friendliest to the customer; burning prepaid commitment first is what the contract may actually specify, and the choice changes how much revenue is recognised as breakage when credits expire. Make the drawdown order an explicit, versioned part of the contract, and store credit balances as a ledger of grants and drawdowns rather than a mutable balance field, so the order can be audited and replayed.
Architect's note · show the customer the rater's inputs
A metering system is correct only if you can prove, every day, that what the product did equals what was invoiced, and the proof has two halves. The first is stage-to-stage conservation: per (tenant, meter, hour), rows emitted equal rows landed in the log, landed equals unique plus duplicates dropped, unique equals the sum of aggregates, rated lines recompute exactly from aggregates and the recorded price version, and your invoice matches the billing provider’s to the minor unit. These are exact equalities with a lag adjustment for in-flight data, and they catch pipeline bugs: a consumer that dropped a partition, a dedupe window misconfigured after a deploy, a provider sync that skipped a line.
independent recount
10,412,300 ± 0.3% (1σ)
emitted (outbox)
10,198,020
landed (log)
10,198,020
unique + dups dropped
10,196,811 + 1,209
Σ hourly aggregates
10,196,811
rated lines
$4,078.72
invoice / provider
$4,078.72
Every downstream invariant holds exactly, and the meter is still 2% short. Internal consistency proves the pipeline did not lose what it was given; only an independent recount — from the product database, or a sampled request log — proves it was given everything. Here the break traced to a new endpoint that did the billable work without writing the outbox row.
The second half is the one most teams lack: an independent recount of what the product actually did, from a source that does not share the metering code path. For gauges this is easy — count the stored bytes or the active seats directly in the product database and compare to the integrated deltas. For counters, use a sampled request log or the product database’s own records of work done. The failure this catches is the one conservation cannot: a new endpoint, a new worker or a refactor that does billable work without emitting the event. Every downstream invariant holds, because the pipeline faithfully processed everything it was given.
The sampling maths tells you what the recount can see. With a 1% sample of request logs, a tenant with 1M events a month yields about 10,000 sampled events, a relative standard error of about 1%, so the per-tenant check can flag drift beyond roughly 3%. Across a fleet producing a billion events, the same sample has a standard error near 0.03%, so fleet-level drift of a few tenths of a percent is detectable within a day. Run both: the fleet check catches instrumentation regressions quickly, and the per-tenant check catches the whale whose usage goes through a code path nobody else uses. Break the check down by meter and by deploy, and an instrumentation gap usually points straight at the release that introduced it.
Treat breaks as a lifecycle, not a dashboard: a break opens with an owner, is classified (pipeline loss, instrumentation gap, late data, provider mismatch), is resolved by a re-rate or an explicit write-off, and closes with a record of the dollars involved. The Reconciliation: Proving the Books chapter of the Money & Ledger Systems track covers matching engines and break management in depth; the metering-specific discipline is to put the recount into the release process. A change that touches a billable code path should ship with a recount check for the meters it affects, just as it ships with a migration test. The team that owns the product feature owns the emit point, and the break report should name them.
exact
stage-to-stage invariants
±3%
per-tenant recount @ 1M
~0.1%
fleet drift, same day
1 key
(tenant, period, ver) per invoice
Questions to ask in the design review
Decision rule
Where next