chadtmiller.com/group-host
atmosphere group host
A group is switched off, back on, and deleted from the console and the command
MergedThis adds switching a group off, back on, and deleting it. The console gets a settings section and a switched-off page. getGroup gets viewer.steward for a switched-off group. The CLI gets group deactivate [--undo] and group delete, and MCP gets group_deactivate. I found nothing that must change.
- Convention and design: The command and tool come from one
TOOLSentry, as AGENTS.md asks, withdeleteleft toolless for the stated reason.stewardis optional, so it only grows the lexicon. Theswitching-off-on-and-deletinganchor the CLI doc links to exists ingroups.md. - Docs and tests: AGENTS.md, the design pages and both reference pages are updated. The host, MCP, command and e2e tests cover the new paths.
- Gating: Both new actions run through the host, which already limits
deleteGroupandactivateGroupto the right callers, so hiding the buttons from non-stewards is not the only guard. - Skipped: I did not read the check results, and I did not open the screenshots.
This round only changes the switch-off and delete dialogs to ask about "this group" instead of naming it. I found nothing that must change. My earlier review had no requests, so there was nothing to follow up on.
- Title change:
SwitchOff,DeleteGroupandSwitchedOfflose theirnameprop. The settings page and the group page stop passing it, so nothing still passes a prop that no longer exists. - e2e: The dialog names in
flows.spec.mjs("Switch this group off?", "Delete this group?") match the new titles. - Not read: I did not read the check results or open the screenshots.
This round adds one test to commands.rs. It covers group delete on a group whose steward added a recovery key, and expects the output "its DID is left to the holders of its recovery keys". I found nothing that must change.
- Earlier reviews: They asked for nothing, so there is nothing to follow up on.
- Test: It sits beside the existing delete case and checks the exact output for the recovery-key path. I did not trace the source that prints that line. The diff for this commit touches only the test, so that output was presumably already in the earlier head.
- Not read: I did not read the check results or open the screenshots.
This round only merges main into the pull. It brings in the in-place acts and the fixed dialog titles. I found nothing that must change.
- Earlier reviews: They asked for nothing, so there is nothing to follow up on.
- Merge: The "Switch back on" form in
SwitchedOff.sveltenow usesuse:enhance={inPlace}. That is what the in-place pull said whichever landed second should do.DeleteGrouptakes no props, so it fits the fixed-title change. - Not read: I did not read the check results or open the screenshots.
Carried forward: the change this pull makes at 1a7ac13a5ffa21766f1b5296d8211f936e66964b is the one reviewed at 3fa00898cec279c143e6b3759956069776368452, so that review stands. What is new comes from its base.
What changes
Console. The profile page of a group's settings ends with "Switch off or delete". Switching off asks to be sure, then goes to the group's page. That page then shows an empty state, "This group is switched off". Its stewards (whoever held
group.configurewhen it went off) get "Switch back on" and "Delete the group" there; anyone else gets a way back to their groups. Deleting asks to be sure, in danger, and goes home.ConfirmDialogtakesdanger={false}for an act that can be undone, which then is the dialog's one primary button.Host.
getGroupon a switched-off group gives one signed in aviewerwithsteward: whether they may switch it back on or delete it. Nothing else of their standing is read (memberfalse,rolesandactionsempty). Before, a switched-off group's page could not tell a steward from anyone else.stewardis a new optional field onfyi.opensocial.defs#viewerState.Command and MCP.
opensocial group deactivate <group> [--undo]is the toolgroup_deactivate(withundo,activateGroup).opensocial group delete <group>has no tool: an MCP client acts in the one group it was connected to and should never end it. AGENTS.md and the CLI and MCP reference pages list it besidegroup create,seedandmove.Why
The host had
deactivateGroup,activateGroupanddeleteGroup, but nothing called them: no page, no command, no tool.How it was checked
lifecycle.rs: a steward of a switched-off group is told so bygetGroup, and a plain member is not.mcp.rs: a plain member's client is refusedgroup_deactivate; an admin's switches the group off and, withundo, back on.protocol.rs: the tool is listed and plans the method and its opposite.commands.rs:group deactivate, its--undo, andgroup delete, refused to a non-admin, then deleting the group by its handle.just look: the settings section, both dialogs, and the switched-off page as a steward and as not, on desktop light and phone dark. Critiqued by a fresh agent: the switched-off page became an empty state, and the dialogs' words plainer.Shortcomings
A switched-off group's profile can't be read, so its page names it by its handle. The dialogs ask of "this group", so neither a long name nor that handle runs over their titles.
Switching off asks to be sure although it can be undone, because it hides the group from every member at once. Its act is primary, not danger.
group deleteasks nothing before deleting, asrole deletedoes not.🤖 Generated with Claude Code