initializdocs
Security

Compliance and tool-call decisions

Value-level governance of tool calls — admission to the Tool Registry is the allow boundary, compliance rules tighten with allow/defer/deny over actual argument values, and the security ceiling hard-deny is the block lever.

Security policies decide which tools an agent may have. Compliance policies decide what a permitted tool may do on each call: when an agent has Enforce PDP policy enabled, the platform's policy decision point (PDP) evaluates every tool call the agent proposes — over the call's actual argument values — and returns one of three verdicts:

  • allow — the call proceeds.
  • defer — the call is parked until a human approves it (see Approvals and consents).
  • deny — the call is refused.

Admission is the allow boundary. An operation admitted to the Tool Registry is allowed by default — an admitted operation with no compliance rule at either scope is allowed, not denied. What denies is one of three things: the operation is not admitted (no registered tool provides it), the operation is hard-denied by the security ceiling (the block lever), or a compliance rule governing the operation evaluates to deny. Compliance rules are a tightening layer over the admitted set — they add thresholds and approvals; they never grant a tool (admission already did). A tool's risk score is not an input to the decision — risk informs human review (see Shadow Tools), never the verdict.

This is a different altitude from the security policy deny/allow lists: those gate capabilities; compliance rules gate individual calls by value — "transfers under $100 are fine, larger ones need approval".

Two scopes: org baseline and per-agent tightening

Compliance rules are authored at two scopes that compose:

  • Org baseline — authored under Enforce → Compliance. These rules apply to every agent that calls the governed tool: author a rule once and it governs the operation across the org.
  • Per-agent overlay — authored on each agent's Governance tab. The overlay can only tighten the baseline, never widen it: the two scopes are composed most-restrictive (deny beats defer beats allow), so a per-agent author can add a stricter threshold or an extra approval, but can never loosen an org rule.

The agent's Governance tab shows the whole picture in one card, in three parts:

  1. Tools in use — the governed (API and connected-server) tools this agent depends on, with their operation counts. These are the only tools you can author agent-scope rules for.
  2. Inherited from org — the org baseline rules that govern this agent's tools, shown read-only exactly as they will apply. Rules for tools the agent doesn't use are filtered out; the baseline itself is edited on the org Compliance screen.
  3. This agent's rules — the tighten-only overlay, edited in place.

An agent's Governance tab: tools in use, the inherited org baseline, and the tighten-only per-agent rules

A scope with no rule for a tool abstains. If both scopes abstain, the admitted, ceiling-allowed call is allowed — abstention is not a deny. When both scopes independently defer, the approval requirements compose most-restrictively — the approver lists are combined and the shorter timeout wins.

The security ceiling

Beneath the compliance rules, the org policy carries a security ceiling on tool operations, managed by org security admins and not shown on the Compliance screen. It only ever tightens:

  • Hard-deny is the block lever: an operation on the ceiling's hard-deny list is denied absolutely, regardless of any compliance rule. This is the mechanism behind the Block action on the Shadow Tools Custom tab.
  • A non-empty allowed-tools list narrows within the admitted set; an empty list means "admission decides", not "deny everything".
  • Trust-mode floors are a ceiling-level control too: they can require a minimum caller attestation and restrict the delegation modes per operation, and they deny before compliance rules run.

How rules are keyed

Rules are keyed per tool operation, written <server>__<operation> — for example payments__reverse_fee. The key is identity-independent: one rule governs the operation no matter which connection or identity variant of the tool a particular agent calls through. A custom tool (an in-process tool admitted by a developer) has no server namespace — its key is the bare operation name, for example run_graph_query. Only operations of tools admitted to the Tool Registry can be governed — a call to an operation no registered tool provides is denied.

What a rule looks like

Each tool operation carries an ordered list of rules; the first rule whose conditions all match decides the call. Within an operation that carries rules, a call that matches no rule is denied — once you govern an operation with rules, the rules must account for every call you want through. A rule has:

  • Conditions — typed comparisons against the operation's argument fields (the fields come from the registered operation's schema). Operators: ≤, <, ≥, >, =, ≠, in, not in, plus string-content operators contains, not contains, matches (a regular-expression pattern), and not matches. All conditions in a rule must hold for it to match. A pattern that does not compile never matches — a malformed regex can never accidentally satisfy an allow rule.
  • An outcome — allow, defer, or deny. An authored deny makes the refusal explicit and first-match-ordered, rather than relying on falling off the end of the list.
  • For defer, an approval authority — the approver emails who may decide the parked call, and a maximum timeout the approval may wait.

For example, on a fee-reversal operation: allow when amount ≤ 100; defer to finance-lead@example.com with a 1-hour timeout when amount ≤ 1000 — and anything larger matches no rule and is denied. An admitted operation with no rules at all, by contrast, is allowed outright.

Deferral routing

Where a deferred call's approval prompt is delivered is configured per agent, on the agent's Governance tab, per tool operation:

  • Platform inbox (the default) — the prompt appears in the approvers' My Approvals queue in the console.
  • Slack channel — delivered as an interactive Slack message, when the agent has Slack connected.
  • Email — delivered to an email address.

The effective timeout is the smaller of the agent's route timeout and the compliance rule's maximum — the agent may tighten the window but never extend it. If neither sets one, the runtime's default (10 minutes) applies. A deferral that expires undecided is refused.

Decision order

Every decision runs the same sequence; the first stage that refuses, refuses:

  1. Revoked principal — a call delegated from a human principal the organization's identity provider has revoked is denied before any policy is read.
  2. Agent runtime gate — a killed agent (the kill switch) or a deleted agent is denied every call, regardless of policy. This is what makes kill and delete real controls even for agents the platform cannot scale down — an externally hosted agent whose credential outlives a soft-delete still gets deny on every governed call.
  3. Policy presence — if no compliance policy document exists at either scope, every governed call is denied. Enforcement needs at least one published policy; once one exists, un-ruled admitted operations allow.
  4. Admission — the operation must be provided by a registered tool, or the call is denied.
  5. Ceiling — hard-deny, the allowed-tools narrowing, and any trust-mode floor on the operation.
  6. Agent instance subset — an agent-scoped allowed-tools subset can further narrow (tighten-only).
  7. Compliance rules — org baseline and agent overlay evaluated over the argument values and composed most-restrictively; no governing rules at either scope ⇒ allow.

Fail-closed enforcement

Enforcement is opt-in per agent with the Enforce PDP policy toggle (set when creating the agent or in its configuration). With it on, evaluation is strictly fail-closed about errors and about the allow boundary:

  • An operation not admitted by any registered tool → denied.
  • The platform cannot read the policy, the registry, the revocation state, or the agent's runtime state at decision time → denied. An authorization decision never fails open.
  • No compliance policy configured at either scope → denied (see decision order above).
  • A condition over a missing argument field never matches, and an invalid regex pattern never matches — neither can silently satisfy an allow rule.

Fail-closed does not mean every unmatched call is denied: an admitted, ceiling-allowed operation with no governing rules is allowed. The boundary is admission plus the ceiling, and errors on the way to a verdict always land on deny.

Because the decision is made live on each call, publishing a compliance change applies to the very next tool call — there is no propagation delay and no agent redeploy.

Decision audit trail

Every verdict — allow, defer, and deny alike — is recorded in the event stream:

  • tool_call_decided — the platform's decision record: the tool and operation, the decision and reason, which scope bound the verdict (org or agent), the policy versions consulted, and a bounded summary of the argument values. Denials are a permanent record, not just a block.
  • pdp_decision — the agent-side enforcement record, emitted by the agent runtime as it enforces the verdict.

In the event stream, the canonical outcome strings are allowed and denied (an allow and a deny verdict respectively; a defer records as an informational outcome until the human decision lands as its own event).

Both are part of the Events screen's default security-relevant filter.

Authoring in the console

The Compliance Policy screen: the org baseline with governed tools listed as collapsible rule groups

The Compliance editor (org scope under Enforce → Compliance, agent scope on the agent's Governance tab) is built for large policies:

  • Tools and their rules are collapsible and collapsed by default, each showing a one-line summary; a filter box finds a tool by name.
  • Add tool opens a picker over the operations of registered tools, so rules are always authored against a real, governed operation and its typed argument fields. At org scope the picker offers every registered tool; at agent scope it is limited to the agent's own tools — you can't author an agent rule for a tool the agent doesn't use.
  • Add rule inserts a worked example (an allow-with-threshold) so the condition shape is obvious, then you edit it in place.
  • Rules are shown in evaluation order — remember the first match wins.
  • Pattern conditions are validated at author time. The matches / not matches value must be a valid pattern in the platform's regex dialect (RE2 — no lookahead/lookbehind or backreferences); the editor rejects patterns that would never match at evaluation time.

Compliance policies are versioned: every publish increments the policy version, and decision records carry the version that produced them.

Authoring requires the compliance-author permission; the console shows the editor to signed-in users, but the platform enforces the permission on every write — an unauthorized publish is rejected regardless of what the console displays. Role grants are keyed on your verified sign-in email — under single sign-on it is the email claim on your verified token, not the provider's opaque subject, that your governance authority resolves from.

On this page