Process 05 — payment-saga cascade
Process 05 — payment-saga cascade
Section titled “Process 05 — payment-saga cascade”Charge fails on the top bidder → strike increment → fall through ranked list (top 2..5) → ultimately house-ad if exhausted.
Cascade invariants
instance_idstaysauction_idacross all cascade iterations — no sub-workflows spawned.- Stripe
Idempotency-Keyincrements via the attempt counter; never reuses keys across users. - Workflow
step.donames are unique per attempt:invoice-create:attempt-2:user-u2. Replay safety is preserved by name uniqueness. - Strike API is idempotent on
(saga_instance_id, user_id)so workflow restarts mid-strike are safe. - First attempt uses 6h SCA window; cascaded attempts use 30min to stay within 24h pre-activate budget.
- Max 5 attempts → guaranteed
HOUSE_ADfallback before slot time.