Sample · Synthetic
Sample policy rules
WHEN conditions THEN VALIDATE → ALLOW / ESCALATE / DENY — the rules that drive decisions.
Illustrative JSON only — not production customer data. Policy identifiers in samples are examples.
{
"v": 1,
"type": "policy_rules",
"workspace": "sample_fintech",
"mode": "enforce",
"rules": [
{
"name": "Routine refund — auto-approve",
"priority": 10,
"when": {
"action": "tools:refund",
"max_amount_gbp": 100,
"destination": "original_payment_method"
},
"then": "ALLOW"
},
{
"name": "High-value refund — escalate",
"priority": 20,
"when": {
"action": "tools:refund",
"min_amount_gbp": 100.01,
"max_amount_gbp": 500
},
"then": "ESCALATE",
"required_approvals": 1
},
{
"name": "Out-of-policy refund — deny",
"priority": 30,
"when": {
"action": "tools:refund",
"min_amount_gbp": 500.01
},
"then": "DENY"
},
{
"name": "Non-original destination — deny",
"priority": 5,
"when": {
"action": "tools:refund",
"destination_not_original": true
},
"then": "DENY"
}
],
"note": "Sample policy set. Configure live rules in Agents → Policy, or PATCH /api/workspace/rules."
}