Skip to content

Reword the AI-chat privacy Play description without tenant wording #3344

Closed

Description

@mstomar125

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_id schema 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 in ai_chat_privacy_play(), in packages/core/src/playbook/core_plays.rs (~178-182 at af8ddb61):

    "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_needed never overwrites an existing Play node (~193-208). Core CLAUDE.md rules 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

Steps

  1. Start up. Follow core CLAUDE.md's startup sequence:

    • EnterWorktree({name: "issue-<N>-privacy-play-wording"});
    • bun install;
    • the bun run test baseline;
    • gh:assign, then gh:status.

    Confirm that ADR-085 was accepted with R6-a.

  2. 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."

  3. Ratchet. Run bun run scripts/check-pro-boundary.ts and set BASELINES to the printed counts. tenantWording drops by 1.

  4. Finish:

    • run bun run test:changed, then bun 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, then gh:status "In Review";
    • after approval, run bun run merge <PR#> in the background.

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_rules and all seeding are untouched in git diff.
  • A fresh database's play-core-ai-chat-privacy node carries the new description, and an existing database's node keeps its old text.
  • bun run scripts/check-pro-boundary.ts exits 0, and BASELINES equals 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

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

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