Skip to content
Docs

Organisation policies

Rules that apply to every agent: forbid an action outright, or require a person to approve it.

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.

EffectWhen it matches
DENYThe request is denied with POLICY_DENIED, whatever the grant says.
REQUIRE_APPROVALA 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

FieldOperatorsNotes
amountgt, gteCompares the amount in the given currency. Requests in another currency do not match.
currencyin, not_in1 to 100 values.
purposein, not_inThe purpose the agent stated.
resource_idin, not_inThe resource the agent named.
principal_idin, not_inThe employee or customer the agent is acting for.
parameterequals, in, presentNeeds 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.