Repository navigation
Description
Goal
Leave no Pro, Supabase, RLS, tenant or nodespace-sync wording in core's code comments, test comments, user-visible copy, proto comments or agent skill. Move the Pro-only agent guidance out of core's skill through ADR-082's skill-content input. Then drive the Pro-boundary ratchet that #3302 adds (scripts/check-pro-boundary.ts) to zero and turn it into a hard ban.
The product owner's directive (2026-09-29): everything Pro or sync related, other than turning it on, lives in nodespace-sync; core carries no Pro logic. The Pro app is a separate build that uses core internally, replaces the installed app and keeps the same database. ADR-081 (proposed) records this boundary.
- Its §2a says core's extension points are named and documented for what they do: their doc comments do not name nodespace-sync, Supabase, tenants or RLS.
- Its migration step 7 says comments, docs and the skill stop naming Pro and describe the generic hook instead.
This parent is that step.
Context
- The seams stay, and only their wording is Pro-shaped.
SubtreeAccessGate(ADR-041),build_base_router/BaseServices(ADR-043), the per-database gate factory andDbManagerLayer(ADR-053) are the daemon extension points ADR-082 (proposed) keeps. Their docs describe them as "what the Pro daemon (nodespaced-pro, innodespace-sync) does", "the Pro tenant schema (Postgres RLS)" and so on. - Several of those comments are no longer true.
packages/daemon/src/db_routing.rssays the Pro daemon does not installDbManagerLayer, but nodespace-sync'snodespaced-pro/src/main.rsinstalls it.commands/embeddings.rsin the desktop crate saysnodespaced-proomitsEmbeddingsService, but it now passes one tobuild_base_router. TheUnimplemented→Ok(0)arm is still needed: any daemon registersEmbeddingsServiceonly when an embedding model existed at startup (packages/daemon/src/services/assembly.rs,shared.has_model.then(..)).packages/desktop-app/src/lib/plugins/core-plugins.tssays AI chats enable "semantic search … and cloud sync", butAiChatNodeBehaviorsays chats are deliberately not embedded.
- Some of it is user-visible in the free app.
- The collection fly-out's tooltip reads "Open collection (manage members & collaboration)", but the free app has no member management.
- The seeded
personschema's email description says "required in practice for invited teammates". - The agent skill installs a "Shared Workspaces" guide that describes NodeSpace Pro.
- The Pro-only agent guidance needs an extension point before it can leave. ADR-081 R3 recommends moving
packages/skill/references/shared-workspaces.mdand the SKILL.md "Shared Workspaces" section to nodespace-sync.- ADR-082 (proposed) §5 gives core the matching build-time input,
NODESPACE_SKILL_EXTENSIONS. - It also changes core's installer to install references from the staged directory and to record what it installed.
- It explicitly rejects the alternative of the Pro app writing guidance into agents' skill directories at run time.
- No other parent owns ADR-082 §5, so Remove Pro, Supabase and nodespace-sync wording from core comments, docs and the skill #3372 adds it (Install skill references from the staged directory and record installed files #3368, Add the NODESPACE_SKILL_EXTENSIONS build input to core's skill build #3369) before Move the Pro shared-workspaces agent guidance out of core's skill #3370 removes the guidance.
- ADR-082 (proposed) §5 gives core the matching build-time input,
- The Pro-boundary ratchet. Guardrail: stop new Pro code from landing in core #3302 adds
scripts/check-pro-boundary.ts. It counts 11 line markers plus Pro-named files, against exact baselines: a change that removes a marker must lower its baseline in the same PR. At af8ddb6 the wording markers stood atcloudWording89,tenantWording507 andproWording314. Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336 to Add the "Share / Sync this database" entry point that opens nodespace.ai #3362 delete most of those lines. What they leave is what this parent removes, before the final pass drives every count to zero. - The Pro build is not affected by wording. The Pro GUI builds from core's HEAD until nodespace-sync pins it, and the Pro daemon links core at a pinned revision. Neither reads comments. Today's Pro GUI build does not run core's skill build at all (ADR-082 §1 records this), so removing the guidance changes nothing in the Pro app until nodespace-sync adopts
NODESPACE_SKILL_EXTENSIONS.
Wording guide (applies to every sub-issue)
Describe the local constraint or the generic hook. Never describe who uses it.
| Instead of | Write |
|---|---|
the Pro daemon, nodespaced-pro, nodespace-sync, apply_node_upsert, apply.rs |
a host that embeds these crates, a daemon built on this crate, a caller applying writes made elsewhere |
| Pro tenant gate, the tenant's access predicate, Postgres RLS, the RLS layer | an injected access gate, the host's own access enforcement, access-control layers outside core |
Supabase, pgvector, the cloud walk, cloud-sync.md |
drop it, and state the local rule |
| cloud-sync push consumer, pushes to cloud, never reach cloud | every event subscriber, a subscriber that forwards events elsewhere |
| sync-apply cold-sweep, cold sweep | a batched apply, the bulk attach path |
| community installs, non-Pro, community default | core's default, by default |
| tenant role(s), tenant-scoped | role edges, database-scoped |
| On Pro upgrade … | drop it |
Also:
- Keep ADR citations (ADR-041, ADR-043, ADR-053, ADR-060, ADR-065, ADR-068, ADR-073, ADR-082, ADR-083).
- "sync" as the ADR-060/ADR-073 term for a write that arrived from another device may stay. Name no product or repository.
- Never cite GitHub issue numbers or
nodespace-docs/paths in comments. CLAUDE.md forbids it, andscripts/check-code-references.tsenforces it. - Locate code by symbol. Line numbers in the sub-issues are hints at af8ddb6 and will shift, for example after Split the desktop Tauri crate and add ADR-082's Tauri extension points #3322's desktop crate split (ADR-082 §3) and Turn the UI-extension registry into ADR-082's build-time frontend extension API #3317's moves.
Scope overview
| Key | Area | Depends on |
|---|---|---|
| #3363 | Seams and host conventions: the access gate (core); router, BaseServices, DbManagerLayer, gate factory and NodeServiceImpl accessors (daemon); the empty-database_id convention (daemon, proto, Tauri watcher and routing); the missing-EmbeddingsService degrade; the issue citations in node_service.proto |
#3302, NodeSpaceAI/nodespace-docs#90 (ADR-082) |
| #3364 | Batch-write and event-emission docs, the local-first collision rule, and the core integration-test headers that cite nodespace-sync | #3302 |
| #3365 | Data-model and identity docs, including ADR-083 §4's storage-contract text for restrictedToMembers and the member_of permission |
#3302, NodeSpaceAI/nodespace-docs#92 (ADR-083) |
| #3366 | Frontend comments, test comments and fixtures, the collection fly-out tooltip, and the dead collectionsData.hasLoaded |
#3302, #3333 |
| #3367 | Candidate-site sweep after #3345 (embeddings, replicated-write origin, membership sweep, AI-chat privacy, conflict kinds), with scope finalized at pickup | #3345, #3363, #3364, #3365 |
| #3368 | Skill installer: install references from the staged directory and record installed files (ADR-082 §5) | #3302, NodeSpaceAI/nodespace-docs#88 (ADR-081), NodeSpaceAI/nodespace-docs#90 (ADR-082) |
| #3369 | Skill build: the NODESPACE_SKILL_EXTENSIONS input and its release-workflow guard (ADR-082 §5) |
#3368 |
| #3370 | Remove the shared-workspaces guidance from core's skill, publish script and agent-crate embed | #3302, #3369, SYNC gate |
| #3371 | Final pass: every baseline to zero, pinned ADR-sanctioned allowances, a hard ban, .proto in the issue-number check, CLAUDE.md |
#3336, #3327, #3357, #3362, #3366, #3367, #3370 |
Order.
- Describe core's access gate and daemon seams without naming the Pro daemon #3363, Reword core's batch-write, event and collision docs without naming the sync daemon #3364 and Install skill references from the staged directory and record installed files #3368 can start once Guardrail: stop new Pro code from landing in core #3302 has merged. Describe core's access gate and daemon seams without naming the Pro daemon #3363 also needs ADR-082.
- Reword core data-model and identity docs that cite Pro, Supabase, RLS or tenants #3365 can start once Guardrail: stop new Pro code from landing in core #3302 and ADR-083 have merged.
- Remove Pro and cloud-sync wording from frontend comments, tests and the fly-out tooltip #3366 follows Move the Pro sync and collaboration UI out of core #3333.
- Sweep the Pro and sync wording C7 leaves around replicated writes and AI-chat privacy #3367 follows Move Pro-owned data out of core's data model (ADR-083) #3345 and Describe core's access gate and daemon seams without naming the Pro daemon #3363 to Reword core data-model and identity docs that cite Pro, Supabase, RLS or tenants #3365, because it checks the whole core crate.
- Add the NODESPACE_SKILL_EXTENSIONS build input to core's skill build #3369 follows Install skill references from the staged directory and record installed files #3368.
- Move the Pro shared-workspaces agent guidance out of core's skill #3370 follows Add the NODESPACE_SKILL_EXTENSIONS build input to core's skill build #3369, once nodespace-sync's build change has been reviewed against Move the Pro shared-workspaces agent guidance out of core's skill #3370's branch.
- Drive every Pro-boundary ratchet count to zero and make the check a hard ban #3371 is last.
Dependencies are recorded per issue. The Dependencies list below belongs to this parent only. Don't copy it onto the sub-issues: each sub-issue lists only its own direct dependencies.
Out of scope
-
Deleting or moving Pro code. That is:
- Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336: the Tauri layer;
- Move the Pro account, admission and synced-database settings out of core #3327 and Move the Pro sync and collaboration UI out of core #3333: the frontend;
- Move Pro-owned data out of core's data model (ADR-083) #3345: the data model and its renames;
- Remove Pro edition branching from the core app, daemon, CLI and installer #3357: edition branching;
- Add the "Share / Sync this database" entry point that opens nodespace.ai #3362: the Labs card and the README section.
Wording inside files those parents delete disappears with them, and wording on lines they rewrite is theirs. Sweep the Pro and sync wording C7 leaves around replicated writes and AI-chat privacy #3367 and Drive every Pro-boundary ratchet count to zero and make the check a hard ban #3371 sweep up whatever is left.
-
Renaming identifiers such as
SYNC_SERVICE_CLIENT_ID,subscribe_for_pushor the embedding APIs. Move Pro-owned data out of core's data model (ADR-083) #3345 does that, and Remove Pro, Supabase and nodespace-sync wording from core comments, docs and the skill #3372 follows its names. -
packages/agent, except the one skill embed in Move the Pro shared-workspaces agent guidance out of core's skill #3370, which needs the lane owner's sign-off. -
ADR-084's installer and CLI guards themselves (the
NodeSpaceProductkey, the pre-install check, the caskpreflight, thenodespace uninstallrefusal). Drive every Pro-boundary ratchet count to zero and make the check a hard ban #3371 only gives them their sanctioned ratchet allowances. -
nodespace-sync's own docs and code, and nodespace-docs. Those are later SYNC and docs items.
Parent acceptance criteria
- Describe core's access gate and daemon seams without naming the Pro daemon #3363 to Drive every Pro-boundary ratchet count to zero and make the check a hard ban #3371, Install skill references from the staged directory and record installed files #3368 and Add the NODESPACE_SKILL_EXTENSIONS build input to core's skill build #3369 are merged, or closed as not planned where ADR-081 R3's decision makes them unnecessary.
-
bun run scripts/check-pro-boundary.tsreports 0 for everyBASELINESentry. The only remaining hits are:- pinned, commented, ADR-sanctioned allowances: the ADR-084 entry-point copy, the README website pointer, and ADR-084's installer guards if kept (including
NODESPACE_FORCE_COMMUNITYand the transitionalnodespaced-profallback); - Guardrail: stop new Pro code from landing in core #3302's absence-guard tests;
- the lease-fixture exemption.
- pinned, commented, ADR-sanctioned allowances: the ADR-084 entry-point copy, the README website pointer, and ADR-084's installer guards if kept (including
- This command returns only lines in those files, plus
packages/skill/src/mcp-clients.ts("Linux community builds of Claude Desktop"):git grep -n -I -P '(?i:supabase|pgvector|nodespace[-_]sync|nodespaced-pro|\bpro daemon|\btenant|cloud[- ]?sync|cloud[- ](?:push|pull)|\bto cloud\b|reach cloud|sync-apply|cold[- ]?sweep|\bcommunity (?:build|install|mode|tier|default|path)|\bnon-pro\b|pro-gated)|\bRLS\b|\bNodeSpace Pro\b' -- packages scripts README.md -
scripts/check-code-references.tsalso scans.protofiles, and its issue-number baseline did not rise. - Core builds and every test tier passes after each sub-issue.
- The only free-app changes a user can see are these:
- the fly-out tooltip text;
- the
personemail description on newly created databases; - the installed skill gaining the three playbook references that SKILL.md already links to (Install skill references from the staged directory and record installed files #3368);
- the skill no longer installing
references/shared-workspaces.md.
- Post-merge check, not a blocker for closing Drive every Pro-boundary ratchet count to zero and make the check a hard ban #3371: a Pro release built from nodespace-sync against the core revision that contains Drive every Pro-boundary ratchet count to zero and make the check a hard ban #3371 passes sync's release checks (ADR-081 §7's completion criterion). Pro users' agents receive the shared-workspace guidance through the Pro build's
NODESPACE_SKILL_EXTENSIONS.
Dependencies
- Guardrail: stop new Pro code from landing in core #3302: the ratchet each sub-issue lowers.
- NodeSpaceAI/nodespace-docs#88 (ADR-081) (ADR-081: the rule and R3), NodeSpaceAI/nodespace-docs#90 (ADR-082) (ADR-082: the extension-point names and §5's skill-content input) and NodeSpaceAI/nodespace-docs#92 (ADR-083) (ADR-083 §4: the storage-contract text).
- Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336, 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, Remove Pro edition branching from the core app, daemon, CLI and installer #3357, Add the "Share / Sync this database" entry point that opens nodespace.ai #3362: the final pass needs their deletions. Remove Pro and cloud-sync wording from frontend comments, tests and the fly-out tooltip #3366 needs Move the Pro sync and collaboration UI out of core #3333, and Sweep the Pro and sync wording C7 leaves around replicated writes and AI-chat privacy #3367 needs Move Pro-owned data out of core's data model (ADR-083) #3345.
- SYNC:Pro build runs core's skill build with NODESPACE_SKILL_EXTENSIONS set to its shared-workspaces guidance and bundles the skill installer, reviewed against the Move the Pro shared-workspaces agent guidance out of core's skill #3370 branch. Move the Pro shared-workspaces agent guidance out of core's skill #3370 needs this before it merges, unless ADR-081 R3 decides to delete the guidance.
Risks
- Exact baselines make parallel PRs collide. Every PR that lowers a marker edits the same
BASELINESblock. When two land close together, the second is ejected from the merge queue: rebase it, rerunbun run scripts/check-pro-boundary.ts, paste the printed block and requeue. - Rewording can drift from the truth. Each sub-issue says what the code actually does. Reviewers should check every new sentence against the code, not against the old comment.
- The skill changes are visible on users' machines. Install skill references from the staged directory and record installed files #3368 changes what the installer writes, and adds a record file to each skill directory. Move the Pro shared-workspaces agent guidance out of core's skill #3370 removes a reference. Each issue lists what a reinstall changes.
- Rollback.
- Describe core's access gate and daemon seams without naming the Pro daemon #3363, Reword core's batch-write, event and collision docs without naming the sync daemon #3364, Reword core data-model and identity docs that cite Pro, Supabase, RLS or tenants #3365 and Sweep the Pro and sync wording C7 leaves around replicated writes and AI-chat privacy #3367 change comments, docs, fixtures, one test name and seeded description text. Revert any of them.
- Remove Pro and cloud-sync wording from frontend comments, tests and the fly-out tooltip #3366 also deletes one dead store field. Revert it.
- For Install skill references from the staged directory and record installed files #3368, Add the NODESPACE_SKILL_EXTENSIONS build input to core's skill build #3369, Move the Pro shared-workspaces agent guidance out of core's skill #3370 and Drive every Pro-boundary ratchet count to zero and make the check a hard ban #3371, see their own rollback sections.
Plan key: C10 (pro-boundary DAG).
🤖 Generated with Claude Code
Activity
mstomar125 commentedon Oct 1, 2026
Superseded by #3412 (umbrella against the final ADR-081–085)