Policy cookbook
Copy-ready policies for common agents: research, travel, procurement, allowances, x402 and AI spend.
Copy-ready policies for common agents. Each recipe is a complete agent spend policy document: paste it into the policy playground to run sample payments through it, or save it as a new version with POST/policies/{id}/versions. Amounts are integers in minor units (cents for USD); the comment after each one shows dollars.
Remember that policies layer: an agent's policy sits under its tree's, its team's and the org's, and can only tighten them. A recipe that allows something a parent blocks still won't let it through. Every field is described in the schema reference.
Research agent#
Small, frequent purchases of papers, datasets and API calls, with new sellers checked by a person.
version: "2026-11-01"
budgets:
- amount: { amount: 150000, asset: USD } # $1,500.00
window: month
- amount: { amount: 20000, asset: USD } # $200.00
window: day
limits:
per_payment: { amount: 5000, asset: USD } # $50.00
categories:
allow: [Paid APIs, Datasets, Publications, AI models]
approvals:
above: { amount: 2500, asset: USD } # $25.00
new_counterparty: true
risk:
velocity_per_10m: 8- Anything outside the four categories is declined.
- The first payment to each seller, and anything over $25, waits for a person.
- More than eight payments in ten minutes is held as unusual pace.
Travel agent with mandates#
Flights, hotels and ground transport, only against a signed instruction, with a passkey for anything large.
version: "2026-11-01"
budgets:
- amount: { amount: 500000, asset: USD } # $5,000.00
window: month
time_zone: America/New_York
limits:
per_payment: { amount: 150000, asset: USD } # $1,500.00
categories:
allow: [Airlines, Hotels, Ground transport]
rails:
allow: [card, network_token, checkout_token]
approvals:
above: { amount: 60000, asset: USD } # $600.00
assurance: passkey
timeout_minutes: 120
on_timeout: reject
conditions:
- name: Bookings need a mandate
when: "!mandate.present && counterparty.category != 'Ground transport'"
then: hold- Flights and hotels without a signed mandate are held; rides aren't.
- Over $600 needs a passkey approval within two hours, or it's rejected and the agent is told.
- Only card-like rails: no stablecoin or bank transfers for travel.
Procurement with two approvers#
Software and supplies, with large orders signed by two people.
version: "2026-11-01"
budgets:
- amount: { amount: 1000000, asset: USD } # $10,000.00
window: month
limits:
per_payment: { amount: 300000, asset: USD } # $3,000.00
categories:
allow: [Software, Office supplies, Cloud]
approvals:
above: { amount: 100000, asset: USD } # $1,000.00
assurance: dual
new_counterparty: true
route:
channels: [push, slack]- Two different approvers, each with a passkey, for anything over $1,000.
- Every new vendor is held once, whatever the amount.
Personal allowance#
A monthly allowance for a person's shopping agent, with Face ID for anything over $50.
version: "2026-11-01"
budgets:
- amount: { amount: 20000, asset: USD } # $200.00
window: month
limits:
per_payment: { amount: 10000, asset: USD } # $100.00
per_day_count: 5
categories:
block: [Advertising, Contractors]
approvals:
above: { amount: 5000, asset: USD } # $50.00
assurance: passkey
route:
channels: [push]Paying for APIs over x402#
An agent that buys API calls in USDC: tiny amounts, high volume, strict per-call caps.
version: "2026-11-01"
budgets:
- amount: { amount: 5000, asset: USD } # $50.00
window: day
limits:
per_payment: { amount: 100, asset: USD } # $1.00
rails:
allow: [stablecoin]
categories:
allow: [Paid APIs, Datasets]
risk:
velocity_per_10m: 300
conditions:
- name: Unknown APIs over 10 cents
when: "counterparty.first_seen && payment.amount > 0.10"
then: hold- USDC counts at par against USD budgets.
- In CEL,
payment.amountis in dollars, not minor units. - See x402 and USDC for the flow, and the 402 challenge builder for what sellers send.
Hard cap on model spend#
version: "2026-11-01"
budgets:
- amount: { amount: 80000, asset: USD } # $800.00
window: month
- amount: { amount: 6000, asset: USD } # $60.00
window: day
rails:
allow: [ai]
conditions:
- name: Stop near the monthly cap
when: "budget.used_ratio > 0.95"
then: decline
- name: Tell someone at 80%
when: "budget.used_ratio > 0.8"
then: notifyPair it with the AI proxy for a true hard cap; see AI provider spend.
Business hours only#
version: "2026-11-01"
time_windows:
- days: [mon, tue, wed, thu, fri]
from: "08:00"
to: "19:00"
budgets:
- amount: { amount: 300000, asset: USD } # $3,000.00
window: week
time_zone: America/Los_AngelesPayments outside the window are held (not declined), so a person can still let an urgent one through. The time zone of the first budget sets the clock.
Block categories and sellers#
version: "2026-11-01"
categories:
block: [Gambling, Advertising]
counterparties:
block: [Meta Ads]
allow: []Block lists decline outright. An empty allow list means "no allow-list" (everything not blocked is allowed); a non-empty one means only those.
Conditions in CEL#
Conditions cover what the structured fields don't. Each has a name, a CEL expression in when, and then: hold | decline | notify. A few patterns:
conditions:
- name: Weekends need a person
when: "time.weekday in ['sat', 'sun']"
then: hold
- name: Contractors over $500
when: "counterparty.category == 'Contractors' && payment.amount > 500"
then: hold
- name: Only project-tagged agents buy compute
when: "counterparty.category == 'Compute' && !has(agent.labels.project)"
then: decline
- name: Deep sub-agents stay small
when: "agent.depth >= 2 && payment.amount > 50"
then: hold
- name: Purpose must be stated
when: "size(payment.purpose) < 10"
then: holdThe names you can use are listed in the CEL context. The compiler type-checks every condition and suggests the closest name when you mistype one.