The isolation control was applied, tested, and inert on the live path
- Found by
- An internal review of the production connection string
- What happened
- The tenant shield was applied and verified that morning, but production connected to the database as `postgres` through the pooler — a role that holds BYPASSRLS. Every policy was in place and none of them applied to the live application. The earlier statement that the runtime reached the database as a least-privileged role had been read from the development context.
- Why it mattered
- Row-level security is enforced against the connecting role, so a control that is correct in the schema is still absent from the request path when the role can bypass it. Verification that reads a different environment than the one it describes is not verification.
- What catches it now
- The runtime role query above, and the closed-world verification, which asserts the probing role is neither a superuser nor BYPASSRLS before it asserts anything else.