Diagram as text
- Reserve the worst case: prompt tokens times the input price plus the maximum output tokens times the output price.
- Make the call.
- Settle the actual cost and release the rest.
- If any applicable budget cannot take the reservation: a hard stop. The task is
blockedand a human decides. - If no budget applies: the call is refused (default deny).
Hard stops
Section titled “Hard stops”A budget caps spending for one scope: a run, task, agent, team (an agent’s subtree) or the
whole org. A limit is an amount in a currency (USD only for now) and is always a Decimal, never a
float.
For every model call the engine:
- Reserves the worst case: prompt tokens times the input price plus the maximum output tokens times the output price.
- Makes the call.
- Settles the actual cost and releases the rest.
If any applicable budget cannot take the reservation, it is a hard stop: the task is blocked
and a human decides. A call with no applicable budget is refused (default deny). Going over is
never silent.
Windows
Section titled “Windows”A budget can have a window: none, day or month (UTC calendar windows). on_breach says what
happens at the next window after a breach: reset or hold (a human must lift it). Lifting a block
needs a human and a reason, and is recorded.
Prices
Section titled “Prices”Prices are versioned data with a source, never hard-coded. Each price has an effective date, rates per million tokens, and where the number came from. An unknown price is recorded as unknown and the call is blocked, never guessed.
A team can allow an unknown model with a price override: a provisional price per million input and output tokens, who set it and why. Both rates are required so budgets can still stop. Each use is a ledger event. See Price overrides.
Real runs
Section titled “Real runs”A real (non-fake) run must state the data class (--data synthetic) and the cap you accept
(--confirm-cap USD). The run budget is the hard stop.
Related pages
Section titled “Related pages”- Price overrides: allow a model with no known price.
- Model call limits.
- Costs and savings.
- Configuration reference: the
budgetssection.
Was this page helpful?