Skip to main content
MAIP policies let you enforce guardrails on AI agent behavior at runtime. When an agent requests access to a scoped resource, all active policies are evaluated before the action proceeds. If any policy denies the request, the action is blocked.
MAIP policies are different from issuance policies. Issuance policies govern credential minting and verification for human users and issuers. MAIP policies govern machine agent behavior at runtime — controlling what agents can do based on trust scores, delegation depth, scopes, and agent type.

When to use MAIP policies

Use MAIP policies when you need to:
  • Block agents with low trust scores from performing sensitive operations
  • Require human approval when an agent is deep in a delegation chain
  • Restrict specific agent types (e.g., llm or worker) from accessing certain scopes
  • Enforce different rules for different risk levels without changing agent code
  • Add runtime guardrails to multi-agent orchestration workflows
If you don’t create any MAIP policies, agent access is controlled only by scope assignments and agent status.

How policies work

Each MAIP policy contains one or more rules. Each rule has:
  • Conditions — field-level checks evaluated against the requesting agent’s context
  • Effectallow, deny, or require_approval
  • requires_approval — optional flag that triggers a human approval workflow
Rules within a policy are evaluated independently. If any rule with a deny effect matches, the action is blocked regardless of any allow rules. This is a deny-overrides model.

Evaluation order

  1. Agent status — the agent must be active. Suspended or revoked agents are always denied.
  2. Scope check — the requested scope must be in the agent’s granted scopes. Explicitly denied scopes (prefixed with !) always block access.
  3. Policy rules — all active tenant policies are evaluated in priority order (lower numbers first). Each rule’s conditions are AND-ed.

Condition fields

Operators

Effects

Creating a policy

All new policies are created with status: "active" and take effect immediately.

Policy categories

Priority

The priority field controls evaluation order. Lower numbers are evaluated first. Range: 1–1000. Default: 100. If multiple policies share the same priority, they are evaluated in creation order.

Evaluating policies at runtime

Call the evaluate endpoint before your agent performs a sensitive operation. The response tells you whether the action is allowed, denied, or requires human approval.
Allowed response:
Denied response:
Requires approval response:
When requires_approval is true, your application should route the action through a human approval workflow before proceeding.

Listing policies

Returns all MAIP policies for your tenant, including their rules, priority, and status.

Common patterns

Block untrusted agents from writing data

Deny any agent with a trust score below 0.5 from accessing write scopes.

Require approval for deep delegation chains

Agents more than three levels deep in a delegation chain must get human approval for any action.

Restrict LLM agents from executing tools

Prevent LLM-type agents from invoking tool execution scopes while allowing other agent types.

Block multiple agent types from a scope

Use the in operator to match against a list of values instead of writing separate rules for each agent type.

Deny all write scopes with a single rule

Use the contains operator to match any scope that includes a substring, rather than listing each write scope individually.

Combine multiple rules in one policy

A single policy can contain multiple rules for layered enforcement:
This policy blocks agents with trust scores below 0.3 outright, and requires human approval for write operations from agents scoring between 0.3 and 0.7.

MAIP policies vs. RBAC policies

MAIP Policies API reference

Create, list, and evaluate MAIP policies via the REST API.

Trust scores

Understand the trust scoring system that feeds into policy conditions.

Agent authorization

Scope-based authorization and session management for agents.

Machine identity

Full overview of the Machine Agent Identity Protocol.