AgentInterceptor / Field guide

Agent policy enforcement

Policy enforcement applies deterministic authorization rules to an agent's proposed actions before they execute.

PrototypeLast verified: Status: PUBLIC_PROTOTYPE

Start with explicit grants

Match tenant, environment, agent, upstream and operation. If no rule matches, deny. A risk classifier can recommend review, but it must not create authorization. Precedence should be deterministic and documented: deny overrides review, and review overrides allow.

Example effect precedence used by the local policy lab
Matched effectsResultReason
allow and blockblockDeny overrides every other effect
allow and reviewreviewReview overrides allow
allow onlyallowExplicit grant
no matchblockDefault deny
invalid policy or identityblockFail closed

Bind human approval to the request

An approval is not a blanket permission. It should reference the tenant, actor, tool, upstream origin, normalized payload hash, policy digest, single-use nonce and expiry. Re-evaluate authorization and policy immediately before execution, then consume the approval atomically.

  • Reject a changed payload, a stale policy revision, an expired approval or a replayed nonce.
  • Require an independent reviewer for high-risk actions and prevent self-approval where required.
  • Return an ambiguous outcome when an upstream result is unknown instead of retrying a non-idempotent action blindly.

Handle conflicts and rollback

Version every policy, keep a monotonic revision, and treat rollback as a new signed revision rather than an edit in place. Test changes against representative allow, block, review and malformed-input fixtures.

  • Draft, lint, simulate, review, sign, publish and canary a policy in explicit stages.
  • Keep the last known good signed bundle available until its expiry.
  • Record who changed a policy, why, and which test fixtures passed.

Questions and answers

What is default deny?

A policy posture where an action with no matching explicit grant is blocked. It is safer than default allow because a missing rule does not silently permit access.

Does an approval execute the action automatically?

It should not without revalidation. The executing service must re-check identity, policy, payload digest, expiry and approval state, then consume the approval once.

Work with your AI agent

Agent handoff

Copy a context-aware prompt naming this page and only the interfaces that actually exist in this package.

Open agent hub