Token cap
1200
Retries and token use become operational risk when nobody can see cumulative cost or stop a failing tool.
Public · synthetic demoStructured spans need to show attempts, tokens, logical latency, outcome, and cost. Budget and breaker decisions must be logged as policy events, not inferred after the bill.
budget_abort circuit_trip_fallback clean_run retry_recovery Pricing: illustrative static table Latency: logical ticks Model calls: none
The budget ledger retained 1150 used tokens and cost $0.003625 before abort. The retry scenario recovered on attempt 3. The breaker ended open after 3 consecutive failed steps and served fallback for the rejected call.
| Scenario | Measured outcome |
|---|---|
| budget_abort | 3 of 4 steps reached; aborted |
| circuit_trip_fallback | 4 of 4 steps handled; breaker open |
| clean_run | 3 of 3 steps completed; 1330 tokens |
| retry_recovery | 3 of 3 steps completed; 1030 tokens |