~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The host follows the Atmosphere Groups spec as released

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:spec/sync

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 the org.atgrp namespace upstream too. Kept on top, all optional: a group on the methods a group session calls (the console calls them with a member's service auth), the console's actor/creator/record views, error descriptions, the host's own methods in the permission sets, and role.bot. harness/lexicons.mjs lets 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) and org.atgrp.config (join policy). The banner is gone. Rules and the labeler live in the members space. The declaration is empty. acceptance is confirmation; the invites space is inbox. Roles and space policies carry permissions (was scopes), roles canAssign (was assignable). 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). authModerate no longer admits, invites or assigns roles.

Joining. requestJoin answers 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 new submitAppeal and querySelfHistory. A subject is open or resolved; moderators tag it (the console's Escalate adds escalated, 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 are org.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 group on the group methods; a member's service auth still does.

Command and tools. role set/role grant --permissions --can-assign; profile set --website, writing config only with --join-policy; mod list --status --tags --sort; mod history --sort; mod update replacing mod 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.atgrp namespace, 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 without group, unlisted on meta and members, tags, filters, sorts and cursors, reopening, appeals and an account's own history, and the new command flags.
  • just cov on the alpha: every line this change adds is covered. Five lines in authority.rs, oauth.rs and scopes.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.
  • clippy with warnings denied, cargo fmt, oxfmt, just lex, svelte-check, the strings/layers/dialogs checks, just docs, just shots, and all 35 e2e flows.

Shortcomings

  • Groups made before this keep their old records, which nothing reads: they show no profile, join policy or rules until they are written again.
  • The spec asks a member who leaves to delete their confirmation, which is on their own PDS; the host can't.
  • The spaces proposal now addresses space records as at:space/…; that comes through the atproto crate in a following pull.

Review

Start with crates/group-host/src/rbac.rs and oauth_scope.rs (what each set grants), then moderation.rs (tags, appeals, self history) and group_api.rs (doing).

Approved

This 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.

  • doing treats a group session and a member's service auth separately. It refuses a mismatched group, requires the rpc: scope, and then checks the member's action. A service-auth caller who omits group is refused.
  • requestJoin answers 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:subject cursor splits on the first colon, which is safe for DID and at:// 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.

Approved

I approve this round. I read what changed since my approval at e31a9f4 and found nothing that must change.

  • scopes.rs: Permissions::calls no longer expands permission sets itself. It relies on tokens carrying the concrete scopes their sets list. The new test in tests/tokens.rs covers both an rpc: scope naming the host and include: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-pull workflow and changes.sh: Changeset: none is now read from the pull's body on the author's PDS. The workflow runs only on pushes to main, and its secret never reaches pulls. The docs and AGENTS.md match 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.

Approved

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.

Approved

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.

Approved

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.

Merged as 05e6cdd