Budget
How limits at organization, team and agent level are reserved in one transaction, so agents running in parallel cannot overspend a shared limit.
The problem it removes
A per-purchase cap does not stop ten agents from each spending up to it at the same moment. A budget checked without a lock lets them all through. Abazi Budget reserves before anything is signed, at every level at once, and releases or commits the reservation once the outcome is known.
Who uses it
| Who | How |
|---|---|
| Owners and finance | Set limits for the organization, each team and each agent, and watch reserved and committed amounts. |
| Approvers | See how much budget is left when they decide a purchase. |
| Agents | Read their own remaining budget with get_spending_status. |
How it works
- Read. During the policy decision, the engine reads the three budgets without locking them, and denies early if one is already short.
- Reserve. On ALLOW, Abazi locks the organization, team and agent rows in that order, checks each level and adds the amount to reserved on all three, in one database transaction. The reservation is held.
- Commit or release. When the payment settles, held becomes committed. On denial, failure, expiry or cancellation it is released.
- Refund. A settled refund lowers committed at all three levels.
What is left at each level is the limit minus committed minus reserved, never below zero. When committed plus reserved reaches 80 percent of a limit, an alert is sent once.
A payment whose outcome is unknown keeps its reservation held until reconciliation settles it, so the money cannot be spent twice. See Budgets and reservations.
Limits in the example mandate
| Level | Example limit |
|---|---|
| Organization | 5.00 USDC |
| Each team | 3.00 USDC |
| Each agent | 2.00 USDC |
Screens

Boundaries
| Case | What happens |
|---|---|
| Any level is short | DENY with BUDGET_EXCEEDED; the trace names the level and what was left. |
| Two purchases race for the last of a budget | One gets the reservation, the other gets BUDGET_EXCEEDED. |
| A team limit above the organization, or an agent limit above its team | Refused. |
| A limit lowered below what is already used | Allowed. What is left becomes zero; nothing is clawed back. |
An approval never raises a budget. A purchase that a person approves still needs room at every level.
API
The Budgets operations in the API reference, each with its parameters, responses and code samples:
Next steps
Mandate
How an owner writes, simulates and signs versioned spending rules with a passkey, and how one deterministic policy engine applies them to every payment.
Wallet
How the owner keeps the money, grants Abazi a capped on-chain spending permission on Solana, and funds and sweeps per-agent spending wallets on the other networks.