GeezerVison is showing github.com — design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 · Issue #5695 · developing-today/code
design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695Labels epic/turso-cloudflareEpic: epic/turso-cloudflare (fleet reprioritization 2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item DescriptionDesign scope only — no data moves in this issue's first pass. Gated on Drew's answer to §9.4 Q2.
What moves
- From: Supabase (
muse-dev2) — ingest source registries sources in ainventory (42 rows), automation (2), engineering (2), finance (1), home (1), research (1), ideas (3), plus public.muse_notes (2 rows)
- To: Cloudflare D1 — 8 tables, 54 live rows total
Why
These are the project's only genuinely KV/config-shaped tables: a handful of read-mostly rows each, no transactions, no joins that matter, no FKs except ideas.sources' single inbound FK from ideas.ideas (which is itself a → Turso candidate). Under the §9 placement rule, tiny edge-shaped configuration/state does not need a relational engine. public.muse_notes (2 rows, no FKs, no views, no evidenced relational consumer) is the cleanest D1 shape in the project.
Design doc: §9 of doc/2026-11-04T21-27-34Z_design_atlas_scaler_revision/ (PR #5667, addendum PR #5689).
Risks / the honest counter-argument
- 54 rows is arguably too small to justify a third data platform: §9.4 Q2 asks Drew whether D1 is wanted at all here, versus folding the
sources registries into the Turso staging tier alongside their domains (the sheet-domain migration issue) and reserving D1 for genuinely edge-consumed state. This issue should not proceed past design until Q2 is answered.
sources rows are read by the ingest pipelines at run start; if ingest moves to Turso staging but config moves to D1, ingest gains a cross-platform read — the design must weigh that against the cleaner taxonomy.
muse_notes' consumers are unevidenced (possibly ad-hoc/manual) — confirm before moving.
Sketch of steps
- Get Drew's Q2 ruling (§9.4).
- If D1: design one D1 database with per-domain registry tables + a notes table; define the read path for ingest jobs (Worker binding vs HTTP API) and the edit path (who writes config, how).
- Copy the 54 rows, dual-read during one ingest cycle per domain, flip, and retire the Postgres copies with the domain migrations.
- If not D1: close this issue and record the fold-into-Turso decision in the design doc instead.
Links: design doc PR #5667 · addendum PR #5689 · tracking dezren39/hatch-personal#21 Activitydezren39 commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 Agent note · escalated
Triage findings (verified fresh this shift)
- Issue design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 is OPEN with no comments before this shift's notes, no hard-stop labels (
held, user/owned, do-not-merge, do-not-auto-edit all absent), and no competing or superseding PR — PR docs: Scaler-era Atlas/Turso data architecture revision #5667 and PR docs: Supabase placement audit addendum (§9) — what moves out of Postgres #5689, the design doc and its §9 addendum, are both MERGED, so the design this issue would implement from is current on main.
- The gate is real and unanswered: §9.4 Q2 of the merged design doc (
doc/2026-11-04T21-27-34Z_design_atlas_scaler_revision/, verified on current main via the GitHub API) asks Drew to confirm D1 is wanted at all for this config. I searched for a ruling before escalating: no answer in the design doc, no comments on issue design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695, and no ruling in the sibling §9 issues (issue design: move agent append streams (agent.events, agent.quota_records) from Supabase to Turso staging #5690, issue design: move agent mirror_* analytics (20 tables) from Supabase to Turso #5691, issue design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692, issue design: move ci.events webhook ledger from Supabase to Turso staging #5693). Issue design(id): serverless edition storage — D1 vs Turso vs both for id on Cloudflare Workers #5681 (D1 vs Turso for id edition storage) and issue decision(atlas): layer separation — Turso PITR is DB disaster recovery, corpus retention lives in Atlas #6043 (Atlas layer-separation decision) are different scopes and do not answer Q2 for the sources registries / muse_notes.
- Everything else in the packet checks out: 8 tables, 54 live rows (seven
sources registries totalling 52 rows plus public.muse_notes at 2 rows), design-scope only, no data moves in the first pass either way.
The decision Drew is being asked for (§9.4 Q2)
What it is: whether the tiny config/KV tables — the ingest sources registries in ainventory/automation/engineering/finance/home/research/ideas plus public.muse_notes — move from Supabase to Cloudflare D1, or somewhere else.
- Option A — Yes, D1: issue design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 proceeds to design one D1 database with per-domain registry tables plus a notes table, defines the ingest read path (Worker binding vs HTTP API) and the config edit path, then copies the 54 rows with a dual-read cycle before retiring the Postgres copies. Ramification: a third data platform enters the placement taxonomy for 54 read-mostly rows, and if ingest staging moves to Turso while its config sits in D1, every ingest run gains a cross-platform read at startup.
- Option B — No D1 here: close issue design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 as decided-against, fold the
sources registries into the Turso staging tier alongside their domains (the issue design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692 sheet-domain migration), move muse_notes with the same fold or leave it in Postgres, reserve D1 for genuinely edge-consumed state, and record the decision in the design doc. Ramification: one fewer platform to operate for config of this size; ingest reads its config from the same tier as its staging data.
My recommendation: Option B. 54 rows do not justify a separate platform's operational surface (provisioning, access paths, backup story) when the Turso staging tier is already landing for the domains these registries belong to, and Option B avoids the cross-platform ingest read Option A creates. The one piece worth a second look either way is muse_notes — its consumers are unevidenced (possibly ad-hoc/manual), so whoever picks this up after the ruling should confirm its readers before moving it anywhere. dezren39 commented on Nov 14, 2026 🤖 Agent note · triaged (re-triage, unblock-all release)
Triage findings (verified fresh this shift)
- Issue design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 is OPEN. Drew's §9.4 Q2 ruling (2026-11-06) is recorded on this issue: D1 gets a real home, scoped as a pilot. The D1 pilot is complete — D1 database
fleet-config (uuid 71995a94-7184-4d69-a730-ff7604df02f1) holds all 54 rows (49 initial + 5 remainder loaded from the 2026-11-06 backup dump), verified 54/54 by independent script on 2026-11-07.
- The previous escalation (lane code-w, 2026-11-05) is now resolved: Q2 is answered and the pilot executed. Removing
user/escalated.
- Remaining work: step-3 cutover tail (dual-read during one ingest cycle per domain + retiring Postgres copies) rides the domain migrations — blocked on design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692 (sheet-derived domain staging, currently in-progress) and the sibling §9 migration issues. No actionable implementation work exists in this issue independent of those.
- Design doc §9.4 Q2 in
doc/2026-11-04T21-27-34Z_design_atlas_scaler_revision/ still reads as open; Drew's ruling is recorded here and in the issue comments. A doc-update to close Q2 in the design doc is a follow-up (not in this triage's scope).
- No competing or superseding PR; no hard-stop labels.
Routing
dezren39 commented on Nov 14, 2026
Agent note — task 16917 completed as triaged: existing triage stands (lane code-d)
dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged (bulk-intake concurrence) — Q2 ruled, D1 pilot complete; cutover tail rides issue #5692
- Agent: queue worker (repo-worker-code), lane code-e
- Task: task 18349 — bulk-intake triage of issue design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695
- Fresh verification (2026-11-17, this run): issue design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 OPEN,
status/triaged present, no hard-stop labels. Gate/routing issue design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692 verified OPEN this run (its labels are shown in this run's check; it remains the in-progress head of the domain migrations).
- Triage of record stands: task 10131 (2026-11-14, confirmed same day by task 16917) — Drew's §9.4 Q2 ruling (2026-11-06: D1 gets a real home, scoped as a pilot) is answered, and the D1 pilot is complete: database
fleet-config holds all 54 rows (49 initial + 5 remainder from the 2026-11-06 backup dump), verified 54/54 by an independent script on 2026-11-07. The earlier user/escalated state was resolved and removed at that triage.
- Remainder (unchanged, already routed): the step-3 cutover tail — dual-read during one ingest cycle per domain + retiring the Postgres copies — rides the domain migrations headed by design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692 and the sibling §9 migration issues. No implementation work exists in design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 independent of those, and a new follow-on here would duplicate the design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692 routing.
- Verdict: triaged. Issue design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 stays OPEN until the design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692-headed migrations carry the cutover tail.
dezren39 commented on Nov 24, 2026 Lane code-f claim/premise check for task 21662: Drew's §9.4 Q2 ruling and the 54/54 D1 pilot completion are already recorded on this issue; the prior triage routes cutover to #5692 and sibling migrations. The assigned acceptance is distinct: an explicit dated nine-point design for the remaining tiny config/KV cutover, linked here. I found no competing open PR/claim in the issue tail; proceeding with a design-only record, without implementation or data movement. dezren39 commented on Nov 24, 2026 Design slice complete: Tiny config tables: D1 cutover design — nine-point design-only record, landed in PR #14113 (merge commit 99c4efa). It distinguishes the completed 54/54 pilot from remaining consumer cutover; no production data moved or runtime behavior changed. dezren39 commented on Nov 24, 2026
🤖 Agent note · second-pass verify-and-route (pass 2, task 21837)
- Agent: queue worker (repo-worker-code), lane code-f
- Task: coverage-reconciliation second pass — verify fresh, size remaining work, route follow-on packet(s) or close with evidence
Fresh verification (2026-11-24, this run)
- Issue design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 is OPEN:
kind/design, status/triaged, epic/turso-cloudflare, task/triage. No hard-stop labels (held, user/owned, do-not-auto-edit all absent).
- §9.4 Q2 gate: ANSWERED. Drew's 2026-11-06 ruling (recorded on this issue) gives the 8 D1-class tables a real D1 home, scoped as a pilot.
- D1 pilot: COMPLETE. D1
fleet-config (71995a94-7184-4d69-a730-ff7604df02f1) holds all 54 rows, verified 54/54 by independent script 2026-11-07.
- Nine-point cutover design: LANDED since the last triage (2026-11-17). PR docs(#5695): design tiny config D1 cutover #14113 MERGED 2026-11-24T05:56:49Z (merge
99c4efa512a), verified ancestor of origin/main; record at doc/2026-11-24T05-52-04Z_design_tiny-config-d1-cutover/. Design-only, no production data moved.
- Cutover tail (step 3: per-domain consumer cutover + retiring Postgres copies) rides the domain migrations headed by design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692 — verified OPEN,
status/blocked + queue/blocked, this run.
Verdict
No new follow-on packet from this pass — filing one would duplicate existing routing: the design work this issue needed is landed (#14113), and the remaining cutover tail is already routed under #5692 and the sibling §9 migration issues. Per the one-queue filing rule, recording here why nothing is filed/enqueued instead. Issue #5695 stays OPEN until the #5692-headed migrations carry the cutover tail; no independent implementation work exists in #5695. developing-today-fleet commented on Nov 26, 2026 🤖 Agent note (lane code-j, 2026-11-26, triage task 24856): design landed, tail routed — no packet.
developing-today-fleet commented on Nov 27, 2026 🤖 Agent note (lane oc-code-02, 2026-11-27, triage task 25331): triaged — design landed, tail routed, no packet.
developing-today-fleet commented on Nov 27, 2026
Agent note — 1922-D, queue task 25749 for issue #5695: triaged — gate answered, pilot complete, design landed, tail routed and owned elsewhere.
- Fresh verification (this pass): issue design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 OPEN (kind/design, status/triaged, epic/turso-cloudflare, task/triage; no hard-stop labels). §9.4 Q2 gate ANSWERED (Drew's 2026-11-06 ruling on record: D1 gets a real home, scoped as a pilot). D1 pilot COMPLETE (54/54 rows in fleet-config, verified 2026-11-07). Nine-point cutover design LANDED: PR docs(#5695): design tiny config D1 cutover #14113 re-read this pass — MERGED 2026-11-24T05:56:49Z.
- Cutover tail ownership (re-checked this pass): the step-3 tail rides design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692, which is OPEN with work/assigned + status/blocked + queue/blocked, and its execution vehicle is umbrella Supabase → Turso migration — merged wave plan (executes #5690–#5693) #6581 (OPEN, status/in-review, priority/high, already carrying the migration waves; design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692's own triage task 25730 was parked today until Supabase → Turso migration — merged wave plan (executes #5690–#5693) #6581 closes or its review slices land). The tail is assigned and sequenced — not unowned, and not a small fix available to this lane.
- Verdict: no follow-on packet — filing one would duplicate the design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692/Supabase → Turso migration — merged wave plan (executes #5690–#5693) #6581 routing (concurs with tasks 21837, 24856, 25331). design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 stays OPEN until the tail lands. Queue task 25749 parked with that wake condition.
MetadataMetadataepic/turso-cloudflareEpic: epic/turso-cloudflare (fleet reprioritization 2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item DevelopmentNo branches or pull requestsIssue actions
|