Repository navigation
Description
Summary
ADR-085 (proposed) recommends Option 2. It keeps ADR-061's AI-chat privacy machinery in core as a named exception (R6-a):
- the personal "AI Chats" collection;
- its
personal_collection_idschema default; - the invariant Play
play-core-ai-chat-privacy.
Core's behaviour and data model do not change. The one core edit is wording. The Play's user-visible description says that disabling the Play makes chats "visible to the whole tenant". That is Pro wording, and ADR-085 §6 also calls it inaccurate. Reword it.
Context
- Where the text lives. It is the
"description"value inai_chat_privacy_play(), inpackages/core/src/playbook/core_plays.rs(~178-182 ataf8ddb61):"Every new AI chat is added to this install's private AI-chat collection at creation, so it starts private to you. Disabling this makes every future chat visible to the whole tenant by default; existing chats keep whatever membership they already have."
- Users see it in the Playbooks UI.
- Only new databases get the new text.
seed_core_plays_if_needednever overwrites an existing Play node (~193-208). CoreCLAUDE.mdrules out a migration, and ADR-085 §8 accepts this. - No test asserts the text. The ratchet (
tenantWording) guards against the wording coming back. - No SYNC gate. Nothing in sync reads the description.
Scope
core_plays.rs: the "description" string only.
Out of scope
- Docs that Sweep the Pro and sync wording C7 leaves around replicated writes and AI-chat privacy #3367 rewords:
- the
ai_chat_privacy_rulesdoc ("permanently tenant-open chat", ~125-130); - the personal-collection docs in
node_service/mod.rs(~1745-1760, ~9417-9422).
- the
- The Pro consent-screen wording that ADR-085 §8 mentions. That is Pro UI, filed on nodespace-sync.
- Any change to the seeding, the schema default or the Play's rules.
Steps
-
Start up. Follow core
CLAUDE.md's startup sequence:EnterWorktree({name: "issue-<N>-privacy-play-wording"});bun install;- the
bun run testbaseline; gh:assign, thengh:status.
Confirm that ADR-085 was accepted with R6-a.
-
Replace the description with local, accurate text. If ADR-085 gives accepted text, use that. Otherwise, for example: "Every new AI chat is added to this install's private AI-chat collection when it is created, so it starts private to you. Disabling this leaves future chats out of that collection; existing chats keep whatever membership they already have."
-
Ratchet. Run
bun run scripts/check-pro-boundary.tsand setBASELINESto the printed counts.tenantWordingdrops by 1. -
Finish:
- run
bun run test:changed, thenbun run quality:fix, then commit; - push to
issue-<N>-privacy-play-wording; - run
gh pr create --repo NodeSpaceAI/nodespace-core --base main --head issue-<N>-privacy-play-wording, thengh:status "In Review"; - after approval, run
bun run merge <PR#>in the background.
- run
Acceptance criteria
- The Play description names no tenant, workspace or sharing model, and says what disabling the Play does locally.
- Only the description string changes. The rules, the Play id,
_seed.default_rulesand all seeding are untouched ingit diff. - A fresh database's
play-core-ai-chat-privacynode carries the new description, and an existing database's node keeps its old text. -
bun run scripts/check-pro-boundary.tsexits 0, andBASELINESequals its printed counts. - Core builds, all tests pass, and AI chat in the free app works.
Tests and verification
bun run test:changed.tools/bin/cargo-nextest nextest run -p nodespace-core --lib core_plays.tools/bin/cargo-nextest nextest run -p nodespace-core --test it parent_task_completion_play_test::cargo clippy -p nodespace-core --all-targets -- -D warnings
Dependencies
- NodeSpaceAI/nodespace-docs#96 (ADR-085) (ADR-085, proposed): Option 2, with R6-a.
- Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299: the ratchet.
- No SYNC gate.
Risks and rollback
- If ADR-085 picks R6-b or R6-c instead, re-plan this issue as a seeding removal. Existing databases keep the collection and the Play either way.
- Rollback: revert the PR.
Plan key: C7.8 (pro-boundary DAG).
🤖 Generated with Claude Code
Activity