Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
pro-boundaryPro/core boundary: Pro code moves to nodespace-sync (ADR-081..085)
Description
Summary
Once the Pro GUI builds from a pinned core revision, delete everything that still makes core's desktop app a Pro build:
- The build switch:
is_pro_build(),PRO_SUPABASE_URLandPRO_ANON_KEY(option_env!("NODESPACE_PRO_*")),PRO_DAEMON_BINARY_NAME, and the Pro arm ofprofile_for_build_env. - The Pro arms of the identity choices: the launchd labels
.proand.dev.pro, and the app's Pro socket, Pro UI pid file and Pro incompatible-database marker. The app then always uses core's shared identity (ADR-084 decision 2(a), proposed). packages/desktop-app/src-tauri/tauri.pro.conf.json: merged into this issue from the former Delete the in-core Pro daemon profile, NODESPACE_PRO_* switch and tauri.pro.conf.json #3354.
After this issue, the app's default profile is DaemonProfile::community(). A Pro app supplies its own profile through AppExtensions::daemon_profile (#3347), and its own Tauri config overlay (ADR-082 §1).
Context
- Where the Pro values live now. After Add a DaemonProfile for the app's daemon binary and service env (no behavior change) #3346 and Let an app built on core supply its DaemonProfile via AppExtensions::daemon_profile #3347, they sit in
daemon_setup.rs's edition block: the constants at 66 and 72-86, and theSomearm ofprofile_for_build_env. - The identity arms:
launch_agent_label(134-144),daemon_socket_relative(130-132) andui_pid_relative(327-330);grpc_client::resolve_socket_pathanddefault_socket_path_for(509-542);incompatible_database::marker_path_in(31-40).
- The last other reader of
is_pro_build()isupdate_check::check_for_update, and Delete the Pro arm of core's built-in update source and its worker parsing #3323 removes it. tauri.pro.conf.jsonis 15 lines. It addsnodespaced-protoexternalBinandresources.- Nothing in core reads it.
git grep tauri.pro.confmatches only the file itself, andbuild.rsskips its reconciliation wheneverTAURI_CONFIGis set. - sync passes it:
build-pro-dmg.sh:150-152andrelease.yml~304-323. - Under ADR-082 §1, the overlay moves to nodespace-sync.
- Nothing in core reads it.
- What the pin gate means here. Once the gate is met, the Pro build uses its pin, and this PR merges first. sync's pin bump past this commit must then:
- pass
DaemonProfile { binary_name: "nodespaced-pro", service_env: <the Supabase URL and anon key>, product: "pro" }throughAppExtensions::daemon_profile, from its Pro app crate; - own its Tauri config overlay;
- move to the shared label and socket, and remove the legacy
app.nodespace.daemon.proregistrations plusdaemon-pro.sock,ui-pro.pidandincompatible-database-pro.json(ADR-084 §3.3). Its daemon must also accept--tray(ADR-084 §4.2).
- pass
- The free app does not change. It already uses the community values: label
app.nodespace.daemon(.dev),daemon(-dev).sock,ui(-dev).pidandincompatible-database(-dev).json.
Scope
src/daemon_setup.rs
- Delete the Pro constants:
PRO_DAEMON_BINARY_NAMEand the whole edition block (its comment,PRO_SUPABASE_URL,PRO_ANON_KEYandis_pro_build). - Delete
profile_for_build_env.daemon_profile::active()now defaults toDaemonProfile::community(). Remove or inlineprofile_for_this_build, and update Let an app built on core supply its DaemonProfile via AppExtensions::daemon_profile #3347's fallback inrunto match. launch_agent_label: returnapp.nodespace.daemon.devfor debug builds andapp.nodespace.daemonfor release builds.daemon_socket_relativeandui_pid_relative: call the proto functions with(cfg!(debug_assertions), false). Collapse proto socket, pid and marker tables to debug/release; drop CLI Pro discovery #3355 drops thefalse.- Rewrite the
daemon_socket_relativedoc (117-129). The socket varies by build flavour only, and both the app and the daemon derive it from the shared table. - Module doc (9-11): the plist filename and the launchd label vary by build flavour (debug or release).
- Kickstart comment (~1325): change "a Pro or dev daemon" to "a dev daemon".
- Tests: delete Add a DaemonProfile for the app's daemon binary and service env (no behavior change) #3346's assertions on the Pro values.
src/services/grpc_client.rs
resolve_socket_pathcallsdefault_socket_path_for(cfg!(debug_assertions)).default_socket_path_for(is_debug: bool)is this module's own function. It passesfalseto proto. Update its doc.- In
each_variant_dials_the_socket_its_daemon_binds, keep only the release and dev rows. In its doc, change "Pro or dev build" to "dev build".
Other files
src/incompatible_database.rsmarker_path_in: callincompatible_database_name(cfg!(debug_assertions), false).src/constants.rs(3-6): say the socket varies by build flavour (debug or release).- Delete
packages/desktop-app/src-tauri/tauri.pro.conf.json. - Ratchet: paste
BASELINES.
Out of scope
packages/proto,packages/daemonandpackages/cli(Remove the pro feature and --edition from nodespaced and reject unknown arguments #3348, Collapse proto socket, pid and marker tables to debug/release; drop CLI Pro discovery #3355, Add a single-instance daemon lock and export the launcher's argument list #3352).update_check.rs(Delete the Pro arm of core's built-in update source and its worker parsing #3323).- Pro prose in
build.rs,lib.rs,commands/embeddings.rsandpro_client.rs(Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336, Remove Pro, Supabase and nodespace-sync wording from core comments, docs and the skill #3372).
Steps
- Run the startup sequence, and assign the issue at pickup. Confirm three things, and record the last one in the PR:
- the pin gate is met;
- Delete the Pro arm of core's built-in update source and its worker parsing #3323 is merged;
- the sync owner has named the pin bump that will adopt this commit.
- Make the deletions and doc edits. Code comments must not cite GitHub issue numbers.
- Run
bun run scripts/check-pro-boundary.tsand paste the printedBASELINES. - Run
bun run test:changedandbun run quality:fix, push, and open the PR.
Acceptance criteria
- Both commands below print nothing when run on
packages/desktop-app/src-tauri/src/{daemon_setup,daemon_profile,incompatible_database,constants,update_check}.rs,packages/desktop-app/src-tauri/src/services/grpc_client.rsandpackages/desktop-app/src-tauri/tauri.conf.json. If the library split moved these files, use their new paths.git grep -nw is_pro_buildgit grep -n -F -e NODESPACE_PRO_ -e NODESPACED_PRO_ -e nodespaced-pro -e PRO_DAEMON_BINARY_NAME -e daemon.pro -e daemon-pro -e daemon-dev-pro -e ui-pro -e ui-dev-pro -e incompatible-database-pro -e incompatible-database-dev-pro
-
tauri.pro.conf.jsonis gone, andgit grep -n tauri.pro.confprints nothing. - Setting
NODESPACE_PRO_SUPABASE_URLat build time changes nothing. - The free app keeps the same plist, label, socket, pid file and marker, and tests pin all of them.
-
bun run scripts/check-pro-boundary.tspasses, withBASELINESlowered to the printed counts:proNamedFilesdrops by 1 (tauri.pro.conf.json);editionBranchingfalls (daemon_setup, 8 ingrpc_client, 1 inincompatible_database, 2 intauri.pro.conf.json);proWordingfalls (daemon_setup, the variant-test doc ingrpc_client, 1 inconstants);cloudWordingandtenantWordingfall (the Supabase and tenant comments in the edition block).
Tests and verification
- Update:
each_variant_dials_the_socket_its_daemon_binds, which keeps two rows. - Delete: Add a DaemonProfile for the app's daemon binary and service env (no behavior change) #3346's Pro-profile assertions.
- Must still pass:
macos_plist_keepalive_tests,pkg_plist_matches_app_plist_testsand the marker tests. - Commands:
bun run test:changedcargo clippy -p nodespace-app --all-targets -- -D warnings -D clippy::unused-asynccargo test -p nodespace-app --lib -- daemon_ grpc_client incompatible_database
Dependencies
- Let an app built on core supply its DaemonProfile via AppExtensions::daemon_profile #3347: the Pro app can supply its own profile.
- Delete the Pro arm of core's built-in update source and its worker parsing #3323: removes the last other
is_pro_build()reader. - NodeSpaceAI/nodespace-docs#94 (ADR-084) (ADR-084 decision 2(a), proposed): the shared identity.
SYNC:Pro GUI and Pro daemon build from one pinned core rev.
Risks and rollback
- Merging before the pin gate breaks the next Pro build.
tauri build --config src-tauri/tauri.pro.conf.jsonfails on the missing file. Without the overlay, the app would launchnodespacedwith no Supabase env. - If ADR-084 chooses 2(b), one identity per product, stop. ADR-082 §3.6 first has to add identity fields to the profile, and then Delete the in-core Pro daemon profile, NODESPACE_PRO_* switch and tauri.pro.conf.json #3354 and Collapse proto socket, pid and marker tables to debug/release; drop CLI Pro discovery #3355 are re-planned.
- Rollback: revert the PR.
Plan key: C8.4 (pro-boundary DAG).
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
pro-boundaryPro/core boundary: Pro code moves to nodespace-sync (ADR-081..085)
Activity
mstomar125 commentedon Oct 1, 2026
Superseded by #3412 (umbrella against the final ADR-081–085)