DB-sanity: Drizzle/pooler, schema-checks, system_events. Alleen bestaande scripts en commands.
“Nuclear Truth” = PostgreSQL (Supabase). Gebruik deze bestaande entrypoints (repo-root tenzij anders vermeld).
visitor_live_snapshot op chat_conversations): npm run verify:chat-schema-0106 (opt-in; strict: verify:chat-schema-0106:strict voor CI)public-tabellen + actor_dialects kolommen): apply npm run db:apply:0140-schema-audit, verify npm run verify:schema-0140 (strict: verify:schema-0140:strict)npx tsx scripts/test-db.tsnpx tsx scripts/quick-db-check.tsnpx tsx scripts/check-db-schema.ts (en varianten zoals check-db-schema2.ts indien nodig)relation "public.…" does not exist tijdens migratie: vóór “verkeerde URL” → .cursor/rules/100-SUPABASE-ARCHITECTURE.mdc §3c (read-only to_regclass + sibling op dezelfde DATABASE_URL).apps/web: npm run audit:forensic → scripts/quick-check.tsnpx tsx scripts/check-db-orders.ts - pas toe in context van de vraagnpx tsx scripts/query-system-events-schema.tsnpx tsx scripts/query-system-events-live.tsnpx tsx scripts/query-system-events-1h.ts / query-system-events-5h.tsnpx tsx scripts/query-critical.ts / query-real-errors.tsscripts/core/diagnostics/*, integrity-handshake.ts, lexicon-handshake.ts, forensic-atomic-truth-scan.ts, forensic-data-audit.ts - ontbreken. Vervang door bovenstaande of nieuw script..cursorrules / 100-SUPABASE-ARCHITECTURE.mdc.200-CODE-INTEGRITY.mdc.