Skip to content

Remove the multi-user skill guidance and make the Pro-boundary check a hard ban - #3420

Merged
mstomar125 merged 5 commits into
mainfrom
issue-3412-skill-wording-hard-ban
Oct 1, 2026
Merged

mstomar125 merged 5 commits into
mainfrom
issue-3412-skill-wording-hard-ban

Conversation

@mstomar125

@mstomar125 mstomar125 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #3412
Closes #3370

Part of #3371, folded into #3412: the hard ban, .proto in the issue-number check, and the CLAUDE.md end state.

This is the last #3412 slice. It removes the multi-user agent guidance from the skill, makes the README's paid-tier section a plain contact pointer, rewrites scripts/check-pro-boundary.ts as the ADR-081 §8 hard ban, makes the issue-number check scan .proto, rewrites CLAUDE.md's Pro / Sync Boundary as the permanent rule, and sweeps the wording the strip slices left behind.

Changes

Skill and agent (ADR-081 §4 A, ADR-082 §6, #3370)

  • Deleted packages/skill/references/shared-workspaces.md and the "Shared Workspaces (Multi-User)" section of SKILL.md.
  • graph-authored-guidance.md now says "by anyone with write access to the database", with no shared-workspace wording.
  • The installer's PRE_RECORD_REFERENCES no longer names the file, and the installer tests use the remaining references. There is no legacy cleanup, because there are no users.
  • publish-skill-repo.test.ts:
    • drops the file from the published list and deletes its link test, moving the rationale to the graph-authored-guidance.md link test;
    • adds an absence assertion, with the name built from fragments;
    • adds a test that a set NODESPACE_SKILL_EXTENSIONS adds nothing to the public publish.
  • packages/agent/src/agent_catalog/context_assembly.rs loses SKILL_SHARED_WORKSPACES and its doc, its write_skill_md write, and embedded_shared_workspaces_matches_source_file. Nothing else in packages/agent changes; the owner's sign-off covers only these lines.

README (ADR-081 §2b): "Pro tier" becomes "Team collaboration: For team collaboration, contact [email protected]."

scripts/check-pro-boundary.ts, the hard ban (ADR-081 §8)

  • Any hit fails. BASELINES, formatBaselines, the notices and tightened block, the raise guidance, EXEMPTIONS, exemptionProblems, EXEMPTIBLE_NON_TEST_FILES and TEST_PATH are deleted. --list and --changed stay; the tighten output is gone.

  • export const ALLOWLIST: readonly { file: string; exempt: string }[] = [].

    • An entry removes only its exact string from that file's lines before the markers are tested.
    • allowlistProblems fails the command when the list names a second file, or when an entry's string is empty, matches no marker, is in a file outside the scan, or no longer occurs (stale).
  • Markers:

    Marker What it matches
    proCommands The 27 Pro Tauri commands by full name, plus the pro_sync and pro_client modules. Whole identifiers, so not pro_env.
    proSyncModule proSync / pro-sync
    proProtocol nodespace_pro as a whole word (not nodespace_proto), nodespace.pro.v1, CloudSyncService, ProClient / ProTier, pro.nodespace.ai, the Worker URL
    proEvents the Pro event names (unchanged)
    membershipService the Pro membership service (unchanged)
    editionBranching is_pro, is_pro_build, NODESPACED?_PRO_, feature = "pro", nodespaced-pro, daemon(-dev)?-pro.sock, ui-pro.pid, incompatible-database(-dev)?-pro, a .daemon(.dev)?.pro launchd label (with or without its app.nodespace prefix), tauri.pro.conf, and --edition not followed by a year. FORCE_COMMUNITY is dropped: core's preinstall honours it (ADR-084 §5).
    proDataModel The ADR-083 identifiers: bound_tenant_ / boundTenant, sync_enabled / syncEnabled, auth_status / authStatus, restrictedToMembers, personal_collection_id, play-core-ai-chat-privacy, SupersededEdit, DuplicateReactiveCreate, sync_seq. Also the other removed or renamed names: the AI-chat seed functions, idx_emb_modified, the cloud-embedding hooks, subscribe_for_push, set_push_excluded_origin, get_multi_membership_edges. Anchored, so async_enabled and oauth_status do not count.
    cloudWording Supabase, \bRLS\b, pgvector, the sync repository's name, "Pro daemon", and their upper-case spellings
    cloudAccountWording A Pro-sense pattern replacing /tenant/i. It matches the word after a determiner ("the / a / each tenant"); bound / cloud / per- / sync / workspace tenant; tenant schema / collection / id / root / binding / admission / member / admin / provisioning / URL; "Syncs to tenant"; and the word inside an identifier. It does not match the lease fixture's "a replacement tenant" in packages/agent/tests/it/live_embedding_prefix_measurement.rs, which is untouched.
    syncVocabulary From Drive every Pro-boundary ratchet count to zero and make the check a hard ban #3371: cloud[- ]?sync (not "iCloud sync"), cloud[- ](push|pull), \bto cloud\b, pro-gated
    proWording \bPro\b, with the chip and model exclusions
    productName "NodeSpace Pro", case-sensitive and whole-word, so not "NodeSpace prompt"
    proNamedFiles files whose basename has a pro segment
  • Header: states the scan scope: packages/, scripts/ and README.md, with the checker and its test excluded.

  • Spelling convention: a few words are written with a one-character class ([t]enant, [S]upabase) so that a repository-wide wording search lists only real hits, not the checker.

  • Test: rewritten for the hard ban, with every needle assembled from fragments.

Other changes

  • scripts/check-code-references.ts scans .proto, with a scripts/a.proto fixture in "only scans the requested extensions". The issue-number count stays at 71: the Pro proto's 12 citations left with it.

  • scripts/test-gate.ts: the comment above the check describes the hard ban. The stage label is unchanged.

  • CLAUDE.md, Pro / Sync Boundary:

    • core holds no Pro code; Pro features and bugs are filed on nodespace-sync (ADR-081 §5);
    • Pro state lives on Pro types;
    • core refuses Pro databases;
    • the check is a hard ban over packages/, scripts/ and README.md, with no baselines, raise classes or exemptions;
    • its allowlist holds at most the display-name module, which arrives with the Pro-database refusal;
    • absence tests build needles from fragments.

    The raise-class, headroom, EXEMPTIONS, EXEMPTIBLE_NON_TEST_FILES and "baselines are ceilings" text is gone. The "Finding Tasks" routing is kept. .claude/skills is untouched.

Residual wording sweep (after S0 to S4 merged)

  • AI-chat references (ADR-061 §8): the schema validation's doc and error message, the mention search, the bulk mention filter and its log, and a schema test now state "no node may reference an AI chat" instead of "chats are private".
  • Person exemption (ADR-059 §2, kept as a grouping rule by ADR-083): it is described as grouping instead of as an access grant, in nodes.rs, relationships.rs and a node_service test.
  • Frontend comments: the privacy-toggle aside on new collections is gone, the relationship viewer's authority example uses a role, and the edge-field note says add or remove.
  • Other files: the absence test in extension-api-boundary.test.ts no longer says "leaving core". app.nodespace.daemon.plist says "release build". check-version-sync.ts no longer claims postinstall queries --version.

Acceptance (#3412)

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.

Done. With this PR landing, it is rewritten as the permanent rule: core holds no Pro code, and Pro features and 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.

S1 #3422.

Any reload core still needs after the probe goes is driven by a core-named event or core's existing reconnect hooks.

S0 #3417.

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.

S4 #3425.

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.

S4 #3425.

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.

S4 #3425.

The free-user guardrail suite and the Pro tests are deleted.

S4 #3425 and S1 #3422.

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.

S1 #3422.

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.

S1 #3422.

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.

S1 #3422.

Data model (ADR-083)

Settings node. …

S2 #3424.

Registry. …

S3 #3423.

Restriction. … AI-chat privacy machinery. … Dead columns. … Conflict kinds. …

S2 #3424. The leftover "chats are private" and grantee wording is reworded here.

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

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.

Done.

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.

Done. The cli.md generated --socket text was regenerated by S1. bun run build:skill passes and skill:check reports "Skill content is up to date". The staged references/ holds no shared-workspaces.md, and staging with NODESPACE_SKILL_EXTENSIONS pointing at a directory that adds references/shared-workspaces.md and a SKILL.md fragment succeeds with no name clash.

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].

Done. git grep -niP 'tenant|supabase|\bRLS\b|nodespace-sync|cloud[- ]?sync' -- packages scripts README.md lists only the lease fixture.

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.

Done. There are no baselines left to be zero; any hit fails. ALLOWLIST is [].

bun run test:changed passes, and the merge gate passes.

bun run test:changed passes on every tier, because scripts/test-gate.ts changed:

  • frontend: 5461 tests in 295 files;
  • scripts: 1088;
  • skill: 132;
  • browser: 136;
  • Rust (nextest): 4128 passed, 65 skipped;
  • doctests: ok.

bun run quality:fix, including workspace clippy with -D warnings, is clean. The merge gate runs at merge.

#3370

  • Done: SKILL_SHARED_WORKSPACES, its write and embedded_shared_workspaces_matches_source_file are removed. The publish script and test no longer mention the file, and the publish test asserts its absence.
  • Step 7, after the first core release that includes this change runs sync-skill-repo:
    • Delete skills/nodespace/references/shared-workspaces.md from NodeSpaceAI/nodespace-skill by hand. The publish job never deletes files.

Verification

$ bun run scripts/check-pro-boundary.ts
marker                 hits
proCommands               0
proSyncModule             0
proProtocol               0
proEvents                 0
membershipService         0
editionBranching          0
proDataModel              0
cloudWording              0
cloudAccountWording       0
syncVocabulary            0
proWording                0
productName               0
proNamedFiles             0

✅ No Pro marker in core (ADR-081 section 8 hard ban).
  • Slice greps:
    • git grep -nP 'shared-workspaces|SKILL_SHARED_WORKSPACES|Shared Workspaces|shared workspace' -- packages scripts README.md lists nothing.
    • git grep -nP 'BASELINES|EXEMPTIONS|EXEMPTIBLE_NON_TEST_FILES|raise class|FORCE_COMMUNITY' -- scripts/check-pro-boundary.ts lists nothing.
    • The Move the Pro shared-workspaces agent guidance out of core's skill #3370 grep (?i:shared-workspaces|shared workspaces)|\bNodeSpace Pro\b over packages/skill packages/agent scripts lists nothing.
  • bun run scripts/check-code-references.ts: 71 issue-number references against a baseline of 71, with .proto scanned.
  • bun test scripts/: 1100 pass at the head.
  • Skill: bun run test:skill 132 pass. bun run build:skill (with skill:check) passes. The extension-staging check is described above.
  • Mutation checks:
    • Checker: 34 mutations, each failing at least one non-real-repo test. They cover:
      • removing a marker and dropping a single alternative (sync_seq, subscribe_for_push, the bind command, to cloud, per-, the identifier forms, the determiner forms, the provisioning and URL suffixes, the upper-case spellings, the -dev marker, the prefix-free label);
      • un-anchoring sync_enabled and Auth, or re-adding a lookbehind on camelCase Sync;
      • a bare tenant pattern, which fails the lease fixture;
      • re-adding FORCE_COMMUNITY;
      • a prefix proCommands pattern, which fails pro_env;
      • case-insensitive productName;
      • a prefix nodespace_pro;
      • removing the --edition lookahead or the incompatible-database anchor;
      • ignoring, line-dropping or unscoping the allowlist;
      • each allowlistProblems check, and the command ignoring them;
      • hitFailures skipping proNamedFiles.
    • Other tests: each new test fails under a matching mutation: the publish absence test (file restored), the publish NODESPACE_SKILL_EXTENSIONS test (sharedShimPaths reading the variable), the edited installer tests (pre-record references dropped from the no-record cleanup), and the .proto fixture (.proto removed from EXTENSIONS).

Review

The pragmatic code review rounds are posted as PR comments, each with its address-review.

  1. Round 1, prework: APPROVE.
  2. Round 2, full PR after the rebase: REQUEST CHANGES on one blocker, the PRE_RECORD_REFERENCES entry. That was declined, matching the slice and ADR-081 §7, and the coordinator confirmed it. The improvements were applied.
  3. Round 3, re-review of the fixes: APPROVE. Its improvement and nits were applied in cc2586f.

skill_description also moved above print_guidance's doc comment, which rustdoc had attached to the wrong function.

Notes

  • Internal test machines that installed the skill from v0.2.10 to v0.3.2 can delete references/shared-workspaces.md by hand from each agent's skill directory. For Claude Code that is ~/.claude/skills/nodespace/references/shared-workspaces.md, or the same path under $CLAUDE_CONFIG_DIR. Codex, Antigravity, opencode and pi use ~/.codex/skills/nodespace/, ~/.gemini/antigravity-cli/skills/nodespace/, ~/.opencode/skills/nodespace/ and ~/.pi/agent/skills/nodespace/. Core keeps no legacy cleanup for it.
  • The one ALLOWLIST entry (the extension display-name module) lands with [Core release blocker] Refuse Pro databases on every surface and add the contact entry point (ADR-081 step 3) #3413 after this PR, together with its replacement for the "the allowlist is empty" test.

DB reset: none.

🤖 Generated with Claude Code

@mstomar125

Copy link
Copy Markdown
Contributor Author

Pragmatic code review, round 1 (prework, before the rebase onto the strip slices)

Reviewer: a fresh general-purpose agent with .claude/agents/pragmatic-code-reviewer.md inlined, medium depth, read-only. Range 247e0de..a8798ce3, the skill and agent commit plus the hard-ban commit, then held locally. The local amend added a 3-line scripts/test-gate.ts comment fix, which the reviewer also saw.

Verdict: APPROVE. No critical issues.

The reviewer checked:

  • Spec, point for point:
    • BASELINES, the notices, EXEMPTIONS, exemptionProblems, EXEMPTIBLE_NON_TEST_FILES and TEST_PATH are gone.
    • ALLOWLIST has the required type and starts empty.
    • The header states the scan scope.
    • --list and --changed are kept.
    • FORCE_COMMUNITY is dropped.
    • pro_env, nodespace_proto, --edition 2021, "NodeSpace prompt" and "a replacement tenant" are non-matches.
  • Command list: PRO_COMMANDS equals the 27 #[tauri::command] fn pro_* in pro_sync.rs, plus the two module names.
  • Allowlist semantics: each problem case has a fixture.
  • Tests: the publish NODESPACE_SKILL_EXTENSIONS test is meaningful. The installer test edits keep the record-less cleanup path exercised.
  • Diff hygiene: no file in the diff trips the ban. CLAUDE.md matches the checker's behaviour.

Findings and how they were addressed

  1. [Improvement] cloudAccountWording missed the word inside an identifier. Examples: tenant_slug, TenantRole, list_tenants, multi-tenant, tenant-scoped.

    • Fixed: added \w[t]enant|[t]enants?(?=[\w-])|multi-[t]enant, with pattern cases.
    • Not taken: the suggested \bTenant\b and TENANT alternatives. Under the pattern's /i flag they would match the lease fixture's prose. Upper-case identifiers are caught anyway by the identifier forms, for example TENANT_ID.
    • Prose forms such as "each tenant": these stay outside the Pro-sense pattern by design, per the slice spec. The slice's wording grep still catches them.
  2. [Improvement] proDataModel lacked the rest of ADR-083's removed and renamed identifiers. Fixed. The marker is now a list (REMOVED_IDENTIFIERS) that adds:

    • seed_personal_ai_chat_collection_if_needed, set_ai_chat_personal_collection_default;
    • idx_emb_modified, upsert_embeddings_with_origin;
    • subscribe_for_push, set_push_excluded_origin, get_multi_membership_edges.

    Each has a pattern case. The new names (member_of_edges, subscribe_to_events_excluding_origin) are tested as non-matches.

  3. [Improvement] cloudWording was case-sensitive. Fixed: SUPABASE_URL, PGVECTOR, NODESPACE_SYNC_DIR and NodeSpace-Sync now count, and \bRLS\b stays case-sensitive so URLS does not.

  4. [Improvement] CLAUDE.md's fragment example spelled the plain word. Fixed: ["bound_ten", "ant"].join("").

  5. [Improvement] The one-character-class spelling has costs.

    • Kept. The slice's verification grep, which covers scripts/, must list only the lease fixture.
    • Fixed: the test header's claim is narrowed. It now says the needles are not in the file's text, and that marker names and a few non-matching examples remain.
    • Fixed: one fragment split after a whole marker; it is now j("is_", "pro_build()").

Nits

  • test-gate.ts label and header still say "ratchet": left as is. The slice keeps the label, and a ban at zero is still a ratchet. The comment above the check was reworded at the coordinator's request.
  • iCloud sync matched: fixed with (?<!i), and cloud_sync is now matched. Both have pattern cases.
  • Unanchored sync_enabled / auth_status: fixed. async_enabled, fsync_enabled, oauth_status and OAuthStatus are non-matches; isSyncEnabled and db_sync_enabled still match.
  • proWording and other model names ("Gemini 2.5 Pro"): not changed. Nothing in the repo hits them, and the documented fix for a false positive is a narrow pattern change when one appears.
  • Publish absence test duplicates the exact-list test: kept, because Move the Pro shared-workspaces agent guidance out of core's skill #3370 asks for it. Its comment now says why it exists.
  • No CLI test showed allowlist problems reach the exit code: fixed with two fixture tests. The command is run with a patched ALLOWLIST: a live entry passes and other hits in that file still fail, and a stale entry fails with no marker hit.

Verification after the fixes

  • check-pro-boundary.test.ts: all pass except the 2 real-repo end-state tests, which pass only once the strip slices have merged. check-code-references and publish-skill-repo pass, apart from the real-repo count that the Pro proto's deletion clears.
  • Mutation sweep: 27 checker mutations, each caught by at least one non-real-repo test. They cover:
    • each new alternative and each anchor;
    • the allowlist removal, scoping and problem checks;
    • the CLI's use of allowlistProblems;
    • FORCE_COMMUNITY, pro_env, --edition and the lease fixture.
  • Greps: both checker files, and the publish test, are clean under the slice's verification greps.

Re-review: the marker changes alter logic, so the final review after the rebase covers them.

@mstomar125

Copy link
Copy Markdown
Contributor Author

Pragmatic code review, round 2 (full PR after the rebase onto S0 to S4)

Reviewer: a fresh general-purpose agent with .claude/agents/pragmatic-code-reviewer.md inlined, medium depth, read-only. It reviewed 3defa7e..9824b3f and checked it against ADR-081 §2/§8, ADR-059 §2, ADR-061 §8, ADR-082 §6, ADR-083 §4–7 and ADR-085 §6/§8.

Verdict: REQUEST CHANGES (one blocker), with these confirmed:

  • (a) The hard ban passes on the real repo. All 13 markers are at 0. The check-pro-boundary tests (287), check-code-references (23, issue numbers 71/71 with .proto scanned) and publish-skill-repo (29) all pass. The wording grep lists only the lease fixture.
  • (b) The rewording is accurate.
    • "No node may reference an AI chat (ADR-061 §8)" holds in both editions (ADR-085 §8) and matches crud.rs and relationship.rs.
    • The user-visible error is clear, and no test asserted the old text.
    • The person exemption, now described as grouping, fits ADR-081 §2c and ADR-083 §5.
    • ADR-059 §2's code is unchanged.
  • (c) and (d): CLAUDE.md matches the checker.
  • (e) No leftover forbidden wording. The S6-owned files are clean on this branch. The "via sync" wording in the ADR-060 replicated-apply path is not a forbidden name.

Findings and how they were addressed

[Blocker] Restore references/shared-workspaces.md in PRE_RECORD_REFERENCES. Beta installs from v0.2.10 to v0.3.2 wrote the file with no install record. Without the entry, a reinstall or uninstall leaves the file, and with it the install directory, behind.

  • Not changed, deliberately. The slice instruction says to remove the entry and "delete any legacy-cleanup behaviour for that file, since there are no users". CLAUDE.md and ADR-081 §7 say core has no users and writes no compatibility code.
  • Flagged to the coordinator. If they want beta machines cleaned up, it is a one-line restore plus the old assertion.

[Improvement] The tenant pattern loses prose coverage that /tenant/i had.

  • Fixed in part. cloudAccountWording now also matches the word after a determiner ("the / a / an / each / every / one / this / that / its / your / our / their / any") and before "provisioning" or "URL". That catches every example the review gave: "the tenant", "each tenant gets its own schema", "a tenant's members", "operator-only tenant provisioning", "the tenant URL", "signed in to a tenant".
  • Not taken: the suggested (?<!replacement ) lookbehind. The slice asks for a Pro-sense pattern, not a carve-out for one fixture.
  • "the tenant pays rent" moved to the match table. "a replacement tenant" stays a non-match.

[Improvement] Three narrowings compared with main. All fixed, each with a pattern case:

  • incompatible-database(?:-dev)?-pro;
  • \.daemon(?:\.dev)?\.pro\b, which no longer needs the app.nodespace prefix;
  • Sync_?[eE]nabled with no lookbehind, so dataSyncEnabled counts. Lower-case async_enabled is still excluded.

[Improvement] Merge order with S6. No change here; it is coordination. S5 merges first and ships an empty ALLOWLIST. S6 adds its one entry for packages/proto/src/extension_names.rs and replaces the "the allowlist is empty" test.

Nits

  • "ratchet" still appears in the test-gate.ts label and header and in two test comments: left as is. The slice keeps the label, and the test comments ("the boundary ratchet counts occurrences") remain accurate.
  • Unreflowed comments in schema/mod.rs:400 and relationships.rs:505: reflowed.
  • The bulk-mention log repeated itself: it now reads "with a missing (dangling [[link]]) or ai-chat target".
  • cli/src/commands/skill.rs provenance docs said "a teammate": they now say "anyone with write access to the database", matching graph-authored-guidance.md.

Verification after the fixes

  • bun test scripts/: 1098 pass. bun run scripts/check-pro-boundary.ts exits 0 with every marker at 0.
  • The wording grep still lists only the lease fixture.
  • 5 more mutations, one per new alternative, each fail a pattern test, for 32 checker mutations in total.
  • cargo check -p nodespace-core -p nodespace-cli and cargo fmt --check are clean.
  • The full bun run test:changed ran before these comment and pattern edits, on every tier: frontend 5461, scripts 1088, skill 132, browser 136, Rust nextest 4128 passed (65 skipped), and doctests.

The marker changes alter logic, so a focused re-review of 4dd0f71 follows.

@mstomar125

Copy link
Copy Markdown
Contributor Author

Re-review of 4dd0f71, and address-review

Reviewer: a fresh general-purpose agent with .claude/agents/pragmatic-code-reviewer.md inlined, read-only.

Verdict: APPROVE. No critical issues.

  • check-pro-boundary.test.ts 297 pass, and the real repo has 0 hits.
  • The determiner form leaves the lease fixture alone ("a replacement tenant").
  • \.daemon(?:\.dev)?\.pro\b hits nothing real in scope; only .daemon.plist, .daemon.dev and the like appear there.
  • Both new edition cases match only through their new alternatives.
  • The Rust edits are correct: the tracing::warn! keeps its two placeholders, and no test asserts the old text.

Findings and how they were addressed (cc2586f)

  • [Improvement] The url suffix had no test that fails without it. Fixed: added Copy tenant URL, which only the suffix matches. Mutation check: dropping url fails exactly that case.
  • Nit: the anchoring comment didn't mention the Auth lookbehind. Fixed: the comment now notes that OAuthStatus is excluded through the Auth lookbehind.
  • Nit: incompatible-database(?:-dev)?-pro had no trailing anchor. Fixed: added \b, with an incompatible-database-protocol non-match. Mutation check: dropping \b fails it.
  • Nit: upper snake SYNC_ENABLED isn't caught. Not changed: nothing uses it, and the false-positive and coverage policy is a narrow pattern change when a real case appears.
  • Nit: the relationships.rs doc was only partly reflowed. Fixed: reflowed as one paragraph.
  • Nit, pre-existing: in cli/src/commands/skill.rs, rustdoc attached print_guidance's doc to skill_description, because the two /// blocks were adjacent. Fixed: skill_description moved above that doc block. It is a pure move; cargo clippy -p nodespace-cli -p nodespace-core --all-targets -D warnings is clean.

Re-review needed? No. Every change is what the re-review asked for, and each is covered by a mutation-checked test or is a pure move.

State at cc2586f

  • bun run scripts/check-pro-boundary.ts exits 0 with all 13 markers at 0. That is 34 checker mutations in total, each caught.
  • bun test scripts/ 1100 pass. check-code-references 71/71.
  • The full bun run test:changed ran earlier on every tier, and only comments, patterns, tests and one function move have changed since. The merge gate runs everything.
  • The branch is up to date with main (3defa7e).

Coordinator decision on the round-2 blocker

references/shared-workspaces.md stays out of PRE_RECORD_REFERENCES. There are no users, only internal testing, and the ADRs are followed literally with no legacy-cleanup code. The PR body carries the manual cleanup note.

@mstomar125
mstomar125 marked this pull request as ready for review October 1, 2026 11:35
mstomar125 and others added 5 commits October 1, 2026 13:40
…DME at the contact address

- Delete packages/skill/references/shared-workspaces.md and the "Shared
  Workspaces (Multi-User)" section of SKILL.md; graph-authored-guidance.md
  no longer mentions a shared workspace.
- The installer's pre-record reference list no longer names the file, and
  its tests use the remaining references.
- The PTY session no longer embeds or writes the file
  (context_assembly.rs: SKILL_SHARED_WORKSPACES, its write and its test).
- publish-skill-repo tests: the published list drops the file, an absence
  check guards it, and a set NODESPACE_SKILL_EXTENSIONS adds nothing to the
  publish (ADR-082 section 6).
- README: the paid-tier section becomes a plain pointer to
  [email protected] (ADR-081 section 2b).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
scripts/check-pro-boundary.ts (ADR-081 section 8):
- Any marker hit, or any file with a pro segment in its basename, fails.
  BASELINES, the tightening notice, the raise guidance, EXEMPTIONS,
  exemptionProblems and EXEMPTIBLE_NON_TEST_FILES are gone.
- ALLOWLIST (empty) takes at most one file; an entry removes only its exact
  string from that file's lines before the markers are tested.
  allowlistProblems reports a second file, an empty string, a string that
  matches no marker, a file outside the scan and a stale entry, and fails
  the command.
- Markers: the 27 Pro Tauri commands by full name (not pro_env); the
  data-model identifiers ADR-083 removes or renames, anchored so that
  async_enabled or oauth_status do not count (proDataModel); the paid
  product's name (productName, case-sensitive); cloud push/pull/sync
  vocabulary (not "iCloud sync"); upper-case spellings of the cloud
  wording; and a Pro-sense pattern for the hosted-account word, including
  its use inside an identifier, that leaves the agent's lease fixture
  alone. The installer force variable is no longer a marker (ADR-084
  section 5).
- --list and --changed stay; the header states the scan scope.

The test is rewritten for the hard ban, with every needle assembled from
fragments, and covers the allowlist end to end through the command.

scripts/check-code-references.ts scans .proto, with a fixture in its test.
scripts/test-gate.ts: the comment above the check describes the hard ban.
scripts/publish-skill-repo.test.ts: the absence test's comment says why it
exists beside the exact-list test.

CLAUDE.md's Pro / Sync Boundary states the permanent rule: core holds no
Pro code, Pro state lives on Pro types, core refuses Pro databases, the
check is a hard ban with a one-file allowlist, absence tests use fragments.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…removed access model

- app.nodespace.daemon.plist: the label matches launch_agent_label()'s
  release-build value.
- check-version-sync.ts: the installer's postinstall does not query
  `nodespaced --version`, so the comment stops saying it does.
- No node may reference an AI chat (ADR-061 section 8): the schema
  validation's doc and error message, the mention search, the bulk
  mention filter and its log, and the schema test state that rule instead
  of calling chats private.
- The root-only membership rule's person exemption (ADR-059 section 2) is
  described as grouping: a person's membership says who belongs to a
  collection, not where content is filed. Rejecting rather than dropping a
  membership keeps the user's filing.
- Frontend comments: new collections no longer mention a privacy toggle,
  the relationship viewer's authority example uses a role, and the
  edge-field note says add or remove rather than grant or revoke.
- extension-api-boundary.test.ts: the absence test describes the
  edition-specific modules as ones core does not ship.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eworded comments

scripts/check-pro-boundary.ts:
- cloudAccountWording also matches the word after a determiner ("the",
  "a", "each" and the like) and before "provisioning" or "URL". The lease
  fixture's "a replacement tenant" still does not match.
- editionBranching matches the debug incompatible-database marker and a
  launchd label assembled from a prefix (".daemon.pro").
- proDataModel's camelCase Sync...Enabled has no lookbehind, so
  dataSyncEnabled counts.
Each new alternative has a pattern case.

Comments: schema validation and the root-only membership doc are
reflowed; the bulk-mention log names the dangling link once; the CLI's
guidance provenance docs say "anyone with write access to the database"
instead of "a teammate".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e print_guidance back its doc

- check-pro-boundary.ts: `incompatible-database(?:-dev)?-pro` ends at a
  word boundary, so `incompatible-database-protocol` is not a hit; the
  REMOVED_IDENTIFIERS comment notes the `Auth` lookbehind. The test adds a
  URL case only the suffix alternative matches, and the protocol
  non-match.
- cli skill.rs: `skill_description` moves above `print_guidance`'s doc
  comment, which rustdoc had attached to `skill_description`.
- relationships.rs: the root-only membership doc is reflowed as one
  paragraph.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mstomar125
mstomar125 force-pushed the issue-3412-skill-wording-hard-ban branch from cc2586f to 78df817 Compare October 1, 2026 11:41
@mstomar125
mstomar125 merged commit 1534f76 into main Oct 1, 2026
@mstomar125
mstomar125 deleted the issue-3412-skill-wording-hard-ban branch October 1, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant