Parallel branches both observe the same remaining budget.
Detect: Ledger reconciliation detects reservations exceeding the parent cap.
Recover: Use atomic reservation operations and stop unreserved work before further dispatch.
Reserve and enforce task-level limits for model tokens, tool calls, concurrency, elapsed time, and downstream load before work begins.
Agent budgeting constrains the total resources a logical task may consume, including retries, parallel branches, and delegated subtasks. Admission control decides whether a new task can start under current capacity and policy. Together they prevent an apparently small request from expanding into unbounded model calls or overwhelming a dependent service.
A token rate limit alone does not govern a multi-step workflow. Track reserved and spent budget across the task tree, and distinguish capacity limits from monetary accounting. Estimates guide admission; runtime enforcement and reconciliation handle estimation error. When a budget is exhausted, return a useful partial result or explicit handoff rather than hiding unfinished work.
A proof of concept records tokens, tool calls, and elapsed time per task to identify expansion patterns before defining enforceable budgets.
Production reserves capacity before dispatch, enforces per-task and per-tenant limits, bounds retries, and defines queueing, cancellation, and partial-result behavior.
Enterprise scale adds weighted fairness, priority classes, regional capacity, adaptive estimates, budget transfer rules, and reconciliation for delayed usage receipts.
Checks tenant policy, priority, available capacity, and estimated task cost before accepting work.
Atomically tracks reservations, consumption, releases, and parent-child allocations across concurrent branches.
Enforces time, iteration, tool-call, and token limits during runtime rather than relying on model cooperation.
Schedules admitted tasks with fairness and explicit expiry under constrained capacity.
Matches estimated reservations with observed provider and tool usage, including late or failed calls.
flowchart LR
R["Incoming task"] --> A["Admission and fairness policy"]
A --> Q["Queue or explicit rejection"]
A --> B["Atomic budget reservation"]
B --> W1["Bounded specialist one"]
B --> W2["Bounded specialist two"]
W1 --> L["Usage ledger and hard limits"]
W2 --> L
L --> P["Complete or labeled partial result"]
P --> C["Reconcile and release capacity"]Classify the task and calculate a conservative reservation from allowed steps, model choices, and tool costs.
Check tenant quota, priority, downstream concurrency, and regional capacity; queue or reject with a clear retry contract if unavailable.
Create a task budget and allocate child limits without allowing parallel workers to overspend the same remaining balance.
Charge every attempt, including retries and failed calls, and stop scheduling new work when any hard limit is reached.
Choose an approved lower-cost path, return a labeled partial result, or hand off unresolved work without silently weakening required checks.
Replace estimates with observed usage, release unused reservations, and retain a cost and completion explanation for the task owner.
Telecommunications · Illustrative enterprise scenario, not a reported customer outcome.
Illustrative architecture: A network incident creates thousands of related alarms and could trigger one investigation per event.
Unbounded agent fan-out consumes model capacity and overloads diagnostic APIs precisely when operators need them most.
Admit incident-level work fairly, cap diagnostic load, and reserve capacity for higher-priority operational requests.
An admission controller groups related signals, reserves one investigation budget, and allocates bounded specialist branches against a shared ledger.
A branch reaches its tool-call cap while evidence remains incomplete; the workflow returns the completed findings and routes unresolved checks to the operator.
Measure cost per accepted investigation, queue delay, denied work, fairness by tenant, budget overruns, and task quality under constrained capacity.
| Decision | Benefit | Cost |
|---|---|---|
| Conservative reservations | Reduce oversubscription and surprise spending. | Can leave capacity idle when estimates are too high. |
| Shared parent budget | Constrains total fan-out across specialists. | Requires atomic coordination and clear allocation rules. |
| Priority admission | Protects urgent operational work. | Needs starvation prevention and transparent treatment of lower-priority tasks. |
Detect: Ledger reconciliation detects reservations exceeding the parent cap.
Recover: Use atomic reservation operations and stop unreserved work before further dispatch.
Detect: Provider receipts arrive after the task has been marked cancelled.
Recover: Charge the original task ledger and reconcile outstanding reservations before closing accounting.
Account for failed attempts, retries, tools, embeddings, and cancelled work with observed cost.
Require explicit child reservations drawn from the parent budget.
Preserve mandatory checks and reduce scope or return a clearly incomplete result.