Skip to Content

Policies

Policies define rules that govern agent behavior. Each tenant can have one active policy at a time. When a new policy is created, the previous active policy is automatically archived.

Policy structure

A policy document contains:

FieldTypeDescription
namestringPolicy name
descriptionstringHuman-readable description
defaultDecisionstringallowed, requires_review, or denied
rulesarrayOrdered list of rules

Each rule contains:

FieldTypeDescription
idstringUnique rule identifier
decisionstringallowed, requires_review, or denied
prioritynumberEvaluation order (lower = higher priority)
conditionsobjectMatching criteria (toolType, operation, targetSystem, initiatorType)
POST/v1/policies

Create a new policy. Automatically archives the previous active policy.

Example request:

{ "name": "Production Safety Policy", "description": "Requires review for destructive operations", "defaultDecision": "allowed", "rules": [ { "id": "block-bulk-delete", "decision": "denied", "priority": 1, "conditions": { "operation": "delete", "targetSystem": "production-db" } }, { "id": "review-external-api", "decision": "requires_review", "priority": 2, "conditions": { "toolType": "external_api" } } ] }

GET/v1/policies

List all policies (active and archived).


GET/v1/policies/:id

Get a single policy with full rule details.


PATCH/v1/policies/:id

Update policy name, description, or rules.

Only supplied fields are changed.


DELETE/v1/policies/:id

Archive a policy (soft delete).

Last updated on