Policies
Policies are governance rules that control what your AI agents can do — which tools they can call, how much they can spend, and how sensitive data is handled. Each policy defines match criteria and an enforcement action.
Policy types
Three types of governance rules are available:
Enforcement modes
Each policy has an enforcement mode that controls what happens when the rule matches:
Match criteria
The Match Criteria field accepts a JSON object that scopes which agents, users, tools, or data labels the policy applies to. An empty object {} matches everything.
Examples
{ "agent_id": "<uuid>" } — scope to one agent
{ "org_id": "<uuid>" } — scope to entire org
{ "tool_prefix": "github__" } — match all GitHub tools
{ "scan_tool_responses": true } — enable tool response scanning
Priority
Lower numbers win. A policy with priority 10 overrides one with priority 100. The platform default policies (like the Default Tool Response Scanning rule) use priority 1000 so any user-created policy automatically takes precedence.
match_criteria to narrow scope to specific agents, orgs, or tool categories.