Products

Budget

How limits at organization, team and agent level are reserved in one transaction, so agents running in parallel cannot overspend a shared limit.

View as .mdUpdated
Parallel agents, one limit. Every allowed payment reserves its amount at organization, team and agent level in one transaction, so two purchases that each fit alone cannot both pass when together they do not.

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

WhoHow
Owners and financeSet limits for the organization, each team and each agent, and watch reserved and committed amounts.
ApproversSee how much budget is left when they decide a purchase.
AgentsRead their own remaining budget with get_spending_status.

How it works

  1. Read. During the policy decision, the engine reads the three budgets without locking them, and denies early if one is already short.
  2. 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.
  3. Commit or release. When the payment settles, held becomes committed. On denial, failure, expiry or cancellation it is released.
  4. 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

LevelExample limit
Organization5.00 USDC
Each team3.00 USDC
Each agent2.00 USDC

Screens

Budget tree with meters for organization, teams and agents
Budgets at organization, team and agent level, with reserved and committed amounts.Captured 2026-11-16

Boundaries

CaseWhat happens
Any level is shortDENY with BUDGET_EXCEEDED; the trace names the level and what was left.
Two purchases race for the last of a budgetOne gets the reservation, the other gets BUDGET_EXCEEDED.
A team limit above the organization, or an agent limit above its teamRefused.
A limit lowered below what is already usedAllowed. 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

On this page