Repository navigation
Description
Goal
Remove the whole Pro Tauri layer from core's desktop app (packages/desktop-app/src-tauri, crate nodespace-app): the pro_* commands, the Pro gRPC client, the vendored Pro proto and its build step, and the Pro update source (ADR-081 (proposed)). After #3336 the free app ships none of them.
The nodespace-sync Pro package provides the same behaviour through core's extension points (ADR-082 (proposed)):
- a Tauri plugin for the commands;
- a channel-ready task for the tier probe;
- a channel-rebuilt hook for the client rebind;
- an update-source override for its version and download page.
#3336 also fixes two things the free app gets wrong today because of this layer: its only "gRPC answers" reload rides a Pro event, and the update banner's Download link is hardcoded.
Why the order matters
- The Pro desktop app is core's desktop app built in Pro mode. sync's
scripts/build-pro-dmg.shand.github/workflows/release.ymlrun core'stauri build --config src-tauri/tauri.pro.conf.jsonwithNODESPACE_PRO_*baked in. - The GUI and the daemon come from different core revisions.
release.ymlchecks core out with noref:(default-branch HEAD), while the Pro daemon pins core680c35d8in sync's Cargo manifests. Until the GUI is pinned too, a core deletion reaches the next Pro release immediately. - So every deletion here waits for two gates:
- The canonical pin gate
SYNC:Pro GUI and Pro daemon build from one pinned core rev(the same key Move the Pro account, admission and synced-database settings out of core #3327, Move the Pro sync and collaboration UI out of core #3333, Move Pro-owned data out of core's data model (ADR-083) #3345 and Remove Pro edition branching from the core app, daemon, CLI and installer #3357 use). Once it holds, a core merge reaches Pro only when sync bumps its pin, and sync adapts in that pin-bump PR (ADR-083 §7). - A sync-first counterpart. It is satisfiable before the core PR merges, because it needs only Add daemon-ready tasks and a channel-rebuilt hook to AppExtensions #3307 or Let an app built on core supply its update source through AppExtensions #3320 on main. It makes sure the pin bump that crosses the deletion already carries the replacement, so no Pro release ships without tier detection, sign-in, collaboration or its update check.
- The canonical pin gate
Current state (main @ af8ddb6)
Line numbers are orientation only. #3322 may split the Tauri crate (ADR-082 §3.1 moves src-tauri/src/... into a library package), so every sub-issue locates code by symbol.
Path (under packages/desktop-app/ unless noted) |
Lines | What |
|---|---|---|
src-tauri/src/commands/pro_sync.rs |
1-1219 | 27 pro_* commands, DTOs, admission error mapping, DEFAULT_WORKER_URL; 13 unit tests |
src-tauri/src/services/pro_client.rs |
1-360 | ProClient/ProTier, pb (nodespace.pro.v1), tier probe, rebind; 5 unit tests |
src-tauri/proto/nodespace_pro.proto |
1-437 | vendored CloudSyncService (29 RPCs), byte-identical to sync's nodespaced-pro/proto/nodespace_pro.proto |
src-tauri/build.rs main() |
173-192 | protoc plus a tonic_build compile of the Pro proto |
src-tauri/Cargo.toml |
15-18, 51 | tonic-build and protoc-bin-vendored build deps; prost (used only by the generated Pro code) |
src-tauri/src/lib.rs run() |
488-490, 592-597, 607-635, 710-736 | startup Pro probe (manage(pro), emits pro:tier-detected); 27 handler entries |
src-tauri/src/commands/nodes.rs probe_and_recover_channel |
568-606 | ProClient::rebind after a wedged-channel rebuild; a private sentinel GetNode probe |
src-tauri/src/update_check.rs |
5-10, 34-42, 116-124, 158-194, 262-283 | Pro update source (pro.nodespace.ai/pro/latest-version) and 2 tests |
src/lib/components/layout/app-shell.svelte |
22, 249, 277-284, 599-601 | the free app's schema/collection reload on pro:tier-detected |
src/lib/services/daemon-status.ts |
17-19 | module doc names that reload |
src/tests/unit/props-driven-components.test.ts |
246-270 | a tautological test of that reload |
src/lib/stores/update-status.svelte.ts |
27-28, 101-104 | hardcoded RELEASES_URL, whose comment wrongly says Pro releases are published there |
scripts/refresh-pro-proto.ts (repo root) |
1-59 | re-vendors the proto from a sibling sync checkout |
Effects on the free app today:
- Wasted startup work. Every start runs the Pro probe (a
WatchSyncStatusRPC, up to two 2 s timeouts) and manages aProClientit never uses. - A hidden reload dependency.
pro:tier-detectedis the free app's only "gRPC answers" reload signal.daemon-status: healthyonly proves a socket connect (daemon_setup.rscheck_daemon_socket). - A wrong download link. A Pro user who clicks Download on the update banner is sent to the community installer.
What #3336 needs from #3322 (ADR-082 (proposed))
- Route the desktop app through run(extensions, context) with no extensions in core #3306: core's command list lives in
core_commands()(command_set![…]). Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core #3334 deletes the 27 Pro entries there. - Add daemon-ready tasks and a channel-rebuilt hook to AppExtensions #3307: channel-ready hooks (where the Pro tier probe moves) and channel-rebuilt hooks, which run inside
GrpcClient::reconnect(where the rebind moves). Add daemon-ready tasks and a channel-rebuilt hook to AppExtensions #3307 also rewords theGrpcClientchannel docs. - Let an app built on core supply its update source through AppExtensions #3320: core's update source becomes
BuiltinUpdateSource, replaceable throughAppExtensions::update_source. Let an app built on core supply its update source through AppExtensions #3320 depends on Carry the download URL in the update-check payload instead of a hardcoded releases page #3319, which owns thedownload_urlpayload field, the store and the banner.
Gates (nodespace-sync items, filed later)
SYNC:Pro GUI and Pro daemon build from one pinned core rev(canonical pin gate; Delete the Pro arm of core's built-in update source and its worker parsing #3323, Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core #3334)SYNC:Pro package registers its Tauri plugin (the pro_* commands with the same payloads; the moved Pro frontend calls the plugin names), ProClient, tier probe and channel-rebuilt rebind via core hooks, and vendors nodespace_pro.proto(Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core #3334). Under ADR-082 §3.3 the commands are invoked asplugin:<name>|pro_*.SYNC:Pro package supplies its update source (version and download URL) via the core hook(Delete the Pro arm of core's built-in update source and its worker parsing #3323)
Sub-issues
| Key | Title | Size | Direct deps |
|---|---|---|---|
| #3318 | Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected | M | #3299 |
| #3319 | Carry the download URL in the update-check payload instead of a hardcoded releases page | S | #3299 |
| #3323 | Delete the Pro arm of core's built-in update source and its worker parsing | S | NodeSpaceAI/nodespace-docs#88 (ADR-081), #3320, SYNC pin, SYNC update source |
| #3334 | Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core | M | NodeSpaceAI/nodespace-docs#88 (ADR-081), #3307, #3318, #3327, #3333, SYNC pin, SYNC commands |
| #3335 | Delete the vendored nodespace_pro.proto, its build.rs step and its build-only deps | S | #3334 |
#3328 (delete scripts/seed-recovered-item.ts) was folded into #3328. Its key is retired so the other keys stay stable.
Order:
- Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected #3318 and Carry the download URL in the update-check payload instead of a hardcoded releases page #3319, in parallel, once Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299 is on main.
- Other parents build on them: Let an app built on core supply its update source through AppExtensions #3320 on Carry the download URL in the update-check payload instead of a hardcoded releases page #3319, and Stop driving Pro sync lifecycle from the app shell, database store and debug channel #3329 on Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected #3318.
- Delete the Pro arm of core's built-in update source and its worker parsing #3323 once Let an app built on core supply its update source through AppExtensions #3320 and its gates hold. Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core #3334 once Add daemon-ready tasks and a channel-rebuilt hook to AppExtensions #3307, Move the Pro account, admission and synced-database settings out of core #3327, Move the Pro sync and collaboration UI out of core #3333 and its gates hold. The two are independent.
- Delete the vendored nodespace_pro.proto, its build.rs step and its build-only deps #3335 after Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core #3334.
Blockers listed on this parent belong to the parent only. Never copy them onto the sub-issues. If #3318 inherited #3333, or #3319 inherited #3322, the graph would loop: #3333 → #3329 → #3318 → #3333, and #3322 → #3320 → #3319 → #3322.
Coordination with other parents
- Delete dead Pro residue: sync:* log listeners and the Recovered Items seed script #3328 deletes
scripts/seed-recovered-item.ts. - Stop driving Pro sync lifecycle from the app shell, database store and debug channel #3329 depends on Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected #3318. It must keep
unlistenDataPlaneReady(declaration, listener and cleanup), theschemasDataimport and the rewrittenNavigationSidebar Tauri independencetests. It removes onlyproSync's import, start and cleanup. - Remove Pro and cloud-sync wording from frontend comments, tests and the fly-out tooltip #3366 no longer rewords the
daemon-status.tsmodule doc; Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected #3318 does. - Let an app built on core supply its update source through AppExtensions #3320 depends on Carry the download URL in the update-check payload instead of a hardcoded releases page #3319. It adds no
download_urlfield and noRELEASES_URLfallback.BuiltinUpdateSource's download URL is Carry the download URL in the update-check payload instead of a hardcoded releases page #3319's releases page for the public source andNonefor the Pro arm, which Delete the Pro arm of core's built-in update source and its worker parsing #3323 deletes. - Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299's absence-test convention: a test that asserts a Pro string is absent builds its needle from fragments. Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected #3318 does this.
Acceptance (parent)
- Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected #3318, Carry the download URL in the update-check payload instead of a hardcoded releases page #3319, Delete the Pro arm of core's built-in update source and its worker parsing #3323, Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core #3334 and Delete the vendored nodespace_pro.proto, its build.rs step and its build-only deps #3335 are merged.
- This search returns nothing:
rg -n -e 'pro_sync|pro_client|ProClient|ProTier|nodespace_pro\b|nodespace\.pro\.v1|CloudSyncService|pro:tier-detected|PRO_LATEST_URL|pro\.nodespace\.ai|127\.0\.0\.1:8787|refresh-pro-proto|DEFAULT_WORKER_URL' packages/desktop-app/src-tauri scripts -g '!scripts/check-pro-boundary*' -
rg -n -F -e pro:tier-detected -e RELEASES_URL packages/desktop-app/srcreturns nothing. -
cargo tree -p nodespace-app -e build --depth 1lists neithertonic-buildnorprotoc-bin-vendored, andcargo tree -p nodespace-app -e normal --depth 1 | rg -w prostreturns nothing. -
bun run scripts/check-pro-boundary.ts --list proNamedFilesno longer listspro_sync.rs,pro_client.rs,nodespace_pro.protoorrefresh-pro-proto.ts, and the check passes on main. - Free app: it starts without calling
CloudSyncService, schemas and collections load, and the update banner opens the public releases page. - Pro app, built by sync from a pinned core rev that contains all of Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336: tier detection, sign-in, the signed-in state after a webview reload, sync status, the collaboration roster, admissions, wedge recovery and the Pro update check (with the Pro package's own download page) all work.
Dependencies
- NodeSpaceAI/nodespace-docs#88 (ADR-081) (ADR-081 (proposed)): the boundary decision.
- Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299: the ratchet every sub-issue lowers, and its absence-test convention.
- Add daemon-ready tasks and a channel-rebuilt hook to AppExtensions #3307, Let an app built on core supply its update source through AppExtensions #3320: the Tauri extension points.
- Move the Pro account, admission and synced-database settings out of core #3327, Move the Pro sync and collaboration UI out of core #3333: every frontend caller of a
pro_*command, and the Pro store'spro:tier-detectedlistener, leaves core before the commands go. - The three SYNC gates above.
Notes (verified against the code)
pro_current_statusis used.stores/pro-sync.svelte.tscalls it to restore the signed-in state after a webview reload, andproSync.start()invokespro_tieron every free-app start (app-shell.svelte:260). Neither can go before Move the Pro sync and collaboration UI out of core #3333.- Search
nodespace_prowith a word boundary. A fixed-string search also matches the core cratenodespace_proto. The searches above also exclude Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299's checker, whose patterns and fixtures contain these names. - Build deps.
prosthas no user innodespace-appother than the generated Pro code.packages/protokeeps its owntonic-buildandprotoc-bin-vendored, so the lockfile keeps both packages. - Test counts. 18 unit tests leave with the code: 13 in
pro_sync.rsand 5 inpro_client.rs.update_check.rshas 2 Pro tests. The proto has 29 RPCs.
Plan key: C4 (pro-boundary DAG).
🤖 Generated with Claude Code
Activity
mstomar125 commentedon Oct 1, 2026
Superseded by #3412 (umbrella against the final ADR-081–085)