Skip to content

At a glance

Audience
App developers, operators, and members
Type
Explanation
Status
current

At a glance

Audience
App developers, operators, and members
Type
Explanation
Status
current

Core Concepts ​

Boundary ​

A boundary is a named group whose members can read each other's posts.

Each boundary has a full identifier, made from the Stratos service DID and a short name ({serviceDid}/{name}):

text
did:web:stratos.example.com/general
did:web:stratos.example.com/writers

Three rules hold everywhere.

  • A post belongs to exactly one boundary. A post for two groups is two posts.
  • Apps use the full identifier when they create a record. A bare name such as writers is not accepted.
  • Every member is in the reserved boundary. It is named general by default, and it is the boundary for the whole community.

Operators create and retire boundaries in the admin interface. See Manage Boundaries.

Enrollment ​

Enrollment is how a user joins a Stratos service. A user signs in to a Stratos service with their AT Protocol account, through OAuth. Stratos records the boundaries they hold and publishes a zone.stratos.actor.enrollment record to their PDS.

The enrollment record is public. It is how an app finds the right Stratos service for a user, and it lists the boundaries the user belongs to. Boundary names are therefore public. Post content is not.

FieldDescription
serviceThe Stratos service endpoint
boundariesThe boundaries the user holds
custodyWho keeps the user's private posts: stratos or pds
repoHostFor pds custody, a hint to where the posts are kept
signingKeyThe public key that signs the user's private posts
attestationThe service's signature over the fields above, with issuedAt
createdAtEnrollment timestamp

The record is a signpost, not a key. Reading it grants nothing. Access depends on the user's current membership, which only Stratos knows.

Custody ​

Custody answers one question: who keeps this user's private posts?

The user's PDSCustodyPosts are keptPosts are signed by
does not support spacesstratoson the Stratos servicea key Stratos holds for that user (P-256)
supports spacespdson the user's own PDSthe user's account key

Stratos decides custody once, at enrollment, from what the user's PDS can do. Both kinds of member share the same boundaries and the same feeds.

Custody changes two things an app must handle.

  • Where to write. A stratos-custody user writes to the Stratos service. A pds-custody user writes to their own PDS.
  • What a record address looks like. The two custody classes use different URI shapes. See Space below.

It never changes who decides membership. That is always Stratos.

Space ​

The AT Protocol has a proposal for private data, called permissioned spaces. A space is the protocol's name for a boundary, and the service that controls its membership is the space authority.

Every Stratos boundary is a space, and Stratos is its authority:

text
boundary  did:web:stratos.example.com/writers
space     at:space/did:web:stratos.example.com/zone.stratos.space.feed/writers

A record kept on a user's PDS has a space record address. It is at:space/ plus six parts, and it starts with the authority, not the author. A record kept by Stratos has the familiar address, at:// plus three parts. Select a part to see what it holds:

Part 1 of 6Authority DIDThe Stratos service that decides membership. It comes first, not the author. Code that reads the first part as the author is wrong for this shape.
Every part, as a list
at:space/ Scheme
A space record address starts here. It is not an at:// address, so a parser for public addresses must not receive it.
did:web:stratos.example.com Authority DID
The Stratos service that decides membership. It comes first, not the author. Code that reads the first part as the author is wrong for this shape.
/zone.stratos.space.feed Space type
Must stay published as a com.atproto.lexicon.schema record. If it is missing, or the PDS refuses it, the PDS answers invalid_scope.
/engineering Space key
The boundary name. With the authority DID it is the boundary did:web:stratos.example.com/engineering.
/did:plc:ewvi7nxzyoun6zhxrhs64oiz Author DID
The member who wrote the record, in part four. The member's own PDS hosts the repository.
/zone.stratos.feed.post Collection
The record type.
/3kq2xwmhefc2a Record key
The record's key in the collection.

Permissioned Spaces tells the full story.

Space credential ​

A space credential is a short-lived pass for one space. Stratos issues it to a current member, or to a service acting for one. The holder shows it to whoever keeps the records: Stratos, or a member's PDS.

A credential is bound to a key. Every request must prove possession of that key, so a copied credential is useless by itself.

Feed generator ​

The feed generator turns boundaries into timelines. It follows the members Stratos lists, collects their posts from Stratos and from their PDSs, and keeps a bounded, encrypted copy. When a viewer opens a feed, it checks the viewer's current membership and returns only what they may read.

See Feed generator design.

Sync stream ​

zone.stratos.sync.subscribeRecords is a WebSocket that carries changes to Stratos-hosted records. It is for services, not for end-user apps: the caller must be a service the operator has enrolled. Each stream covers one user, and Stratos filters it to the boundaries the calling service holds.

There is no service-wide firehose. A single stream of everything would leak activity across boundaries.

Repository ​

Private posts are stored the way public posts are: in an AT Protocol repository, a Merkle Search Tree (MST) of records with a signed commit on top.

For a stratos-custody user, Stratos hosts that repository. The owner can export all of it as a CAR file with zone.stratos.sync.getRepo and verify it against the signingKey in their enrollment record.

For a pds-custody user, the repository is a space on their own PDS.

Trust model ​

Who has to trust whom?

Readers trust Stratos for membership. Before any private content is returned, the caller's current membership is checked. Stratos does it for its own endpoints. The feed generator does it before it serves a feed.

Nobody trusts a boundary written inside a PDS-hosted post. A PDS does not ask Stratos before it accepts a write. Anyone can write a record that claims to belong to a boundary. Readers ignore the claim and ask Stratos who the members are.

Removing a member stops reading, not writing. A removed member can still write on their own PDS. Nobody collects it.

The three custody rules state both points exactly.

The attestation proves enrollment, not access. The enrollment record carries a signature from the Stratos service key over the user's DID, boundaries, and signing key. Any app can check it and confirm that this Stratos service enrolled this user.

1234Service keyStratos DID documentAttestationsigned by StratosEnrollmentrecord on user's PDSAny appthe verifier5

The attestation shows that Stratos approved the enrollment at the time it was signed. It is not a grant to read posts. Access to feeds and records depends on current membership.

Posts are access-controlled, not end-to-end encrypted. The Stratos service and the feed generator handle plaintext. Members trust their operator the way they trust a PDS host.