pub const ROOM_GROUPS: &str = "room_groups";Expand description
A member’s MLS group state for each data room they belong to
(rooms/keys/{welcome,commit,open}), keyed per member:
room-group/<roomId>/<persona>, beside the member’s pending KeyPackage
(room-kp/…), pending epoch advance (room-advance/…), root memory
(room-roots/…), the epoch a commit removed the member at
(room-removed/…) and an owner’s last applied admission, Welcome included, kept
for at most 24 hours so a repeated request can be answered
(room-admitted/…, rooms/owner/group/add/0.3 item 8) under the same
<roomId>/<persona>. One VTA may hold several
members of one room — several principals, or several personas of one — and
each is a different leaf with different secrets. Rows a per-room build wrote
(room-group:<roomId>, …) are moved under their member on first touch.
This holds group secrets. Whoever reads a row can decrypt every record
the group could, up to its epoch — the same class of material as KEYS,
and it inherits the same protection: the KMS storage key in a TEE
deployment, and a trusted data directory outside one.
In BACKED_UP, and that is a decision rather than a default. A member who
restores a VTA without their room groups has lost the ability to read every
sealed room they belong to, with no way to recover it — the group cannot be
re-derived, and rejoining means a fresh invitation from every owner. The
backup already carries the credential vault and the master seed; group state
belongs with them.