Policies
A policy decides, for each tool call, whether it runs, runs and is recorded, needs a human, or is blocked. You edit it in the dashboard (Policy, as YAML); the server validates it and signs every version. Agents only follow a policy signed by the key they pinned.
Build one interactively
The policy builder writes this YAML for you, validates it and lets you try tool calls against it.
Shape
defaults:
unmatched: REQUIRE_APPROVAL # ALLOW, OBSERVE or REQUIRE_APPROVAL for calls no rule matches
ttlSeconds: 300 # how long a request waits for a decision
rules:
- id: reads
match: { tool: "sql.select" }
effect: ALLOW
- id: watch-git
match: { tool: "git.*" }
effect: OBSERVE
- id: big-refunds
match:
tool: stripe.refund
args:
amount: { gt: 10000 }
effect: REQUIRE_APPROVAL
riskLevel: HIGH
- id: drop-table
match:
tool: sql.execute
args:
query: { regex: "(?i)^\\s*drop\\s" }
effect: DENYMatching
match.toolis a glob on the tool name:*matches any run of characters, dots included. What the tool name is depends on the integration: the MCP tool's name for the MCP proxy, Claude Code's tool name (Bash,Edit,mcp__server__tool…) for the hook, and theactionyou pass to the SDK.match.argsadds conditions on first-level arguments; all must hold. Each takeseq,gt,gte,lt,lte,regex,globornotGlob.
Effects
| Effect | What happens |
|---|---|
ALLOW | Runs without asking. |
OBSERVE | Runs, and the call is recorded for Shadow Mode. |
REQUIRE_APPROVAL | Waits for a signed approval. Needs riskLevel. |
DENY | Never runs. A DENY rule wins over every other match. |
Approval settings
| Field | Default | Notes |
|---|---|---|
riskLevel | required | LOW, MEDIUM, HIGH, CRITICAL. HIGH and CRITICAL need the fingerprint key; CRITICAL also waits out a new phone's first hour. |
approversRequired | 1 | 1 to 10 different people (organizations). |
ttlSeconds | defaults.ttlSeconds | Clamped to 30–3600 seconds. |
Temporary auto-approval
An approver's phone can let a matching call through for a while without asking again: at most 24 hours, with a cap on uses, and never for CRITICAL. These rules are signed into the policy, appear in the dashboard read-only and expire on their own. (The server supports them; the control in the phone app is coming.)
A local policy
The SDK can also take a local policy (localPolicy). It is merged with the signed one and can only make it stricter.