{
  "policy_id": "threswarda/refund-authority/reference",
  "policy_version": "1.0.0",
  "schema_version": "threswarda-policy-schema/1.0",
  "workflow_family": "refund-issuance",
  "tools": [
    "refund.issue",
    "refund.status",
    "invoice.read",
    "writeoff.issue"
  ],
  "grants": [
    {
      "grant_id": "grant:refunds-agent:v1",
      "principal": "refunds-agent",
      "scope": [
        "refund.issue",
        "refund.status",
        "invoice.read",
        "writeoff.issue"
      ],
      "valid_until": "2027-01-01T00:00:00.000Z"
    },
    {
      "grant_id": "delegation:billing-subagent:v1",
      "principal": "billing-subagent",
      "delegated_by": "refunds-agent",
      "scope": [
        "invoice.read",
        "refund.status"
      ],
      "valid_until": "2027-01-01T00:00:00.000Z"
    }
  ],
  "limits": {
    "per_action_usd": {
      "refund.issue": 250,
      "writeoff.issue": 2500
    },
    "approval_threshold_usd": 100,
    "high_value_threshold_usd": 1000
  },
  "ceilings": {
    "max_loop_cost_usd": {
      "value": 25,
      "response": "enforce"
    },
    "max_cumulative_refund_usd": {
      "value": 2000,
      "response": "enforce"
    },
    "max_steps": {
      "value": 40,
      "response": "enforce"
    },
    "max_wall_clock_min": {
      "value": 30,
      "response": "enforce"
    }
  },
  "enforcement": {
    "nonce_check": true,
    "enforce_authority_chain": true,
    "enforce_approval": true,
    "enforce_grant_expiry": true
  }
}
