Repository navigation
Description
Summary
Remove the Pro column from the transport contract in packages/proto/src/socket.rs. Daemon sockets, UI pid files and incompatible-database markers become release/dev only. That is the one service identity every NodeSpace daemon uses under ADR-084 decision 2(a) (proposed).
Update every consumer:
- the daemon binary and its tray;
- the daemon library's
marker_path; - the CLI's socket discovery, its
--sockethelp anduninstall; - the desktop app's identity functions;
- the generated CLI reference in the skill.
Context
-
The tables.
socket.rsholds three 4-entry tables keyed by(is_debug, is_pro):DAEMON_SOCKET_NAMES(46-51), withdaemon_socket_nameanddaemon_socket_relative;UI_PID_NAMES(99), withui_pid_nameandui_pid_relative;INCOMPATIBLE_DATABASE_NAMES(138-143), withincompatible_database_name.
After Remove the pro feature and --edition from nodespaced and reject unknown arguments #3348 and Delete the in-core Pro daemon profile, NODESPACE_PRO_* switch and tauri.pro.conf.json #3354, no core caller passes
is_pro = true. -
Who outside core still uses the Pro entries:
- The CLI in the Pro
.pkg. It is core's CLI.discover_socket_in(packages/cli/src/lib.rs229-242) probes every name inDAEMON_SOCKET_NAMES, and that probe is how it finds a Pro daemon ondaemon-pro.socktoday. The shared-socket gate is what makes removing the probe safe. nodespaced-pro. It callsincompatible_database::marker_path(true)(syncnodespaced-pro/src/main.rs:543). Nothing breaks at merge time, because the Pro daemon is pinned. sync changes the call tomarker_path()in its pin-bump PR, which is the caller-supplied replacement ADR-082 §4 describes (see ADR-083 §7). No separate gate is needed.
- The CLI in the Pro
-
Both sides pin the app/daemon socket agreement literally. The daemon's
socket_fallback_variant_testsand the desktop app'seach_variant_dials_the_socket_its_daemon_bindsboth shrink to two rows.
Scope
packages/proto/src/socket.rs
- Module doc (1-31):
- Use a two-row table: release
daemon.sockand devdaemon-dev.sock. - Replace the Pro-discriminator paragraph. Say that
is_debugis the calling binary's owncfg!(debug_assertions), and that every daemon registered under core's service identity uses these names, whichever product built it. - Name no product.
- Use a two-row table: release
- Sockets:
DAEMON_SOCKET_NAMES: [&str; 2](release, dev),daemon_socket_name(is_debug)anddaemon_socket_relative(is_debug). - UI pid files:
UI_PID_NAMES: [&str; 2],ui_pid_name(is_debug)andui_pid_relative(is_debug). - Markers:
INCOMPATIBLE_DATABASE_NAMES: [&str; 2]andincompatible_database_name(is_debug). - Tests (160-242):
- Iterate over
[false, true], and expect 2 distinct names per table. - Rename
canonical_name_is_the_release_community_sockettocanonical_name_is_the_release_socket.
- Iterate over
packages/daemon
src/main.rs:open_default_database(101) callsmarker_path().socket_pathanddefault_socket_path_for(is_debug)(124-153). In their docs, "no Pro or dev app" becomes "no dev app".socket_fallback_variant_tests(1971-2062):EXPECTEDhas two rows;- the module doc (1971-1983) no longer names Pro;
- the distinctness count is 2;
- the env-override test uses
default_socket_path_for(cfg!(debug_assertions)).
src/incompatible_database.rs:- Module doc (18-23): "every daemon built on this crate", without naming
nodespaced-pro. pub fn marker_path() -> Result<PathBuf>(34-50) joinsincompatible_database_name(cfg!(debug_assertions))ontonodespace_dir(). Rewrite its doc, because the caller-variant contract goes away.- Replace
the_marker_name_follows_the_callers_variant_not_this_crates_features(228-234) with a test that the marker isnodespace_dir()joined with this flavour's name.
- Module doc (18-23): "every daemon built on this crate", without naming
src/tray.rsui_pid_path: useui_pid_relative(cfg!(debug_assertions)).
packages/cli
src/lib.rs:- The
Cli.socketdoc (102-108) becomes: "...or auto-discovers a running dev daemon's socket if that one is absent...". - The
discover_socket_indoc (222-228) says "release/dev". - The test at 660-681 uses
daemon-dev.sock, and its comment says "Only a dev daemon is up".
- The
src/commands/uninstall.rsremove_sock(126-136): the doc says "every build flavour's socket (release and dev)". The code is unchanged.- Generated reference: regenerate
packages/skill/references/cli.md(line 598) withbun run skill:gen.packages/agentembeds that file withinclude_str!, so it needs no edit.
packages/desktop-app/src-tauri/src
daemon_socket_relative,ui_pid_relative,grpc_client::default_socket_path_forandincompatible_database::marker_path_instop passing thefalseargument.
Out of scope
- The Windows pipe name, which already has no flavour, and the systemd unit name.
- The lock (Add a single-instance daemon lock and export the launcher's argument list #3352).
- nodespace-docs pages about the socket table.
Steps
- Run the startup sequence, and assign the issue at pickup. Confirm the shared-socket gate is met, and read ADR-084 §4.
- Change proto first, so the signature changes surface every caller as a compile error. Then update the daemon, the CLI and the app.
- Run
bun run skill:gen. - Run
bun run scripts/check-pro-boundary.tsand paste the printedBASELINES. - Run
bun run test:changed(a proto change reaches every Rust tier) andbun run quality:fix. Push and open the PR. Code comments must not cite GitHub issue numbers.
Acceptance criteria
- Run both of these on
packages/proto packages/daemon packages/cli packages/desktop-app/src-tauri/src packages/skill. Both print nothing:git grep -nw is_progit grep -n -F -e daemon-pro.sock -e daemon-dev-pro.sock -e ui-pro.pid -e ui-dev-pro.pid -e incompatible-database-pro -e incompatible-database-dev-pro
- The
nodespace_proto::socketfunctions take onlyis_debug, and each table has two entries. -
nodespace_daemon::incompatible_database::marker_path()takes no arguments. - CLI discovery still falls back from
daemon.socktodaemon-dev.sock. -
bun run skill:checkpasses. - For release and dev builds, the free app, the daemon and the CLI behave as before.
-
bun run scripts/check-pro-boundary.tspasses, withBASELINESlowered to the printed counts:editionBranchingfalls: 33 insocket.rs, plus what is left indaemon/src/main.rs,daemon/src/incompatible_database.rsandcli/src/lib.rs;proWordingfalls: 4 insocket.rs, the CLI docs, 1 inuninstall.rs, the daemon marker docs, and 1 inreferences/cli.md.
Tests and verification
- Tests to update:
- the proto
testsmodule; - the daemon's
socket_fallback_variant_tests; - the daemon's
incompatible_databasemarker test; - the CLI's
discover_socket_prefers_canonical_then_falls_back_to_a_variant; - the desktop app's
each_variant_dials_the_socket_its_daemon_binds.
- the proto
- Commands:
bun run test:changedcargo clippy -p nodespace-proto -p nodespace-daemon -p nodespace-cli -p nodespace-app --all-targets -- -D warnings -D clippy::unused-async.tools/bin/cargo-nextest nextest run -p nodespace-proto -p nodespace-cli --lib --bins.tools/bin/cargo-nextest nextest run -p nodespace-daemon --lib --binsbun run skill:check
Dependencies
- Remove the pro feature and --edition from nodespaced and reject unknown arguments #3348: the daemon has no
profeature. - Delete the in-core Pro daemon profile, NODESPACE_PRO_* switch and tauri.pro.conf.json #3354: the app has no Pro identity arms.
- NodeSpaceAI/nodespace-docs#94 (ADR-084) (ADR-084 decision 2(a), proposed).
SYNC:Released Pro builds serve the shared daemon socket daemon.sock (ADR-084 shared service identity). Without this, a newer core CLI, such as one from thenodespace-cliformula, cannot find a released Pro daemon.
Risks and rollback
- Merging before the shared-socket gate leaves core's CLI unable to reach the Pro daemons that shipped on
daemon-pro.sock. - Intended break at sync's next pin bump:
marker_path(true)stops compiling. - Rollback: revert the PR. It is one commit across the crates.
Plan key: C8.6 (pro-boundary DAG).
🤖 Generated with Claude Code
Activity
mstomar125 commentedon Oct 1, 2026
Superseded by #3412 (umbrella against the final ADR-081–085)