01What a policy does
A policy is a rule for your whole organisation, applied to every agent and every grant. Grants say what one agent may do; policies say what no agent may do, or may only do with a person’s approval. Administrators create them in Policies → New policy.
| Effect | When it matches |
|---|---|
| DENY | The request is denied with POLICY_DENIED, whatever the grant says. |
| REQUIRE_APPROVAL | A request the grant would allow is held for a person instead (POLICY_REQUIRES_APPROVAL). |
There is no allow effect: a policy can only narrow authority, never widen it.
02Matching
A policy matches a request when all of these hold:
- actions: the request’s action is one of the listed action keys (1 to 50).
- resource types: the resource is one of these types. Empty means any.
- principal kinds: the request is on behalf of one of these kinds. Empty means any.
- conditions: every condition holds (up to 20). No conditions means always.
03Conditions
| Field | Operators | Notes |
|---|---|---|
| amount | gt, gte | Compares the amount in the given currency. Requests in another currency do not match. |
| currency | in, not_in | 1 to 100 values. |
| purpose | in, not_in | The purpose the agent stated. |
| resource_id | in, not_in | The resource the agent named. |
| principal_id | in, not_in | The employee or customer the agent is acting for. |
| parameter | equals, in, present | Needs the parameter’s name. equals compares one value, type included: true is not 1. in takes text values. present matches whenever the agent supplies the parameter. |
A condition that cannot be evaluated counts as not holding.
JSON
[ { "name": "Never change payout bank details", "effect": "DENY", "actions": ["supplier:update"], "conditions": [{ "field": "parameter", "name": "bank_account", "op": "present" }] }, { "name": "Large refunds need a person", "effect": "REQUIRE_APPROVAL", "actions": ["refund:create"], "conditions": [{ "field": "amount", "op": "gt", "value": 1000, "currency": "USD" }] }]Example
04Precedence and timing
- Any matching DENY policy denies the request.
- Otherwise a matching REQUIRE_APPROVAL policy holds a request the grant would allow.
- A grant’s own denial is never overridden.
- Every decision records the policies, and their versions, that applied (
policy_refs). - Policies are checked again just before Arc acts. A DENY policy added while an action waited for approval stops it.
- Amending a policy creates a new version with a reason; revoking it is permanent.
