chadtmiller.com/group-host
atmosphere group host
The host follows the Atmosphere Groups spec as released
MergedThis pull brings the host, atgrp, the MCP tools and the console in line with the released Atmosphere Groups spec. The lexicons move to org.atgrp, and the profile splits into about and config. Rules and the labeler move to the members space, and there are four permission sets plus a reworked moderation API with tags, appeals and self history.
I read group_api.rs (doing), group_join.rs and the store and handler parts of moderation.rs, and found nothing that must change.
doingtreats a group session and a member's service auth separately. It refuses a mismatchedgroup, requires therpc:scope, and then checks the member's action. A service-auth caller who omitsgroupis refused.requestJoinanswers an existing member or pending request instead of refusing. In an open group it admits before the stale-request check, so no request is left waiting.- The moderation queue, tag, sort and cursor logic holds up. A tag-only event keeps the subject's status, and only reports and appeals reopen a resolved subject. The
ts:subjectcursor splits on the first colon, which is safe for DID andat://subjects. A subject's own history leaves out reports, tags, notes and who acted.
I did not read the remaining files, which are too many for one pass: the rest of moderation.rs and group_api.rs, rbac.rs, oauth_scope.rs, the other Rust sources, the lexicon JSON, the web console, the docs and the screenshots. I'm relying on the stated test coverage for those.
The test, e2e and web checks were still running when I looked. lexicons, docs and check (fmt, clippy, deny) passed. Please confirm test and e2e finish green before merging.
The pull body states the shortcomings openly: old groups are not migrated, and a member's confirmation can't be deleted by the host.
I approve this round. I read what changed since my approval at e31a9f4 and found nothing that must change.
scopes.rs:Permissions::callsno longer expands permission sets itself. It relies on tokens carrying the concrete scopes their sets list. The new test intests/tokens.rscovers both anrpc:scope naming the host andinclude:org.atgrp.authModerate, so this holds.- Revoked grants: a revoked grant's reads ending is now logged rather than warned. The test also checks that another member's grant on the same app keeps its reads and notifications.
authority.rs: it now fails if the space is missing instead of quietly returning "no reads". The comment says only spaces reach that path.release-pullworkflow andchanges.sh:Changeset: noneis now read from the pull's body on the author's PDS. The workflow runs only on pushes tomain, and its secret never reaches pulls. The docs andAGENTS.mdmatch the change.
The test, e2e, web, lexicons and docs checks were still queued or running at this head, and check was running. Please confirm they finish green before merging.
I approve this round. Since my approval at 8b25a4e, the only change is in tests/tokens.rs. The test now calls org.atgrp.mod.querySubjects instead of the old listModSubjects name, which matches the renamed moderation API. Nothing in it breaks what I approved. Please confirm the CI checks finish green before merging.
Carried forward: the change this pull makes at 984d9478ace1736e923c2347b25315c22cc96869 is the one reviewed at 59ab482622cc77ab7f9111a3ac326642653276d1, so that review stands. What is new comes from its base.
I approve again. The head is the same code I approved at 984d947, and repo_diff shows no differences since then. Only the title or body changed. The body states the shortcomings openly: old groups are not migrated, and the host can't delete a member's confirmation. Nothing in it contradicts what I reviewed. Please confirm the CI checks finish green before merging.
8 passed, 1 skipped
The host,
atgrp, the MCP tools and the console now follow the Atmosphere Groups spec as released (tangled.org/atmospheregroups.org/spec at 9d99ee2): the spec's lexicons, permission sets, record locations and moderation methods. Existing groups aren't migrated; their old records stay but the host no longer reads them.Claude Opus 5.5 · high effort
What changes
Lexicons.
lexicons/org/atgrp/**is the spec's copy, now in theorg.atgrpnamespace upstream too. Kept on top, all optional: agroupon the methods a group session calls (the console calls them with a member's service auth), the console'sactor/creator/recordviews, error descriptions, the host's own methods in the permission sets, androle.bot.harness/lexicons.mjslets through the spec's own shapes (enums, bare string arrays, outputs it leaves out, fields it took away), each named.Records and spaces. A group's profile is two records in meta:
org.atgrp.about(display name, description, avatar,website) andorg.atgrp.config(join policy). The banner is gone. Rules and the labeler live in the members space. The declaration is empty.acceptanceisconfirmation; the invites space isinbox. Roles and space policies carrypermissions(wasscopes), rolescanAssign(wasassignable). A role's ID is lowercase letters and-, at least three, and its display name is optional.Permission sets.
authManageBasic(about, rules),authManageMembers(memberships, invites, join requests),authModerate(labels, ejection, the moderation queue),authManageAdmin(everything, plus config, labeler, roles, policies).authModerateno longer admits, invites or assigns roles.Joining.
requestJoinanswers the caller's existing request or membership rather than refusing. In an open group a stale pending request is admitted, so no one stays waiting.Moderation.
org.atgrp.mod.submitReport,querySubjects,querySubjectHistory,updateSubject, and the newsubmitAppealandquerySelfHistory. A subject is open or resolved; moderators tag it (the console's Escalate addsescalated, with its own tab) and may reopen it. The queue filters by tags and sorts oldest, newest or updated; history sorts newest first by default. Report reasons areorg.atgrp.mod.defs#reason*tokens. One new schema step adds the tags table; no rows are rewritten.Group sessions. An app signed in as the group no longer names
groupon the group methods; a member's service auth still does.Command and tools.
role set/role grant --permissions --can-assign;profile set --website, writingconfigonly with--join-policy;mod list --status --tags --sort;mod history --sort;mod updatereplacingmod resolve.Docs. The design, reference and guide pages say all this, the guides' pictures are drawn again, and the links to the spec point at its new address.
Why
The spec landed its release today: a new home, the
org.atgrpnamespace, renamed records and sets, the profile split, rules and labeler moved to members, and a reworked moderation API. The host had followed it as of 19 November. Taking the spec's lexicons as they are, with only optional additions, keeps a spec-following app working against this host. Existing groups aren't migrated, at the owner's call.How it was checked
cargo test --workspace, with the network tests on the spaces alpha CI builds (GROUP_HOST_DEV_ENV, atproto 9bd8007): all pass. New tests cover role IDs, requestJoin's answers, the about/config split, rules and labeler in members, session versus service auth with and withoutgroup,unlistedon meta and members, tags, filters, sorts and cursors, reopening, appeals and an account's own history, and the new command flags.just covon the alpha: every line this change adds is covered. Five lines inauthority.rs,oauth.rsandscopes.rs, which it doesn't touch, are uncovered here, and equally so on a clean checkout of the base: left to CI's Linux count.cargo fmt, oxfmt,just lex, svelte-check, the strings/layers/dialogs checks,just docs,just shots, and all 35 e2e flows.Shortcomings
confirmation, which is on their own PDS; the host can't.at:space/…; that comes through theatprotocrate in a following pull.Review
Start with
crates/group-host/src/rbac.rsandoauth_scope.rs(what each set grants), thenmoderation.rs(tags, appeals, self history) andgroup_api.rs(doing).