Objective
Turn the recovery-gated repository scaffold into the canonical, reproducible database contract and release db-v1.0.0.
Hard prerequisite
Do not create, apply, repair, or tag the baseline until diese-tech/sal-site#156 proves backup/PITR recovery in a scratch Supabase project and captures the production schema plus migration ledger.
Scope
- confirm production migration
025 and the deployed behavior from site PR #170
- capture and preserve the production schema and migration ledger
- reconcile the restored schema with both consumer expectations
- create one 14-digit canonical schema-only baseline and deterministic non-production seed fixtures
- prove blank
supabase db reset, database lint, RLS assertions, Realtime assertions, and a normalized empty local-versus-restored-production diff
- use the protected production-plan workflow to repair only captured historical ledger entries after drift is empty
- require exact ledger parity and an empty push dry-run
- generate
generated/database.types.ts and contract.json
- release and tag
db-v1.0.0 only after protected production verification
Acceptance
- recovery evidence is linked privately and the measured RPO/RTO are recorded
- a blank database rebuilds from the single active migration sequence
- contract hashes and generated types verify in CI
- production migration history equals the released contract with no pending push
- old ledger export is preserved for rollback evidence
- no production identities, submissions, or audit data enter Git
Corrections must be forward migrations; never execute equivalent baseline DDL against the existing production schema.
Objective
Turn the recovery-gated repository scaffold into the canonical, reproducible database contract and release
db-v1.0.0.Hard prerequisite
Do not create, apply, repair, or tag the baseline until
diese-tech/sal-site#156proves backup/PITR recovery in a scratch Supabase project and captures the production schema plus migration ledger.Scope
025and the deployed behavior from site PR #170supabase db reset, database lint, RLS assertions, Realtime assertions, and a normalized empty local-versus-restored-production diffgenerated/database.types.tsandcontract.jsondb-v1.0.0only after protected production verificationAcceptance
Corrections must be forward migrations; never execute equivalent baseline DDL against the existing production schema.