chadtmiller.com/group-host
atmosphere group host
0
0
Stewards hold recovery keys to a group's identity
Merged Approved
This adds listRecoveryKeys, addRecoveryKey and removeRecoveryKey, which keep the host's key last in the group's PLC rotation keys. It also makes deleteGroup leave a DID alone when a steward's key is on it, and adds a settings-page section, a design page and tests. I read every changed file and found nothing that must change.
- Rank and limits: the rank, the four-key limit, the
HostKey,UnknownKeyandAlreadyAddedrefusals, andNotControllerall behave as the body says. - Concurrency: two concurrent edits sign over the same previous op, so PLC rejects the second one. That surfaces as an internal error, not as corrupted keys.
- Lexicons: the three lexicons were already on
main, so the web imports resolve. - e2e helper: the P-256
didKey()helper inharness/e2e/pages.mjsencodes correctly (multicodec0x1200, compressed point, base58btc). - Checks:
checkpassed.testandwebwere still queued, ande2ewas still running, when I read them. I didn't see their results.
One thing to weigh, not a blocker: anyone with group.configure can remove a steward's key that someone else added, and can add their own. The body's "Shortcomings" covers who holds a key, but not this. A line in docs/design/recovery.md saying so would help.
Merged as 5d6ec60
What changes
Recovery keys.
listRecoveryKeys,addRecoveryKeyandremoveRecoveryKey(recovery.rs,docs/design/recovery.md) let a group's admins put a steward'sdid:keyamong its rotation keys, ahead of the host's. The group's identity is then never the host's alone: whoever holds such a key can take the DID elsewhere even if this host disappears.NotControllerinstead of changing anything.A deleted group's DID. Deleting a group no longer tombstones a DID that holds a steward's key. The DID stays the steward's to bring back elsewhere, and
deleteGroupsays whether it ended it.The console. The settings page lists the keys, and adds or takes one off, for those who configure the group.
Why
This is step 8's second part. The prototype's
recovery.tsputs a steward's key ahead of the host's in the same way. Keeping the host's key last means a steward's operation always outranks the host's within PLC's recovery window.How it was checked
tests/recovery.rscovers:InvalidKey,AlreadyAdded,TooManyKeys,HostKey,UnknownKey,Forbidden);NotController, once the host holds no key or the DID is ended;These are the prototype's
recovery.test.tscases. A new e2e flow adds a key on the settings page and takes it off.just covis at 100% locally.Shortcomings
Who holds a key is recorded only as who added it. The host can't tell whether a key is still held, or held safely.
🤖 Generated with Claude Code