Proposal for Atmosphere Groups standard on atproto spaces

lexicon review (2026-11-22) #37

Open bnewbold.net
Open opened by bnewbold.net

This is a high-level review of most of the lexicons. I have not yet hit the permission sets or mod reporting endpoints.

As a broad thing, I think we should rename "scopes" to "permissions" everywhere (both in lexicons and the spec). And I think we should strongly consider using the JSON representation of permissions (as used in permission-set schemas) instead of the string representation. I think the JSON representation is much easier to reason about and understand, and this is a context where non-developer folks might be fiddling with roles and permissions.

I'm still a bit nervous about the corner-cases of the overall permissions system. The details about how to prevent an account from pulling off privilege escalation are complex, and we have regular atproto permissions mixed in with group policy permissions. I don't have a proposal for now to improve things, just flagging it as a concern.

Profile and Declaration #

Which fields should go where is a bit fuzzy to me. It feels desirable to have a "listed" group with a bit of fully-public metadata which is not "public" (can't read rules, etc). But an unlisted group would need all that metadata to be internal. My intuition is to have at least joinPolicy, avatar, and displayName be duplicated in the broadcast declaration.

I think it would be helpful to be able to list specific space types in the public declaration. Eg, if a listed group supports a "forum" modality, that is relevant to whether or not it should show up in a "forum" app. An array of space types (NSID strings) on the declaration would achieve this for all group types, separate from the space index records within the group.

declaration details:

  • having a required reference to the meta space feels like extra complexity. the meta space has a fixed name and space type, so there isn't any extra info there, it is just something that needs to be computed (and verified?). I'd drop that field.

profile details:

  • should description be richtext (with facets)?
  • url field should have a more specific name (like website or websiteUrl)
  • banner feels bsky-specific. I'd just drop that field

Membership: invites, join, etc #

acceptance details:

  • record could be named join instead of acceptance. I think that is a bit clearer what is being accepted, while still a single word. But not a strong thing.
  • what is the difference between deleting an acceptance record versus calling leaveGroup? should members do both when leaving?

requestJoin details:

  • don't really love that there is a free-form 'message' field on there, as an abuse mechanism. who is responsible for moderation? harassment, scams, account security, etc.
  • description should clarify the behavior if there is already a pending join request: does the request fail (with a specific error type), or return the existing request reference?

denyJoinRequest details:

  • what state sticks around if a join request is denied? eg, if account re-requests, do they end up back in request queue, or auto-denied? how does a group admin clear this state?

invites space type details:

  • sort of feel like this should be named inbox or inviteInbox or something like that (but not a strong opinion)

Group Configuration #

It isn't totally clear to me that rules and labeler declaration should be in 'meta' versus 'members'. Eg, should it be possible to have a publicly visible profile but not list all the rules? This touches on the "Profile and Declaration" section above.

Labeling #

If there were multiple labelers operating in a group, would they be expected to separately publish declaration records (labeler) with separate label values etc? I think we haven't fully thought through multi-labeler setups, and we don't really need to for this first path, just want to make sure we retain options for figuring that out.

labeler details:

  • should reasonTypes known values be tokens/definitions instead of short strings?

Roles #

I think we should have some extra syntax restrictions on role names. Eg, similar to label values. We don't need to express that in lexicon, but should mention it in descriptions, and in the specification text. Otherwise we get "~" as a valid role name. I think we will often want to display the raw role name in user-facing UX (along with displayName).

role record details:

  • can 'displayName' be optional (not required)? just fall back to record key (the "role name") if not provided
  • I don't like the name "assignable". How about "designates"?

Policy #

Should the policy include publishPolicy like memberspace and managedspace? Doesn't need to, but feels like we established a convention.

Thinking a bit more about the profile and declaration names: I guess declaration works for the broadcast metadata, though profile almost works there as well.

For the in-group metadata, I don't think profile is the best name. Maybe about? Or config?

Also tempted to split the "presentation" details (avatar, description) from the "behavioral" details (joinPolicy), which would make granting permissions to one or the other safer. But more record types is also complexity creep.

Here are some follow-up review comments about the permission sets and moderation lexicons.

Permission Sets #

A bit surprised to see moderation being a superset of membership management, and no specific permission set just for basic membership (not including roles). It does make some sense to let moderators "eject" members (by deleting their membership record), but I don't think they always need to have the power to admit members. And it sorta feels natural to me that admins might want to delegate "recruitment" as a social role without full management access (defining roles, etc).

I'd at least pull some of the membership privs out of "moderator", because I think it would be hard to remove those perms later. And then potentially add a "manage members" role which can invite/approve folks (though this could be added later).

Moderation Reports #

As a broad terminology thing, I think that we should use "submit" or "send" for reporting, not "create". "create" to me implies CRUD, like you could update or delete the report after the fact. And I think listing a queue or fetching history is very likely to end up being a more complex filter/sort interface, and we should use "query" for those.

Two things that came up in the WG call today were appeals and mechanisms for accounts to get notice of moderation actions. I was initially thinking that we could do appeals as a type of report, and put off "mod history" until later, but after reviewing I think maybe we should bite those off.

Appeals should show up as a distinct event type in mod history, both for moderators and the account doing the appeal. We might also want the flexibility for accounts which are no longer members of a group to appeal their ejection, and to be able to fetch moderation history (including clarification of why they were ejected). Those also point towards having separate endpoints which can have separate auth requirements: eg, an ejected member doesn't need to create new reports. So I think there should be a submitAppeal endpoint, which takes a group, subject uri, and short note.

For notifications, I think we should do a basic version of the mod inbox / mod history API: queryModSelfHistory. Takes a subject URI, returns a cursor-paginated set of events, with less context/information than the moderator version listModSubjects does.

Other notes on the overall reporting/moderation API surface:

  • I am sorta tempted for this to all be a sub-namespace (group.opensocial.mod.*). It feels a bit distinct from the rest of the API surface. But keeping it flat would be consistent.
  • The mix of actions by mutating records and action by XRPC API could make it tricky to offload all tihs to alternative backend (eg, ozone). But it does also feel kind of idiomatic to do the record mutation stuff, so I guess it is fine.
  • I think that "tags" has been a helpful abstraction for Ozone. We have been able to built a lot of workflows and features off that. I think we should consider adding tags to this interface, but it could be done later.
  • Wonder if we should remove "escalated" as a status, and implement that with "tags" later on. Subject status could just be a boolean of "open" or "resolved" until then. "escalated" is not necessary for very small mod setups, and totally insufficient for larger ones.
  • We might want to add additional "history" events like joining the group, but those can be added later.

listModSubjects details:

  • as noted above, maybe rename "queryModSubjects"
  • seems like almost from day one folks will want to control sorting: newest/oldest, by created/updated. maybe a sortBy with known values like createdOldest?
  • for the "status" query params, is "open" a superset of "escalated"? wouldn't want escalated reports filtered from default view (maybe should remove escalation as mentioned above)
  • reportCount could be optional, up to implementations if they want to do that COUNT(*) WHERE

getModSubjectHistory:

  • this is cursor-based, should at least be list* but probably query* for future filtering/sorting

resolveModSubject:

  • name it updateModSubject
Sign up or Sign in to add to the discussion.