Skip to content
Agentic Control Plane

Policies & scopes

Before each tool call runs, the hook on your machine asks the ACP gateway what to do. The gateway answers allow, flag, ask or deny, using three layers of policy. Redaction is separate and works on tool output, covered below. This page explains how the rules fit together. You set them in the console.

The four outcomes

  • allow: the tool runs. The terminal prints nothing. The row appears on Activity, or in ~/.acp/audit.jsonl with --local.
  • flag: the tool runs, and the row is marked for review.
  • ask: the call is held for a human. The agent sees [ACP] Approval required: <reason>. The request appears on the Approvals page and the workspace owner gets an email. Approving grants a single retry within the grant window. Unanswered requests expire and count as denied. Details on Approvals.
  • deny: the call is blocked. The agent sees [ACP] Denied by policy: <reason>.

Rules are per tool (a prefix like Bash.rm, Bash.git.push, or WebFetch.<host>) and per agent tier: interactive, subagent, background, api.

The three axes

Every /govern/tool-use call is checked against three axes of policy, in this order.

1. Tool policies: workspace-wide defaults

Dashboard → Policies → Tool Policies. Workspace-wide allowlists and required scopes per tool. They answer: “Is anyone in this workspace allowed to call github.repos.delete? What scope do they need?”

Use them to disable a dangerous tool for everyone, or to require a sensitive scope (github.admin) before a tool can be called.

2. Agent policies: per-tier rules

Dashboard → Policies → Agent Policies. Rules per agent tier: interactive, subagent, background, api. They answer: “What can a background cron agent do that my interactive Claude Code session can’t?”

A typical pattern is to lock background agents down tightly (read-only, rate-limited, no destructive ops), leave interactive agents permissive, and keep subagents in between.

3. User policies: per-identity overrides

Dashboard → Policies → User Policies. Overrides per user identity. They answer: “Alice gets to run stripe.charge.* because she’s in finance; Bob does not.”

Use these for carve-outs. If you’re writing user policies for most of your team, the rule probably belongs in tool or agent policies instead.

Most-restrictive-wins

The layers intersect. For any one tool and tier, the effective permission is the most restrictive one that any applicable layer sets (workspace, role, agent type, or user). Tightening at any layer tightens the result, and no layer can loosen what another has denied. Within a layer, a more specific tool entry (Bash.curl) decides over a broader one (Bash), so you can allow a family and deny one member of it.

Workspace Agent type User Result
allow allow allow allow
allow allow deny deny (the user tightened it)
allow deny n/a deny (the agent type tightened it)
deny allow n/a deny (workspace deny holds; a layer cannot loosen it)
allow ask allow ask (the strictest of the three)

Above every layer sits the safety floor. It applies in every mode and no rule can loosen it. A workspace owner or admin can switch it off on the Policies page, and the installer asks. It has two tiers:

  • Always blocked: rm -rf on your home, root, or system directories, disk wipes such as mkfs or dd onto a device, fork bombs, kill -1, shutdown and reboot.
  • Held for your approval: force-push, destructive SQL passed to a database CLI (psql, mysql, mariadb, sqlite3), such as DROP, TRUNCATE, or DELETE without a WHERE, piping a download into a shell, and a recursive delete outside the project.

The floor’s holds read Bash and PowerShell command text only; MCP tools and most file edits do not reach it (edits to ACP’s config, hook settings and shell rc files are refused). Rules that stop the scary things lists what it does not cover. A rule can tighten a held item to never.

In Claude Code a safety-floor hold is a prompt in the session. On every other harness the call is blocked, you approve it on Approvals or from the approval email, then ask the agent to retry. With --local the always-blocked list is narrower: rm -rf on your home or root, mkfs, dd onto a disk, fork bombs. Writes to the files that control the agent (its hook, credentials, and policy) are held as policy tamper.

Scopes

Scopes are short strings that describe tool capabilities (github.pr.write, slack.read, stripe.charge.*). They do two jobs:

  1. Required on the tool side. The tool policy says “github.pr.create requires scope github.pr.write.”
  2. Granted to the caller. The JWT (or the agent’s tier configuration) carries a set of scopes. If the caller’s scopes don’t cover the tool’s required scope, the call is denied.

Scopes support wildcards. github.* covers github.pr.write, github.issue.create, and so on. * covers everything, so use it with care.

For delegation chains (agent calling agent calling tool), scopes narrow at each hop. See agent-to-agent control.

Audit mode vs. enforce mode

A workspace is in one of two modes:

  • Audit mode is where every new workspace starts. Everything is recorded and your rules don’t block yet. Only the safety floor holds a call: force-push, destructive SQL and curl sh wait for a person, and catastrophic commands are refused outright. For calls the starter policy would have paused, the agent transcript shows [ACP shadow] That was <tool>: <why>, so you see what enforce would do before it does it.
  • Enforce mode: your rules apply. ask holds the call, and deny blocks it and returns the reason to the agent. Switch with /acp-enforce in your agent, or on the Policies page.

Recommended rollout: stay in audit mode for a few days. Read the shadow notices and the rows on Activity. Adjust the rules until the false-positive rate is where you want it. Then switch to enforce. That way a new rule doesn’t stop half your agents because it didn’t match how they really work.

Hooks enforce; the MCP acp_check tool advises

The hook runs before every tool call the harness makes, and a deny or ask there stops the call before it executes. The ACP MCP server’s acp_check tool is advisory. The agent chooses to call it, and an agent that skips the call is not stopped. It exists for the calls a hook cannot see (hosted tools such as web search on Codex, clients with no hook system). If a harness offers hooks, install the hook and treat acp_check as a second opinion.

Set a rule from a row

From any row on Activity or Sessions, choose Ask next time, Deny next time, or Allow always. That writes a standing rule for that tool and tier, with no policy editor needed. Agents can also propose a rule from a denial they hit (acp_propose_rule). Proposals wait on the Policies page until you confirm them.

Ran ungoverned

When the gateway is unreachable, the Claude Code plugin lets interactive calls proceed with a loud [ACP] &#9888; UNGOVERNED notice in the terminal, and the row is marked ran ungoverned in Activity. Unattended tiers (subagent, background, api) stay blocked until the gateway answers.

The shared hook that other harnesses use fails open in every tier unless ACP_FAIL_MODE=closed or ~/.acp/failmode is set on that machine. Hermes has no unattended tier, so it always proceeds with the notice.

PII, prompt injection, and secrets

The content-scanning layer handles these. It runs on the tool’s output (and optionally its input). Its main decision is redact: sensitive strings are replaced (PII with [REDACTED:<type>]) where the harness lets ACP rewrite what the model reads, and recorded as detected where it doesn’t. PII detection lists which harnesses can.

There are three detectors today:

  • PII. Six high-precision types: emails, phone numbers, SSNs, credit-card numbers, IBANs, IP addresses. The PII setting is per agent tier, on the Policies page. A labelled SSN or a Luhn-valid card number in the input of a tool that sends data out (MCP tools, WebFetch, WebSearch) is blocked regardless of policy. redact is a policy you enable.
  • Prompt injection. Heuristic match against known injection patterns in tool output, especially web fetches. Default policy is flag (log but pass through). Set it to redact or deny for high-stakes agents.
  • Secrets. API keys, tokens, private keys in tool output. Default policy is redact.

Each detector has a policy per agent tier. A researcher bot reading public docs can have lax settings. A customer-service bot touching real records should redact aggressively.

What you won’t find here

This page is conceptual. For field-level details such as the exact JSON schema of policy objects, scope inheritance rules, and the API for bulk-importing policies, see the API reference. The Activity log shows what policies actually did on a given call.

Running coding agents? ACP records each tool call its hook sees and makes the dangerous shell commands (a force-push, destructive SQL, curl | sh) wait for you. One command, free up to 5 agents:

macOS · Linux · WSL
curl -fsSL https://agenticcontrolplane.com/install.sh | bash
Windows · PowerShell
irm https://agenticcontrolplane.com/install.ps1 | iex

What the installer writes  ·  Getting started