Skip to main content
CRUCIBLE
CRUCIBLE STUDIO· FOCUS MODE
← PrevNext Module →
Predict-First · Broken Fault
MENTAL MOVIE · TRUST-BOUNDARYPREDICT-FIRST · BROKEN FAULT
PgBouncer TXVerified Tenant JWTUntrusted BoundaryApp WHERE / Session SETMissed Filter / Pool LeakFAIL-OPEN BYPASSCross-Tenant ReadTenant A Sees Tenant BSEV-0 Security Breach
Why It Fails: Application-only tenant filters fail open on one missed JOIN, and session-level SET leaks across pooled PgBouncer connections.
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 02 · L4 → L5 · 40 MINBLIND FAULT · 1-CLICK PREDICT

Multi-Tenant Postgres RLS & PgBouncer SET LOCAL Isolation

Make cross-tenant data leaks structurally impossible at the storage engine boundary — even when a developer forgets WHERE org_id.

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

A forgotten WHERE org_id = $1 clause in a new CSV export endpoint leaks another customer’s invoices — and even after adding SET app.tenant_id, pooled PgBouncer connections intermittently bleed Tenant A’s identity into Tenant B’s request.

How do you make forgotten WHERE clauses AND PgBouncer session-variable bleed structurally impossible at the Postgres boundary?
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 Multi-Tenant Postgres RLS & PgBouncer SET LOCAL Isolation…