Skip to content

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 ​

yaml
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: DENY

Matching ​

  • match.tool is 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 the action you pass to the SDK.
  • match.args adds conditions on first-level arguments; all must hold. Each takes eq, gt, gte, lt, lte, regex, glob or notGlob.

Effects ​

EffectWhat happens
ALLOWRuns without asking.
OBSERVERuns, and the call is recorded for Shadow Mode.
REQUIRE_APPROVALWaits for a signed approval. Needs riskLevel.
DENYNever runs. A DENY rule wins over every other match.

Approval settings ​

FieldDefaultNotes
riskLevelrequiredLOW, MEDIUM, HIGH, CRITICAL. HIGH and CRITICAL need the fingerprint key; CRITICAL also waits out a new phone's first hour.
approversRequired11 to 10 different people (organizations).
ttlSecondsdefaults.ttlSecondsClamped 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.

The policy engine, MCP proxy, SDK and hook are MIT-licensed.