Proposal for Atmosphere Groups standard on atproto spaces

reading a space #17

Open chadtmiller.com
Open opened by chadtmiller.com

The spec covers writing to a group but not reading what's in its spaces. Upstream com.atproto.space only has sync primitives: listRepos, then listRecords or listRepoOps for each writer, plus registerNotify. To show a forum or a chat, every app has to run its own syncer for every space.

The group host is already the space host, so it could keep an index and serve it. Proposal:

  • listSpaceRecords: a space's records from every writer, newest first and paged. You can filter by collection, or by a field equal to a value (e.g. subject.uri, for a thread's replies). The space's access record is checked on every call. Only members' and the group's own repos count, and a member's records drop out when they leave.
  • subscribeSpaces: a stream of {space, rev} each time a space changes, sent only to people who can read that space. It says what changed but never the content, and the client fetches it with listSpaceRecords.

Example #

A thread's replies, newest first:

curl -G "https://$HOST/xrpc/group.opensocial.listSpaceRecords" \
  -H "Authorization: Bearer $SERVICE_AUTH" \
  --data-urlencode "group=$GROUP_DID" \
  --data-urlencode "space=at://did:plc:group/space/com.example.forum/self" \
  --data-urlencode "collection=com.example.forum.reply" \
  --data-urlencode "field=subject.uri" \
  --data-urlencode "equals=$THREAD_URI" \
  --data-urlencode "limit=50"
{
  "records": [
    { "uri": "at://did:plc:alice/...", "cid": "bafy...", "repo": "did:plc:alice",
      "value": { "$type": "com.example.forum.reply", "text": "..." },
      "createdAt": "2026-10-13T17:02:00Z" }
  ],
  "cursor": "...",
  "rev": "3m2x..."
}

Changes, as server-sent events:

curl -N "https://$HOST/xrpc/group.opensocial.subscribeSpaces?group=$GROUP_DID" \
  -H "Authorization: Bearer $SERVICE_AUTH"
data: {"space":"at://did:plc:group/space/com.example.forum/self","rev":"3m2y..."}

On an event, the client reads the space again with listSpaceRecords.

Questions #

  • Should this be in the group spec, or upstream for any space host?
  • Should a host be required to offer it, or is it optional (with apps able to fall back to syncing)?
  • Is an equality filter on a field enough, or do apps need more (counts, sorting)?

We considered an architecture like this for the atproto space protocol itself, but did not do it because space data does not have redistributable authenticity (aka, doesn't have direct cryptographic signatures), and thus you can't trust the authenticity of data received from the space host (eg, group host).

In other words, the group host is at best jetstream, not the authenticated firehose. And unlike with jetstream, the group host is often "just some random untrusted server", not a single host that you as a developer have chosen to trust.

We (Bluesky protocol/atmosphere team) expect to implement and maintain something like tap/jetstream that app devs can run on their own to help offload a lot of the space sync logic. That will work across many spaces and group hosts.

It is interesting to see hear this kind of proposal, and we can iterate on the proposed protocol in the future if the architecture ends up being too much friction. But I think a change like this would be pretty big this late in the process.

I do think that there might be a place for group hosts or app services to emit trusted event streams in certain circumstances. One example is a group host hooking up to automated moderation services. But I think those are pretty limited.

Sign up or Sign in to add to the discussion.