docs(docs): real-stack verification notes; BLK-006 resolved, EVAL-007, LRN-037

This commit is contained in:
bchanot committed 2026-10-08 23:04:22 +02:00
1 parent 8b233e5cf0
commit fcdcfb53b2
6 files changed
+24 -5

No files matched your search

+7 -3
View File
@@ -71,7 +71,9 @@ Seed accounts (local only, password `LocalDev-only-password-1`):
`revoke all ... from public, anon, authenticated` then the exact grants,
separate SELECT / INSERT / UPDATE / DELETE policies, indexes, comments.
3. Add or extend a pgTAP file under `supabase/tests/`: the allowed path and
every denied path (other user, anon, direct write bypassing an RPC).
every denied path (other user, anon, direct write bypassing an RPC). Scope
counts to the fixture ids: on the real stack the seed accounts exist, in
PGlite they do not.
4. `pnpm --filter @faunosteo/supabase test:run` (PGlite, seconds), then
`pnpm db:reset && pnpm db:test` on the real stack.
5. `pnpm db:types` and commit `packages/supabase/src/database.types.ts`.
@@ -109,8 +111,10 @@ pnpm db:types # regenerate packages/supabase/src/database.types.ts (loc
pnpm db:types:check # CI: fail on any diff
```
The schema-types test checks tables, columns, enum labels and RPC argument
names against the migrated schema, so a stale file fails before CI.
The CLI emits unformatted TypeScript; both scripts pipe it through Prettier
(repo config) so the committed file is stable byte for byte. The schema-types
test checks tables, columns, enum labels and RPC argument names against the
migrated schema, so a stale file fails before CI.
## 7. First platform owner in a real environment