GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso · Issue #5692 · developing-today/code

design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692

New issue
Copy link
New issue
Copy link
Todo
Todo
design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso#5692
Copy link
Labels
design/supabase-turso-migrationDesign: supabase-turso-migration - all issues of this effort carry itepic/turso-cloudflareEpic: epic/turso-cloudflare (fleet reprioritization 2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingqueue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state
Milestone
Turso + Cloudflare

Description

@dezren39
dezren39
opened on Nov 4, 2026
Issue body actions

Design scope only — no data moves in this issue's first pass.

What moves

  • From: Supabase (muse-dev2) — the sheet-derived domain data, 19 tables (~97k live rows, ~56 MB):
    • Staging: sheet_rows + ingest_batches in ainventory (84,599 rows, 43.3 MB), automation, engineering, finance, home, research (staging total across domains incl. ainventory: 88,561 rows)
    • Curated: events in ainventory's sibling domains automation, engineering, finance, home, research, plus engineering.records and ideas.ideas (8,385 rows)
  • To: Turso — raw rows to the §4 staging tier (partitioned by ingest batch/work unit), curated rows to the core tier as a query/search corpus

Why

All of it is sheet-derived and rebuildable from the source sheets: raw sheet_rows are jsonb row blobs keyed by import_batch (textbook staging), and the curated events/records/ideas rows are dedupe-keyed, insert-mostly, read by scan. The domain schemas carry zero foreign keys (verified in the §9 audit) — there is no relational integrity for Postgres to protect. What stays in Postgres is only each domain's relational core where one exists (e.g. ainventory's models/measurement_events/benchmark_results core and its views stay KEEP, §9.2).

Design doc: §9 of doc/2026-11-04T21-27-34Z_design_atlas_scaler_revision/ (PR #5667, addendum PR #5689).

Risks

  • ainventory's Postgres views (v_latest_import_batch) touch staging tables — view consumers must be mapped before staging moves; the ainventory KEEP core's views over its own tables are unaffected.
  • Ingest writers are scheduled fleet jobs; cutover must be per-domain so a failure in one domain's ingest does not stall the others.
  • Dedupe semantics (dedupe_key upserts) must be preserved exactly in the Turso staging schema, or re-ingests will duplicate curated rows.

Sketch of steps

  1. Per-domain consumer/writer inventory (ingest jobs, views, report readers).
  2. Define the shared staging schema (versioned, §4.1) once for all domains: sheet_rows/ingest_batches shape + curated-row shape with dedupe_key.
  3. Pilot with the smallest domain (home: 63 live rows), then finance, research, engineering, automation, and ainventory staging last (largest).
  4. Per domain: dual-ingest → count/dedupe diff → flip readers → stop Postgres ingest. Postgres copies stay read-only for one ingest cycle before any drop decision (separate approval).

Links: design doc PR #5667 · addendum PR #5689 · tracking dezren39/hatch-personal#21

Activity

Next
  1. dezren39
    added a commit that references this issue on Nov 4, 2026

    docs: link the §9 migration design issues (#5690, #5691, #5692, #5693, …

    6a3b53c
  2. github-actions
    assigned
    dezren39
    on Nov 5, 2026
  3. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    Triage outcome — task 10128 (2026-11-05, lane code-p)

    Verdict: CONFIRMED as scoped — design basis verified on current main; first pass (steps 1–2) routed as a follow-up task. No data moves in this pass.

    Fresh verification (2026-11-05): issue #5692 OPEN, labels task/triage + queue/queued only — no held / user/owned / do-not-merge / do-not-auto-edit labels, no prior comments. It is the sole tracking issue for this migration: searches for the move return only #5692, and no PR for Turso staging exists. Nothing has started.

    Design basis checks out: design PR #5667 (Scaler-era Atlas/Turso revision) and addendum PR #5689 (§9 Supabase placement audit) are both MERGED (2026-11-05T01:52Z / 01:48Z), and §9 is present on current main 04f78696ab at doc/2026-11-04T21-27-34Z_design_atlas_scaler_revision/ — including the placement rule (§9.1) and the per-table move table (ainventory staging sheet_rows/ingest_batches 84,599 rows → Turso; the five sheet domains' staging 3,962 rows → Turso), matching this issue's numbers.

    One tension the inventory step must resolve: this issue states the domain schemas carry zero foreign keys, and §9's summary says the sheet-derived domain schemas have none — but §9's own audit totals record FKs in engineering (2) and ideas (1), the two domains whose curated tables (engineering.records, ideas.ideas) are in this move's scope. The FKs presumably sit in those domains' relational cores, not the sheet-derived tables — but step 1 must name exactly which tables they touch before the shared staging/curated schema is fixed, because a curated table carrying an FK changes its move design.

    Ordering / blockers (recorded per the issue's own sketch):

    • First pass = step 1 (per-domain consumer/writer inventory: ingest jobs, views incl. ainventory's v_latest_import_batch, report readers; plus the FK mapping above) + step 2 (one shared versioned staging schema per §4.1, dedupe_key upsert semantics preserved exactly). Design deliverables only.
    • Pilot order stands: home (63 rows) → finance → research → engineering → automation → ainventory staging last.
    • The eventual Postgres drop decision is a separate approval (the issue states Postgres copies stay read-only for one ingest cycle first) — nothing in the follow-up task authorizes data moves or drops.

    Routing: follow-up task enqueued for steps 1–2 as a design deliverable (inventory + shared staging schema note). Per-domain pilots are separate later tasks, spawned from that note.

    agent-note:v1
    {"kind": "triage", "task": 10128, "issue": 5692, "state": "done", "outcome": "confirmed_scoped_first_pass_routed", "evidence": "PR #5667/#5689 MERGED; section 9 on main 04f7869; sole tracking issue; FK tension in engineering/ideas flagged for step 1"}

  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  6. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-m
    • Session / ID: task 10486
    • Found via: queue claim
    • Task: Issue design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692 steps 1-2 (per-domain consumer/writer inventory + shared Turso staging schema, no data moves) — handed off to opencode execution lane; claimant launches the bound opencode session
    • Expectation: m — inventory and staging schema produced per the task packet, no data moves
    • Links: design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692
  7. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 5, 2026
  8. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-i
    • Session / ID: task 10486
    • Found via: queue claim
    • Task: Triage issue design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692 — assigned_lane=opencode, handed off to opencode claimant per §1b; parked 1800s for claimant launch
    • Expectation: claimant launches bound opencode session to triage at current main
    • Links: n/a
  9. 277 remaining items

    Load more actions
  10. dezren39
    added
    work/assignedQueue worker lifecycle state
    on Nov 17, 2026
  11. dezren39
    removed their assignment
    on Nov 20, 2026
  12. dezren39
    added a commit that references this issue on Nov 24, 2026

    Merge pull request #13930 from developing-today/oc-code-01/design-569…

    ac31ab4
  13. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Nine-point design record delivered and merged in PR #13930: Sheet-derived staging and curated rows: Turso design addendum.

    It covers the 19-table scope, alternatives and contracts, ordered implementation slices with acceptance criteria, rollout/recovery, verification oracles, and open questions with deciders. It treats Turso fleet-platform as the working default, records the newer D1 proposal as unresolved, and authorizes no production migration or data movement.

  14. dezren39
    added a commit that references this issue on Nov 24, 2026

    docs(6581): Slice 1 fresh-inventory gate manifest for 19 sheet tables

    2cb2c1e
  15. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Triage verdict — oc-code-01, 2026-11-24 (queue task 19880)

    Fresh check against origin/main:

    • Design: resolved. The nine-point design addendum for sheet-derived staging and curated rows landed in PR docs: complete nine-point design for #5692 #13930 (merged), with the 19-table scope, ordered slices, and verification oracles. The 2026-11-17 dependency note is superseded by it.
    • Remaining: execution gated on Supabase → Turso migration — merged wave plan (executes #5690–#5693) #6581 (Supabase to Turso merged wave plan). Its Slice 1 inventory gate landed as PR docs(6581): Slice 1 fresh-inventory gate manifest for 19 sheet tables #14078 (merged). The execution itself stays on Supabase → Turso migration — merged wave plan (executes #5690–#5693) #6581.

    No new packet is filed here, because #6581 already carries the execution waves. This issue can be closed as designed, with #13930 as the record. Closing is left to the owner.

    No code changed in this pass.

  16. dezren39
    added a commit that references this issue on Nov 24, 2026

    oc-code-04 slice2: schema/idempotence verification for #6581/#5692 (d…

    a1c082b
  17. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    agent-note:v1
    Agent: felix (Muse lane, 2026-11-25)
    State: verified-blocked (partial) — graph hygiene audit #14863, slice 6

    Fresh check of the blocked labels: the Wave 1 shadow copy closed out complete on 2026-11-06 (18 tables, parity exact). What remains is the consumer cutover (ingest/view repoint), which is this issue's own next step — except for the four staging tables it shares with the D1 pilot (ideas_sources, public_muse_notes, ainventory_sources, engineering_sources): their Turso copies are dropped only when the #5695 D1 pilot verifies, and #5695 is itself gated on Drew's §9.4 Q2 answer. So status/blocked is accurate for that portion; the rest is unblocked own-work. Recording the distinction so the labels are not read as a single unnamed dependency. Refs #14863

  18. dezren39
    added a commit that references this issue on Nov 26, 2026

    Merge pull request #14508 from developing-today/oc-code-04/6581-slice…

    e704e16
  19. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    Agent note — task 24858 (lane code-f): verdict TRIAGED, no new packet.

    Verified fresh 2026-11-26. Standing disposition (tasks 15206/16836/18346/19880 concurring) holds with one material state change:

    • Design discharged: PRs docs: Scaler-era Atlas/Turso data architecture revision #5667, docs: Supabase placement audit addendum (§9) — what moves out of Postgres #5689 (original §9 design + addendum) and docs: complete nine-point design for #5692 #13930 (nine-point design addendum) all MERGED.
    • Execution vehicle moved: Supabase → Turso migration — merged wave plan (executes #5690–#5693) #6581 is now OPEN status/in-review (was status/blocked), priority/high, work/assigned — Slice 1 inventory gate landed via merged PR docs(6581): Slice 1 fresh-inventory gate manifest for 19 sheet tables #14078. Execution stays on Supabase → Turso migration — merged wave plan (executes #5690–#5693) #6581.
    • Remaining gates: consumer cutover (ingest/view repoint); four staging tables shared with the D1 pilot drop only when design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 verifies (design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 OPEN, status/triaged). design: move agent mirror_* analytics (20 tables) from Supabase to Turso #5691 CLOSED.
    • Labels note: status/blocked + queue/blocked on this issue partly reflect the Supabase → Turso migration — merged wave plan (executes #5690–#5693) #6581 gate, which has since moved to in-review. Left untouched for the assignee/owner — the D1-pilot-gated portion may still justify blocked, and this pass makes no label changes on a shared epic tracker.
    • Verdict: no actionable fleet work in this packet, no duplicate design/migration work belongs here. No new packet filed — Supabase → Turso migration — merged wave plan (executes #5690–#5693) #6581 already carries the execution waves. Issue stays OPEN.
  20. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    Triage verdict (task 25336, 2026-11-27): design resolved; execution already routed; no duplicate packet.

    Fresh verification: design/addendum is merged (PRs #5667, #5689, #13930). Execution vehicle #6581 remains OPEN, status/in-review, priority/high, and already carries the Supabase→Turso migration waves. The four shared staging tables remain gated on #5695, which is OPEN/status/triaged. This issue's remaining consumer cutover and D1-shared-table constraints belong to the existing execution path; no new work packet or label changes are needed. Keep #5692 open as the migration tracker; no data move or setting change performed in this triage.

  21. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions
    Triage (lane any-n, task 25730, 2026-11-27): **real, in-flight under umbrella #6581; not a small fix, parking the triage packet.** Fresh state: #5692 OPEN (`status/blocked`, `queue/blocked`, `work/assigned`); umbrella #6581 OPEN (`status:in-review`). Wave 1 shadow copy completed 2026-11-06 with exact parity (97,178 rows); remaining step is consumer cutover (ingest/view repoint) tracked under the umbrella. No new fix packet: the work is assigned and sequenced. Task 25730 parked until #6581 closes or its review slices land, then the cutover remainder routes from here.
  22. developing-today commented on Nov 27, 2026

    @developing-today
    developing-todayBot
    on Nov 27, 2026 – with developing.today
    Contributor
    More actions

    Recheck (task 25730, any-o, 2026-11-27): #5692 remains OPEN and its design scope is discharged (PRs #5667, #5689, #13930 merged). Umbrella #6581 remains OPEN/status:in-review and already owns the migration waves; its consumer cutover and shared-table constraints remain the execution path. No new fix packet or data movement belongs in this triage, and I made no label changes to this shared tracker. Parking this task until #6581 closes; then route any residual #5692 acceptance from its completion record. Prior triage note remains applicable; this is a fresh gate check only.

  23. dezren39 commented on Nov 28, 2026

    @dezren39
    dezren39
    on Nov 28, 2026
    MemberAuthor
    More actions

    Lane 0337-F (alpha DRIVE queue lane, 2026-11-28) — gated stand-down, park-back.

    Fresh premise + ownership check (issue + all 91 comments read; states re-read via gh GraphQL this run):

    • design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692 OPEN, labels status/blocked + queue/blocked + work/assigned, updatedAt 2026-11-27T01:59:52Z — unchanged since the last park of this task.
    • Design scope is discharged: PRs docs: Scaler-era Atlas/Turso data architecture revision #5667, docs: Supabase placement audit addendum (§9) — what moves out of Postgres #5689, docs: complete nine-point design for #5692 #13930 all merged (standing verdict, tasks 15206/16836/18346/19880/24858/25336 concurring).
    • Execution umbrella Supabase → Turso migration — merged wave plan (executes #5690–#5693) #6581 OPEN, status:in-review, updatedAt 2026-11-27T01:51:35Z — still owns the migration waves / consumer cutover.
    • Sibling design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 OPEN, updatedAt 2026-11-27T01:55:09Z — the four shared staging tables still gate on its D1 pilot.

    No new work is workable in this triage packet and no duplicate migration work belongs here. Parking queue task 25730 back with the same ready condition: when #6581 closes, inspect its completion record and route any residual #5692 acceptance.

  24. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 28, 2026 – with developing.today fleet
    Contributor
    More actions

    Triage revalidation — lane 0907-J, queue task 25730 (2026-11-28)

    Fresh firsthand checks: #5692 OPEN (labels status/blocked, queue/blocked, work/assigned; all 92 comments reviewed, latest = 0337-F park note 2026-11-28T09:43Z, comment 7237420755). Design scope discharged (PRs #5667, #5689, #13930 merged). Umbrella #6581 re-read this lane: still OPEN, status:in-review, updated 2026-11-27T01:51:35Z — the park wake (issue_closed #6581) has NOT fired. Consumer cutover remains owned by #6581; no Git-API-scoped slice exists in #5692 itself.

    Disposition: re-parking task 25730, wake = #6581 closes, then route residual #5692 acceptance. No code changes.

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

    design/supabase-turso-migrationDesign: supabase-turso-migration - all issues of this effort carry itepic/turso-cloudflareEpic: epic/turso-cloudflare (fleet reprioritization 2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingqueue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      • Turso + CloudflareNo due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.