Skip to content

You are exploring a demo workspace. The agents, runs and people shown are sample data.

Policies

Rules checked before every action. They decide what runs on its own, what needs a person and what never happens.

Policies

8

1 in monitor mode

Evaluations · 24h

203.8K

Sent for approval

478

Denied

322

Approve payments over $1,000

Enforcing

Refunds and ledger entries above the threshold need a finance approver.

policies/payments-over-1000.yamlYAML
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: deny

Tests

Example requests with the decision each one must get.

Refund of $240.00

Allowed
payment-risk-screener → stripe.create_refund { amount: 240.00 }

matched rules[0] · args.amount <= 1000

Journal entry of $3,120.00

Approval required
invoice-reconciler → internal-erp.post_journal_entry { amount: 3120.00 }

matched rules[1] · args.amount > 1000 → group:finance-controllers

Tests run automatically whenever a policy changes.

Decisions · 24h

2,148

evaluations

Allowed
1,996
Approval
149
Denied
3

Details

Applies to
Tools · stripe.create_refund, internal-erp.post_journal_entry
Version
v4
Last changed
Changed by
Marcus Tan
Agents
Payment Risk Screener, Invoice Reconciler