Platform
Permissions and policies
Write, test and enforce policies, with approvals for high-risk actions.
Policies decide what agents may do. They are evaluated in the execution path, before a tool call, a memory access or a model request runs, and each decision is recorded with the rule that produced it.
id: payments-over-1000description: Money movement above $1,000 needs a finance approver.mode: enforceapplies_to: tools: - stripe.create_refund - internal-erp.post_journal_entryrules: - effect: allow when: args.amount <= 1000 - effect: require_approval when: args.amount > 1000 approvers: ["group:finance-controllers"] timeout: 4h on_timeout: denyHow a decision is made
- The policies whose
applies_tomatches the action are collected. A policy can apply to tools, agents, sandboxes or the whole workspace. - Within a policy, rules are read from top to bottom, and the first rule whose
whenmatches gives the policy's answer. A rule withoutwhenalways matches. - Across policies, the strictest answer wins:
denyoverrequire_approvaloverallow. - If no policy allows the action, it is denied.
Effects
| Effect | Result |
|---|---|
allow | The action runs. |
require_approval | The run pauses until an approver decides. |
deny | The action does not run. The run is marked as blocked and shows the rule's reason. |
Conditions
A when expression compares values from the request.
| Value | Contains |
|---|---|
args | The arguments of the tool call, such as args.amount. |
agent | The agent, its granted tools, its budget and its spend today. |
run.context | Values set by the trigger, such as a ticket's priority. |
request | For sandbox network rules, the host being contacted. |
Expressions support comparisons, and, or and in, and helpers such as pii(email, phone), which matches when the arguments contain personal data of those kinds.
Approvals
A require_approval rule names the approvers, the channel, a timeout and what happens when the timeout passes. Approvers decide from chat, by email or in the console, and they see the agent, the action and its arguments before deciding.
Monitor mode
A policy with mode: monitor is evaluated but not enforced. Its decisions are logged as what would have happened, so you can measure a new rule on real traffic before switching it to enforce.
Tests
Each policy carries example requests and the decision each one must get. Tests run whenever the policy changes, and a change that fails a test is not deployed.
Roles and sign-in
Policies govern agents. Roles govern people. Members sign in through your identity provider, and its groups can be mapped to roles and to approval groups.
| Role | Can do |
|---|---|
| Owner | Full access, including billing and deleting the workspace. |
| Admin | Manage members, integrations, policies and settings. |
| Builder | Create and deploy agents in the environments they are granted. |
| Approver | Approve or reject actions routed to them or their groups. |
| Viewer | Read-only access to agents, runs and the audit log. |
The policies view in the demo console shows policies with their tests and recent decisions.