Skip to content

[SAL-DB-01] Pin db-v1 contract and generated Supabase types in sal-site #175

Description

@diese-tech

Dependency

Blocked by #156 and #172 until diese-tech/sal-database publishes verified db-v1.0.0.

Required outcome

  • Vendor the released generated/database.types.ts under the site source tree.
  • Commit db-contract.lock.json with repository, release, full commit, migration head, and types SHA-256.
  • Add sync-db-contract and CI drift verification against the exact remote commit.
  • Type every Supabase client as SupabaseClient<Database>.
  • Replace manual row casts with generated helpers and runtime validation for JSON payloads.
  • Remove active site migration ownership only after both consumers pin v1.

Acceptance

Vendored bytes and hashes match the immutable release and a deliberate drift fails CI. No Git submodule or floating branch is used.

Audit ID: SAL-DB-01.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions