Skip to content

Move the Pro shared-workspaces agent guidance out of core's skill #3370

Closed

Description

@mstomar125

Summary

Remove NodeSpace Pro's "Shared Workspaces (Multi-User)" agent guidance from core:

  • the reference file;
  • its section in SKILL.md;
  • the agent crate's PTY-session embed;
  • the publish script's mentions.

The Pro build adds its own copy through NODESPACE_SKILL_EXTENSIONS (#3369, ADR-082 §5), so Pro users' agents keep it.

Context

  • What the guidance is. packages/skill/references/shared-workspaces.md (13 lines) and the section at packages/skill/SKILL.md lines 36-38 tell agents how to behave when "a NodeSpace collection … is synced and shared with a teammate through NodeSpace Pro". That covers write visibility, attribution, sync latency, and date nodes not syncing. No core install can be in that situation.
  • ADR-081 (proposed) R3 recommends option (a). The guidance moves to nodespace-sync, and ADR-082 §5's skill-content input is how the Pro build adds it back.
    • If R3 chooses (c), deletion: drop the SYNC dependency and do the same removal.
    • If R3 chooses (b), keep it reworded: replace steps 2-4 with rewording the reference file and the SKILL.md section so they name no product.
  • After 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:
    • no installer list names the file, because the installer takes references from the staged directory;
    • the publish list is derived from packages/skill/references/;
    • the Pro build can add a reference at build time.
  • Why sync merges after core. Add the NODESPACE_SKILL_EXTENSIONS build input to core's skill build #3369 fails a build that adds a reference with the same name as one of core's. So nodespace-sync writes its change (the guidance in its own directory, plus its build running bun run build:skill with the variable set) against this issue's branch, and merges it once this has merged, or in its next pin bump. Its review against this branch is the gate.
  • What this changes for Pro today.
    • Today's Pro GUI build never runs core's skill build (ADR-082 §1): its config overlay drops resources/skill/**/* and the installer sidecar. So the Pro app changes nothing until nodespace-sync adopts the input.
    • The Pro daemon links nodespace-agent at its pin, so its PTY sessions keep the embedded copy until nodespace-sync bumps that pin.
  • Where the file still ships.
    • The PTY-session embed. packages/agent/src/agent_catalog/context_assembly.rs embeds it with include_str!: SKILL_SHARED_WORKSPACES and its doc, lines 36-45. write_skill_md writes it (418-422), and embedded_shared_workspaces_matches_source_file (792-795) asserts it. packages/agent belongs to another maintainer's lane. This change needs that owner's sign-off on the PR before it merges.
    • The publish script. scripts/publish-skill-repo.ts and its test may still name the file in readSkillSource fields, docs, or the "copied through verbatim" and "SKILL.md links to" tests (~168-175, ~186-195), depending on what Install skill references from the staged directory and record installed files #3368 left.
  • Installed copies.
  • Effect on the ratchet. This lowers proWording by 4 at af8ddb6: SKILL.md:38, shared-workspaces.md:3 and :5, and context_assembly.rs:40.

Scope

  • Delete packages/skill/references/shared-workspaces.md.

  • packages/skill/SKILL.md. Delete the ## Shared Workspaces (Multi-User) section, lines 36-38 including the trailing blank line. It is hand-written, outside any <!-- BEGIN GENERATED --> region.

  • packages/agent/src/agent_catalog/context_assembly.rs (owner sign-off):

    • delete SKILL_SHARED_WORKSPACES and its doc;
    • delete its write in write_skill_md;
    • delete the test embedded_shared_workspaces_matches_source_file.

    write_skill_md_also_writes_the_references_tier scans the directory, so it needs no change.

  • scripts/publish-skill-repo.ts and its test.

    • Remove every remaining mention of the file.
    • Delete the tests that assert it is published or linked, and move their rationale comment onto the graph-authored-guidance.md link test.
    • Add expect(sharedShimPaths()).not.toContain('references/shared-workspaces.md').
  • packages/skill/src/tests/installer.test.ts. Update any comment that still lists the file as shipped. Tests of PRE_RECORD_REFERENCES stay.

Out of scope

  • Writing the Pro guidance, or the Pro build step. That is the SYNC counterpart.
  • packages/skill/references/cli.md's generated --socket help text ("dev/Pro daemon's socket"). It follows Remove Pro edition branching from the core app, daemon, CLI and installer #3357's CLI change and bun run skill:gen.
  • Pruning in scripts/push-to-external-repo.ts. This PR records a one-time manual deletion instead (step 7).
  • Any other change in packages/agent.

Steps

  1. Follow CLAUDE.md's startup sequence:
    • pull main;
    • EnterWorktree({name: "issue-<N>-skill-pro-guidance"});
    • bun install, then the bun run test baseline;
    • self-assign at pickup and set In Progress.
  2. Confirm the gates:
  3. Delete the reference file and the SKILL.md section.
  4. Update context_assembly.rs, and ask the packages/agent owner to review.
  5. Update the publish script, its tests and the installer test comments.
  6. Check the staging:
    • Run bun run build:skill (which runs skill:check), then ls packages/desktop-app/src-tauri/resources/skill/references/. shared-workspaces.md must be gone.
    • Stage with NODESPACE_SKILL_EXTENSIONS pointing at a temporary directory that holds references/shared-workspaces.md and a SKILL.md fragment. It must succeed with no name clash, which proves nodespace-sync's change will build.
  7. Run bun run scripts/check-pro-boundary.ts and paste the printed BASELINES (proWording −4 at af8ddb6). Then verify, and finish:
    • bun run quality:fix, and commit;
    • git push origin HEAD:issue-<N>-skill-pro-guidance;
    • gh pr create --head issue-<N>-skill-pro-guidance;
    • merge only with bun run merge <PR#>, once review and the agent-lane owner have approved.
  8. After the first core release that includes this change has run its sync-skill-repo job, delete skills/nodespace/references/shared-workspaces.md from NodeSpaceAI/nodespace-skill by hand. The publish job never deletes files. Record this as a checklist item in the PR description.

Acceptance criteria

  • This grep returns only PRE_RECORD_REFERENCES (if Install skill references from the staged directory and record installed files #3368 chose option A), its tests, and the publish test's absence assertion:
    git grep -n -I -P '(?i:shared-workspaces|shared workspaces)|\bNodeSpace Pro\b' -- packages/skill packages/agent scripts
  • SKILL.md no longer mentions Pro, syncing or teammates.
  • bun run build:skill stages no shared-workspaces.md. Staging an extension directory that adds one succeeds.
  • The public file list is SKILL.md plus core's remaining references.
  • packages/agent compiles, its context_assembly tests pass, and the owner's approval is on the PR.
  • BASELINES in scripts/check-pro-boundary.ts is lowered to the counts the CLI prints, and the CLI exits 0.
  • Under R3 (a), the SYNC counterpart has been reviewed against this branch and is linked.

Tests and verification

  • bun run test:skill
  • bun run test:scripts
  • bun run skill:check
  • bun run build:skill
  • .tools/bin/cargo-nextest nextest run -p nodespace-agent --lib context_assembly
  • cargo clippy -p nodespace-agent --all-targets -- -D warnings
  • bun run test:changed (skill, scripts and Rust tiers)
  • bun run scripts/check-pro-boundary.ts

Dependencies

Risks and rollback

  • Pro users lose the guidance until nodespace-sync ships its build change. Today's Pro app does not install core's skill at all, so this changes nothing there. The Pro daemon's PTY sessions keep the embedded copy until nodespace-sync next moves its core pin.
  • Agents in Pro-daemon PTY sessions. After that pin bump, the session's own SKILL.md no longer carries the section. Those agents still read the user-level skill that the Pro app installs with the added reference.
  • The public repository keeps its stale copy until step 7 is done.
  • Rollback. Revert the PR. That restores the file, the section and the embed. A later install brings the file back to users' machines, and a Pro build that also adds it then fails on the name clash until one side drops it.

Plan key: C10.6 (pro-boundary DAG).

🤖 Generated with Claude Code

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

    @malibio this one needs your sign-off before we pick it up, because it touches packages/agent.

    The change is small and stays inside the scope above:

    • Remove SKILL_SHARED_WORKSPACES (the include_str! embed and its doc, context_assembly.rs ~36-45).
    • Remove the write_skill_md lines that write it (~418-422).
    • Remove the embedded_shared_workspaces_matches_source_file test (~792-795).

    The shared-workspaces guidance then moves out of core's skill, and Pro supplies it through NODESPACE_SKILL_EXTENSIONS (#3369, merged today in #3404). Nothing else in packages/agent changes.

    We're holding it until you've had a look. If we haven't heard by end of day, we'll pick it up again and ask for your review on the PR before it merges.

    🤖 Generated with Claude Code

  4. malibio commented on Oct 1, 2026

    @malibio
    Collaborator

    @mstomar125 Approved for the packages/agent changes. This matches ADR-081 R3 as accepted: the guidance leaves core's skill, and Pro adds it back via NODESPACE_SKILL_EXTENSIONS. Go ahead.

    Heads-up: ADR-081–085 are now Accepted on nodespace-docs main (23a28e9), with changes from the drafts. Your PRs show as merged; the final text is in the revision commits on top. The main differences:

    • Freeze: a hard freeze, with no Pro changes in core. Order: copy Pro code to nodespace-sync → strip core in one pass (reset the DB) → add the open guard and contact entry → release core → build extension points and rebuild Pro. Pro is allowed to be broken in between, and there's no data migration or compatibility carve-out anywhere. The zero-users premise holds.
    • Data model: Pro state lives on Pro subtypes of core types via ADR-078 extends (pro-database-settings, pro-collection, pro-person), plus Pro edge fields (e.g. permission on member_of). There is no generic settings accessor. Restriction and the AI-chat privacy machinery (personal collection, schema default, Play) leave core. node.sync_seq, embedding.origin and idx_emb_modified are dropped now.
    • Pro databases: binding sets required_extensions: ["pro"] on the settings node. Core refuses such a database on every surface with "This database needs NodeSpace Pro" plus a download link (https://nodespace.ai for now).
    • Entry point: core keeps the Labs "Team synchronization" card, reworded to "Want team collaboration? Contact us" with the mailto, and the switch and syncEnabled flag removed. The slot is collaboration.entry. There's no website "Share / Sync" action and no File menu item.

    Issues: #3412 and #3413 (core-release blockers) and #3414 and #3415 (after release) are the umbrella issues against the final ADRs. Each lists the earlier pro-boundary issues it folds in. Companions: nodespace-sync#517–#519 and nodespace-cloud#201.

    Please pause #3358–#3362 (the database.sync-entry slot and website entry point), since they conflict with the decisions above. Check anything else in the series against the final ADRs before starting it. Already-merged work that needs follow-up: #3378 (settings accessor), #3382 (kept embedding.origin), #3389 (restriction as a core contract), #3400 (Play rewording; the Play is deleted instead). #3409 also landed Pro code after the freeze. Let's sync on how to fold the series into the umbrella issues.

    🤖 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

pro-boundary

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions