Repository navigation
Remove the multi-user skill guidance and make the Pro-boundary check a hard ban - #3420
Conversation
897f6e5 to
9824b3f
Compare
Pragmatic code review, round 1 (prework, before the rebase onto the strip slices)Reviewer: a fresh general-purpose agent with Verdict: APPROVE. No critical issues. The reviewer checked:
Findings and how they were addressed
Nits
Verification after the fixes
Re-review: the marker changes alter logic, so the final review after the rebase covers them. |
Pragmatic code review, round 2 (full PR after the rebase onto S0 to S4)Reviewer: a fresh general-purpose agent with Verdict: REQUEST CHANGES (one blocker), with these confirmed:
Findings and how they were addressed[Blocker] Restore
[Improvement] The tenant pattern loses prose coverage that
[Improvement] Three narrowings compared with main. All fixed, each with a pattern case:
[Improvement] Merge order with S6. No change here; it is coordination. S5 merges first and ships an empty Nits
Verification after the fixes
The marker changes alter logic, so a focused re-review of 4dd0f71 follows. |
Re-review of 4dd0f71, and address-reviewReviewer: a fresh general-purpose agent with Verdict: APPROVE. No critical issues.
Findings and how they were addressed (cc2586f)
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
Coordinator decision on the round-2 blocker
|
…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]>
cc2586f to
78df817
Compare
Closes #3412
Closes #3370
Part of #3371, folded into #3412: the hard ban,
.protoin 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.tsas 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)
packages/skill/references/shared-workspaces.mdand the "Shared Workspaces (Multi-User)" section ofSKILL.md.graph-authored-guidance.mdnow says "by anyone with write access to the database", with no shared-workspace wording.PRE_RECORD_REFERENCESno 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:graph-authored-guidance.mdlink test;NODESPACE_SKILL_EXTENSIONSadds nothing to the public publish.packages/agent/src/agent_catalog/context_assembly.rslosesSKILL_SHARED_WORKSPACESand its doc, itswrite_skill_mdwrite, andembedded_shared_workspaces_matches_source_file. Nothing else inpackages/agentchanges; 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.--listand--changedstay; the tighten output is gone.export const ALLOWLIST: readonly { file: string; exempt: string }[] = [].allowlistProblemsfails 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:
proCommandspro_syncandpro_clientmodules. Whole identifiers, so notpro_env.proSyncModuleproProtocolnodespace_proas a whole word (notnodespace_proto),nodespace.pro.v1, CloudSyncService, ProClient / ProTier,pro.nodespace.ai, the Worker URLproEventsmembershipServiceeditionBranchingis_pro,is_pro_build,NODESPACED?_PRO_,feature = "pro",nodespaced-pro,daemon(-dev)?-pro.sock,ui-pro.pid,incompatible-database(-dev)?-pro, a.daemon(.dev)?.prolaunchd label (with or without itsapp.nodespaceprefix),tauri.pro.conf, and--editionnot followed by a year. FORCE_COMMUNITY is dropped: core's preinstall honours it (ADR-084 §5).proDataModelbound_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, soasync_enabledandoauth_statusdo not count.cloudWording\bRLS\b, pgvector, the sync repository's name, "Pro daemon", and their upper-case spellingscloudAccountWording/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" inpackages/agent/tests/it/live_embedding_prefix_measurement.rs, which is untouched.syncVocabularycloud[- ]?sync(not "iCloud sync"),cloud[- ](push|pull),\bto cloud\b,pro-gatedproWording\bPro\b, with the chip and model exclusionsproductNameproNamedFilesHeader: states the scan scope:
packages/,scripts/andREADME.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.tsscans.proto, with ascripts/a.protofixture 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:
packages/,scripts/andREADME.md, with no baselines, raise classes or exemptions;The raise-class, headroom, EXEMPTIONS, EXEMPTIBLE_NON_TEST_FILES and "baselines are ceilings" text is gone. The "Finding Tasks" routing is kept.
.claude/skillsis untouched.Residual wording sweep (after S0 to S4 merged)
nodes.rs,relationships.rsand anode_servicetest.extension-api-boundary.test.tsno longer says "leaving core".app.nodespace.daemon.plistsays "release build".check-version-sync.tsno longer claims postinstall queries--version.Acceptance (#3412)
Step 0: freeze
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)
S1 #3422.
S0 #3417.
S4 #3425.
S4 #3425.
S4 #3425.
S4 #3425 and S1 #3422.
Edition branching (ADR-081 §4 B3)
S1 #3422.
S1 #3422.
S1 #3422.
Data model (ADR-083)
S2 #3424.
S3 #3423.
S2 #3424. The leftover "chats are private" and grantee wording is reworded here.
Skill, wording and ratchet (ADR-081 §8): this PR
Done.
Done. The
cli.mdgenerated--sockettext was regenerated by S1.bun run build:skillpasses andskill:checkreports "Skill content is up to date". The stagedreferences/holds noshared-workspaces.md, and staging withNODESPACE_SKILL_EXTENSIONSpointing at a directory that addsreferences/shared-workspaces.mdand aSKILL.mdfragment succeeds with no name clash.Done.
git grep -niP 'tenant|supabase|\bRLS\b|nodespace-sync|cloud[- ]?sync' -- packages scripts README.mdlists only the lease fixture.Done. There are no baselines left to be zero; any hit fails.
ALLOWLISTis[].bun run test:changedpasses on every tier, becausescripts/test-gate.tschanged:bun run quality:fix, including workspace clippy with-D warnings, is clean. The merge gate runs at merge.#3370
SKILL_SHARED_WORKSPACES, its write andembedded_shared_workspaces_matches_source_fileare removed. The publish script and test no longer mention the file, and the publish test asserts its absence.sync-skill-repo:skills/nodespace/references/shared-workspaces.mdfrom NodeSpaceAI/nodespace-skill by hand. The publish job never deletes files.Verification
git grep -nP 'shared-workspaces|SKILL_SHARED_WORKSPACES|Shared Workspaces|shared workspace' -- packages scripts README.mdlists nothing.git grep -nP 'BASELINES|EXEMPTIONS|EXEMPTIBLE_NON_TEST_FILES|raise class|FORCE_COMMUNITY' -- scripts/check-pro-boundary.tslists nothing.(?i:shared-workspaces|shared workspaces)|\bNodeSpace Pro\boverpackages/skill packages/agent scriptslists nothing.bun run scripts/check-code-references.ts: 71 issue-number references against a baseline of 71, with.protoscanned.bun test scripts/: 1100 pass at the head.bun run test:skill132 pass.bun run build:skill(withskill:check) passes. The extension-staging check is described above.to cloud,per-, the identifier forms, the determiner forms, the provisioning and URL suffixes, the upper-case spellings, the-devmarker, the prefix-free label);pro_env;nodespace_pro;--editionlookahead or theincompatible-databaseanchor;allowlistProblemscheck, and the command ignoring them;hitFailuresskipping proNamedFiles.NODESPACE_SKILL_EXTENSIONStest (sharedShimPathsreading the variable), the edited installer tests (pre-record references dropped from the no-record cleanup), and the.protofixture (.protoremoved from EXTENSIONS).Review
The pragmatic code review rounds are posted as PR comments, each with its address-review.
PRE_RECORD_REFERENCESentry. That was declined, matching the slice and ADR-081 §7, and the coordinator confirmed it. The improvements were applied.skill_descriptionalso moved aboveprint_guidance's doc comment, which rustdoc had attached to the wrong function.Notes
references/shared-workspaces.mdby 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.ALLOWLISTentry (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