# Provisioned inference capacity replay

Anant Mishra · 1 December 2026 · Fictional Design study, prepared with AI assistance.

Save `replay.py` and `fixture.json` together. Run `python3 replay.py > my-record.json` from that folder with standard Python 3. Compare the `results` and `sha256` fields against `execution-record.json`. The UTC timestamp records each run and the Python version reports the local interpreter. Two local executions produced matching results and hashes.

Amounts are integer USD cents. Each row represents an entire paid hour. Demand includes hours with zero jobs. Each job consumes one slot and must finish within its arrival hour. Unused slots expire each hour. The alternate service has unlimited capacity. No queuing or deferral is modeled. Both choices complete the same population by assumption.

For each hour, covered = min(arrivals, capacity), overflow = arrivals − covered, unused = capacity − covered. The mixed bill is the sum of the hourly fees and the overflow charges. The all-on-demand bill sums the per-job price across all arrivals. A positive mixed-minus-on-demand difference denotes a premium. The author-supplied expected covered counts and mixed bills are checked at runtime. Add your own named trace with an array of nonnegative integer counts and independently calculated expected values.

The fictional prices are unrelated to a vendor quote. No real inference, provider routing, performance measurement or procurement took place. Real sizing requires request-level arrivals, token mix, effective capacity, deadlines, eligible destinations and reconciled billing records. This is executable arithmetic accompanying an editorial Design study, with no claim of peer review or Scholar discovery.
