You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
impl(atlas/d1): provision the fleet-config D1 database + schema for the 8 config tables (#5695 follow-on 1) #17049
area/infraInfrastructure, deployment, and operationseffort/mMedium: expected under 1 day of workepic/turso-cloudflareEpic: epic/turso-cloudflare (fleet reprioritization 2026-11-12)priority/normalOrdinary priority (the default)
Follow-on 1 of #5695 (design: move tiny config/KV tables from Supabase to D1). Design record: the dated doc/ record for #5695 filed by lane 2007-L (D1 shape for the 8 tables, cutover + rollback) — read it before starting.
Scope
Provision the D1 home for the 8 config tables and land its schema as code:
Create one D1 database for fleet config (name per the design record) through the repo's existing Cloudflare provisioning path.
Land the schema migrations for the 8 tables: sources_ainventory, sources_automation, sources_engineering, sources_finance, sources_home, sources_research, sources_ideas, muse_notes — columns mirrored 1:1 from the Postgres originals under the design record's type-mapping rules.
First step is the column inventory: read information_schema.columns for the 7 sources tables + public.muse_notes on muse-dev2 and record the inventory on this issue. Any column whose Postgres type is not covered by the design record's mapping table stops the slice for a design amendment — do not improvise a mapping.
Acceptance criteria
Column inventory for all 8 tables recorded on this issue.
D1 database exists; its name and id recorded on this issue (ids are not credentials; tokens stay by name only).
Schema migrations for all 8 tables merged via PR and applied; a schema read-back (sqlite_master / PRAGMA table_info) matches the inventory under the mapping rules.
No data rows are copied in this slice (that is follow-on 2) and no consumer reads D1 yet.
🤖 Agent note · lane 0640-IG (Felix) — newcomer band validation: priority/normal concurred for #17049, #17050, #17051.
Filed minutes ago as the three chained follow-ons of #5695 (provision the fleet-config D1 + schema → copy + verify the 54 rows → dual-read, flip, retire). Bodies read firsthand. Each is an ordinary implementation slice in a planned programme — nothing broken, no deadline stated, no security or outage content — so the default band, priority/normal, is correct for all three as filed. Their execution gates are recorded in their own bodies (#17050 is a supervised data move; #17051 rides #17050); those gates do not change the intrinsic band under the #9199 model. Exactly one ratified band each; no change made.
Read firsthand: this issue and its chain siblings #17050 and #17051 (the three #5695 follow-ons, filed 02:34–02:35Z). Each carries exactly one ratified band, priority/normal — concurred for all three: planned implementation slices in a sequenced migration (provision → copy+verify → dual-read/flip), nothing broken, no outage, no external clock. Normal is the default band and it fits. No change made.
Taking #17049 (follow-on 1 of #5695): read the #5695 design record filed by lane 2007-L, record the column inventory for the 8 tables on this issue, provision the fleet-config D1 database through the repo's Cloudflare provisioning path, and land the schema migrations via PR. No data rows copied (follow-on 2's scope) and no consumer changes. Key: 2037-F
🤖 Agent note · lane 0640-IH (Felix) — newcomer band validation, 2026-11-29.
Priority validation 2026-11-29 (Felix): priority/normal concurred for #17049 and its two siblings filed in the same minute (#17050, #17051). Read #17049's body firsthand: a bounded D1 provisioning follow-on of #5695 (schema-as-code for the 8 config tables, design record already filed) — ordinary implementation work, the default band; nothing broken, nothing time-sensitive beyond the programme's own sequencing. The siblings are the same family's copy/verify and dual-read slices (titles + labels read; same shape). Exactly one ratified band each; no change.
Premise check — lane 2037-F (Archer, alpha DRIVE author lane, 2026-11-29): step 1 cannot execute — the source project no longer exists. Parking #17049 with the wake condition below; no schema authored.
The issue's first step is the column inventory: read information_schema.columns for the 7 sources tables + public.muse_notes on muse-dev2. I ran that query through the seat's canonical route (~/tools/supabase-exec.py, Management API) and verified the failure three ways, two of them fully independent:
Management API query → HTTP 404 {"message":"Resource has been removed"} for the vault's canonical project ref (supabase.muse-dev2.project-ref; ref shape verified by name only — 20 chars, prefix keihfc, suffix mzra; no credential values printed or recorded).
Same result from both secret stores: the Bitwarden copy (via bws, the tool's own fetch) and the fleet secrets broker copy (fleet secrets get, broker-first per the house route) agree on the same ref, and the management token's GET /v1/projects returns an empty list — the token sees zero projects.
Consequence for the #5695 chain: the design record (lane 2007-L, merged today) premises copying 54 live rows from muse-dev2, sourced from the 2026-11-04 placement audit. That database is gone, and no column-level DDL for these 8 tables exists anywhere in this repo (code search for the table names returns only the design record itself). Authoring the §3 schema without the live inventory would be exactly the improvisation the design's closed type-mapping contract forbids, and #17050's copy has no source to copy from. All three follow-ons (#17049, #17050, #17051) inherit this.
Wake condition (any one reopens this lane's work):
Historical source for the parked config-store chain: the Nov. 18 recovery record, Config-store reconciliation documents an existingfleet-config D1 with 54 records across these eight tables and a recovered backup with 57. At that read, 53 matched after timestamp normalization; the archive preserved the fuller source 41 note and source IDs 47, 51, 52. The operational Turso source 41 conflict was deliberately left untouched.
For the existing Archer workstream: please reconcile the plan in #17049–#17051 with this record before provisioning, copying or changing reads. Verify the current D1 identity, schema, per-table counts, normalized keys/hashes, consumers and preserved archive read-only. These are historical counts, not current state or permission to overwrite Turso. Do not recreate the removed Supabase project or provision a duplicate D1 on this premise; report any unresolved differences or destination decision before data changes.
Lane 2222-E (Archer, delta PRESS) — picked up the read-only reconciliation slice named in the owner comment above: verify the existing fleet-config D1 (identity, schema, per-table counts) against the 2026-11-18 recovery record (54 records across the 8 tables; archive copy 57) and record the result here. Strictly read-only: no provisioning, no data changes, no consumer changes. If the D1 read path is unavailable from this seat, the blocker will be named with evidence instead. Key: 2222-E
Lane 2222-E — read-only reconciliation of the existing fleet-config D1, per the owner request above. All reads executed firsthand this run (wrangler, account token by name only, strictly read-only).
Identity — the database already exists; do not provision a second one
Schema — all 8 tables present, deployed names differ from this issue's scope text
The pilot's deployed names are <domain>_sources / public_muse_notes, not the sources_<domain> / muse_notes names in the issue body (those are the retired Postgres-side names; the design record §"Data model" confirms the deployed names govern). DDL read back from sqlite_master this run:
ainventory_sources (id INTEGER PRIMARY KEY, name, kind, drive_file_id, drive_modified_at, import_batch, imported_at, note) — all TEXT besides id
automation_sources, engineering_sources, finance_sources, home_sources, research_sources — same 8 columns (id INTEGER, no PK constraint in DDL)
ideas_sources (id INTEGER PRIMARY KEY, name, kind, path, note, mirrored_at)
public_muse_notes (id INTEGER PRIMARY KEY, title, body, category, created_at)
This DDL is the column inventory of record: the Postgres original on muse-dev2 is deleted (lane 2037-F's evidence stands), so no information_schema inventory can ever be read from the source — the deployed DDL plus the design record's mapping is the only inventory that exists.
Counts — 54 rows, matching BOTH historical records exactly
Read this run, per table: ainventory 42, automation 2, engineering 2, finance 1, home 1, ideas 3, research 1, muse_notes 2 = 54 total.
Identical to the 2026-11-18 recovery record's D1 counts and to the design record's per-table pilot counts (42/2/2/1/1/3/2 + research 1).
ID sets read this run: ainventory ids 1–44 minus 29, 30 (42 rows; id 41 present); the backup-only ids 47, 51, 52 are absent from D1, exactly as the Nov 18 record describes (they live only in the recovery archive). No D1-only surprises observed at the key level.
The one acceptance item with no artifact anywhere is schema-as-code: no migration files for these 8 tables exist in the repo (search: only the recovery coverage JSON + design record mention the table names). Landing the deployed DDL as a migration record would close that gap without touching the database.
The live remainder of the chain is the consumer cutover (design slices 1–4), not data movement.
Priority validation 2222-E: priority/normal concurred. Claim released with this report; wake = chain-owner disposition on points 1–2. Key: 2222-E
Lane 2222-E — schema-as-code landed: PR #17068 MERGED (2026-11-30T04:54Z, merge 67ace80): pkgs/fleet-config/migrations/0001_fleet_config_schema.sql (deployed DDL captured verbatim, IF NOT EXISTS for from-scratch use) + pkgs/fleet-config/README.md. Full-diff read by this lane before merge; additions only.
Acceptance mapping against the reconciliation evidence (comment above):
Column inventory recorded on this issue — met in the only form that still exists: the deployed DDL for all 8 tables (the Postgres information_schema source was deleted with muse-dev2; that impossibility is recorded with evidence, not papered over).
Schema migrations merged via PR and read-back matches — met: PR docs(fleet-config): capture the deployed fleet-config D1 schema as code (#17049) #17068 merged; the read-back (sqlite_master + per-table counts 42/2/2/1/1/3/1/2 = 54) matches the 2026-11-18 record and the design record exactly. "Applied" is satisfied by the pilot's original application; this PR deliberately changes nothing in the database.
area/infraInfrastructure, deployment, and operationseffort/mMedium: expected under 1 day of workepic/turso-cloudflareEpic: epic/turso-cloudflare (fleet reprioritization 2026-11-12)priority/normalOrdinary priority (the default)
Activity
developing-today-fleet commentedon Nov 30, 2026
🤖 Agent note · lane 0640-IG (Felix) — newcomer band validation: priority/normal concurred for #17049, #17050, #17051.
Filed minutes ago as the three chained follow-ons of #5695 (provision the fleet-config D1 + schema → copy + verify the 54 rows → dual-read, flip, retire). Bodies read firsthand. Each is an ordinary implementation slice in a planned programme — nothing broken, no deadline stated, no security or outage content — so the default band, priority/normal, is correct for all three as filed. Their execution gates are recorded in their own bodies (#17050 is a supervised data move; #17051 rides #17050); those gates do not change the intrinsic band under the #9199 model. Exactly one ratified band each; no change made.
developing-today-fleet commentedon Nov 30, 2026
🤖 Agent note · lane 0640-IK (Felix) — priority validation 2026-11-29.
Read firsthand: this issue and its chain siblings #17050 and #17051 (the three #5695 follow-ons, filed 02:34–02:35Z). Each carries exactly one ratified band, priority/normal — concurred for all three: planned implementation slices in a sequenced migration (provision → copy+verify → dual-read/flip), nothing broken, no outage, no external clock. Normal is the default band and it fits. No change made.
developing-today-fleet commentedon Nov 30, 2026
Claim — lane 2037-F (Archer, alpha DRIVE author lane, 2026-11-29 20:37 CST run).
Taking #17049 (follow-on 1 of #5695): read the #5695 design record filed by lane 2007-L, record the column inventory for the 8 tables on this issue, provision the fleet-config D1 database through the repo's Cloudflare provisioning path, and land the schema migrations via PR. No data rows copied (follow-on 2's scope) and no consumer changes. Key: 2037-F
developing-today-fleet commentedon Nov 30, 2026
🤖 Agent note · lane 0640-IH (Felix) — newcomer band validation, 2026-11-29.
Priority validation 2026-11-29 (Felix): priority/normal concurred for #17049 and its two siblings filed in the same minute (#17050, #17051). Read #17049's body firsthand: a bounded D1 provisioning follow-on of #5695 (schema-as-code for the 8 config tables, design record already filed) — ordinary implementation work, the default band; nothing broken, nothing time-sensitive beyond the programme's own sequencing. The siblings are the same family's copy/verify and dual-read slices (titles + labels read; same shape). Exactly one ratified band each; no change.
developing-today-fleet commentedon Nov 30, 2026
Premise check — lane 2037-F (Archer, alpha DRIVE author lane, 2026-11-29): step 1 cannot execute — the source project no longer exists. Parking #17049 with the wake condition below; no schema authored.
The issue's first step is the column inventory: read
information_schema.columnsfor the 7sourcestables +public.muse_notesonmuse-dev2. I ran that query through the seat's canonical route (~/tools/supabase-exec.py, Management API) and verified the failure three ways, two of them fully independent:{"message":"Resource has been removed"}for the vault's canonical project ref (supabase.muse-dev2.project-ref; ref shape verified by name only — 20 chars, prefixkeihfc, suffixmzra; no credential values printed or recorded).bws, the tool's own fetch) and the fleet secrets broker copy (fleet secrets get, broker-first per the house route) agree on the same ref, and the management token'sGET /v1/projectsreturns an empty list — the token sees zero projects.Consequence for the #5695 chain: the design record (lane 2007-L, merged today) premises copying 54 live rows from
muse-dev2, sourced from the 2026-11-04 placement audit. That database is gone, and no column-level DDL for these 8 tables exists anywhere in this repo (code search for the table names returns only the design record itself). Authoring the §3 schema without the live inventory would be exactly the improvisation the design's closed type-mapping contract forbids, and #17050's copy has no source to copy from. All three follow-ons (#17049, #17050, #17051) inherit this.Wake condition (any one reopens this lane's work):
Priority validation 2037-F: priority/normal concurred — the band is not the problem; the premise is. Key: 2037-F
dezren39 commentedon Nov 30, 2026
Historical source for the parked config-store chain: the Nov. 18 recovery record, Config-store reconciliation documents an existing
fleet-configD1 with 54 records across these eight tables and a recovered backup with 57. At that read, 53 matched after timestamp normalization; the archive preserved the fuller source 41 note and source IDs 47, 51, 52. The operational Turso source 41 conflict was deliberately left untouched.For the existing Archer workstream: please reconcile the plan in #17049–#17051 with this record before provisioning, copying or changing reads. Verify the current D1 identity, schema, per-table counts, normalized keys/hashes, consumers and preserved archive read-only. These are historical counts, not current state or permission to overwrite Turso. Do not recreate the removed Supabase project or provision a duplicate D1 on this premise; report any unresolved differences or destination decision before data changes.
developing-today-fleet commentedon Nov 30, 2026
Lane 2222-E (Archer, delta PRESS) — picked up the read-only reconciliation slice named in the owner comment above: verify the existing
fleet-configD1 (identity, schema, per-table counts) against the 2026-11-18 recovery record (54 records across the 8 tables; archive copy 57) and record the result here. Strictly read-only: no provisioning, no data changes, no consumer changes. If the D1 read path is unavailable from this seat, the blocker will be named with evidence instead. Key: 2222-Edeveloping-today-fleet commentedon Nov 30, 2026
Lane 2222-E — read-only reconciliation of the existing
fleet-configD1, per the owner request above. All reads executed firsthand this run (wrangler, account token by name only, strictly read-only).Identity — the database already exists; do not provision a second one
fleet-config, UUID71995a94-7184-4d69-a730-ff7604df02f1, created 2026-11-07T04:59:02Z, production, 90,112 bytes. This is exactly the database the design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 design record (doc/2026-11-24T05-52-04Z_design_tiny-config-d1-cutover/) names as the completed pilot target.Schema — all 8 tables present, deployed names differ from this issue's scope text
The pilot's deployed names are
<domain>_sources/public_muse_notes, not thesources_<domain>/muse_notesnames in the issue body (those are the retired Postgres-side names; the design record §"Data model" confirms the deployed names govern). DDL read back fromsqlite_masterthis run:ainventory_sources (id INTEGER PRIMARY KEY, name, kind, drive_file_id, drive_modified_at, import_batch, imported_at, note)— all TEXT besides idautomation_sources,engineering_sources,finance_sources,home_sources,research_sources— same 8 columns (id INTEGER, no PK constraint in DDL)ideas_sources (id INTEGER PRIMARY KEY, name, kind, path, note, mirrored_at)public_muse_notes (id INTEGER PRIMARY KEY, title, body, category, created_at)This DDL is the column inventory of record: the Postgres original on
muse-dev2is deleted (lane 2037-F's evidence stands), so noinformation_schemainventory can ever be read from the source — the deployed DDL plus the design record's mapping is the only inventory that exists.Counts — 54 rows, matching BOTH historical records exactly
Read this run, per table: ainventory 42, automation 2, engineering 2, finance 1, home 1, ideas 3, research 1, muse_notes 2 = 54 total.
Consumers
fleet-configyet (code search for the UUID finds only the design record). The cutover design's slice 1 (consumer inventory) and the reader/writer cutover remain the open work — that is impl(atlas): dual-read + flip the sources registries and muse_notes to D1, retire the Postgres copies (#5695 follow-on 3) #17051's territory, reframed below.Disposition this supports (decision for the chain owner / Drew)
Priority validation 2222-E: priority/normal concurred. Claim released with this report; wake = chain-owner disposition on points 1–2. Key: 2222-E
docs(fleet-config): capture deployed D1 schema as migration of record (…
docs(fleet-config): README for the fleet-config D1 schema home (#17049)
Merge pull request #17068 from developing-today/lane/2222e-17049-flee…
developing-today-fleet commentedon Nov 30, 2026
Lane 2222-E — schema-as-code landed: PR #17068 MERGED (2026-11-30T04:54Z, merge 67ace80):
pkgs/fleet-config/migrations/0001_fleet_config_schema.sql(deployed DDL captured verbatim,IF NOT EXISTSfor from-scratch use) +pkgs/fleet-config/README.md. Full-diff read by this lane before merge; additions only.Acceptance mapping against the reconciliation evidence (comment above):
information_schemasource was deleted withmuse-dev2; that impossibility is recorded with evidence, not papered over).fleet-config, 71995a94-7184-4d69-a730-ff7604df02f1; pre-existing from the design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695 pilot, nothing provisioned by this lane).Closing #17049 as completed. The chain's live remainder is the consumer cutover, not provisioning or data movement. Key: 2222-E