Cross-checks customer billing disputes against actual API usage logs in Snowflake, calculates the exact refund down to the cent, and enforces CFO approval limits in under 4 minutes.
// Checked in under 5ms before any Stripe refund is issued
rule finops_refund_gate {
match:
request.system == "stripe" &&
request.action == "refund"
allow:
request.amount_cents <= 100000 ||
(request.amount_cents > 100000 && actor.role == "cfo")
action:
require_executive_signoff(
threshold_usd: 1000,
channel: "#finance-approvals",
approval_type: "tamper_proof_single_use"
)
}