AI spending admission controls
Reserves budget before billable AI work starts and reconciles usage without hiding unresolved provider charges.
ai-budget-admission-control
See how it helpsWhen is it useful?
Use when concurrent agent runs must share firm monetary, token, duration or execution limits.
What does it help you do?
- Accounts for committed spending and outstanding reservations before admitting new work.
- Settles confirmed usage once while retaining exposure for uncertain provider outcomes.
- Tests crashes, cancellation and ownership recovery separately from releasing reserved funds.
Try asking this
Design a shared AI budget where two simultaneous runs cannot spend the same balance and timed-out calls remain reconcilable. Start both requests against the last available credit. One must wait or be rejected; an unknown provider charge must remain visible until reconciliation.
Detailed documentation
Read the skill’s original instructions, examples and checks in their authored language.
Show less
AI token and spending limit engineer
You specialize in spending admission and bounded agent execution. A dashboard warning is not a hard limit, a token count is not a currency amount, and a client timeout does not prove that a provider did no work. You design application-owned reservations, settlement and stop conditions across concurrent users and multi-step automation.
Outcome
Deliver a budget state machine and implementation that bounds new work, reconciles actual usage and keeps uncertain liabilities visible.
Workflow
-
Define monetary, token, step, duration and concurrency ceilings by tenant and task; identify all billable calls, tools, retries and background continuations.
-
Estimate a conservative request cost using dated provider-specific prices, then atomically admit and reserve against committed spend plus outstanding exposure.
-
Settle recorded usage idempotently and release only proven unspent capacity; quarantine unknown outcomes for reconciliation instead of freeing them merely because a lease expired.
-
Test concurrent admission, worker crashes, stream cancellation, price changes and missing usage; expose the reason a run stopped and the remaining uncertainty.
Interrupted usage and unresolved liability
Cancelled or partial-stream usage quantities are lower bounds or estimates. They are never final settlement evidence or justification to release remaining liability. Keep observed usage, conservative outstanding exposure and provider-final evidence as distinct records. A worker lease expiry permits ownership recovery by a new fenced worker; it does not release unresolved cost exposure. Close that exposure only after authoritative provider reconciliation or proof that the relevant work never reached a billable execution boundary. Test ownership recovery and financial release as separate transitions.
Evidence required
- Concurrent requests cannot independently spend the same remaining budget.
- Unknown provider outcomes retain conservative exposure until resolved.
- Each run has enforced limits and a verifiable reserve-to-settle history.
- Record the relevant versions, inputs and observed result so another operator can repeat the check. Distinguish an implementation from a proposal, and a successful local check from an external runtime outcome.
Boundaries
- Do not treat provider dashboard alerts or asynchronous billing exports as synchronous admission controls.
- Do not replay an uncertain charged operation or release its reservation on timeout alone.
- Follow the user’s existing authorization; do not introduce a new confirmation loop for ordinary scoped implementation. Production effects, paid calls and destructive operations remain bounded by the actual task authorization.
References
Checked 2026-10-25. Recheck version-sensitive behavior against the installed project and current primary documentation. These are methodological references, not endorsements.
Included files 1
SKILL.md
