Repository navigation
Reword the AI-chat privacy Play text without tenant wording - #3400
Conversation
Automated pragmatic code review (medium)Review Type: Initial Review (commit Requirements Check
Deviations: two, both authorised and described in the PR body: the doc-comment edit, and leaving Other checks
Code Review Findings
Recommendation: APPROVE |
mstomar125
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment, because GitHub blocks self-approval). Full findings are in the review comment above.
Address-review summaryThe review of Planned changes
Final summary
Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: No code changed in response to the review. The reviewed commit The PR is ready for the merge queue whenever the merge is approved. It is not merged here. |
|
Merge queue: #3400 was taken out of the queue — the merge gate failed on it, rebased onto main. Reproduce with |
The Play's user-visible description said that disabling it makes chats "visible to the whole tenant". That names a sharing model core does not have. It now says what disabling does on this install: future chats are left out of the private AI-chat collection, and existing chats keep their membership. The doc comment on the privacy rules, which called a failed action a "permanently tenant-open chat", now says "permanently unrestricted chat". Seeding is unchanged and still never overwrites an existing Play node, so only new databases get the new text. Tests pin the description's wording, that a fresh database carries the shipped text, and that re-seeding leaves an existing node's text alone. Co-Authored-By: Claude Sonnet 5 <[email protected]>
721cae8 to
1eaf470
Compare
Closes #3344
Summary
The AI-chat privacy Play's user-visible description said that disabling the Play makes every future chat "visible to the whole tenant by default". That names a sharing model core does not have, and ADR-085 section 6 calls it inaccurate. It now says what disabling does on this install.
Old:
New:
ADR-085 (proposed) gives no accepted text, so this uses the issue's suggested wording.
Also changed: the
ai_chat_privacy_rulesdoc commentThe doc comment on
ai_chat_privacy_rulescalled a failed action "a permanently tenant-open chat". It now says "a permanently unrestricted chat". The issue lists that comment as out of scope and as a candidate site for the later wording sweep, but it is the only other tenant wording incore_plays.rs. The task owner asked for the whole edit to this file to land here, so it does. The sweep issue's candidate list for this comment is now already done.Nothing outside
core_plays.rsis touched. Thenode_service/mod.rsdocs stay with the sweep issue.What does not change
_seed.default_rules, the Play id and all seeding are untouched in the diff.seed_core_plays_if_neededstill never overwrites an existing Play node, so only new databases get the new text. This is accepted by ADR-085 section 8, and core'sCLAUDE.mdrules out a migration.Tests
Three tests added in
core_plays.rs:the_ai_chat_privacy_play_description_names_no_sharing_modelintegration::a_fresh_database_carries_the_shipped_descriptionintegration::re_seeding_keeps_an_existing_plays_descriptionMutation checks, each reverted afterwards:
a_fresh_database_carries_the_shipped_description.re_seeding_keeps_an_existing_plays_description.Pro-boundary ratchet
tenantWordinggoes from 453 to 451 on this branch (the description string and the doc comment).BASELINESis not edited, as instructed: the baseline stays 463 and the final tightening issue lowers it.bun run scripts/check-pro-boundary.tsexits 0, and--changedreports 0 hits in the changed file.Class check: no Pro line is added.
Verification
cargo fmt -p nodespace-core -- --checkcargo clippy -p nodespace-core --all-targets -- -D warnings -D clippy::unused-async.tools/bin/cargo-nextest nextest run -p nodespace-core --lib core_plays: 13 passedbun run test:changed: Rust workspace and scripts tiers pass🤖 Generated with Claude Code