Skip to main content
CRUCIBLE
CRUCIBLE STUDIO· FOCUS MODE
← PrevNext Module →
Predict-First · Broken Fault
MENTAL MOVIE · TRUST-BOUNDARYPREDICT-FIRST · BROKEN FAULT
Stripe WebhookSigned Raw BodyUntrusted BoundaryJSON Parse + Arrival OrderNo Dedup / Stale ResurrectFAIL-OPEN BYPASSForged / Reversed StateCancelled Kept ProSEV-0 Security Breach
Why It Fails: Re-stringifying JSON breaks HMAC checks; arrival-order writes let stale upgrades resurrect cancelled accounts.
STUDY THE BROKEN VISUAL · 10-SECOND PREDICTION

Inspect the crimson fault path above, then tap your hypothesis card on the right to unlock the animated Cryo-Emerald Fixed invariant and Socratic physics breakdown.

A03 · MODULE 03 · L4 → L5 · 35 MINBLIND FAULT · 1-CLICK PREDICT

Out-of-Order Stripe Webhooks: Raw-Body HMAC, Replay Windows & Monotonic Ledgers

Prevent forged billing events, duplicate retry credits, and cancelled accounts staying unlocked when webhooks arrive backwards.

10 TRUST06 ORDER01 STORE13 VERIFYC4: Security & Trust BoundariesC2: Correctness & Invariants
STAGE 01 · 1-CLICK VISUAL PREDICT-FIRST
10 SEC · TAP A HYPOTHESIS
UNLABELED PRODUCTION SYMPTOM

A customer upgrades to Pro then cancels 2 seconds later. Stripe delivers customer.subscription.deleted FIRST and customer.subscription.updated SECOND — leaving a cancelled account permanently unlocked on Pro while a 5x network retry grants five duplicate credit packs!

How do you stop forged webhooks, duplicate retries, AND out-of-order event delivery from corrupting billing state?
STAGE 02 · 5-BEAT FEYNMAN CONSOLIDATION
STAGE 03 · REAL EXECUTION LAB (COLD-NO-AI · TIER-A-1GB)
LOCKED UNTIL PREDICT-FIRST
Tap a Stage 01 hypothesis card (or click Skip Struggle (Veteran)) to unlock the Execution Lab and Linked Job Workflows without spoiling the solution.
STAGE 04 · PRINCIPAL JUDGMENT GATE & 3-MIN ORAL DIFF-DEFENSE
LOCKED UNTIL PREDICT-FIRST
Stage 04 stays collapsed until you complete Stage 01 so the hardened diff and Principal consequence chain do not spoil your prediction.
KORE & PUCK STUDIO AUDIOConnecting Out-of-Order Stripe Webhooks: Raw-Body HMAC, Replay Windows & Monotonic Ledgers…