Skip to content

DIY backup api transport: platform schemas (auth/storage/realtime/vault) deliberately excluded — recorded decision #6935

Open

Description

@dezren39

Recorded decision: DIY backup api transport deliberately omits the Supabase platform schemas

Filed by Lane E (2026-11-07) while killing the backup schema-list trap at the source (#5695 / #6619), so the partial list is a recorded decision rather than a silent gap a future audit can misread.

Facts (verified against the actual 2026-11-06T10:47:11Z pgdump, parsed directly)

The dump contains 16 schemas with COPY tables. The backup config schemas list (now 12) covers every fleet-owned schema: public, agent, ci, ideas, ainventory, engineering, automation, finance, home, research, alerts, cron.

The four schemas NOT in the list are Supabase platform schemas. In the dump, every user-facing table in them is empty; the only nonzero tables are platform bookkeeping:

schema nonzero tables in dump user tables
auth auth.schema_migrations (82) all 0 rows (users, sessions, identities, ...)
storage storage.migrations (80) all 0 rows (buckets, objects, ...)
realtime realtime.schema_migrations (91) subscription 0 rows
vault (vault.secrets 0) 0 rows

Semantics (the part that was misread before)

  • The pgdump transport ignores the schemas list entirely (pg_dump runs with no --schema flag; full-database dumps) — platform schemas ARE in every pgdump backup regardless of the list.
  • The api transport (sandbox) filters its DDL/row/sequence exports by the list, so api-transport backups do not carry these four schemas. That is deliberate: they are platform-managed, hold no fleet data, and are left behind at decommission per the migration program disposition.

Decision

Keep the exclusion. If a future change ever needs api-transport coverage of a platform schema, amend the list and this record in the same pass — do not infer coverage from the list for pgdump backups, and do not treat the api list as the backup-coverage statement for the fleet.

Acceptance criteria

  • This recorded decision stays the reference for backup schema coverage: the api transport list (12 fleet-owned schemas) deliberately excludes the Supabase platform schemas auth/storage/realtime/vault.
  • Any future change that needs api-transport coverage of a platform schema amends the list and this record in the same pass.
  • No code change is required by this issue itself; it closes when the decision record is acknowledged in the backup/migration documentation it informs.

Activity

  1. developing-today commented on Nov 7, 2026

    @developing-today
    Contributor
  2. added
    kind/docsDocumentation improvement or addition
    priority/lowNice to have; do when convenient
    effort/xsTrivial: expected under 30 minutes of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 7, 2026
  3. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    Intake review

  4. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  5. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  6. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  7. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    and removed on Nov 8, 2026
  8. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    Agent note — handed off (task 11433)

  9. 102 remaining items

  10. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  11. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  12. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off (second handoff)

  13. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  14. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  15. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  16. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  17. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 - task 11433 (queue repo-health-code-pilot), lane code-t - stage: handed_off - #6935 revalidated fresh via REST: open, no hard-stop labels. Execution lane opencode; handed off to laptop opencode claimant and parked 1200s. Next: claimant works task 11433 to terminal state.

  18. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  19. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 - task 11433 (queue repo-health-code-pilot), lane code-t - stage: handed_off - #6935 revalidated fresh via REST: open, no hard-stop labels. Execution lane opencode; handed off to laptop opencode claimant and parked 1200s. Next: claimant works task 11433 to terminal state.

  20. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  21. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  22. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    task: 11433
    lane: code-b
    state: handed_off
    summary: Claimed by lane code-b 2026-11-09T01:26Z; execution lane assignment is opencode. Issue #6935 verified OPEN fresh, no hard-stop labels; existing branch queue/11433-6935-diy-backup-api-transport and worktree ~/git/fleet/11433 noted from prior progress. Handing off per runbook 1b; parked 1200s. This was the 20th and final task of lane code-b's bundle this shift.
    next: opencode claimant launches bound session for task 11433 (triage of #6935 DIY backup api transport schemas).

  23. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  24. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    Triage verdict: CONFIRMED

    Re-verified against current �[1morigin/main�[0m (a97c23c, 2026-11-08): �[1mdoc/fleet/queue-turso-cutover.md:358-363�[0m still records the four Supabase platform schemas (41 tables) as RETIRE with no fleet consumer; �[1mdoc/2026-10-11_design_atlas_scaler_revision/...:631�[0m carries the same disposition. The issue thread's pgdump-vs-api transport distinction is consistent: no code change is warranted.

    The acceptance acknowledgment is still outstanding: �[1mdoc/backups/�[0m is absent from current main, and issue #5976 remains open for the backup docs migration (task 10506). Keep #6935 open until that migration lands and its backup docs cite this decision; then close #6935 pointing to the canonical documentation. No small_fix packet is appropriate for this decision-only triage.

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

    effort/xsTrivial: expected under 30 minutes of workkind/docsDocumentation improvement or additionmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/lowNice to have; do when convenientqueue/parkedQueue task is parked (waiting on CI, time, or an event)status/parkedDeliberately paused with a recorded resume conditionwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions