
The policy check reads every migration before it reaches a client's database
On 'add bookings' it writes: 'Anyone with this project's public key could read every row of bookings.' Then it proposes the missing policy and waits for a developer. The model is an open-weight code model we fine-tune ourselves.
On existing Supabase projects, a new public table starts with every privilege granted.
Lovable-built sites with thin row security were filed as CVE-2025-48757, scored 9.3, disputed.
- When
- lockerbank db push or the console's SQL editor
- In GitHub Actions
- the job fails with the findings and a link to decide them; a re-run passes
- Rules
- in the Flat-pack, on your server: row security off, always-true policies, grants
- Model
- about 7B, open weights, cloud GPUs we control in N. Virginia
It reads table definitions, never a row of a client's data
The migration is applied to a schema-only copy of the project, and the catalog is what gets read. No row, file, sign-in user, key or connection string reaches the check.
The migration
its SQL, as pushed: add bookings
The schema
bookings, its client_id column, the clients table
The policies
their text, and every grant the API serves
Decisions kept for retraining
no project name or row; Hosted keeps them until the owner opts out, a Flat-pack only once its operator opts in
One finding, one proposed policy: a plain sentence, then the SQL it stands for
'Proposed: a signed-in client sees only their own bookings.' Approving writes the policy into a new migration file for the developer to commit. Nothing is applied.
- No policythe public key reaches a table with row security off
- Always passesliterally true, or any signed-in user sees all rows
- Opened by a granta policy-bypassing view, or a security-definer function the public may call
The model traces payments.booking_id through to clients.user_id. Rules cannot.

It speaks up only where the public key can reach, and says so when it is not sure
It does not promise to catch every access mistake. Supabase changed its own default for the same exposure: public tables kept reaching its API by accident as agents and tools created them, so from 2026-10-30 new ones no longer do.
Flagged: a table, view or function in an exposed schema that the public or signed-in role reaches unguarded.
Proposed only when a chain of columns reaches the users table at 0.65 or higher; otherwise: "Not sure which column ties a row to a user."
The threshold public reach, unguarded; quiet where only the server key reaches
A developer on that client project approves, edits or dismisses every finding.
Client staff cannot decide, and a dismissal needs a one-line reason. The push waits until every finding is decided, and the change record keeps who decided what, on which project, and when.