Build a policy
Open any policy to edit it in the guided builder. The builder groups every control into four collapsible areas so you can reason about a policy the way it is enforced — grants first, then guardrails, then detection, then the advanced conditions most policies never need.
Access grants
What the policy lets its users reach. Each is an allow-list; anything omitted is denied.
| Grant | Controls |
|---|---|
| Models | The AI models the policy may call, e.g. claude-sonnet-4-5, claude-haiku-4-5. A frontier tier adds larger models; a restricted tier lists only a small fast model. |
| Tools | The tools and app functions the policy may invoke, e.g. kb.search, report.generate, data.query. |
| Data scopes | The data the policy may touch, expressed as scope patterns, e.g. kb:*, reports:*. Wildcards grant a family; specific scopes narrow it. |
Guardrails
What the policy refuses, independent of what it grants.
| Guardrail | Controls |
|---|---|
| Blocked topics | Subjects the policy will not discuss, e.g. compensation, mnpi. A denied topic stops the request regardless of model or tool. |
| PII policy | How personal data in a prompt or response is handled: log record it, redact strip it before it leaves, or block stop the request. |
| Runtime mode | block enforces — a denied request is stopped. monitor observes — the same request is recorded but allowed through, so you can roll a policy out in dry-run before enforcing. |
Roll out in Monitor first. Publish a new policy in monitor mode, watch Activity for a few days to confirm it only stops what you intend, then switch it to block. No user is ever surprised by a policy you haven't observed.
Detection rules & Advanced
Detection rules attach managed and custom rule packs to the policy — the secret, PII, and injection detectors covered in the next section. Advanced holds the controls most policies leave at their defaults:
- Explicit denies — tools or scopes to refuse even if a broader grant would otherwise allow them.
- ABAC conditions — the
whenexpression that binds the policy to its groups, plus any attribute predicates the request must satisfy. - Budgets — spend caps such as
tokens_per_dayandrequests_per_minute, enforced per policy.
Authoring with AI
Edit with AI turns a plain-language instruction ("let contractors read the knowledge base but never call data tools") into a structured proposal. The proposal is always a draft — a human reviews and activates it. AI can propose, but it cannot silently publish an enforcing change.
Try it — how the pieces combine
Configure a policy on the left, send a test request on the right, and watch the verdict update live. Every grant, deny, and guardrail feeds one decision — this simplified example illustrates the model, tool and topic gates. It does not run OPA or change a live policy.