Small refund
executedLow-risk refund on a paid order. Auto-execute, audit, done.
curl https://demo.kiff.dev/refund \
-H 'content-type: application/json' \
-d '{"order":"ord_001","amount":4900,"reason":"customer request"}'{
"outcome": "executed",
"action": "AUTO_REFUND",
"entity_id": "ord_001",
"audit_url": "https://demo.kiff.dev/admin/entities/ord_001"
}Audit trail · 7 records
| time | kind | actor | summary |
|---|---|---|---|
| 09:41:02.123 | event_ingested | stripe | ORDER_PLACED |
| 09:41:02.124 | state_changed | stripe | CREATED → PAID |
| 09:42:11.001 | decision_recorded | ops-agent | propose AUTO_REFUND |
| 09:42:11.002 | action_validated | ops-agent | AUTO_REFUND ✓ |
| 09:42:11.005 | action_executed | ops-agent | AUTO_REFUND |
| 09:42:11.006 | event_ingested | ops-agent | ORDER_REFUNDED |
| 09:42:11.007 | state_changed | ops-agent | PAID → REFUNDED |
rebuild: materialized state matches replay ✓
Order is PAID. Amount is below the auto-execute threshold. AUTO_REFUND requires no approval. KIFF runs it.