Skip to content

[Core release blocker] Strip all Pro code, edition branching and sync/ACL state from core in one pass (ADR-081 steps 0 and 2) #3412

Closed

Description

@malibio

Core release blocker. This carries out steps 0 and 2 of ADR-081's migration: the hard freeze, then removing every Pro concept from core in one pass. The Pro build is expected to break from this change until the Pro rebuild (ADR-081 step 5). That is acceptable: there are no users, and Pro is not distributed.

Decisions

  • ADR-081: §4 inventory, §7 steps 0 and 2, §8 ratchet
  • ADR-083: §2–§7 (data model)
  • ADR-085: §6 (AI-chat privacy machinery leaves core)

Core has no sync, collaboration or access-control semantics afterwards. Every change lands with a database reset. Write no data migration and no compatibility code. Several items reverse work merged under the earlier, proposed version of these ADRs (the generic settings accessor, keeping embedding.origin, the storage-contract comments on restriction, the reworded AI-chat Play). The ADRs were changed, so the earlier work is removed rather than adapted.

Paths are as on main after the Tauri split: packages/desktop-app/app-lib/… and packages/desktop-app/src-tauri/….

Scope and acceptance criteria

Step 0: freeze

  • The "Pro / Sync Boundary" section of CLAUDE.md states the hard freeze: no change of any kind to Pro code in core, including fixes, until this issue lands, and Pro features or bugs are filed on nodespace-sync.

Pro frontend and Tauri code (ADR-081 §4 A, C)

  • Deleted: app-lib/src/commands/pro_sync.rs (27 pro_* commands), app-lib/src/services/pro_client.rs, app-lib/proto/nodespace_pro.proto, the Pro compile step and its tonic-build/protoc-bin-vendored build dependencies, scripts/refresh-pro-proto.ts, src-tauri/tauri.pro.conf.json, the startup tier probe and pro:tier-detected, ProClient::rebind, and the Pro arm of update_check.rs.
  • Any reload core still needs after the probe goes is driven by a core-named event or core's existing reconnect hooks.
  • Deleted: the Pro stores and services (pro-sync.svelte.ts, membership.svelte.ts, membership-service.ts), pro-sync-variant.svelte.ts, the Pro plugin and its import, components/collaboration/*, and the first-Pro-consent and Pro-re-login modals.
  • Deleted: the Account section including the "NodeSpace Pro" card, workspace-members-card.svelte, add-synced-database-dialog.svelte, and the Account gating in settings-sidebar.svelte / settings-pane.svelte. The Pro residue is gone from app-shell.svelte, database.svelte.ts and debug-channel.ts.
  • The Labs syncEnabled flag and the disabled switch on the "Team synchronization" card are removed. The card text is reworded in the step-3 issue.
  • The free-user guardrail suite and the Pro tests are deleted.

Edition branching (ADR-081 §4 B3)

  • is_pro_build(), the NODESPACE_PRO_* reads, the Pro binary name, the .pro launchd labels and the Pro plist environment are removed from app-lib.
  • nodespace_proto::socket holds only debug/release rows. No is_pro parameter, daemon-pro.sock, ui-pro.pid or incompatible-database-pro.json remains, and marker_path takes no edition flag.
  • The CLI no longer probes or cleans up Pro sockets. The --edition check is removed from scripts/pkg-resources/postinstall; its replacement is a step-5 issue.

Data model (ADR-083)

  • Settings node. The database-settings schema declares no sync fields; required_extensions is added by the step-3 issue. DatabaseSettingsNodeBehavior loses its sync checks and default_metadata keys, and seeding writes no sync values. The generic settings accessor (database_settings / merge_database_settings) and any remaining typed sync accessors are deleted. The singleton id stays database-settings-singleton.
  • Registry. DatabaseEntry has no bound_tenant_* fields, set_bound_tenant is gone, and only set_extensions and the opaque extensions map remain, through DatabaseInfo, the DTO and the store. Core's frontend reads no key from it.
  • Restriction. restrictedToMembers is removed from the collection schema, and nothing in core reads or writes it or a member_of permission. embedding_roots.rs treats a non-person descendant holding a member_of edge as the ADR-059 §7 defect without reading restriction, with a test.
  • AI-chat privacy machinery. seed_personal_ai_chat_collection_if_needed, set_ai_chat_personal_collection_default, the personal_collection_id field, the play-core-ai-chat-privacy Play and AI_CHAT_PRIVACY_PLAY_ID are deleted. A test shows a new chat has no member_of edge and can be moved under a page.
  • Dead columns. embedding.origin, idx_emb_modified and node.sync_seq are dropped from db/schema.rs, and row_to_node positions and the embedding write path are updated. Database reset.
  • Conflict kinds. ConflictKind::SupersededEdit and DuplicateReactiveCreate are deleted, with their UI handling.

Skill, wording and ratchet (ADR-081 §8)

  • packages/skill/references/shared-workspaces.md and the "Shared Workspaces (Multi-User)" section of SKILL.md are removed, and the installer no longer lists the file.
  • Skill guidance: SKILL.md and references/cli.md contain no multi-user, tenant or sync guidance. bun run build:skill and the SKILL.md drift check pass, and scripts/publish-skill-repo.ts publishes no Pro content.
  • Comments, docs, user-visible copy and tests in core name no Pro product, nodespace-sync, Supabase, tenants or RLS. The README's "Pro tier" section becomes a plain pointer to [email protected].
  • scripts/check-pro-boundary.ts counts the ADR-081 §8 markers, including the removed data-model identifiers. Every baseline is zero, it is a hard ban (no raise class), and its allowlist is empty. The step-3 issue adds the one allowed module.
  • bun run test:changed passes, and the merge gate passes.

Folds in

This issue replaces these open sub-issues of #3298, written for the earlier keep-Pro-working plan: #3302, #3316, #3318, #3323, #3325, #3326, #3327, #3329, #3331, #3332, #3333, #3334, #3335, #3336, #3342, #3345, #3354, #3355, #3357, #3361 (the flag removal; the entry point is in the step-3 issue), #3366, #3367, #3370, #3371, #3372.

Dependencies

References

Read these before starting. They are the source of truth; where this issue and an ADR disagree, the ADR wins.

Activity

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

    @mstomar125
    Contributor

    The reference copy has landed: NodeSpaceAI/nodespace-sync#517 merged in NodeSpaceAI/nodespace-sync#524 (5e37fc4c).

    It copies core main at a7d2f93d into reference/core-pro/ in nodespace-sync:

    • 91 files, byte-identical to that commit, covering the ADR-081 §4 inventory;
    • an INDEX.md with the Pro symbol ranges in shared files;
    • diffs of 7 earlier core commits that had already removed Pro pieces before that revision.

    The only commit on core main since a7d2f93d is 247e0dea, which touches CLAUDE.md only, so nothing else is missing from the copy.

    Core may now delete its Pro code, per ADR-081 §7 step 2.

    🤖 Generated with Claude Code

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

Metadata

Metadata

Assignees

Labels

breaking-changefoundationhigh-prioritypro-boundary

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions