# Guardrails for AI agents: Cedar policies, mandates and budgets | Oxagen

Source: https://oxagen.sh/product/guardrails

# Guardrails

An agent holding a Stripe key can refund a customer at 3 a.m., merge to main on a Sunday, or delete records in bulk, and you hear about it from the invoice or the incident. Guardrails is where you decide what each agent may do on its own. Cedar policies hold or deny a tool call, mandates grant standing authority, budgets stop spend, and off switches stop a provider or an agent at its next call.

[Book a walkthrough](https://oxagen.sh/#demo)[Read the product overview](https://oxagen.sh/product)

01

## How each tool call gets decided

Every tool call an enrolled agent makes passes through the gateway or the recorder on its machine, and both decide it from the same Cedar files in your workspace's steering repo. Cedar answers allow or deny. A forbid marked to wait for a person parks the call until someone approves it, and a rule that fails to evaluate denies the call.

Auto-approval rules take the calls you trust off your desk. A rule names the tools it covers and the conditions it needs, such as an amount under $500 or a branch that matches deps/\*, and the record names the rule as the approver of every call it lets through.

The auto-approval rules on the Guardrails page with illustrative data: read-only analytics queries approved 48,216 calls and held 311 in 30 days, and Salesforce reads for support agents approved 31,540.

Rules that approve calls with no person

02

## Write a policy in plain words

Press New policy and say what the policy should do, the way you would tell a colleague: review a Salesforce delete, and refuse any delete of more than 100 records. stella drafts the name, the description and the Cedar from your words and the tools your agents already hold.

stella checks the draft with the same compile the steering repo runs before anyone sees it. A draft only takes calls away, so it never grants a tool an agent's toolbelt does not hold. When the first draft fails the check, stella tries once more with the problems quoted.

The New policy dialog with illustrative data: a request to review Salesforce deletes typed in, four examples under it, and the Draft policy button.

The New policy dialog

03

## What you review before a draft saves

The draft opens in the policy editor, unsaved and inactive, so it decides nothing yet. You read the name, the description and every statement, change any of them, and save only when it says what you meant.

A new policy stella drafted, with illustrative data: Review Salesforce deletes, marked Draft, with two Cedar statements and the check passing.

stella's draft in the policy editor

04

## Read and change the Cedar

Each policy is one file, policy/<slug>.cedar, in the steering repo, and its page shows the Cedar that decides calls today. Its name and description sit above the editor, and Activate or Deactivate turns the whole policy on or off.

The editor checks your Cedar half a second after you stop typing, against your workspace's tools and toolbelts, the way the publish gate checks it. Each problem is marked on its line, and Save stays off until the check passes. A statement someone turned off by hand stays off when you save.

One policy's page with illustrative data: Hold production changes outside the change window, Active, with pull request 418 open, three Cedar statements in the editor, one changed line, and No problems found.

One policy's Cedar in the editor

05

## How a change reaches your agents

Save asks what changed, and your note becomes the description of a steering pull request on the policy's branch. A second save adds a commit to the pull request already open. Nothing changes for an agent until a reviewer merges it, so every change to what agents may do has a reviewer, a diff and a date.

The Save changes dialog over a policy page, with illustrative data: a change note that moves the end of the change window to 18:00 UTC.

The change note that opens the pull request

06

## What each agent may do on its own

A mandate is standing authority for one agent and one purpose: pay the monthly infrastructure invoices under PO-4471, or post release notes to #releases ten times a day. Each one carries its impact, what is left in its window, and the date it ends.

A grant checks that whoever grants it holds the roles your workspace names for that impact, so only the right people can let an agent move money or change access.

The Mandates tab of the Guardrails page with illustrative data: 14 of 412 mandates, from invoice-bot's monthly infrastructure invoices to sre-pager's database failovers, with a requested, an expired and a revoked mandate.

The mandates ledger

07

## How budgets and stops end runaway spend

Set a spend ceiling for the organization and for each workspace, over the calendar month or a trailing window, and give each agent a budget your policies read. Admins hear at 50, 80 and 95 percent, and the gate refuses spend at 100 percent, so an agent stuck in a loop stops at the ceiling instead of at the end of the month.

The no-progress limit catches the loop sooner. Set how many identical calls in a row count as no progress, and Oxagen pauses the run before its next step and lists it here.

The Budgets tab of the Guardrails page with illustrative data: the organization has spent $3,680,000.00 of $4,500,000.00 this month, renewals-agent is past 95 percent of its budget, billing-fixer is at its budget, and four runs reached the no-progress limit.

Budgets and the no-progress limit

08

## Stop a provider or an agent at once

When a key leaks, flip the off switch for that provider, agent, workspace or the whole organization. It takes effect at the next call boundary, a connection switch revokes its live credentials, and every flip is a security event with the person and the reason.

The off switches on the Guardrails page with illustrative data: Dana Okafor turned off Stripe two hours ago after a suspected compromise of its restricted key, and a class switch can stop every tool that moves money.

Off switches by scope

09

## Where every decision is recorded

Each call keeps the decision and the rules that made it. A call a person approved names that person, and a call a rule approved names the rule. In observe mode Oxagen records what a policy would have decided and lets the call go ahead, so you can test a new policy against real work before it blocks anything.

10

## What Guardrails holds

Each part of Guardrails and what it decides
| Part | Decides | Changed by |
| --- | --- | --- |
| Cedar policies | Whether a tool call runs, waits for a person, or is denied | A workspace Admin or an organization Owner, through a steering pull request |
| Auto-approval rules | Which calls skip a person, under named conditions | An organization Owner |
| Mandates | Standing authority for one agent and one purpose, with limits per window | The roles your workspace names for each impact |
| Budgets | The spend ceiling for the organization or a workspace, and each agent's budget | An organization Owner, Compliance and Billing, or a workspace Admin |
| No-progress limit | When a run that repeats itself pauses | An organization Owner or a workspace Admin, through a steering pull request |
| Off switches | An emergency deny for a provider, an agent, a workspace, the organization or an impact class | A person, never an API key |

11

## Scope

### In scope

*   Tool calls that enrolled agents route through the Oxagen gateway or a recorder host.
*   Spend on model calls that pass through the Oxagen gateway.

### Out of scope

*   Cursor's model calls, which go to Cursor's own servers, so budgets do not count their spend.
*   Capabilities a caller invokes with an API key, which IAM policy and key revocation govern instead of off switches.

## Related pages

*   [
    
    ### Mandates
    
    The terms an agent works under
    
    ](https://oxagen.sh/product/mandates)
*   [
    
    ### Budgets and stops
    
    Spend ceilings and run stops
    
    ](https://oxagen.sh/product/mandates/budgets)
*   [
    
    ### Workforce intelligence
    
    Reports on people, agents, spend, and code
    
    ](https://oxagen.sh/product/workforce-intelligence)

## Product walkthrough

Bring the call you never want an agent to make alone, and watch a policy hold it.

[Book a walkthrough](https://oxagen.sh/#demo)[Read the product overview](https://oxagen.sh/product)
