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
Docs reconciliation: architecture pages still describe the single-database daemon, SurrealDB, and a cloud embeddings table #2034
Split out of #1536, which bundled a docs pass with the tray menu and multi-window work. The docs are a self-contained chore in a different repo (nodespace-docs, direct commits to main) and were holding up an otherwise shippable code slice.
Problem
Several architecture pages describe superseded architecture:
billing-enforcement.md, data-deletion-offboarding.md, cloud-sync-error-handling.md — describe the pre-Supabase backend. (An earlier rewrite attempt was still SurrealDB-based and was discarded, so these need writing against ADR-036 from scratch.)
tenant-database-schema.md, sync-telemetry.md — still model the cloud embeddings table removed by ADR-045.
daemon-cli-overview.md, daemon-cli-lifecycle.md, daemon-cli-protocol.md, data-layer.md, cloud-sync.md — describe one database per daemon, superseded by ADR-053 (N databases, metadata routing, single-active sync, per-database identity/billing).
Scope
Rewrite the drifted pages against the current architecture: Supabase (ADR-036), tenant = database = billable unit (ADR-053), no cloud embeddings (ADR-045).
⚠ Worth reconciling against what actually shipped rather than what the ADRs propose — the per-database binding, single-active sync and access-gate work landed with details the ADRs don't fully capture.
Acceptance
No architecture doc describes the single-database daemon, the SurrealDB backend, or a cloud embeddings table
Docs carry no ticket references (docs standard)
decisions/README.md index reflects the current ADR set
Started. One acceptance box is closed; posting the survey so the next session doesn't re-derive it, because the scope is wider than the issue lists.
Done
decisions/README.md index reflects the current ADR set — ADR-064 and ADR-065 existed on disk but were never indexed (57 of 59 listed). Also checked the reverse direction: every link in the table now resolves to a file that exists. Pushed to docs main (44f5344).
Survey — files actually affected
Beyond the ten named in the issue, these also carry stale architecture:
File
Stale in what way
architecture/system-overview.md
SurrealDB
architecture/schema-migration-strategy.md
cloud embeddings table (ADR-045)
architecture/acp-integration.md
cloud embeddings table (ADR-045)
So the real set is ~13 files, not 10.
⚠ One correction to the scope
The issue says "No architecture doc describes … the SurrealDB backend", and SurrealDB does appear in four ADRs — 017, 026, 039, and 036's own title. Those must not be edited. An ADR is a dated record of a decision as it was made; rewriting 026 to remove SurrealDB would falsify the history that ADR-036 exists to supersede. ADR-036's title ("Replace SurrealDB Cloud with Supabase…") is correct precisely because it names what it replaced.
The acceptance box should be read as applying to architecture/ pages only. The decisions/ tree is append-only apart from its index — which is the box I just closed.
Sizing for whoever picks this up
~3,800 lines across the ten named files. It splits into three unequal parts:
Full rewrites against ADR-036 — billing-enforcement.md (485), data-deletion-offboarding.md (710), cloud-sync-error-handling.md (630). ~1,825 lines describing the pre-Supabase backend. The issue notes an earlier attempt was discarded for still being SurrealDB-based, so these need writing from the ADRs and the live schema, not patching.
ADR-045 removals — tenant-database-schema.md, sync-telemetry.md, plus schema-migration-strategy.md and acp-integration.md found above. Targeted excisions of the cloud embeddings table.
ADR-053 corrections — daemon-cli-overview.md, daemon-cli-lifecycle.md, daemon-cli-protocol.md, data-layer.md, cloud-sync.md. One-database-per-daemon → N databases, metadata registry, per-database routing and identity.
Part 3 is the most mechanical and the safest to do incrementally; part 1 is genuinely new writing and wants a session with room to read ADR-036/037/050 and the deployed schema first. Worth noting data-layer.md and cloud-sync.md appear in more than one part.
Also in scope per the docs standard: these pages must carry no ticket references.
Doc reconciliation status update — all three parts from the survey addressed:
Part 2 (ADR-045 cloud-embeddings removal) — verified, no changes needed. tenant-database-schema.md, sync-telemetry.md, and schema-migration-strategy.md were already fully reconciled by an earlier commit (bcd142c, 2026-07-10) that I hadn't been aware of when the survey was posted. acp-integration.md never described a cloud embeddings table in the first place — its embedding mentions are all the local Tier-1 agent's in-process model, unrelated to ADR-045.
Part 3 (ADR-053 N-databases reconciliation) — real work, done. daemon-cli-overview.md, daemon-cli-protocol.md, daemon-cli-lifecycle.md, and cloud-sync.md corrected against what actually shipped (not just what the ADR proposed) — verified against live database_manager.rs/routing code, not just restated from the ADR text. data-layer.md reviewed, already reconciled, no changes needed. PR: nodespace-docs#78, requesting malibio's review per that repo's policy for architecture-doc changes.
Part 1 (full ADR-036 rewrites, billing/deletion/error-handling) — the survey's "needs a full rewrite from scratch" turned out to be stale too. All three files were already substantially reconciled (billing-enforcement.md had an existing "Amendment" section covering exactly this, data-deletion-offboarding.md and cloud-sync-error-handling.md were already Supabase-native). Found and fixed a handful of residual unmarked spots that survived the earlier pass (old pre-brokered-auth mechanism descriptions, stale access_tags/held_tags comments) — targeted corrections, not a rewrite. PR: nodespace-docs#79, same reviewer.
Leaving this issue open until both PRs merge — the docs repo requires malibio's review for architecture changes, not self-merge, so that's the remaining step.
Triage (2026-08-17): wrong repo, and it should not have produced PRs.
Two convention breaks here, flagging rather than acting since moving a tracked issue is a call for @malibio.
1. This belongs in nodespace-docs, not core. The issue's own body says the work is "a self-contained chore in a different repo (nodespace-docs, direct commits to main)" — so the tracker sits in core while every change lands in docs. nodespace-docs has issues enabled and a long history of exactly this shape: #5 (billing enforcement), #6 (data deletion/offboarding), #10 (cloud-sync error handling) are the earlier trackers for the very pages this issue re-reconciles.
2. The docs convention is direct commits to main, not PRs. A PR is warranted only when the author specifically wants review from @malibio or @anoopnair-deutnet. This issue spawned three unsolicited ones — nodespace-docs#77, #78, #79 — which is also why they sat unreviewed for 6–13 days. I reviewed all three today (#78 and #77 with changes requested, #79 with a comment), so they should be finished as PRs now rather than abandoned mid-flight. The point applies to what comes next.
@mstomar125 — for the remaining reconciliation work: commit straight to main in nodespace-docs unless you actively want a second opinion, in which case open the PR and say what you want checked. That keeps the review signal meaningful instead of every docs edit queuing behind a review that may never be needed.
Suggested disposition: close this once #77/#78/#79 land, and if follow-up reconciliation remains, file it in nodespace-docs. No action taken.
All three PRs from the reconciliation survey are merged: nodespace-docs#77 (data-deletion-offboarding.md), #78 (ADR-053 daemon-cli/cloud-sync set: daemon-cli-overview/protocol/lifecycle.md, cloud-sync.md), #79 (billing-enforcement.md, cloud-sync-error-handling.md) — all merged 2026-08-19. Part 2 of the survey (ADR-045 cloud-embeddings removal) needed no changes, already reconciled by an earlier commit per the 2026-08-13 status comment. The decisions/README.md index fix was pushed directly to nodespace-docs main. This matches @malibio's suggested disposition from 2026-08-17 ("close this once #77/#78/#79 land") — closing. No further reconciliation surfaced; a new follow-up would be filed directly in nodespace-docs per the same comment's guidance.
Activity
mstomar125 commentedon Aug 12, 2026
Started. One acceptance box is closed; posting the survey so the next session doesn't re-derive it, because the scope is wider than the issue lists.
Done
decisions/README.mdindex reflects the current ADR set — ADR-064 and ADR-065 existed on disk but were never indexed (57 of 59 listed). Also checked the reverse direction: every link in the table now resolves to a file that exists. Pushed to docsmain(44f5344).Survey — files actually affected
Beyond the ten named in the issue, these also carry stale architecture:
architecture/system-overview.mdarchitecture/schema-migration-strategy.mdarchitecture/acp-integration.mdSo the real set is ~13 files, not 10.
⚠ One correction to the scope
The issue says "No architecture doc describes … the SurrealDB backend", and SurrealDB does appear in four ADRs — 017, 026, 039, and 036's own title. Those must not be edited. An ADR is a dated record of a decision as it was made; rewriting 026 to remove SurrealDB would falsify the history that ADR-036 exists to supersede. ADR-036's title ("Replace SurrealDB Cloud with Supabase…") is correct precisely because it names what it replaced.
The acceptance box should be read as applying to
architecture/pages only. Thedecisions/tree is append-only apart from its index — which is the box I just closed.Sizing for whoever picks this up
~3,800 lines across the ten named files. It splits into three unequal parts:
billing-enforcement.md(485),data-deletion-offboarding.md(710),cloud-sync-error-handling.md(630). ~1,825 lines describing the pre-Supabase backend. The issue notes an earlier attempt was discarded for still being SurrealDB-based, so these need writing from the ADRs and the live schema, not patching.tenant-database-schema.md,sync-telemetry.md, plusschema-migration-strategy.mdandacp-integration.mdfound above. Targeted excisions of the cloud embeddings table.daemon-cli-overview.md,daemon-cli-lifecycle.md,daemon-cli-protocol.md,data-layer.md,cloud-sync.md. One-database-per-daemon → N databases, metadata registry, per-database routing and identity.Part 3 is the most mechanical and the safest to do incrementally; part 1 is genuinely new writing and wants a session with room to read ADR-036/037/050 and the deployed schema first. Worth noting
data-layer.mdandcloud-sync.mdappear in more than one part.Also in scope per the docs standard: these pages must carry no ticket references.
mstomar125 commentedon Aug 13, 2026
Doc reconciliation status update — all three parts from the survey addressed:
Part 2 (ADR-045 cloud-embeddings removal) — verified, no changes needed.
tenant-database-schema.md,sync-telemetry.md, andschema-migration-strategy.mdwere already fully reconciled by an earlier commit (bcd142c, 2026-07-10) that I hadn't been aware of when the survey was posted.acp-integration.mdnever described a cloud embeddings table in the first place — its embedding mentions are all the local Tier-1 agent's in-process model, unrelated to ADR-045.Part 3 (ADR-053 N-databases reconciliation) — real work, done.
daemon-cli-overview.md,daemon-cli-protocol.md,daemon-cli-lifecycle.md, andcloud-sync.mdcorrected against what actually shipped (not just what the ADR proposed) — verified against livedatabase_manager.rs/routing code, not just restated from the ADR text.data-layer.mdreviewed, already reconciled, no changes needed. PR: nodespace-docs#78, requestingmalibio's review per that repo's policy for architecture-doc changes.Part 1 (full ADR-036 rewrites, billing/deletion/error-handling) — the survey's "needs a full rewrite from scratch" turned out to be stale too. All three files were already substantially reconciled (
billing-enforcement.mdhad an existing "Amendment" section covering exactly this,data-deletion-offboarding.mdandcloud-sync-error-handling.mdwere already Supabase-native). Found and fixed a handful of residual unmarked spots that survived the earlier pass (old pre-brokered-auth mechanism descriptions, staleaccess_tags/held_tagscomments) — targeted corrections, not a rewrite. PR: nodespace-docs#79, same reviewer.Leaving this issue open until both PRs merge — the docs repo requires
malibio's review for architecture changes, not self-merge, so that's the remaining step.malibio commentedon Aug 17, 2026
Triage (2026-08-17): wrong repo, and it should not have produced PRs.
Two convention breaks here, flagging rather than acting since moving a tracked issue is a call for @malibio.
1. This belongs in nodespace-docs, not core. The issue's own body says the work is "a self-contained chore in a different repo (
nodespace-docs, direct commits tomain)" — so the tracker sits in core while every change lands in docs. nodespace-docs has issues enabled and a long history of exactly this shape: #5 (billing enforcement), #6 (data deletion/offboarding), #10 (cloud-sync error handling) are the earlier trackers for the very pages this issue re-reconciles.2. The docs convention is direct commits to
main, not PRs. A PR is warranted only when the author specifically wants review from @malibio or @anoopnair-deutnet. This issue spawned three unsolicited ones — nodespace-docs#77, #78, #79 — which is also why they sat unreviewed for 6–13 days. I reviewed all three today (#78 and #77 with changes requested, #79 with a comment), so they should be finished as PRs now rather than abandoned mid-flight. The point applies to what comes next.@mstomar125 — for the remaining reconciliation work: commit straight to
mainin nodespace-docs unless you actively want a second opinion, in which case open the PR and say what you want checked. That keeps the review signal meaningful instead of every docs edit queuing behind a review that may never be needed.Suggested disposition: close this once #77/#78/#79 land, and if follow-up reconciliation remains, file it in nodespace-docs. No action taken.
mstomar125 commentedon Sep 4, 2026
All three PRs from the reconciliation survey are merged: nodespace-docs#77 (data-deletion-offboarding.md), #78 (ADR-053 daemon-cli/cloud-sync set: daemon-cli-overview/protocol/lifecycle.md, cloud-sync.md), #79 (billing-enforcement.md, cloud-sync-error-handling.md) — all merged 2026-08-19. Part 2 of the survey (ADR-045 cloud-embeddings removal) needed no changes, already reconciled by an earlier commit per the 2026-08-13 status comment. The decisions/README.md index fix was pushed directly to nodespace-docs main. This matches @malibio's suggested disposition from 2026-08-17 ("close this once #77/#78/#79 land") — closing. No further reconciliation surfaced; a new follow-up would be filed directly in nodespace-docs per the same comment's guidance.