Files
giza-kmp/composeApp
Kgothatso NgakoandClaude Opus 5.5 1deff002d3 feat: a governed room applies a commit only from inside the group's signature (member-admin-promotion, Phase 4a)
A keyed room whose profile description carries GovernanceMarker's line --
changes need the group's signature, and at least N admins -- is governed,
and every device reads that from the same epoch's state.

GovernanceGate is the door. At the one inbound call into the engine, a
commit sent bare into a governed room is dropped before the engine sees
it: the outer layer is peeled with the current and retained epochs' keys
and the MLS content type read from the header. A commit arrives instead
inside an envelope whose content is the proposer's own kind:445, so every
device applies the same event with the same id:

- a statement (30370), signed by the room and sent in a member's carrier
  (30373), since an application message has to be its sender's;
- an own commit (30371) for D6's exemptions, sent by its committer.

The commit is run on a throwaway copy of the group under a policy that
records its proposals and committer -- no library change -- and admitted
only at the current epoch, matching its statement exactly, and leaving the
marker's floor of admins. A refusal says so in the room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 01:53:44 +02:00
..