Skip to content

[Epic] Remove Pro code from core; the Pro app moves to nodespace-sync #3298

Closed
5 of 5 issues completed
Closed

Description

@mstomar125

Goal

Core becomes the complete free product and ships no Pro code. nodespace-sync owns the Pro app end to end. It assembles the app from one pinned core revision plus its own Pro package, through generic extension points that core documents and tests. The only Pro-related thing core keeps is a "Share / Sync this database" action that opens the NodeSpace website.

The directive, from the product owner (Michael, 2026-09-29):

Everything pro or sync related (other than just turning it on) should be on the nodespace-sync repo; we shouldn't have any pro-related logic on core. With pro, it's literally a new build (using core internally) that replaces someone's app on their machine (but using the same database). Later core will have a 'share/sync this database' flow that just jumps to our website to initiate it (trial, premium), then they download the pro version (replacing the core).

Decisions

The five ADRs are open PRs in nodespace-docs. Each stays Proposed until its PR is approved and merged. If review changes a decision, re-plan the affected sub-issue before anyone starts it.

Key ADR Decides PR File
NodeSpaceAI/nodespace-docs#88 (ADR-081) ADR-081 (proposed) The boundary: core ships no Pro code and nodespace-sync owns the Pro app. What core may still contain (§2), the migration steps (§7) and the ratchet (§8) NodeSpaceAI/nodespace-docs#89 decisions/081-pro-is-a-separate-app-core-ships-no-pro-code.md
NodeSpaceAI/nodespace-docs#90 (ADR-082) ADR-082 (proposed) Core's extension points: the frontend extension API, injected at build time through virtual:nodespace-extensions (empty in core); the Tauri app-builder hook (plugins, managed state, setup, daemon-ready and channel-rebuilt hooks, update source, daemon profile); the daemon seams (build_base_router, SubtreeAccessGate); one pinned core revision for both the Pro daemon and the Pro app NodeSpaceAI/nodespace-docs#91 decisions/082-core-extension-points-for-the-pro-app.md
NodeSpaceAI/nodespace-docs#92 (ADR-083) ADR-083 (proposed) Pro-owned state leaves core's data model: per item, a move to Pro-owned storage or a neutral hook, and how existing databases carry over NodeSpaceAI/nodespace-docs#93 decisions/083-pro-owned-state-leaves-the-core-data-model.md
NodeSpaceAI/nodespace-docs#94 (ADR-084) ADR-084 (proposed) The core-to-Pro upgrade and install flow: the website entry point, replacing the app, shared labels and sockets, the downgrade guard, going back to core, per-product update channels NodeSpaceAI/nodespace-docs#95 decisions/084-core-to-pro-upgrade-and-install-flow.md
NodeSpaceAI/nodespace-docs#96 (ADR-085) ADR-085 (proposed) The AI-chat sync policy in Pro NodeSpaceAI/nodespace-docs#97 decisions/085-ai-chat-sync-policy-in-pro.md

Once merged, the files live under https://github.com/NodeSpaceAI/nodespace-docs/tree/main/decisions.

Context

What core carries today (main @ af8ddb61): about 6.5k lines of Pro code and 3.7k lines of Pro tests.

  • The Pro Tauri layer: 27 pro_* commands, ProClient, a vendored copy of the Pro proto (nodespace.pro.v1.CloudSyncService) and its build step, the startup tier probe, and the Pro update source.
  • The Pro UI: the Account, workspace-members and "Add synced database" settings, the proSync and membership stores, the Collaboration tab, and the consent and re-login modals.
  • Pro state in core's data model: the tenant binding, plus sync_enabled and auth_status, on the database settings node and in the registry; the embedding push/pull API; the membership sweep query.
  • Edition branching in the app, daemon, CLI, proto socket tables and installer: is_pro_build(), --edition, the pro cargo feature, the -pro sockets, labels and markers, and tauri.pro.conf.json.
  • Pro, Supabase, tenant and nodespace-sync wording in comments, user-visible copy and the agent skill.

Pro code was still being added to core on 2026-09-29, and nothing in the repository pushes back yet. #3302 fixes that first.

How the Pro app is built today. This is the constraint that orders everything below.

  • nodespace-sync's .github/workflows/release.yml checks core out with no ref:, so at HEAD. It then runs core's own tauri build --config src-tauri/tauri.pro.conf.json with NODESPACE_PRO_SUPABASE_URL and NODESPACE_PRO_ANON_KEY set. scripts/build-pro-dmg.sh does the same locally. The Pro app is core's desktop app compiled in Pro mode.
  • The Pro daemon, nodespaced-pro, links core's crates at a pinned revision, 680c35d8 (sync's Cargo.toml and nodespaced-pro/Cargo.toml).
  • So a Pro release's app and daemon come from different core revisions. Deleting from core anything the app build uses breaks the next Pro release immediately.
  • Core holds no Supabase URL literal. A Pro build bakes it in through option_env!("NODESPACE_PRO_SUPABASE_URL") in daemon_setup.rs, which writes it into the daemon's launchd plist. Removing those reads (Delete the in-core Pro daemon profile, NODESPACE_PRO_* switch and tauri.pro.conf.json #3354) is what keeps any Supabase address out of every core build.

The rule: the Pro build must never break

  1. Add before you remove. Extension points, neutral replacements, and renames that only the pinned Pro daemon calls land first, with no sync gate. Until the pin gate below is met, a change to the desktop app must still compile in Pro mode:
    NODESPACE_PRO_SUPABASE_URL=https://example.invalid NODESPACE_PRO_ANON_KEY=dummy cargo check -p nodespace-app
  2. The pin gate comes before any removal. No sub-issue deletes, renames or reshapes anything the Pro app build consumes until nodespace-sync builds the Pro app and the Pro daemon from one pinned core revision (ADR-081 §7 step 1, ADR-082). Every such sub-issue lists SYNC:Pro GUI and Pro daemon build from one pinned core rev.
  3. After that, core merges first. Once the pin gate holds, a core merge reaches Pro users only when nodespace-sync bumps its pin. nodespace-sync adapts in that pin-bump change (ADR-083 §7).
  4. Replacement before removal. Where a removal takes away something the Pro app still needs, the sub-issue also lists a sync counterpart. The replacement is written in nodespace-sync and reviewed against the core branch before core merges (ADR-081 §7 step 4). The pin bump that crosses the removal then carries the replacement, so no Pro release ever lacks an area its Pro package hasn't taken over yet.
  5. How the gates are enforced.
    • Each gate sits in the sub-issue's Depends on list as SYNC:… text. When the nodespace-sync items are filed, that text becomes a link to the sync issue.
    • The PR for a gated sub-issue links, in its description, the merged sync PR or the closed sync issue for each gate. A reviewer who can't find a link requests changes.
    • Nobody removes a gate from a list to unblock a merge. If a gate can't be met, the core sub-issue waits.
  6. Rollback. Before the pin gate, revert the core PR. After it, nodespace-sync stays on its previous pin, so Pro users are unaffected, and core reverts or fixes forward.

External gates

These are tracked on other repositories and filed later. Each row names the core issues it blocks directly.

Gate Met when Needs in core first Blocks
SYNC:Pro GUI and Pro daemon build from one pinned core rev (the pin gate) The Pro app and the Pro daemon build from the same pinned core revision, and moving core's main alone changes nothing in a Pro build NodeSpaceAI/nodespace-docs#90 (ADR-082) accepted #3316, #3323, #3334, #3325, #3326, #3329, #3330, #3331, #3332, #3342, #3349, #3354, #3353, #3359
SYNC:Pro package registers its Tauri plugin … The Pro package registers the pro_* commands as a Tauri plugin with the same payloads, owns ProClient, the tier probe and the rebind, and vendors the Pro proto #3307 #3334
SYNC:Pro package supplies its update source … The Pro app supplies its own version endpoint and download page #3320 #3323
SYNC:Pro package registers the Account settings section … The replacement is built and reviewed against the #3325 branch #3312, #3315 #3325
SYNC:Pro package registers Add synced database … The replacement is built and reviewed against the #3326 branch #3312, #3315 #3326
SYNC:Pro frontend package owns its copies … The Pro release build injects its own Pro frontend through NODESPACE_EXTENSIONS #3311, #3315 #3333, and through it #3334, #3342, #3359, #3361 and #3366
SYNC:Pro frontend drives the Pro lifecycle … The Pro frontend runs its start, database-activation and debug-dump work through core's hooks #3313 #3333 (same reach)
SYNC:Pro frontend contributes collectionTreeRoots … The Pro frontend names the workspace root that the sidebar hides #3314 #3333 (same reach)
SYNC:Released Pro builds serve the shared daemon socket daemon.sock … A released Pro daemon listens on core's socket and accepts core's launcher arguments (ADR-084 §4.2) NodeSpaceAI/nodespace-docs#94 (ADR-084) accepted #3355
SYNC:Pro package's contribution to the database.sync-entry slot … The contribution is written and reviewed against a core revision that includes #3358 #3358 #3359
SYNC:Pro build runs core's skill build with NODESPACE_SKILL_EXTENSIONS … The Pro build change is reviewed against the #3370 branch #3369 #3370
WEB:nodespace-website serves a dedicated Share / Sync landing page … A person has checked the page at https://nodespace.ai/pro?entry=sync-database. An HTTP 200 proves nothing, because /pro already returns the home page NodeSpaceAI/nodespace-docs#94 (ADR-084) accepted #3359
#3286 The website deploys again none #3359

Phase plan

The phases follow ADR-081 §7. Each issue starts as soon as its own dependencies are met, so phases 2 and 3 run in parallel.

Phase ADR-081 §7 Core issues Waits for
0. Decide none none: NodeSpaceAI/nodespace-docs#88 (ADR-081) to NodeSpaceAI/nodespace-docs#96 (ADR-085) are the ADR PRs Review
1. Guardrail and freeze 0a, 0b #3299, then #3300 and #3301 NodeSpaceAI/nodespace-docs#88 (ADR-081) (#3301 also needs NodeSpaceAI/nodespace-docs#92 (ADR-083))
2. Extension points 2 Tauri: #3303, #3305, #3304, #3306, #3307, #3308, #3320, #3321. Frontend: #3309, #3310, #3311, #3312, #3313, #3314, #3315 NodeSpaceAI/nodespace-docs#90 (ADR-082) and #3299. No sync gate, because all of it is additive
3. Gate-free preparation 2, 5, 6, 7 Neutral replacements: #3318, #3319, #3324, #3328. Data-model changes the Pro app build doesn't consume (dead-code deletion, additive fields, and renames that only the pinned Pro daemon calls): #3337, #3338, #3339, #3340, #3341, #3343, #3344. Edition groundwork: #3346, #3347, #3348, #3350, #3352. Wording and skill groundwork: #3363, #3364, #3365, #3368, #3369 Their ADRs and #3299
4. One pin and the Pro package (nodespace-sync) 1, 3 none: nodespace-sync items, filed later NodeSpaceAI/nodespace-docs#90 (ADR-082)
5. Move area by area 4 Frontend entry: #3316. Settings: #3325, #3326. Sync lifecycle, collaboration and sync UI: #3329, #3330, #3331, #3332. Tauri layer: #3323, then #3334 and #3335 The pin gate and each area's sync counterpart
6. Pro-owned state 5 #3342 #3327, #3333, #3341 and the pin gate
7. Edition branching 6 #3349, #3351, #3353, #3356, #3354, #3355 NodeSpaceAI/nodespace-docs#94 (ADR-084), #3323, the pin gate and the shared-socket gate
8. Entry point and clean-up 7 #3358, #3359, #3360, #3361, #3366, #3367, #3370, then #3371 last The website page, #3286, the sync-entry contribution and the skill gate

Why core removes the Tauri layer last. ADR-081 §7 lists the Tauri layer first in step 4, and on the sync side it is first: the Pro package's Tauri plugin exists before anything else moves. But core can delete its pro_* commands (#3334) only after #3327 and #3333 have removed every in-core frontend caller.

Cross one pin bump together. Merge #3325, #3326 and #3329 close together, and have nodespace-sync cross all three in one pin bump. That way a Pro app never runs two proSync instances, and Pro users aren't held on an old pin for long.

Dependency graph

graph TD
  e0[["C0 · Epic: core ships no Pro code"]]
  subgraph gadr["Decisions (nodespace-docs)"]
    adr81(["D1 · ADR-081 boundary"])
    adr82(["D2 · ADR-082 extension points"])
    adr83(["D3 · ADR-083 Pro-owned state"])
    adr84(["D4 · ADR-084 upgrade + install"])
    adr85(["D5 · ADR-085 AI-chat sync policy"])
  end
  subgraph gext["External gates (nodespace-sync, nodespace-website; filed later)"]
    s_pin{{"SYNC: Pro GUI and Pro daemon build from one pinned core rev"}}
    s_cmd{{"SYNC: Pro Tauri plugin, ProClient, tier probe and rebind via core hooks"}}
    s_upd{{"SYNC: Pro package supplies its update source via the core hook"}}
    s_acct{{"SYNC: Pro Account settings section, reviewed against the C5.2 branch"}}
    s_dbs{{"SYNC: Pro Add synced database + sync badge, reviewed against the C5.3 branch"}}
    s_fe{{"SYNC: Pro frontend package owns the sync and collaboration UI"}}
    s_life{{"SYNC: Pro frontend drives its lifecycle through core hooks"}}
    s_roots{{"SYNC: Pro frontend contributes collectionTreeRoots"}}
    s_sock{{"SYNC: released Pro builds serve the shared daemon.sock"}}
    s_entry{{"SYNC: Pro contribution to database.sync-entry is ready"}}
    s_skill{{"SYNC: Pro build sets NODESPACE_SKILL_EXTENSIONS, reviewed against the C10.6 branch"}}
    x_web[/"WEB: nodespace.ai/pro?entry=sync-database landing page is live"/]
    x_3286[/"Core issue 3286: website deploy reconnected"/]
  end
  subgraph g1["C1 · Guardrail"]
    p1[["C1 · Guardrail"]]
    n1_1["C1.1 · ratchet + CLAUDE.md rule"]
    n1_2["C1.2 · ratchet at push + merge"]
    n1_3["C1.3 · storage-contract comments"]
  end
  subgraph g2["C2 · Tauri extension points"]
    p2[["C2 · Tauri extension points"]]
    n2_5["C2.5 · split app-lib / app crate"]
    n2_6["C2.6 · app-build helpers crate"]
    n2_1["C2.1 · AppExtensions + assemble"]
    n2_2["C2.2 · run(extensions, context)"]
    n2_3["C2.3 · daemon-ready + channel-rebuilt hooks"]
    n2_4["C2.4 · update-source hook"]
    n2_7["C2.7 · library adds window capability"]
    n2_8["C2.8 · enforce EXTENSION_API_VERSION"]
  end
  subgraph g3["C3 · Frontend extension API"]
    p3[["C3 · Frontend extension API"]]
    n3_1a["C3.1a · move Pro variant machine out"]
    n3_1b["C3.1b · contribution contract"]
    n3_2["C3.2 · virtual:nodespace-extensions"]
    n3_3["C3.3 · settings sections + slots"]
    n3_4["C3.4 · lifecycle + debugDump hooks"]
    n3_7["C3.7 · collectionTreeRoots"]
    n3_6["C3.6 · publish host API"]
    n3_5["C3.5 · stop importing Pro extension"]
  end
  subgraph g4["C4 · Pro Tauri layer out"]
    p4[["C4 · Pro Tauri layer out"]]
    n4_1["C4.1 · neutral data-plane-ready event"]
    n4_3["C4.3 · download URL in payload"]
    n4_4["C4.4 · delete Pro update source"]
    n4_5["C4.5 · delete pro_* commands + ProClient"]
    n4_6["C4.6 · delete Pro proto + build step"]
  end
  subgraph g5["C5 · Pro settings out"]
    p5[["C5 · Pro settings out"]]
    n5_1["C5.1 · remove free-user tenant copy"]
    n5_2["C5.2 · delete Account + admission"]
    n5_3["C5.3 · delete Add synced database"]
  end
  subgraph g6["C6 · Pro sync and collaboration UI out"]
    p6[["C6 · Pro sync and collaboration UI out"]]
    n6_1["C6.1 · delete dead sync residue"]
    n6_2["C6.2 · stop Pro lifecycle calls"]
    n6_3["C6.3 · drop tenant-root fallback"]
    n6_4a["C6.4a · delete Collaboration + membership"]
    n6_4b["C6.4b · delete proSync + modals"]
  end
  subgraph g7["C7 · Pro-owned data out"]
    p7[["C7 · Pro-owned data out"]]
    n7_1["C7.1 · delete embedding push/pull"]
    n7_3["C7.3 · rename event channel"]
    n7_3a["C7.3a · neutral origin names"]
    n7_4["C7.4 · generic settings accessor"]
    n7_5["C7.5 · registry extensions map"]
    n7_6["C7.6 · drop tenant-binding fields"]
    n7_7["C7.7 · member_of_edges"]
    n7_8["C7.8 · reword AI-chat Play"]
  end
  subgraph g8["C8 · Edition branching out"]
    p8[["C8 · Edition branching out"]]
    n8_1["C8.1 · DaemonProfile"]
    n8_2["C8.2 · daemon_profile hook"]
    n8_3a["C8.3a · drop --edition + pro feature"]
    n8_3b["C8.3b · static .pkg guard"]
    n8_4["C8.4 · delete Pro profile + overlay"]
    n8_6["C8.6 · collapse socket tables"]
    n8_7["C8.7 · cask preflight + zap"]
    n8_8["C8.8 · uninstall refusal"]
    n8_9["C8.9 · daemon lock + launcher args"]
    n8_10["C8.10 · daemon product check"]
    n8_11["C8.11 · other-product notices"]
  end
  subgraph g9["C9 · Share / Sync entry point"]
    p9[["C9 · Share / Sync entry point"]]
    n9_1a["C9.1a · sync-entry slot"]
    n9_1b["C9.1b · website action default"]
    n9_2["C9.2 · File menu item"]
    n9_3["C9.3 · delete syncEnabled flag"]
  end
  subgraph g10["C10 · Wording, docs, skill"]
    p10[["C10 · Wording, docs, skill"]]
    n10_1["C10.1 · seam docs"]
    n10_2["C10.2 · batch/event docs"]
    n10_3["C10.3 · data-model docs"]
    n10_4["C10.4 · frontend wording"]
    n10_5["C10.5 · post-C7 sweep"]
    n10_6a["C10.6a · skill installer"]
    n10_6b["C10.6b · skill extensions input"]
    n10_6["C10.6 · move shared-workspaces guide"]
    n10_7["C10.7 · ratchet to zero, hard ban"]
  end
  p5 --> p6
  s_roots --> p6
  s_life --> p6
  s_fe --> p6
  adr81 --> n1_1
  n1_1 --> n1_2
  n1_1 --> n1_3
  adr83 --> n1_3
  n1_1 --> n2_5
  adr82 --> n2_5
  n2_5 --> n2_6
  n2_5 --> n2_1
  n2_1 --> n2_2
  n2_6 --> n2_2
  n2_2 --> n2_3
  n2_2 --> n2_4
  n4_3 --> n2_4
  n2_2 --> n2_7
  n2_3 --> n2_8
  n2_4 --> n2_8
  n2_7 --> n2_8
  n3_6 --> n2_8
  n1_1 --> n3_1a
  adr82 --> n3_1a
  n3_1a --> n3_1b
  n3_1b --> n3_2
  n3_1b --> n3_3
  n3_1b --> n3_4
  n3_1b --> n3_7
  n3_2 --> n3_6
  n3_3 --> n3_6
  n3_4 --> n3_6
  n3_7 --> n3_6
  n3_6 --> n3_5
  s_pin --> n3_5
  n1_1 --> n4_1
  n1_1 --> n4_3
  n2_4 --> n4_4
  s_pin --> n4_4
  s_upd --> n4_4
  n2_3 --> n4_5
  p6 --> n4_5
  s_cmd --> n4_5
  n4_5 --> n4_6
  n1_1 --> n5_1
  p3 --> n5_2
  s_acct --> n5_2
  p3 --> n5_3
  n5_1 --> n5_3
  s_dbs --> n5_3
  n1_1 --> n6_1
  n4_1 --> n6_2
  n5_2 --> n6_2
  n3_7 --> n6_3
  adr83 --> n6_3
  s_pin --> n6_3
  n6_2 --> n6_4a
  n5_3 --> n6_4b
  n6_4a --> n6_4b
  n1_1 --> n7_1
  adr83 --> n7_1
  n1_1 --> n7_3
  adr83 --> n7_3
  n1_1 --> n7_3a
  adr83 --> n7_3a
  n1_1 --> n7_4
  adr83 --> n7_4
  n1_1 --> n7_5
  adr83 --> n7_5
  p6 --> n7_6
  n7_5 --> n7_6
  n1_1 --> n7_7
  adr83 --> n7_7
  n1_1 --> n7_8
  adr85 --> n7_8
  n1_1 --> n8_1
  adr82 --> n8_1
  n2_2 --> n8_2
  n8_1 --> n8_2
  n1_1 --> n8_3a
  adr82 --> n8_3a
  n1_1 --> n8_3b
  adr84 --> n8_3b
  s_pin --> n8_3b
  n4_4 --> n8_4
  n8_2 --> n8_4
  adr84 --> n8_4
  n8_3a --> n8_6
  n8_4 --> n8_6
  s_sock --> n8_6
  n1_1 --> n8_7
  adr84 --> n8_7
  n8_3b --> n8_8
  n8_3a --> n8_9
  adr84 --> n8_9
  n8_1 --> n8_10
  n8_9 --> n8_10
  s_pin --> n8_10
  n8_10 --> n8_11
  n5_3 --> n9_1a
  x_3286 --> n9_1b
  p6 --> n9_1b
  n9_1a --> n9_1b
  adr84 --> n9_1b
  s_entry --> n9_1b
  x_web --> n9_1b
  n2_2 --> n9_2
  n9_1b --> n9_2
  n9_1b --> n9_3
  p1 --> n10_1
  adr82 --> n10_1
  p1 --> n10_2
  p1 --> n10_3
  p1 --> n10_4
  p6 --> n10_4
  n10_1 --> n10_5
  n10_2 --> n10_5
  n10_3 --> n10_5
  p7 --> n10_5
  p1 --> n10_6a
  adr82 --> n10_6a
  n10_6a --> n10_6b
  n10_6b --> n10_6
  s_skill --> n10_6
  n10_4 --> n10_7
  n10_5 --> n10_7
  n10_6 --> n10_7
  p4 --> n10_7
  p8 --> n10_7
  p9 --> n10_7
  p10 -.-> e0
  p2 -.-> e0
  n1_2 -.-> p1
  n1_3 -.-> p1
  n2_8 -.-> p2
  n3_5 -.-> p3
  n4_4 -.-> p4
  n4_6 -.-> p4
  n5_2 -.-> p5
  n5_3 -.-> p5
  n6_1 -.-> p6
  n6_3 -.-> p6
  n6_4b -.-> p6
  n7_1 -.-> p7
  n7_3 -.-> p7
  n7_3a -.-> p7
  n7_4 -.-> p7
  n7_6 -.-> p7
  n7_7 -.-> p7
  n7_8 -.-> p7
  n8_11 -.-> p8
  n8_6 -.-> p8
  n8_7 -.-> p8
  n8_8 -.-> p8
  n9_2 -.-> p9
  n9_3 -.-> p9
  n10_7 -.-> p10
  classDef adr fill:#dbeafe,stroke:#1d4ed8,color:#0b1220
  classDef gate fill:#ffedd5,stroke:#c2410c,stroke-width:2px,stroke-dasharray:5 3,color:#1c0f05
  classDef ext fill:#f3f4f6,stroke:#4b5563,stroke-dasharray:2 2,color:#111827
  classDef parent fill:#dcfce7,stroke:#15803d,stroke-width:2px,color:#052e16
  classDef task fill:#ffffff,stroke:#6b7280,color:#111827
  classDef epic fill:#111827,stroke:#111827,color:#ffffff
  class adr81,adr82,adr83,adr84,adr85 adr
  class s_pin,s_cmd,s_upd,s_acct,s_dbs,s_fe,s_life,s_roots,s_sock,s_entry,s_skill gate
  class x_web,x_3286 ext
  class p1,p2,p3,p4,p5,p6,p7,p8,p9,p10 parent
  class n1_1,n1_2,n1_3,n2_5,n2_6,n2_1,n2_2,n2_3,n2_4,n2_7,n2_8,n3_1a,n3_1b,n3_2,n3_3,n3_4,n3_7,n3_6,n3_5,n4_1,n4_3,n4_4,n4_5,n4_6,n5_1,n5_2,n5_3,n6_1,n6_2,n6_3,n6_4a,n6_4b,n7_1,n7_3,n7_3a,n7_4,n7_5,n7_6,n7_7,n7_8,n8_1,n8_2,n8_3a,n8_3b,n8_4,n8_6,n8_7,n8_8,n8_9,n8_10,n8_11,n9_1a,n9_1b,n9_2,n9_3,n10_1,n10_2,n10_3,n10_4,n10_5,n10_6a,n10_6b,n10_6,n10_7 task
  class e0 epic
Loading

How to read it:

  • A solid arrow from A to B means A merges before B. A dotted arrow means a parent closes when its sub-issues have.
  • Blue: an ADR PR in nodespace-docs. Orange hexagon: a nodespace-sync gate, filed later. Grey: another external gate. Green: a parent issue. White: a sub-issue.
  • An edge that a longer path already implies is left out. Each issue's Depends on list is authoritative.

Checklist

Sub-issues are listed in execution order within each parent. "Gated" means the issue also waits for an item outside core.

Acceptance criteria

  • Every parent, Guardrail: stop new Pro code from landing in core #3302 to Remove Pro, Supabase and nodespace-sync wording from core comments, docs and the skill #3372, is closed. Each sub-issue is merged, or closed as not planned for a reason its parent names.
  • Core's source has no Pro code. On the final main, both commands print nothing:
    # The Pro proto and client, the Pro store, the edition switch, the Pro build env, Supabase, the Pro update URL
    git grep -n -I -P '\bnodespace_pro\b|nodespace\.pro\.v1|CloudSyncService|\bproSync\b|\bis_pro_build\b|NODESPACED?_PRO_|(?i:supabase)|pro\.nodespace\.ai|PRO_LATEST_URL' -- packages scripts .github README.md ':!scripts/check-pro-boundary*'
    # The pro_* Tauri commands and the calls to them, and the Pro tier event
    git grep -n -I -P '\bpro_[a-z0-9_]+\b|pro:tier-detected' -- packages scripts .github README.md ':!scripts/check-pro-boundary*'
    At af8ddb61 these print 337 and 296 lines.
  • The ratchet is at zero. bun run scripts/check-pro-boundary.ts exits 0 with every BASELINES count at 0, and Drive every Pro-boundary ratchet count to zero and make the check a hard ban #3371 has made it a hard ban. The only matches left are:
    • the pinned, commented allowances that ADR-081 (§2b, §8) and ADR-084 (§1, §5) sanction: the Share / Sync entry copy, the README's pointer to the website, and the installer, cask and CLI coexistence checks;
    • Guardrail: stop new Pro code from landing in core #3302's absence tests, which build their needles from fragments.
  • Core's shipped artifacts carry none of it. After a community release build (bun run tauri:build), both commands print nothing:
    grep -a -l -i -E 'supabase|pro\.nodespace\.ai|nodespace\.pro\.v1|CloudSyncService' target/release/bundle/macos/NodeSpace.app/Contents/MacOS/*
    grep -r -l -E 'pro_(tier|current_status|activate_database|bind_tenant)|pro:tier-detected' packages/desktop-app/build
    And packages/desktop-app/src-tauri/tauri.pro.conf.json no longer exists.
  • Core stayed whole at every step. After each sub-issue merged:
    • main built, and bun run test and the merge gate passed;
    • the free app worked unchanged, apart from the changes the sub-issue names, checked against an isolated NODESPACE_HOME and never against ~/.nodespace.
  • Existing databases keep working. A database created by the current release (v0.3.x) opens in core at the final main with no incompatible-database screen and no rewrite (ADR-083 §6).
  • The Pro build never broke. No gated sub-issue merged before its gates were met, and each gated PR links its sync evidence. A Pro release that nodespace-sync builds against the final core pin passes nodespace-sync's release checks, which is ADR-081 §7's completion criterion.
  • New Pro work goes to nodespace-sync. CLAUDE.md states the placement rule, and the issue-management skill routes Pro/sync issues to nodespace-sync (Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299).
  • The housekeeping items below are done.

Housekeeping on existing issues

These are actions on existing issues, not sub-issues. They are ADR-081 §7 step 0b, applied to work already filed.

Out of scope

  • All nodespace-sync work, filed later on that repository. That covers the single pin, the Pro package and Pro app crate, the Pro Tauri plugin and Pro frontend, Pro-owned storage and its migration, the Pro installer's label, socket and downgrade fixes, and the Pro update channel. The SYNC: gates above stand in for these items.
  • nodespace-cloud work, such as the follow-ups to ADR-085's AI-chat policy. Filed later.
  • The website's landing page (the WEB: gate), filed later on nodespace-website.
  • nodespace-docs: the ADRs themselves, which are separate PRs, and the refresh of the architecture docs once they are accepted, tracked by a docs issue.
  • Any change to the free app beyond what ADR-084 specifies: the entry point and the coexistence guards.
  • New Pro features or Pro fixes in core. During the migration, Pro bugs are filed on nodespace-sync. A fix to Pro code still in core may land only if it does not raise the ratchet (Guardrail: stop new Pro code from landing in core #3302's raise class 2).

Working rules for every sub-issue

  • Self-assign when you pick an issue up (bun run gh:assign <N> "@me"). Nothing is assigned at filing.
  • Find code by symbol. Line numbers in the issues are hints at af8ddb61, and Split the desktop Tauri crate into an app-lib library and a thin app crate #3303 moves packages/desktop-app/src-tauri/src into packages/desktop-app/app-lib.
  • Every PR runs bun run scripts/check-pro-boundary.ts and pastes the printed BASELINES (Guardrail: stop new Pro code from landing in core #3302's standard acceptance line).
  • Code comments cite ADRs, never GitHub issue numbers.
  • Run bun run test:changed while you work and bun run --cwd packages/desktop-app quality:fix for frontend changes. Run clippy for the crates you touched, and never push with --no-verify.
  • Run Rust tests only through bun run test:changed, which takes the machine slot. Keep at most three or four Rust-heavy sub-issues in flight at once on the shared dev machine.
  • Labels: this epic has epic, architecture and pro-boundary. Every parent and sub-issue has architecture and pro-boundary.

Issue map (plan key → issue)

Key Issue Title
C1.1 #3299 Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule
C1.2 #3300 Run the Pro-boundary ratchet in the push check and before the merge slot
C1.3 #3301 Rewrite the restrictedToMembers and member_of permission comments as storage contracts
C1 #3302 Guardrail: stop new Pro code from landing in core
C2.5 #3303 Split the desktop Tauri crate into an app-lib library and a thin app crate
C2.1 #3304 Add AppExtensions with Tauri-plugin support and a runtime-generic assemble()
C2.6 #3305 Move the bundle-staging build helpers into a nodespace-app-build crate
C2.2 #3306 Route the desktop app through run(extensions, context) with no extensions in core
C2.3 #3307 Add daemon-ready tasks and a channel-rebuilt hook to AppExtensions
C2.7 #3308 Have the app library add core's window capability at startup
C3.1a #3309 Move the Pro variant machine and DATABASE_SETTINGS_NODE_ID out of the generic registry files
C3.1b #3310 Adopt ADR-082's contribution contract: ids, when() predicates, keyed and isolated outlets
C3.2 #3311 Add the virtual:nodespace-extensions build entry and the extension-api import alias
C3.3 #3312 Add settings-section and database settings-slot extension points
C3.4 #3313 Add start, onDatabaseActivated and debugDump extension lifecycle hooks
C3.7 #3314 Add the collectionTreeRoots extension point to the sidebar collection tree
C3.6 #3315 Publish the extension host API: services, ui and testing entries, version policy
C3.5 #3316 Stop importing the Pro extension in core; register it only through the build entry
C3 #3317 Turn the UI-extension registry into ADR-082's build-time frontend extension API
C4.1 #3318 Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected
C4.3 #3319 Carry the download URL in the update-check payload instead of a hardcoded releases page
C2.4 #3320 Let an app built on core supply its update source through AppExtensions
C2.8 #3321 Enforce EXTENSION_API_VERSION: Rust matches TypeScript, fixture changes bump it
C2 #3322 Split the desktop Tauri crate and add ADR-082's Tauri extension points
C4.4 #3323 Delete the Pro arm of core's built-in update source and its worker parsing
C5.1 #3324 Remove tenant and sync wording shown to free users in Database settings
C5.2 #3325 Delete the Pro Account section, workspace-members card and tenant-admission calls
C5.3 #3326 Delete the Add synced database dialog and tenant badge from Database settings
C5 #3327 Move the Pro account, admission and synced-database settings out of core
C6.1 #3328 Delete dead Pro residue: sync:* log listeners and the Recovered Items seed script
C6.2 #3329 Stop driving Pro sync lifecycle from the app shell, database store and debug channel
C6.3 #3330 Remove the tenant-binding root fallback from the collections tree
C6.4a #3331 Delete the Collaboration tab, membership store and service, and the Pro plugin from core
C6.4b #3332 Delete the Pro sync store, consent and relogin modals, and the Pro variant machine
C6 #3333 Move the Pro sync and collaboration UI out of core
C4.5 #3334 Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core
C4.6 #3335 Delete the vendored nodespace_pro.proto, its build.rs step and its build-only deps
C4 #3336 Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source
C7.1 #3337 Delete the dead embedding push/pull seam; keep embedding.origin for existing databases
C7.3 #3338 Rename the origin-filtered event channel to subscribe_to_events_excluding_origin
C7.3a #3339 Give the replicated-apply origin constant and engine gate neutral names, value unchanged
C7.4 #3340 Replace DatabaseSettingsNode's Pro fields and accessors with a generic settings accessor
C7.5 #3341 Carry opaque registry extensions through DatabaseInfo and drop the tray's synced label
C7.6 #3342 Replace the registry's tenant-binding fields with extension keys and set_extensions
C7.7 #3343 Generalize get_multi_membership_edges into member_of_edges with caller-supplied filters
C7.8 #3344 Reword the AI-chat privacy Play description without tenant wording
C7 #3345 Move Pro-owned data out of core's data model (ADR-083)
C8.1 #3346 Add a DaemonProfile for the app's daemon binary and service env (no behavior change)
C8.2 #3347 Let an app built on core supply its DaemonProfile via AppExtensions::daemon_profile
C8.3a #3348 Remove the pro feature and --edition from nodespaced and reject unknown arguments
C8.3b #3349 Move the .pkg guard to a static pre-install check and declare NodeSpaceProduct
C8.7 #3350 Add a Homebrew cask preflight for other NodeSpace products; keep databases out of zap
C8.8 #3351 Make nodespace uninstall refuse when the installed app is not the free NodeSpace
C8.9 #3352 Add a single-instance daemon lock and export the launcher's argument list
C8.10 #3353 Check the running daemon's executable against the app's DaemonProfile at startup
C8.4 #3354 Delete the in-core Pro daemon profile, NODESPACE_PRO_* switch and tauri.pro.conf.json
C8.6 #3355 Collapse proto socket, pid and marker tables to debug/release; drop CLI Pro discovery
C8.11 #3356 Tell the user when another NodeSpace product's daemon is running or registered
C8 #3357 Remove Pro edition branching from the core app, daemon, CLI and installer
C9.1a #3358 Add the replaceable database.sync-entry action slot to the extension API
C9.1b #3359 Make the Share / Sync website action the sync-entry default; remove the Labs card
C9.2 #3360 Add a File menu item that opens the Share / Sync this database entry
C9.3 #3361 Delete the Labs syncEnabled flag and guard the free app's single sync entry point
C9 #3362 Add the "Share / Sync this database" entry point that opens nodespace.ai
C10.1 #3363 Describe core's access gate and daemon seams without naming the Pro daemon
C10.2 #3364 Reword core's batch-write, event and collision docs without naming the sync daemon
C10.3 #3365 Reword core data-model and identity docs that cite Pro, Supabase, RLS or tenants
C10.4 #3366 Remove Pro and cloud-sync wording from frontend comments, tests and the fly-out tooltip
C10.5 #3367 Sweep the Pro and sync wording C7 leaves around replicated writes and AI-chat privacy
C10.6a #3368 Install skill references from the staged directory and record installed files
C10.6b #3369 Add the NODESPACE_SKILL_EXTENSIONS build input to core's skill build
C10.6 #3370 Move the Pro shared-workspaces agent guidance out of core's skill
C10.7 #3371 Drive every Pro-boundary ratchet count to zero and make the check a hard ban
C10 #3372 Remove Pro, Supabase and nodespace-sync wording from core comments, docs and the skill

Docs

  • ADR-081: NodeSpaceAI/nodespace-docs#88
  • ADR-082: NodeSpaceAI/nodespace-docs#90
  • ADR-083: NodeSpaceAI/nodespace-docs#92
  • ADR-084: NodeSpaceAI/nodespace-docs#94
  • ADR-085: NodeSpaceAI/nodespace-docs#96
  • architecture docs: NodeSpaceAI/nodespace-docs#98

Plan key: C0 (pro-boundary DAG).

🤖 Generated with Claude Code

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. self-assigned this
    on Sep 30, 2026
  2. added
    pro-boundary
    on Sep 30, 2026
  3. mstomar125 commented on Sep 30, 2026

    @mstomar125
    ContributorAuthor

    Known plan corrections to apply before executing the affected issues. The DAG critic and the epic review found these after the sub-issues were written. They are recorded here so nothing is lost.

    1. Duplicate edit. Rewrite the restrictedToMembers and member_of permission comments as storage contracts #3301 and Reword core data-model and identity docs that cite Pro, Supabase, RLS or tenants #3365 both rewrite the restrictedToMembers / member_of permission comments in core_schemas.rs as ADR-083 §4 storage contracts. Do it once, in Rewrite the restrictedToMembers and member_of permission comments as storage contracts #3301, and drop it from Reword core data-model and identity docs that cite Pro, Supabase, RLS or tenants #3365.

    2. C4's API wording doesn't match C2. Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336 mentions core_commands() / command_set![] and "channel-ready" hooks run inside GrpcClient::reconnect. Split the desktop Tauri crate and add ADR-082's Tauri extension points #3322 actually defines on_daemon_ready / DaemonReady tasks and on_channel_rebuilt hooks awaited in probe_and_recover_channel. Follow C2's API when doing Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336's sub-issues.

    3. Stale paths in acceptance greps. After Split the desktop Tauri crate into an app-lib library and a thin app crate #3303 moves the Tauri code to packages/desktop-app/app-lib (crate nodespace-app-lib), the acceptance greps in Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336 and Remove Pro edition branching from the core app, daemon, CLI and installer #3357 still point at packages/desktop-app/src-tauri/... and -p nodespace-app, so they would pass with Pro code still present. Point them at packages/desktop-app and -p nodespace-app-lib.

    4. Missing sync-replacement gates on C6 sub-issues. Each C6 sub-issue that deletes Pro UI also needs its sync-replacement gate, not only the pin gate:

      These gates are nodespace-sync items that haven't been filed yet.

    5. One gate under two names. The C3 and C3.5 gate "Pro app and Pro daemon build from one pinned core revision" and C4–C9's "Pro GUI and Pro daemon build from one pinned core rev" are the same nodespace-sync gate. It will be filed once.

    6. Deletion order vs ADR-081. The plan deletes the pro_* Tauri commands (Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core #3334) after C5 and C6, because the in-core frontend still calls them. ADR-081 §7 step 4 is being amended to match; see nodespace-docs#89.

    7. External gates (not yet filed). Some dependencies are nodespace-sync gates (SYNC:...) or a nodespace-website item (WEB: landing page for the Share / Sync entry). They are listed in each issue's Dependencies section and will be linked as blocked-by when those issues are filed.

    Also applied at filing time:

  4. 2 remaining items

  5. mstomar125 commented on Oct 1, 2026

    @mstomar125
    ContributorAuthor

    Re-planned against the accepted ADR-081 to ADR-085 (nodespace-docs main 23a28e9).

    This epic's children are now the umbrella issues:

    The earlier sub-issues written for the keep-Pro-working plan are closed as superseded by those umbrellas, each with a comment naming its umbrella. #3370 stays open: it's approved, and it lands after sync#517.

  6. malibio commented on Oct 11, 2026

    @malibio
    Collaborator

    @mstomar125 triage question: the strip itself (#3412) is closed, and what remains in core is tracked in #3414 and #3435. Is anything else left under this epic, or can it close?

  7. mstomar125 commented on Oct 12, 2026

    @mstomar125
    ContributorAuthor

    Answer to the triage question: not yet, one real item is left.

    The epic closes when #3414 and #3435 are closed.

    🤖 Generated with Claude Code

  8. mstomar125 commented on Oct 12, 2026

    @mstomar125
    ContributorAuthor

    Closing as completed. Every sub-issue is closed: #3412, #3413, #3414, #3415 and NodeSpaceAI/nodespace-sync#517 (5/5). The last open item under #3414, #3435, closed today with #3754.

    Where core stands, on main af46b30f9

    • No Pro code. Both acceptance greps in this epic print nothing:

      • the Pro proto, client and store, the edition switch, the Pro build env, Supabase and the Pro update URL;
      • the pro_* commands and pro:tier-detected.

      tauri.pro.conf.json no longer exists.

    • The ban is enforced. The boundary check (scripts/check-sync-boundary.ts) is a hard ban that runs on every push and in every merge gate, and it passed on Remove the superseded replicated-apply client id (closes #3435) #3754's gate.

    • No client-id switch. Core no longer changes trigger or invariant behaviour based on a client id. A build marks replicated writes with the in-process WriteContext and reserves its writers' ids through DaemonExtensions::reserved_client_id; both are documented in ADR-082 §5 and the extension-points guide.

    • Sync is assembled from one pinned core revision through those extension points. The hosted Core canary (run 38225766715) builds Sync main against core main af46b30f9 with all checks green.

    Still open, outside this epic's scope (per its Housekeeping and Out-of-scope sections)

    🤖 Generated with Claude Code

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

Metadata

Metadata

Assignees

Labels

pro-boundary

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions