AT Protocol spaces are in development. Expect changes throughout the beta starting on December 1st, 2026.

Chapter 1

Orientation

Revised 2026-11-23Markdown

A space is a named boundary that decides who can read a set of records, while each author keeps their own records on their own PDS.

I’d like to use the family from the Preface to paint a picture. Marcus creates a space for his family, which makes his identity the space’s authority. The space has a space type, com.example.familyUpdates, that says what kind of space it is, and a space key, our-family, that tells it apart from any other space of that type he runs.

When Elena posts baby pictures, her PDS stores the post in her space repo for the family, a repo that holds only her records in that space. Ruth’s health update sits in her own space repo on her own PDS.

The family app that shows everyone’s updates is a syncer. It holds a space credential that lets it read every writer’s space repo, and it keeps a copy of the space for itself.

Why public atproto isn’t enough#

Public atproto is built for open, broad distribution. Each account keeps its public records in one repository, or repo, on its PDS. The repo is a Merkle Search Tree whose root is signed by the identity’s #atproto key, so any record taken from it can prove who wrote it. Relays collect every change from every PDS into one stream, the firehose, and anyone can copy what flows through it. That is what makes public data reliable. It is also why a family photo album or a company’s internal forum can’t run on it, since every post is copied everywhere, can’t be taken back, and proves who wrote it.

Permissioned data needs three things public data lacks. First, it needs a perimeter that a server enforces before handing over data. Second, it needs a sync mechanism. Sync is a simple way of referring to the processes and credentials needed to read data from all of the space repos of accounts in the space. Without it, the application isn’t able to stay up to date or include all of the data that is created by accounts in the space. Third, it needs to be verifiable by the reader it was sent to, yet deniable to anyone else, so a record that leaks or is intercepted does not betray who wrote it.

The spec names four modalities to describe what spaces make possible spec. The list isn’t complete. As we follow Marcus and his family, we’ll touch three of them.

Reference

The four modalities spec#

ModalityExamples from the specIn this book
Personal dataBookmarks, mutes, draftsJake’s own bookmarks space (Chapter 8)
Gated contentPaid newsletters, subscriber-only postsThe paid newsletter (Chapter 8)
Socially shared dataPrivate posts, storiesNot followed here
GroupsPrivate forums, communitiesThe family space

Roles#

There are four roles in atproto spaces that make all of this possible. A single PDS usually plays repo host and space host at once, but any service that implements the required methods can fill either spec.

The family app writes her RSVP to her own PDS, which stores it in her space repo for the family space. For this record her PDS is the repo host. Her PDS then tells Marcus’s PDS that her repo changed. This change notification doesn’t include the changed content, because atproto spaces do not broadcast data. Marcus’s PDS is the space host. It keeps the list of repos that have written to the space, called the writer set, and passes the news to the apps that are registered for it. Marcus’s identity is the space authority. His key signed the credential the family app uses, and his member list is why Nora’s repo counts as part of the space. The family app is the syncer. It hears that Nora’s repo moved, asks her PDS for the change with its credential, and adds the RSVP to its copy of the space.

The space host never stores or forwards record bytes. It holds metadata only: each writer’s latest repoRev and digest, sequenced under a space-wide revision. Record bytes travel only from a repo host to a credentialed syncer.

Reference

The four roles spec#

RoleWhat it doesUsually played byIn the family
Repo hostStores an account’s space repos and answers sync requests for them.The PDS that hosts the accountNora’s PDS, for her RSVP
Space hostAnswers for the space as a whole. Authorizes syncers and issues their credentials, tracks the writer set, and sends update notifications. Holds metadata only.The authority’s PDS, named by its #atproto_pds entryMarcus’s PDS
Space authorityThe DID at the root of the space. Its #atproto key signs credentials.A user’s own identity, or a dedicated identityMarcus
SyncerKeeps its own copy of a space and serves views from it.An applicationThe family app
notifyRepoUpdatenotifyRepoUpdateauthorizeSpaceSyncnotifySpaceUpdaterecords + MACrecords + MACAlice's PDSSpace hostBob's PDSSyncer
notifyRepoUpdatenotifyRepoUpdateauthorizeSpaceSyncnotifySpaceUpdaterecords + MACrecords + MACAlice's PDSSpace hostBob's PDSSyncer
Figure 1.1 · Record bytes flow only from repo hosts to syncers#

Each repo host tells the space host only that a repo advanced; the space host relays that to registered syncers, and they pull the records from the repo host directly.

Where records live#

A space record’s address includes its space, so each record belongs to the space it was written into. The content isn’t tied to that space, though. Anyone with permission to write in a second space can copy a record’s content there, and the copy becomes a new record in that space, kept in the copier’s own space repo. When Jake shares a bookmark from his own bookmarks space with the family, he writes a copy into the family space, and each space decides who can read its copy. If Nora copies Elena’s post into another space, the copy is Nora’s record, written under Nora’s identity.

Reference

One bookmark, two records#

Jake’s bookmark in his own bookmarks space, then his copy in the family space. The content is identical, so both records have the same CID, shown last.

Text
at:space/did:plc:brthxhhoomvrib2avauses35/com.example.bookmarks/self/did:plc:brthxhhoomvrib2avauses35/community.lexicon.bookmarks.bookmark/3n2gtr3c2w22p

at:space/did:plc:ejjl2znzqp3ci25dqaslpkk2/com.example.familyUpdates/our-family/did:plc:brthxhhoomvrib2avauses35/community.lexicon.bookmarks.bookmark/3n2gtrxvls22p

bafyreibeecgpzsoedv7jcxr5tf6ggkmpdpolwvq65ehewgirojdghv3hka

Each account keeps a separate space repo for every space it writes to. When Elena posts in the family space and also posts in a book club, her PDS holds two space repos for her, one for each space. A space’s contents are the records in all of its writers' space repos taken together.

Daniel Holmgren’s Reintroducing Spaces argues for grouping records this way over "circles", where each record carries its own audience list. I agree with that argument. Per-record access control lists (ACLs), dynamic group ACLs, and other fine-grained permission systems are often not worth it. Spaces as designed are a reasonable compromise. A space gives readers a clear boundary. Everything in the family’s space is visible to its members, and changing the member list changes access to all of it at once.

Access control, not confidentiality#

Spaces are not end-to-end encrypted spec. The repo host and every credentialed syncer can read the plaintext they contain. The space host holds no records, but it issues the credentials, so it could read them by issuing one to itself. That is what makes search, notifications, moderation, and server-side feeds possible. The spec leaves end-to-end encryption to applications, so an application that needs confidentiality adds its own encryption on top spec. The protocol carries an encrypted record like any other record. Removing a reader stops that reader’s future reads. It does not recall what they already fetched. A space narrows the "can’t be taken back" problem of public data, and does not end it.

Reference

Who can read Ruth’s update#

PartyIn the familyCan it read the update?Why
The author’s repo hostRuth’s PDSYesIt stores the record.
A syncer with a credentialThe family appYesIt fetches the record and keeps its own copy.
The space hostMarcus’s PDSYes, indirectlyIt never stores or forwards record bytes. It issues the credentials, so it could issue one to itself and fetch the record from Ruth’s PDS.
A member who was removedJakeOnly what he already fetchedNothing recalls a copy.
Anyone elseNoA repo host refuses a read that carries no valid credential.

The shape of atproto spaces#

As we’ve walked through atproto spaces, it should feel very familiar. Spaces keep the shape of public AT Protocol: DID-based authority, repos that stay with each account, lexicon-typed records, and applications that engage PDSes to build views. What changes is how data is synced, addressed, and committed, and the trust model applied to the data’s perimeter. Public data relies on signatures anyone can check, and space data relies on checks that only the reader who asked can make.

Reference

Public atproto and spaces compared#

AspectPublic atprotoatproto spaces
Unit of dataRecord in a repoRecord in a space repo
Repo scopeOne repo per accountOne repo per (account, space)
Record authorityAuthor DIDAuthor DID
URI authorityAuthor DIDSpace authority DID
CommitSigned tree root (MST)Unsigned digest of the record set (LtHash)
How a commit is provedSignature, anyone can verifyA MAC made for one request, which only the requester can verify
Archive formatCARSTAR
How apps collect dataRelays and firehoseThe space host’s writer set and notifications, then a pull from each repo host
AccessPublicSpace credential

The LtHash digest and the per-request MAC are in Chapter 5, the space credential is in Chapter 6, and STAR archives and the writer set are in Chapter 7.

Common questions#

Can a space be public?#

Yes. A space can let anyone read it while still controlling who writes. A memberspace with publicRead set gives a credential to any app that asks, and a managedspace can do the same through its managing app. Chapter 8 builds an announcement space and an open guestbook this way. Readers still get their copy through a credential, so the authority can close the space later by changing its policy.

If the servers can read a space, what does it protect?#

It controls who gets a copy. A space host hands out credentials only to the readers its policy admits, and repo hosts serve records only to holders of a credential. The repo hosts and the apps that sync a space can read the records, which is what lets them offer search and moderation. The space host could too, by issuing itself a credential. An app that needs secrecy from servers as well encrypts records itself.

Do users need new accounts for spaces?#

Their existing identity and account work as they are. Spaces use the same DID, the same PDS, and the same OAuth sign-in. The one requirement is a PDS that supports spaces.

Does every member get a repo in every space?#

An account gets a space repo the first time it writes to a space. Readers who never write have none, so a space with many readers and a few writers has only a few repos.

Chapter 1 of 11 · AT Protocol Spaces: A Field Guide

Search