Skip to content

Write NodeSpace's live decisions as decision nodes, each stated as it stands today #3729

Not planned

Description

@malibio

Blocked: waits for a workable sync system and for the inventory (#3728).

Overview

Part of rebuilding the design record in NodeSpace (#3727). The decisions the inventory marks as live are written as decision nodes: one per decision, in its current form, linked to what it governs.

Problem Statement

A decision in nodespace-docs is a file with a status line, a date, amendments added over time and links to other files. To learn what is decided today a reader assembles it from the record and its amendments. An agent working a task is not given it at all.

Proposed Solution

  • One decision node per live decision, accepted, with the decision, the reason and the consequences as they stand now. No amendment notes and no "previously".
  • A decision that replaced another keeps a supersedes link only where the replaced decision is itself worth keeping; otherwise the old one is not written.
  • Each decision is linked from the specs and tasks it governs where those exist, and to the reference documents that explain it.
  • Each is checked against the code. Where the code does something else, the user decides which is right before the node is written.

Documentation

  • ADR-092 §1 to §4 - the spec, plan, decision and project types the record is rebuilt in
  • ADR-094 "The shipped workflow" - standards are skills attached to a project; a node is read with what governs it
  • documentation.md - the rule that all design lives in nodespace-docs, which this work replaces

Acceptance Criteria

  • Every decision the inventory marks live exists as an accepted decision node
  • No node carries an amendment trail or refers to a file in nodespace-docs
  • Each node was checked against the code, and every disagreement was put to the user and resolved
  • A task or spec in an area returns the decisions that govern it when read with its context

Related Issues

Non-Goals

  • Writing superseded decisions for the record
  • Renumbering or preserving ADR numbers as identifiers

Activity

  1. self-assigned this
    on Nov 4, 2026
  2. malibio commented on Nov 4, 2026

    @malibio
    CollaboratorAuthor

    First batch written to the workspace: 14 decision nodes (086, 087, 088, 089, 092, 094 and its split-out section, 096, 098, 099, 101, 104, 105, 106), each checked against current main by a reviewer. Unbuilt parts are tracked by #4016, #4222, #4236, #4239 and sync #992/#993. Remaining decisions follow in later batches.

  3. removed their assignment
    on Nov 16, 2026
  4. self-assigned this
    on Nov 16, 2026
  5. mstomar125 commented on Nov 16, 2026

    @mstomar125
    Contributor

    Picking this up: handed over by the previous assignee on 2026-11-16.

  6. mstomar125 commented on Nov 16, 2026

    @mstomar125
    Contributor

    Analysis pass for this issue after the handover (2026-11-16). Nothing was written to NodeSpace and no repository was changed; node drafts are kept locally, not here.

    How this was done and its limits

    • Starting point: the inventory page (development/docs-inventory.md, taken 2026-10-11), re-verified against current main of nodespace-core, nodespace-sync and nodespace-cloud (read-only, fetched checkouts).
    • Evidence levels in the table: L2 = re-read against the code in this pass; L1 = every code path and identifier the inventory cites still exists at origin/main, but the rule was not re-read line by line; L0 = not checked against code (Sync-scope decisions: the inventory did not read nodespace-sync/cloud and neither did this pass, except ADR-041/042/069 whose docs were re-checked against sync code on 2026-11-16).
    • The inventory is partly stale: ADR-090/100 (bound chats) and ADR-097 §6 (refusing an extension field named after a declared field) were 'ahead' on 10-11 and are built now. Twenty decision records changed in the docs since 10-12 (mostly Sync amendments).
    • I could not read the first batch: there is no daemon of mine, and the nodes live in the previous assignee's workspace. The node format below is taken from ADR-092 §1 (a decision's title is its content, its body is its children, decision_status), the seeded Recording a Decision skill (title states the decision; body gives context, choice, alternatives turned down, consequences) and this issue.

    Counts. 100 decision records. Already written as nodes: 13 records (14 nodes: 086 087 088 089 092 094 and its split-out section 096 098 099 101 104 105 106). Still needs a node: 69 records (the inventory's 68 plus ADR-103, accepted 2026-11-03 after the inventory), plus 4 decisions that stand with no record and must be written from the code. No node: 18 records (superseded, dead or reports: 001 002 003 004 006 007 008 016 017 018 021 022 025 028 030 046 075, and ADR-102, whose own amendment keeps type_ancestry a table, so it states nothing beyond ADR-086 §5). Check results for the 69: AGREES 52 (of which 18 re-read, the rest L1 or core half only), PARTLY 8, DISAGREES 1, UNBUILT 1, NOT CHECKED 7 (Sync-scope).

    Batch plan (5 batches of 13 to 15, checked first, written only after any question below is answered): B2 node model, editing and references; B3 daemon, CLI, agent and models; B4 engineering process, platform and seeds; B5 plays, bound chats, workspace and extension points; B6 Sync-scope decisions (ADR-081 puts these in the Sync record: batch 1 already included 096, 101, 105, 106, so I take them as in scope here unless told otherwise).

    Table

    ADR Title Batch Check
    005 Node Reference Decoration System B2 PARTLY
    015 Data Layer Architecture - Local-First with Sync vs. Cloud-First Reacti B5 AGREES
    019 Quote Block Prefix Persistence Strategy B2 PARTLY
    020 Structured Node Merge Prevention B2 PARTLY
    023 Eliminate Ephemeral Nodes During Editing B2 AGREES
    024 Parent-Child Relationship as Operation Parameters (Not Stored Fields) B2 AGREES
    026 Write Flow & Conflict Resolution — OCC + Last-Write-Wins B6 AGREES (core half) / NOT CHECKED (sync half)
    027 Local-First Sync Service — Desktop App Never Touches the Network B6 NOT CHECKED
    029 Behavior-Owned Embedding with NodeAccessor B2 AGREES
    031 Transition to Daemon-Client Architecture B3 AGREES
    032 PTY-Based Agent Session Architecture B3 AGREES
    033 Switch nodespaced IPC Transport from TCP to Unix Domain Sockets B3 AGREES
    034 AIChat Unified Provider Modes (PTY = Mode 2d) B3 AGREES
    035 NodeSpace Skill + CLI Replace MCP as the Agent Integration Surface B3 AGREES
    036 Replace SurrealDB Cloud with Supabase (Postgres + Realtime) as Cloud S B6 NOT CHECKED
    037 Collection Access Model — Organizational-by-Default, Opt-In Restrictio B6 NOT CHECKED
    038 Skill-Mediated Tool Routing via Retrieval and LLM Judgment B3 PARTLY
    039 Open-Core Repository Separation — Private Sync Crate + Private Cloud R B4 AGREES
    040 Semantic Search Ranking Formula B4 AGREES
    041 Node Deletion Strategy B6 AGREES (sync half re-read 2026-11-16)
    042 Delete-Wins Conflict Resolution via Tombstones B6 AGREES (re-read 2026-11-16)
    043 Shared gRPC Router Factory for Community and Pro Daemons B3 AGREES
    044 Decouple Initial App Render from Daemon Readiness B3 AGREES
    045 Do Not Sync Embeddings; Regenerate Them Locally B6 AGREES (core half) / NOT CHECKED (sync half)
    047 CI Gating Policy — A Local Pre-Push Hook Runs the Test Suite Before Co B4 PARTLY
    048 Tauri-Seam Integration Testing and a Canonical Test Harness B4 AGREES
    049 Canonical Reactivity-Store Pattern (Svelte 5 Runes) B4 AGREES
    050 Provisioning-Credential Scoping — Least Privilege for the Cloud Worker B6 NOT CHECKED
    051 Rate Limiting and the Workspace Status Gate B6 NOT CHECKED
    052 The OS Socket Permission Is the Local Trust Boundary B3 DISAGREES
    053 One Daemon, Multiple Local Databases — Single-Active Sync, Per-Databas B6 AGREES (core half) / NOT CHECKED (sync half)
    054 No Application-Level Database Encryption at Rest B4 AGREES
    055 Touch ID / OS-Login Keychain Gating Remains Deferred B6 AGREES
    056 Gemma 4 E4B Replaces Ministral 8B as the Locked Native Model B3 AGREES
    057 Skill Nodes Use Real Markdown Children; Retire the prompt Node Type B4 AGREES
    058 Model Artifact Integrity Verification (Pinned SHA-256 at Download and B3 AGREES
    059 Access Follows Classification, Not Outline Position — and Access, Atom B6 AGREES (core half) / NOT CHECKED (sync half)
    060 Playbook Execution Under Multi-Device Sync — Invariant vs. Reactive Ru B5 UNBUILT
    061 AI Chats Are Private by Default via a Seeded Personal Collection; Mach B5 AGREES
    062 Context Windows Are Budgeted Against Total RAM, Not Available Memory B3 AGREES
    063 Namespace Prefixes Scope Extensions to Core Types, Not Fields of User- B2 AGREES
    064 Instruction Channel Doctrine B3 AGREES
    065 Store-Aware unique Validation — Evaluated in NodeService, Suggest-Do B2 AGREES
    066 Tenant Membership Model — Admission, Roles, and Lifecycle B6 NOT CHECKED
    068 Convergence Conflicts Are Local-Only Records in a Generic Conflict Jou B5 AGREES
    069 A Unit-of-Work Transaction Seam for Multi-Write Operations; Events Emi B4 AGREES (re-read 2026-11-16)
    070 Schema Relationship Declarations Are Edges, Not JSON on the Schema Nod B2 AGREES
    071 Inbound Relationships Are Read-Only in the UI B2 PARTLY
    072 Per-Aspect User-Modified Guard for Seeded Nodes, With Explicit Reset B4 AGREES
    073 Playbook Engine Runs Local-Only Until Multi-Device Sync Semantics Are B5 PARTLY
    074 Derived Identity for Scan-Based and Nested-Iteration Playbook Actions B5 AGREES
    076 Schema Field Value Extension (add_field_values) and Task Status Enfo B2 AGREES
    077 Client-Computed Title Template, No Self-Echo Required B2 AGREES
    078 extends Schema Relationship — Real Subtype Identity via node_type B2 AGREES
    079 Parent Task Completion Rollup as a Core Seeded Play B4 AGREES
    080 Two-Step CLI Node Delete B4 AGREES
    081 Pro Is a Separate App Built From nodespace-sync; Core Ships No Pro Cod B5 AGREES
    082 Core Extension Points for the Pro App B5 AGREES (core half) / NOT CHECKED (sync half)
    083 Sync-Owned State Stays Out of the Core Data Model B5 AGREES (core half) / NOT CHECKED (sync half)
    084 Core-to-Sync Upgrade and Install Flow B5 AGREES (core half) / NOT CHECKED (sync half)
    085 AI-Chat Sync Policy in the Sync App B6 NOT CHECKED
    090 Plays Are Viewed Read-Only and Edited Through a Bound AI Chat B5 AGREES
    091 A Saved Query Can Compare a Date Field Against a Date Relative to Toda B4 AGREES
    093 Coding Agents Receive Skills and Task Context Through Harness Plugins B5 PARTLY
    095 Settings Live in the Database's Settings Node B4 AGREES
    097 A Task's Spec Must Be Approved Before the Task Starts B5 AGREES
    100 A Node Can Be Asked About and Changed Through a Chat Bound to It B5 AGREES
    103 Browser Dev Mode Is Retired; the Tauri Command Layer Is the One Backen B4 AGREES
    107 The Design Record Lives in NodeSpace, Written as It Stands Today B5 AGREES

    Questions for Michael (yes/no or choose; no node is written for a PARTLY, DISAGREES or UNBUILT item until answered)

    1. ADR-052 §2 (DISAGREES). The record decides that the daemon checks the connecting peer's uid; packages/daemon/src/main.rs:24-36 says there is no peer-credential check on Unix or Windows and the OS socket/pipe permission is the whole boundary. Write the node as the current boundary (permission only) and file the peer check as unbuilt work, or write it as decided-not-built?
    2. ADR-038 (PARTLY). The record contradicts itself (provisional tool-result payload vs candidates rendered into the prompt; header cites ADR-046, replaced by ADR-056; trust-boundary section describes external registered tools that do not exist). Confirm the node states: candidates render into the prompt, the model lock is ADR-056's, no external tools or tool nodes exist.
    3. ADR-047 (PARTLY). The base decision (pre-push hook runs the suite) was replaced by its amendments. Confirm the node states the amended end state: a push runs lint only, the merge queue runs the one full gate, one machine slot per Mac (the sync repo's own pre-push still runs its full workspace tests: record that as that repo's policy?).
    4. ADR-093 (PARTLY). The record names plugins for Claude Code, Pi and OpenCode; packages/skill/plugins also has codex and antigravity. List all five in the node, or only the three?
    5. ADR-060 and ADR-073 (UNBUILT / PARTLY). Core part not built: join-point suppression, causal depth across devices, repair of a remote violation (playbook/validation.rs:1764); election and server-side enforcement are Sync's. Write the decision with the unbuilt part stated, plus one spec for the core part?
    6. ADR-071. The code applies the inbound-relationship rule more narrowly than the record states it (inventory finding, not re-read here). Which is right: the record or the code?
    7. ADR-005, ADR-019, ADR-020 (PARTLY). The record differs from the code in details (a decorateReference() method that does not exist; a second rationale that is no longer true; a constant that exists only in a test and three more types that opt out of merges). Confirm the nodes state what the code does.
    8. The 4 decisions with no record (textarea editor, SQLite + sqlite-vec local store, skill-routing with one fixed model, inbound relationship groups): write them from the code, yes or no?
    9. Sync-scope decisions (B6 and the Sync halves of 026 027 041 042 045 053 059 066 082 083 084 085). I have not checked them against the Sync code. Do I check them before writing, or are they written from the records and checked later?
    10. ADR-090 §5 amendment (Stage 1 in a pinned chat) is still unverified; ADR-049's subscribe method has no production caller that I found. Are you fine with the nodes saying neither?
  7. mstomar125 commented on Nov 17, 2026

    @mstomar125
    Contributor

    Answers by mstomar125, 2026-11-17, to the ten questions above. Rule from the owner: no stale decisions, fix properly, no rushing.

    1. ADR-052: the node states the current boundary (OS permission only). The peer check is filed as Daemon: enforce the peer user check that ADR-052 decides (code has permission-only boundary) #4284, to be built after the questions are done.
    2. ADR-038: fix the stale parts and resolve the contradictions in the record first (docs PR), then the node states the corrected text.
    3. ADR-047: node states the end state (push runs lint only, the merge queue runs the one full gate, one slot per Mac, sync repo's own pre-push policy); the ADR text is fixed too.
    4. ADR-093: list all five plugins (claude-code, pi, opencode, codex, antigravity); the ADR text is updated to match.
    5. ADR-060 and ADR-073: build the unbuilt core part (Playbooks under multi-device sync: build the core part of ADR-060 and ADR-073 #4285), then state it correctly; no node saying "unbuilt".
    6. ADR-071: re-read the code, then align the record and the node; bring any real behaviour gap back as a question.
    7. ADR-005, 019, 020: fix the records properly (docs PRs) and write nodes from the corrected records.
    8. The four decisions with no record: write the nodes from the code and propose a record for each, so nothing is stale.
    9. Sync-scope decisions: check each against the sync and cloud code before writing its node.
    10. ADR-090 section 5 and ADR-049: verify first, then state what is true.
      Next: docs fixes (2, 3, 4, 7), then batches B2 to B6 in that order of dependency; nothing is written to NodeSpace for an item until its record has been corrected or verified.
  8. mstomar125 commented on Nov 17, 2026

    @mstomar125
    Contributor

    Progress 2026-11-17: the docs fixes from the answers above are merged in the docs repo: ADR-093 (all five plugins), ADR-005, ADR-019 and ADR-020 (corrected against the code, plus the pages that repeated the stale claims), ADR-038 and ADR-047 (current state, ADR-046 and ADR-086 corrected too). Code-side problems the reviews found are filed as #4286 and #4287. Still to do before nodes are written: ADR-052, ADR-060 and ADR-073 wait for their builds (#4284, #4285); ADR-071 is to be re-read against the code; the four decisions with no record; the Sync-scope records checked against the code; ADR-090 section 5 and ADR-049 verified.

  9. mstomar125 commented on Nov 17, 2026

    @mstomar125
    Contributor

    Progress 2026-11-17 (later): every decision record the owner's answers called for is now corrected or written in the docs repo and merged, each after an independent review against the code: ADR-001/004/008/015/018/027 status pointers; ADR-005, 019, 020; ADR-038, 046, 047; ADR-071 amended and ADR-111 (bare inbound edges editable); ADR-093; ADR-108 to ADR-111 as proposed records for the four decisions that had none; ADR-026, 027, 036, 037, 041, 042; ADR-045, 050, 051, 053, 059, 066; ADR-049, 082, 083, 084, 085 and ADR-090 section 5. Where the code differs from a decision, the record now says what the code does with a dated 'Decided ... Not reconciled' note, and each gap is its own issue: sync #1028, #1029, #1030, #1031, cloud #342, core #4289 and earlier #4284/#4285/#4286/#4287. Still open for this issue: ADR-052 (after the peer check lands everywhere: core Unix part merged in #4288; sync half and Windows pending) and ADR-060/073 (after #4285); then the decision nodes themselves are written from the corrected records.

  10. mstomar125 commented on Nov 18, 2026

    @mstomar125
    Contributor

    Status check of the graph on 2026-11-18 (read-only; nothing changed).

    Met: 104 decision nodes exist. No ADR numbers, ticket numbers, dated amendment notes or docs-file paths in them, and no dangling node links. 100 of the 104 link at least one design document, and all 46 design documents (Architecture 31, Interface 3, Node types 12) link decisions. The checks against the code were done through the 2026-11-17 answers and merged docs fixes.

    Not met yet:

    Closing is blocked by the first and last items.

  11. mstomar125 commented on Nov 18, 2026

    @mstomar125
    Contributor

    Update (2026-11-18, rulings by mstomar125): the five decisions that were proposed are resolved: "Remote tools are core subtypes of tool" and "Native ACP chats are a core subtype" are accepted and will be built (core #4291, #4292: specs, inert core side first); "AI chats do not sync unless the user opts in" is accepted as is; "An inbound relationship group cannot edit edge values" is accepted after a code check (a client-side rule; one Rationale sentence corrected); "Model artifacts are verified against a pinned digest" is accepted with the text scoped to catalog chat models and the embedding model, naming the one unchecked path (an uncatalogued chat model loaded by the eval harness) as a consequence. The text fixes from the close-out audit are applied and four unlinked decisions now link their documents (the context-budget decision has no document that states it yet).

    Remaining for this issue: the criterion that a task or spec returns its governing decisions needs tasks and specs in the graph (core #3734, #3712).

  12. mstomar125 commented on Nov 26, 2026

    @mstomar125
    Contributor

    Status check 2026-11-26 (records pass). Not closed.
    Met, checked against the live workspace: 119 decision nodes, all accepted; none carries an ADR number, a docs-repository path, a ticket number or an amendment trail (scanned all 119). The four decisions that had no record (alignment in CSS, plain textarea, libsql store, one loaded model) now exist. For the 84 accepted decisions that had no spec or task, every named code identifier that exists was found in origin/main of core, sync or cloud; the names not found are rejected alternatives or removed settings stated as such.
    Remaining: the last criterion (a task or spec in an area returns its governing decisions when read with its context). The task schema declares the context paths (spec, plan, decisions, spec then decisions, project) and 47 of the 81 tasks link decisions, but a context read cannot be run from the CLI, so it is not shown on a real task. Owner: the user or an agent with the context read tool (one read of a task that has a decision link).

  13. malibio commented on Nov 26, 2026

    @malibio
    CollaboratorAuthor

    Decision resolution: use the status, not a separate field

    This replaces the work_status field and the described_by relationship that were added to decision in the workspace. The issue asks for decisions to be linked to specs and tasks "where those exist"; it does not need a marker field.

    Core change

    decision_status gains one value, in_effect:

    Status Meaning
    proposed Under discussion, or agreed with no work filed yet
    accepted Agreed, with work outstanding
    in_effect Built, or a rule in force
    superseded Replaced and locked (unchanged)

    It ships in core's decision schema (closed, core-protected), so every device gets it with the release. No planned status: an accepted decision is planned because a task links to it.

    Two gates ship as core Plays in core_plays.rs, next to the spec and plan approval rules, so a user can edit or disable them:

    • Accepting: a decision cannot be set to accepted unless at least one task linked to it is not done or cancelled. The condition reads the decision's tasks reverse relationship.
    • In effect: a decision cannot be set to in_effect while a task linked to it is open. A decision with no linked task may go from proposed straight to in_effect; that is the path for a standing rule.

    The gates read directly linked tasks only. Specs take no part: decision → specs → tasks is two hops through a many relationship, which a condition cannot walk. So work that implements a decision links the decision from at least one task, even when a spec also covers it.

    in_effect can go back to accepted. To add something a decision overlooked: edit the decision so it states the whole decision, link a new task, set it to accepted, and set it to in_effect when the task is done. A decision that is replaced is superseded as today.

    A decision points at the page that describes it with a mention in its content. There is no typed relationship for that.

    Workspace cleanup

    On the device that declares the fields, after the core release with in_effect is installed:

    • Set the decisions that carry work_status to in_effect, then clear work_status.
    • Replace each described_by edge with a mention in the decision's content.
    • Remove work_status and described_by from the decision schema.
    • Retire the saved query "Accepted decisions with no linked work" and the skill "Resolving an accepted decision that has no work", or rewrite them for the status.
    • Rewrite the task "A decision cannot be accepted until work is linked to it or it is marked built or a standing rule" as the two gates above.

    Why

    The custom field was declared on one device. Schemas do not sync, so a device with a fresh database set aside every decision carrying the field and failed on the saved query that filters on it. A core field cannot do that.

    To check while building

    • The two conditions have not been run against a decision. tasks and specs are reverse names of two relationships that share the name decisions on different types; cover that with a test.
    • The gates fire on a status change, not on a link change, like the existing rules: unlinking the last task of an accepted decision is not caught.
  14. malibio commented on Nov 26, 2026

    @malibio
    CollaboratorAuthor

    Update: the gates read issues, not tasks

    Two changes since the comment above, both from #4398's model (see that issue):

    • A decision's work is issues only. task --decisions--> decision moves to issue, so the reverse name on a decision is issues. The gates become:
      • Accepting: refused unless at least one issue linked to the decision is not done or cancelled (node.issues).
      • In effect: refused while an issue linked to the decision is open.
    • The plan type is removed, so nothing here depends on it.

    Everything else in the comment above stands: in_effect, the gates as core Plays, reopening from in_effect to accepted, mentions for the page that describes a decision, and the workspace cleanup.

    Order: the model change lands first or with this, since the gates are written against issues.

  15. malibio commented on Nov 28, 2026

    @malibio
    CollaboratorAuthor

    Moved to NodeSpace: the task "Every live decision is a decision node that matches the code" (9259fa61-614c-441e-ac32-f060e4c9bcff) in the NodeSpace workspace. The team's work is tracked there, so this GitHub copy is closed to keep its status in one place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions