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
metaspace 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
descriptionbe richtext (with facets)? urlfield should have a more specific name (likewebsiteorwebsiteUrl)bannerfeels bsky-specific. I'd just drop that field
Membership: invites, join, etc #
acceptance details:
- record could be named
joininstead ofacceptance. 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
acceptancerecord versus callingleaveGroup? 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
inboxorinviteInboxor 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
reasonTypesknown 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
declarationworks for the broadcast metadata, thoughprofilealmost works there as well.For the in-group metadata, I don't think
profileis the best name. Maybeabout? Orconfig?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.