Skip to content

Remove Pro, Supabase and nodespace-sync wording from core comments, docs and the skill #3372

Closed as not planned
9 of 9 issues completed
Closed as not planned

Description

@mstomar125

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 and DbManagerLayer (ADR-053) are the daemon extension points ADR-082 (proposed) keeps. Their docs describe them as "what the Pro daemon (nodespaced-pro, in nodespace-sync) does", "the Pro tenant schema (Postgres RLS)" and so on.
  • Several of those comments are no longer true.
    • packages/daemon/src/db_routing.rs says the Pro daemon does not install DbManagerLayer, but nodespace-sync's nodespaced-pro/src/main.rs installs it.
    • commands/embeddings.rs in the desktop crate says nodespaced-pro omits EmbeddingsService, but it now passes one to build_base_router. The Unimplemented → Ok(0) arm is still needed: any daemon registers EmbeddingsService only 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.ts says AI chats enable "semantic search … and cloud sync", but AiChatNodeBehavior says 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 person schema'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.md and the SKILL.md "Shared Workspaces" section to nodespace-sync.
  • 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 at cloudWording 89, tenantWording 507 and proWording 314. 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:

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.

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

Parent acceptance criteria

Dependencies

Risks


Plan key: C10 (pro-boundary DAG).

🤖 Generated with Claude Code

Sub-issues

Sub-issues

9 of 9 Issues completed
Loading 9 sub-issues

Activity

  1. self-assigned this
    on Sep 30, 2026
  2. added
    pro-boundary
    on Sep 30, 2026
  3. mstomar125 commented on Oct 1, 2026

    @mstomar125
    ContributorAuthor

    Superseded by #3412 (umbrella against the final ADR-081–085)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

pro-boundary

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions