Useful spending limits let an agent complete an approved task while preventing its scope from expanding without authorization. They need to work before a supplier request is dispatched, account for concurrent work, and preserve a recovery path when the final charge is uncertain.
This guide explains a layered budget design and the relevant behavior found in o11’s source. It is not a claim that card funding, supplier accounts, or production execution are activated. o11 service-credit authorizations are not bank cards, and the controls described here apply only to the costs their actual contracts enforce.
Start with the user task
Choose an allowance for a useful outcome, such as a company brief or an approved media asset. Then divide it among required work, optional improvements, and recovery. A task-level allowance gives the agent room to make small decisions without asking the user to approve every inexpensive call.
Define a stopping rule alongside the amount: maximum steps, elapsed time, repeated lack of new evidence, or an unavailable authorization. The agent should return a partial result when appropriate and explain what another bounded allowance would enable.
Keep optional work explicit. If a written brief is already useful, generating an audio version should not silently consume the remaining budget unless that format was part of the assignment. The workflow cost guide helps estimate the underlying task graph.
Use real observed usage to revise allowances. A limit chosen before any representative run is a planning assumption, not evidence of the typical cost.
Layer operation, task, and project controls
An operation maximum bounds a single purchase. A task allowance bounds a workflow. A project or card budget bounds repeated work. A workspace balance bounds available funded credits. Each protects a different failure mode. In o11, application keys authenticate a card; rotating a key does not reset its budget or history.
| Control | Protects against | Does not automatically solve |
|---|---|---|
| Per-operation maximum | One unexpectedly expensive call | Many small repeated calls |
| Per-task allowance | A runaway workflow branch | Many separate tasks |
| Project or card budget | Accumulated authorized usage | Costs billed outside that scope |
| Concurrency limit | Too much simultaneous work | High costs over a longer period |
| Renewal ceiling | Persistent resource charges | Unrelated one-time usage |
Keep permission separate from money. A large allowance does not authorize sending email, publishing content, or creating recurring services. In o11’s source, the active card policy carries tool and connection scopes, write permission, and recurring-work permission. Its associated budget governs spend across applicable periods.
Distinguish alerts from admission controls
A notification tells someone that spending crossed a threshold. An admission control rejects new work before it exceeds an enforced allowance. Both can be useful, but they are not interchangeable.
Microsoft’s budget documentation explains that budget notifications do not themselves stop consumption. Google Cloud documents spend-cap behavior and limitations for eligible services. Check the precise scope and timing of any external control.
For a paid tool platform, admission should validate permission, account, input, available funds, and maximum charge before dispatch. Delayed billing reports remain useful for reconciliation, but they cannot replace immediate authorization at the execution boundary.
Use alerts for meaningful changes: nearing a project allowance, repeated expensive failures, or a retained hold requiring attention. Avoid alerting on every ordinary call when the task is already authorized.
Reserve before dispatch
Concurrent agents must not spend the same available funds. Reserve an authorized maximum atomically before starting supplier work, then settle according to the operation’s verified usage evidence. Keep provider network I/O outside the wallet transaction so a slow supplier does not hold database resources unnecessarily.
PostgreSQL’s transaction documentation explains atomic updates. A correct wallet implementation also needs an appropriate concurrency strategy; a transaction alone does not establish that every application invariant is protected.
For illustration, a workspace has $10 available. Two concurrent calls each require a $7 hold. The system can admit one and reject or defer the other; it cannot admit both merely because they read the same earlier balance. If the admitted call settles at $3, the unused $4 of its hold becomes available again under the relevant accounting rules.
In o11’s inspected source, USD amounts use integer micro-dollars and wallet reservations are serialized. These are implemented local controls, with live supplier activation still a separate verification step.
Handle variable prices and missing evidence
Some operations depend on pages, generated seconds, records, model settings, or provider-reported usage. The maximum should bound that uncertainty. A quote should identify whether it is variable and what assumptions determine the amount.
Do not fabricate a final charge when the supplier’s usage evidence is missing. In o11’s source, an unknown rate can block execution, and uncertain usage can retain a hold for explicit reconciliation. This is less convenient than guessing, but it preserves an honest accounting state.
Keep the user explanation concrete: the system reserved up to a stated amount, confirmed a particular charge, or is still resolving the supplier outcome. Avoid presenting the maximum as the fee when the operation bills actual usage.
If the desired task cannot be bounded under the current contract, choose a smaller operation, require another explicit authorization, or defer it. A vague promise to “keep costs reasonable” is not an enforceable limit.
Avoid interrupting every useful step
Group related read-only work under a bounded task allowance when the user has authorized it. Show the overall purpose, available capabilities, and limit. Let the agent choose low-cost steps within that boundary while preserving the operation-level checks.
Escalate when the task changes materially: a new action type, a recurring service, a higher maximum, or a different account. The authorization should explain the concrete next step and its expected value. “Approve more budget” without context is hard to assess.
When a limit is reached, preserve completed work and offer a useful partial result. For a research brief, list unresolved questions and the specific next lookup that could answer them. For media, show accepted assets and the remaining revision request.
The faster-onboarding guide explains how to make these decisions understandable without exposing unnecessary implementation details in the product flow.
Treat retries, resources, and unknowns explicitly
Retries can consume both money and permission. Replaying an idempotent request to recover its state differs from starting a new purchase. Retain invocation identifiers and check existing work before retrying an uncertain call.
Persistent resources need separate creation and renewal rules. Record the owning account, renewal period, maximum period charge, expiration, and release path. Defaulting an experiment to indefinite renewal can turn a small tool trial into a recurring commitment.
Revoking access should stop new work according to policy, while accepted supplier jobs may still need status, cancellation, or reconciliation. Do not erase outstanding accounting evidence when an application key is revoked.
If a hold remains unresolved, assign a next action and authorized operator path. Keep the issue scoped to that invocation or resource. The recovery guide covers why uncertainty should not trigger duplicate paid execution.
Verify controls with focused scenarios
Review concurrent reservations, duplicate submission, changed requests under reused identities, delayed settlement, cancellation races, key revocation, and resource renewal boundaries. Use authorized local or controlled checks first. Mocked supplier behavior verifies application logic, not live billing correctness.
Record what each control includes and excludes. Customer-account charges may be billed directly by the supplier. Storage or resource fees may follow a separate lifecycle. A dashboard total should not imply complete spend coverage when those costs are outside it.
Start with one task allowance, scoped tool access, and a per-call maximum. Add broader controls as the workflow expands. The objective is predictable autonomy: agents can finish useful work within a clear authorization, and exceptions remain understandable, bounded, and recoverable.
Example: a card and parent budget
Consider a fictional card with $8 remaining in its applicable allowance, a parent project budget with $5 remaining, and a wallet with $20 available. A proposed $6 reservation cannot proceed under all three constraints, even though the card and wallet individually have enough. The parent budget is the binding limit.
If the task can use a supported operation with a $4 maximum, it may fit all three boundaries. Reserve the same $4 against the applicable budget periods and funded wallet before dispatch. If verified usage later settles at $1.50, release the unused reservation according to the accounting contract while retaining the original period attribution.
These amounts illustrate the policy relationship, not an executed transaction. In o11’s current source, wallet funds and applicable parent budget periods are reserved together. Application-key rotation does not refresh any of those allowances.
If the task requires approval, an approval request is not itself a funded reservation. The source implementation rechecks current limits when approval occurs. An allowance available when the request was created may be consumed before review, so the user needs a clear outcome and a path to revise, defer, or request a bounded budget adjustment.





