Repository source: docs/plans/private_group_chats_checklist.md
Private group chats checklist
Working checklist for private group chats: three or more members talk in one conversation that nobody else can read. It is not a Railspike artifact and approves no implementation. Each item is its own Railspike cycle, staged unless marked, following AGENTS.md. Update it when a step is approved, a PR opens or merges, or the maintainer accepts a cycle; record checks and limitations here.
Requested by the maintainer on 2026-11-24 ("private group chats … a public/open group chat can already be done as a thread, but private ones are not possible yet"). Feedback items: none yet.
Goal: a member starts a group in Messages, picks members, and everyone in it reads and replies, end-to-end encrypted like DMs. A member's key that someone else approved never reads that member's messages.
Decisions so far
2026-11-24: groups extend Messages, encrypted to every member's keys, stored with DMs and never in Git (private_group_chats Step 1, Option A, not yet approved).
2026-11-24: approval splits into public and private. Approval still lets a key post; reading messages needs a same-username key with private access or an operator (private_key_access Step 1).
2026-11-24: existing keys that fail the private-access rule are downgraded to public only, not grandfathered.
Reuse inventory
Found on a first read at 2d7805c8. Each cycle re-checks its own part before planning.
src/ForumRewrite/Messaging/ApprovedUserKeyResolver.phppicks the keys a message is encrypted to: today every approved key of a username.PrivateMessageHistorySyncService.phpshares older messages with new keys, from the account's own devices and from senders; it checksis_approvedonly.PrivateMessageMailboxService.php(approvedViewer) gates mailbox access onis_approvedonly.PrivateMessageStore.phpkeeps envelopes in private SQLite (private_messages: sender, recipient, envelope), outside Git, the read model, static pages and the offline snapshot.src/ForumRewrite/Security/ApprovalPolicy.phpand the receipts inrecords/approval-acceptances/record each grant's classification (new_account,own_account_key,cross_account_key) and operator authority.FORUM_ALLOW_NON_OPERATOR_CROSS_ACCOUNT_APPROVAL(on by default) lets any approved member approve a key for another existing username.Browser side:
public/assets/private_message_compose.js,private_message_conversation.js,private_message_reader.js,private_message_cache.js(saved copies),private_message_history_sync.js,private_message_unread.js.docs/product/v3_feature_priorities.mdnames recipient-key control as the release gate before group messages.
Stopgap
Cycle 1 — private_key_access (staged; estimate 0.95)
A key gets private access only if it is the username's first key, was approved by a same-username key with private access, was approved by an operator, or was later confirmed by one of those. Ships before any group work; fixes today's DM exposure on its own.
Cycle 2 — private_group_chats (staged; estimate 0.70)
Option A1: groups with fixed membership. The creator picks members once; any member can leave. Needs cycle 1.
Cycle 3 — group membership changes (staged; not started)
Cycle 4 — history for new members (staged; not started)
Later, not planned
Quill confirms a key's private access: PF-20261124-F01, after cycle 1
Offer to confirm a new operator's earlier cross-account approvals: PF-20261124-F02
Quill and agent support for groups
Notifications for group messages (see notifications checklist)
Showing members each other's key lists, Signal-style