feat: an admin of a keyed room steps down by asking another admin

An admin's own row had no menu in a keyed room: stepping down was not
offered, because a demotion's proposer starts the rotation that takes
the demoted admin's share away, and a rotation's proposer has to keep a
share.

Step down as admin now sends a request into the room
(PromotionEvents.STEP_DOWN, 30377) and commits nothing. The remaining
admin in the lowest leaf (AdminGovernance.stepDownProposer) -- one
device, named the same everywhere, so two never propose at one epoch --
takes it up in GovernanceFollowThrough and runs the same demote its own
Remove as admin would. A request is used once, and dropped by every
device once its requester is no longer an admin. Offered only above the
floor and while another admin is there to ask.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-20 09:44:26 +02:00
1 parent 1ccd8c7f09
commit bb35d73c28
12 files changed
+218 -14

No files matched your search

@@ -117,6 +117,8 @@
<string name="step_down_title">Step down as admin?</string>
<string name="step_down_body">You stay in the group as a member. Only an admin can make you one again.</string>
<string name="step_down">Step down</string>
<string name="step_down_body_keyed">You stay in the group as a member. Another admin's Giza proposes it for the group to sign, and your share of the group's key is rotated away once it's done.</string>
<string name="step_down_requested">Asked the other admins; it happens once the group signs it</string>
<string name="admin_change_requested">Sent; it takes effect once a relay accepts it</string>
<string name="leave_as_admin_title">Leave the group?</string>
<string name="step_down_and_leave_body">You're an admin, so you'll step down first, then leave once a relay accepts it.</string>