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
After #3334 deletes pro_client.rs, nothing in nodespace-app uses the generated nodespace.pro.v1 code. Yet every core build still compiles the Pro proto and pulls in build-only deps for it.
Delete all of it:
- the vendored proto;
- the
build.rsstep that compiles it; - the
tonic-build,protoc-bin-vendoredandprostdependencies; - the dev script that re-vendored the proto.
Context (main @ af8ddb6; locate by symbol)
src-tauri/build.rsmain()(172-199).- Lines 173-192 are the Pro proto step: the comment,
protoc_bin_vendored::protoc_bin_path,set_var("PROTOC"),tonic_build::configure()…compile_protos(&["proto/nodespace_pro.proto"], …), andrerun-if-changed. - Lines 194-199 are unrelated and stay:
sync_external_bin_staging(),drop_unstaged_bundle_entries()andtauri_build::build(). - If Split the desktop Tauri crate and add ADR-082's Tauri extension points #3322's library split has landed (ADR-082 §3.1), the proto step and these deps may live in the library package's build script and manifest instead. Delete them there.
- Lines 173-192 are the Pro proto step: the comment,
src-tauri/Cargo.toml.- Lines 15-18: a comment,
tonic-build = "0.12"andprotoc-bin-vendored = "3". - Line 51:
prost = { workspace = true }. Nothing insrc/,tests/ortest-support/usesprost; its only user is the generated code.
- Lines 15-18: a comment,
src-tauri/proto/nodespace_pro.proto(437 lines, 29 RPCs) is the only file inproto/.scripts/refresh-pro-proto.ts(59 lines) is not wired intopackage.jsonand has no test.packages/protois unaffected.packages/proto/Cargo.tomlkeeps its owntonic-buildandprotoc-bin-vendoredfor core's protos, so the lockfile keeps both packages.
Scope
- Delete
packages/desktop-app/src-tauri/proto/(the whole directory). build.rs: delete the Pro proto step.main()becomessync_external_bin_staging(); drop_unstaged_bundle_entries(); tauri_build::build(), plus whatever Split the desktop Tauri crate and add ADR-082's Tauri extension points #3322 added; keep the existing comment above the first two calls.Cargo.toml: delete the comment and the two build deps (15-18) andprost(51).Cargo.lock: let cargo update it. Onlynodespace-app's dependency list should change.- Delete
scripts/refresh-pro-proto.ts.
Out of scope
- The
packages/protobuild. tonic = "0.12", whichGrpcClientstill uses.async-streamandasync-trait. They also have no users in this crate, but they are not Pro-related.
Steps
- Run the CLAUDE.md startup sequence with worktree
issue-<N>-delete-pro-proto:git pull origin main;EnterWorktree;bun install;- a
bun run testbaseline; bun run gh:assign <N> "@me";bun run gh:status <N> "In Progress".
- Make the deletions.
- Build:
cargo build -p nodespace-apprefreshesCargo.lock;cargo clean -p nodespace-app && cargo build -p nodespace-appproves the crate's build script works cold without the proto step.
- Run
bun run scripts/check-pro-boundary.tsand paste the printedBASELINES. - Ship:
bun run test:changed;bun run quality:fix, then commit;git push origin HEAD:issue-<N>-delete-pro-proto;gh pr create --repo NodeSpaceAI/nodespace-core --head issue-<N>-delete-pro-proto;/pragmatic-code-review, then/address-review;- after the user approves,
bun run merge <PR#>in the background.
Acceptance criteria
-
packages/desktop-app/src-tauri/proto/andscripts/refresh-pro-proto.tsare gone. -
cargo tree -p nodespace-app -e build --depth 1lists neithertonic-buildnorprotoc-bin-vendored. -
cargo tree -p nodespace-app -e normal --depth 1 | rg -w prostreturns nothing. -
rg -n -e 'nodespace_pro\b|nodespace\.pro\.v1|tonic_build|protoc_bin_vendored|refresh-pro-proto' packages/desktop-app/src-tauri scripts -g '!scripts/check-pro-boundary*'returns nothing. Use the word boundary: a fixed-stringnodespace_proalso matches the core cratenodespace_proto. - The
Cargo.lockdiff is limited tonodespace-app's dependency entries. - Clippy, the app unit tests, the scripts lint and typecheck, and the scripts tests all pass.
-
bun run scripts/check-pro-boundary.tspasses, withBASELINESlowered to the printed counts. Expected at af8ddb6:proNamedFiles−2 (nodespace_pro.proto,refresh-pro-proto.ts);tenantWording−57;proProtocol−14;cloudWording−13;proWording−9;editionBranching−4;cloudBindState−1.
Tests and verification
cargo clippy -p nodespace-app --all-targets -- -D warnings -D clippy::unused-asyncbun run rust:test:app-unitsbun run quality:scripts:checkbun run test:scriptsbun run test:changed
Dependencies
Risks and rollback
- Low risk. The change is build-only. If any code still referenced
pb, compilation would fail loudly rather than break silently. - Pro is unaffected. The sync Pro package owns its own copy of the proto (Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core #3334's SYNC gate).
- Rollback: revert the PR.
Plan key: C4.6 (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)