> From *AT Protocol Spaces: A Field Guide* on atproto.how, revised 2026-11-23.
> Web page: https://atproto.how/atproto-spaces-field-guide/8-policies
> Index for agents: https://atproto.how/llms.txt · Text CC BY-SA 4.0, code samples MIT.

# Chapter 8 · Policies

Policies are the core of how people interact with a space because policies are what enforces a space’s data perimeter. Stored with the space as a typed object, a policy decides whether an identity and app may *read* (get a credential), and whether an account may *write* (be tracked in the writer set, with syncers notified). Adding or removing a member is a common operation and a relatively straightforward one. It’s the policy that determines what adding a member means and what the side effects are.

A personal bookmark collection under personalspace has no members to add. It’s your own space, and no one else will use it. With memberspace, adding and removing members has all kinds of side effects. A member can be given read access, write access, or both. The space can also publish its policy as a record, and a record for each member.

With managedspace you are effectively handing all of the decision making to a third party. The managing app determines what access any given account has. Every PDS must support these three baseline policies and may support others \[spec\]. They won’t fit every community, and it’s relatively easy to create a new one.

> **If you’re building an app**
>
> The policy sets what a member can do once they are added to a space. If your app is a personal utility, where the user who created the space is the one person who will ever read and write it, use personalspace.
>
> If your app spans multiple users, now or in the future, pick memberspace. It covers a lot of different scenarios and is a really good default. Managedspace offers some features, but it comes with a lot of caveats. Use it if you really want to take data perimeter decisions away from the space host, and proceed with caution.
>
> The policy controls who gets a credential and whose writes are synced. What each of your users sees inside your app is still your decision, covered in [Chapter 10](https://atproto.how/atproto-spaces-field-guide/10-operations.md).

<a id="the-lifecycle-methods"></a>

## 8.1 The lifecycle methods

> *In the family space.* Marcus sets up a space for his family in the family app. He is its authority, and the space lives on his PDS. He chooses a member list, and he turns on the two flags that let the family see the policy and who else belongs.

An authority creates, changes, reads back, and deletes its space with four methods under `com.atproto.space.*`. They work the same way under every policy \[spec\], and each one takes the authority’s OAuth session with the matching `manage` grant from [Chapter 9](https://atproto.how/atproto-spaces-field-guide/9-oauth-and-consent.md).

Creating a space happens once, when someone sets one up, and the caller becomes its authority. The call needs `manage=create` for the space type. `skey` is optional, and the host generates a TID when it’s omitted. The response is the new space’s URI. A call that names a deleted space’s type and key recreates it under the same URI, with the new policy and no members \[crates\]. A second call with the same type and key fails with `SpaceAlreadyExists`, and a policy type the host doesn’t support fails with `UnsupportedPolicy` \[spec\].

**Reference: `createSpace`** \[spec\]

Marcus creates the family space on his PDS.

<a id="try-create-space"></a>

**Try it 8.1** · Create the family space. This example is interactive on the web: https://atproto.how/atproto-spaces-field-guide/8-policies#try-create-space

Request:

```http
POST /xrpc/com.atproto.space.createSpace
Host: pds-a.example.com
Authorization: DPoP <access token>
DPoP: <proof JWT>
Content-Type: application/json

{
  "spaceType": "com.example.familyUpdates",
  "skey": "our-family",
  "policy": {
    "$type": "com.atproto.memberspace.policy",
    "publicRead": false,
    "publicWrite": false,
    "publishPolicy": true,
    "publishMembers": true
  }
}
```

Headers:

- `Authorization`: The session’s access token, bound to a key only the client holds. [Appendix G, OAuth requests](https://atproto.how/atproto-spaces-field-guide/g-worked-values.md#oauth-requests)
- `DPoP`: A proof signed with that key for this method and URL, so a copied token can’t be replayed. [Appendix G, OAuth requests](https://atproto.how/atproto-spaces-field-guide/g-worked-values.md#oauth-requests)

Sample response:

```json
{
  "space": "at:space/did:plc:ejjl2znzqp3ci25dqaslpkk2/com.example.familyUpdates/our-family"
}
```

Changing a space’s rules is an `updateSpace` call, which needs `manage=update`. The new policy replaces the old one wholesale, so the request carries every field, not only the one that changes. Keeping the same `$type` is a configuration change. Switching to a different `$type` migrates the space, and the old policy’s state, such as a member list, is discarded. It doesn’t come back if the space later migrates back. A field the new policy leaves out takes its default, and the writer set isn’t re-evaluated. `atproto-pds` revokes early any outstanding credential the new policy wouldn’t issue, and brings the published records in line, so turning `publishMembers` off withdraws the member records \[crates\].

**Reference: `updateSpace`** \[spec\]

Marcus stops publishing the family’s member list.

```http
POST /xrpc/com.atproto.space.updateSpace
Authorization: DPoP eyJ0eXAiOiJhdCtqd3QiLCJhbGciOi...
DPoP: eyJhbGciOiJFUzI1NiIsInR5cCI6Im...

{
  "space": "at:space/did:plc:ejjl2znzqp3ci25dqaslpkk2/com.example.familyUpdates/our-family",
  "policy": {
    "$type": "com.atproto.memberspace.policy",
    "publicRead": false,
    "publicWrite": false,
    "publishPolicy": true,
    "publishMembers": false
  }
}
```

```http
HTTP/1.1 200 OK
Content-Length: 0
```

The lexicon declares no output, so success is a `200` with an empty body \[spec\].

Reading a space’s current policy back is a `getSpace` call, such as when the family app opens its settings screen for Marcus. Only the authority can make it. Members who want to see the policy rely on the `publishPolicy` flag instead.

**Reference: `getSpace`** \[spec\]

Marcus’s family app loads the family space’s settings.

<a id="try-get-space-settings"></a>

**Try it 8.2** · Load the family space’s settings. This example is interactive on the web: https://atproto.how/atproto-spaces-field-guide/8-policies#try-get-space-settings

Request:

```http
GET /xrpc/com.atproto.space.getSpace
  ?space=at:space/did:plc:ejjl2znzqp3ci25dqaslpkk2/com.example.familyUpdates/our-family
Host: pds-a.example.com
Authorization: DPoP <access token>
DPoP: <proof JWT>
```

Headers:

- `Authorization`: The session’s access token, bound to a key only the client holds. [Appendix G, OAuth requests](https://atproto.how/atproto-spaces-field-guide/g-worked-values.md#oauth-requests)
- `DPoP`: A proof signed with that key for this method and URL, so a copied token can’t be replayed. [Appendix G, OAuth requests](https://atproto.how/atproto-spaces-field-guide/g-worked-values.md#oauth-requests)

Sample response:

```json
{
  "space": "at:space/did:plc:ejjl2znzqp3ci25dqaslpkk2/com.example.familyUpdates/our-family",
  "policy": {
    "$type": "com.atproto.memberspace.policy",
    "publicRead": false,
    "publicWrite": false,
    "publishPolicy": true,
    "publishMembers": false
  }
}
```

`atproto-pds` writes out every default and leaves `allowedApps` out when it’s unset, since its absence means any app may read \[crates\].

Removing a space is a `deleteSpace` call, which needs `manage=delete`. One call starts a longer sequence. The host stops issuing credentials, deletes the authority’s own records in the space, and notifies every registered syncer, and each syncer then drops its copy. [Chapter 10](https://atproto.how/atproto-spaces-field-guide/10-operations.md) walks through that sequence under Deleting a space. Members' own repo hosts aren’t told, and their records in the space become unreadable to anyone but their own accounts. Deleting a space that’s already deleted answers `200` and repeats none of this \[crates\].

**Reference: `deleteSpace`** \[spec\]

Marcus deletes the family space.

```http
POST /xrpc/com.atproto.space.deleteSpace
Authorization: DPoP eyJ0eXAiOiJhdCtqd3QiLCJhbGciOi...
DPoP: eyJhbGciOiJFUzI1NiIsInR5cCI6Im...

{
  "space": "at:space/did:plc:ejjl2znzqp3ci25dqaslpkk2/com.example.familyUpdates/our-family"
}
```

```http
HTTP/1.1 200 OK
Content-Length: 0
```

As with `updateSpace`, the lexicon declares no output \[spec\].

Every method that works on an existing space refuses a caller who isn’t the authority with `NotAuthorized`, and an unknown space with `SpaceNotFound`. That covers `updateSpace`, `deleteSpace`, `getSpace`, `removeWriter`, and `exportSpaceMeta` \[spec\]. `atproto-pds` sends `NotAuthorized` with status 400 \[crates\].

Three rules hold under every policy \[spec\]:

- The authority always reads and writes its own space.
- Read access decides whether a credential is minted.
- Write access decides only whether the space host *tracks* a writer and notifies syncers. It never blocks a write into an account’s own repo, and applications still choose which records to show.

<a id="personalspace"></a>

## 8.2 personalspace

[`com.atproto.personalspace.policy`](https://lexicon.garden/nsid/com.atproto.personalspace.policy) is for data that belongs to one person: private bookmarks, mutes, draft posts that aren’t ready to publish, records scheduled to go out at a set time and not before, a personal journal, and snippets saved from the web. Only the authority’s own account, through the apps it authorizes, may read, and no other writers are tracked. It has no fields and no methods \[spec\]. Choosing it over a memberspace with no members removes the risk of someone being added by accident, since there is no member list to add them to.

<a id="code-8-1"></a>

```json
{
  "$type": "com.atproto.personalspace.policy"
}
```

> *In Jake’s bookmarks space.* Jake saves a recipe link in the family space. He keeps the same bookmark in a bookmarks space of his own, where he is the authority and no one else is tracked as a writer.

A bookmarks app asks for `space:com.example.bookmarks` (authority defaults to `self`), creates `at:space/did:plc:brthxhhoomvrib2avauses35/com.example.bookmarks/self` on first run, and writes records there. Each of Jake’s apps needs its own `read` grant to reach it.

<a id="memberspace"></a>

## 8.3 memberspace

> *In the family space.* Marcus adds Elena, Ruth, Nora, and Jake, who can each read and post. He adds Erin as well. She can read what the family shares, and nothing she writes will be tracked.

[`com.atproto.memberspace.policy`](https://lexicon.garden/nsid/com.atproto.memberspace.policy) decides by a member list kept by the authority’s PDS \[spec\].

**Reference: Memberspace policy fields** \[spec\]

| Field | Default | Effect |
| --- | --- | --- |
| `publicRead` | false | Anyone may read; no delegation token needed |
| `publicWrite` | false | Track writes from accounts not on the member list |
| `allowedApps` | any | Mint only for these attested `client_id` values (URIs) |
| `publishPolicy` | false | Publish the policy as a record |
| `publishMembers` | false | Publish one record per member |

Each member is a [`com.atproto.memberspace.defs`](https://lexicon.garden/nsid/com.atproto.memberspace.defs)`#member` with required `did`, `read`, and `write` \[spec\]. The list lives outside the policy object, so it survives configuration changes.

A member’s `read` and `write` are independent permissions \[spec\]. Each works as the three rules above describe, so a member can hold either without the other. A read-only member follows the space without being synced as a writer. A write-only member, with `write: true` and `read: false`, has their records synced to everyone who can read, but their apps can’t read anyone else’s repo, which suits a submissions or tip-line space, where members post and only the authority and readers see everything. Either way, a member can always read their own space repo on their own PDS with OAuth.

Adding members, or changing what existing members can do, is a `putMembers` call, which needs `manage=update`. Each entry sets `read` and `write` together, so upgrading a read-only member to read and write means sending `true` for both. A call takes at most 100 entries and applies them in one commit, so larger changes go in batches of 100 \[spec\]. In `atproto-pds`, a DID listed twice takes its last entry, a member given `write: false` leaves the writer set, and a member who loses `read` loses their outstanding credentials too \[crates\].

**Reference: `putMembers`** \[spec\]

Marcus adds the family in one call, with Erin as a read-only member.

```http
POST /xrpc/com.atproto.memberspace.putMembers
Authorization: DPoP eyJ0eXAiOiJhdCtqd3QiLCJhbGciOi...
DPoP: eyJhbGciOiJFUzI1NiIsInR5cCI6Im...

{
  "space": "at:space/did:plc:ejjl2znzqp3ci25dqaslpkk2/com.example.familyUpdates/our-family",
  "members": [
    {
      "did": "did:plc:53ni6w7okqrxvjxezmopejoo",
      "read": true,
      "write": true
    },
    {
      "did": "did:plc:p4256dosynj6j6tkypz2q2l3",
      "read": true,
      "write": true
    },
    {
      "did": "did:plc:ashwgt3d5ntfxmlcfyizpu2g",
      "read": true,
      "write": true
    },
    {
      "did": "did:plc:brthxhhoomvrib2avauses35",
      "read": true,
      "write": true
    },
    {
      "did": "did:web:erin.example",
      "read": true,
      "write": false
    }
  ]
}
```

<a id="code-8-2"></a>

```http
HTTP/1.1 200 OK
Content-Length: 0
```

> *In the family space.* Marcus changes Jake to read-only, and later takes him off the member list. Jake’s bookmark stays in his own space repo on his PDS. The space host stops listing him as a writer.

**Reference: `putMembers`** \[spec\]

Marcus changes Jake to read-only. The same call with `"write": true` would upgrade him back.

```http
POST /xrpc/com.atproto.memberspace.putMembers
Authorization: DPoP eyJ0eXAiOiJhdCtqd3QiLCJhbGciOi...
DPoP: eyJhbGciOiJFUzI1NiIsInR5cCI6Im...

{
  "space": "at:space/did:plc:ejjl2znzqp3ci25dqaslpkk2/com.example.familyUpdates/our-family",
  "members": [
    {
      "did": "did:plc:brthxhhoomvrib2avauses35",
      "read": true,
      "write": false
    }
  ]
}
```

```http
HTTP/1.1 200 OK
Content-Length: 0
```

Taking someone off the list is a `removeMembers` call, with the same `manage=update` grant and the same limit of 100. A DID that isn’t a member is ignored \[spec\], writer-set entry and all. Each removed member leaves the list and the writer set together, and `atproto-pds` revokes their credentials unless the space is `publicRead` \[crates\]. Their records stay in their own space repo.

**Reference: `removeMembers`** \[spec\]

Marcus removes Jake.

```http
POST /xrpc/com.atproto.memberspace.removeMembers
Authorization: DPoP eyJ0eXAiOiJhdCtqd3QiLCJhbGciOi...
DPoP: eyJhbGciOiJFUzI1NiIsInR5cCI6Im...

{
  "space": "at:space/did:plc:ejjl2znzqp3ci25dqaslpkk2/com.example.familyUpdates/our-family",
  "dids": [
    "did:plc:brthxhhoomvrib2avauses35"
  ]
}
```

<a id="code-8-3"></a>

```http
HTTP/1.1 200 OK
Content-Length: 0
```

Reading the member list back is a `listMembers` call. Only the authority can make it, and the authority itself never appears in the list. It pages with `limit`, from 1 to 1000 with a default of 100, and `cursor` \[spec\]. `atproto-pds` sorts members by DID and uses the last DID on a page as the cursor \[crates\]. Members who want to see the list rely on the `publishMembers` flag instead.

**Reference: `listMembers`** \[spec\]

Marcus’s family app loads the member list after Jake’s removal.

```http
GET /xrpc/com.atproto.memberspace.listMembers
  ?space=at:space/did:plc:ejjl2znzqp3ci25dqaslpkk2/com.example.familyUpdates/our-family
  &limit=100
Authorization: DPoP eyJ0eXAiOiJhdCtqd3QiLCJhbGciOi...
DPoP: eyJhbGciOiJFUzI1NiIsInR5cCI6Im...
```

```json
{
  "members": [
    {
      "did": "did:plc:53ni6w7okqrxvjxezmopejoo",
      "read": true,
      "write": true
    },
    {
      "did": "did:plc:ashwgt3d5ntfxmlcfyizpu2g",
      "read": true,
      "write": true
    },
    {
      "did": "did:plc:p4256dosynj6j6tkypz2q2l3",
      "read": true,
      "write": true
    },
    {
      "did": "did:web:erin.example",
      "read": true,
      "write": false
    }
  ]
}
```

`atproto-pds` includes `cursor` only when more members remain, so this response has none. Its member store also returns at most 100 members a page, whatever `limit` asks for \[crates\].

All three methods declare `SpaceNotFound`, `NotAuthorized`, and `PolicyMismatch`, which means the space isn’t a memberspace. `listMembers` adds `InvalidCursor` \[spec\].

**Reference: The memberspace access decision** \[spec\]

```text
canRead(user, app):
  if allowedApps set and app not in allowedApps: deny
  if publicRead: allow
  if user is none: deny
  if user == authority: allow
  if members[user].read: allow
  deny

canWrite(user):
  if user == authority: allow
  if user in members: return members[user].write
  if publicWrite: allow
  deny
```

With `publicRead`, no delegation token is required, but `allowedApps` still applies, so a client attestation from a listed app is required when the list is set. Without `allowedApps`, any app may read and no attestation is needed, so public clients work. `allowedApps` applies only to reads, because a write notification authenticates the writer’s repo host, not the app \[spec\].

When `removeMembers` removes a member, or `putMembers` revokes a member’s write access, the authority should also remove that account from the writer set, and the removal is announced to syncers. Under `publicWrite`, a removed writer is tracked again as soon as it writes, unless it is on the member list with `write: false` \[spec\].

These three configurations cover a lot of use cases. The following examples show some of the ways the read and write flags can be used as common patterns. Each shows the body an organizer sends to create a space and manage a member list, and also describes what it means for readers and writers of those example spaces. They’re illustrative, so the people in them don’t appear in [Appendix F](https://atproto.how/atproto-spaces-field-guide/f-example-identities.md).

<a id="a-private-group"></a>

### 8.3.1 A private group

Alice (`did:plc:ldianl3maiaomvmvyyt3xzhh`) runs a small planning committee. Bob (`did:plc:7gortyhgiwmpn47qdu6h2bhc`) helps run it, and Carol (`did:plc:5uf6dmcz5zmcw3evvgwl5jx4`) follows along. A private group leaves every flag at its default and lists its members:

<a id="code-8-4"></a>

```json
{
  "spaceType": "com.example.group",
  "skey": "planning-committee",
  "policy": {
    "$type": "com.atproto.memberspace.policy"
  }
}
```

<a id="code-8-5"></a>

```json
{
  "space": "at:space/did:plc:ldianl3maiaomvmvyyt3xzhh/com.example.group/planning-committee",
  "members": [
    {
      "did": "did:plc:7gortyhgiwmpn47qdu6h2bhc",
      "read": true,
      "write": true
    },
    {
      "did": "did:plc:5uf6dmcz5zmcw3evvgwl5jx4",
      "read": true,
      "write": false
    }
  ]
}
```

Only Alice, Bob, and Carol get credentials, so only their apps can read the group. Bob’s writes are tracked and reach syncers. Carol reads but isn’t synced as a writer. With `publishPolicy` and `publishMembers` off, nothing about the group shows up as a record in Alice’s repo.

<a id="an-announcement-space"></a>

### 8.3.2 An announcement space

Alice also runs an announcements space, where Bob posts updates for anyone to read. An announcement space opens reads to everyone and keeps writing to its members:

<a id="code-8-6"></a>

```json
{
  "spaceType": "com.example.group",
  "skey": "announcements",
  "policy": {
    "$type": "com.atproto.memberspace.policy",
    "publicRead": true,
    "publishPolicy": true
  }
}
```

<a id="code-8-7"></a>

```json
{
  "space": "at:space/did:plc:ldianl3maiaomvmvyyt3xzhh/com.example.group/announcements",
  "members": [
    {
      "did": "did:plc:7gortyhgiwmpn47qdu6h2bhc",
      "read": true,
      "write": true
    }
  ]
}
```

Any app gets a credential without a delegation token, so anyone can follow along. Only Alice and Bob are tracked as writers. Anyone else can still write records into their own repo for this space, but the space host never lists them, so syncers never pull them. Setting `allowedApps` would limit reading to attested apps, and publishing the policy lets clients see that the space is public before they ask.

<a id="an-open-guestbook"></a>

### 8.3.3 An open guestbook

Finally, Alice opens a guestbook that anyone can sign, and Mallory (`did:plc:3fuyksp4k46rff4lht3ihb3y`) is one of the people who can. An open guestbook opens both reading and writing, and needs no member list:

<a id="code-8-8"></a>

```json
{
  "spaceType": "com.example.group",
  "skey": "guestbook",
  "policy": {
    "$type": "com.atproto.memberspace.policy",
    "publicRead": true,
    "publicWrite": true
  }
}
```

Anyone can read, and any account that writes is tracked and synced. Moderation is handled after the fact. If Mallory were to post spam, Alice removes her ability to write with `removeWriter`:

<a id="code-8-9"></a>

```json
{
  "space": "at:space/did:plc:ldianl3maiaomvmvyyt3xzhh/com.example.group/guestbook",
  "repo": "did:plc:3fuyksp4k46rff4lht3ihb3y"
}
```

A removed writer is tracked again as soon as it writes, unless it is on the member list with `write` set to false \[spec\]. To keep Mallory out, Alice also adds her as a member who can read but not write:

<a id="code-8-10"></a>

```json
{
  "space": "at:space/did:plc:ldianl3maiaomvmvyyt3xzhh/com.example.group/guestbook",
  "members": [
    {
      "did": "did:plc:3fuyksp4k46rff4lht3ihb3y",
      "read": true,
      "write": false
    }
  ]
}
```

<a id="managedspace"></a>

## 8.4 managedspace

[`com.atproto.managedspace.policy`](https://lexicon.garden/nsid/com.atproto.managedspace.policy) delegates access decisions to an external **managing app**, so access can depend on state the PDS doesn’t hold: a paid subscription, a follow, a ticket \[spec\].

Choosing managedspace hands the space’s access decisions, and with them its data perimeter, to a third party. That can be the right call for some situations. A managing app can be a specialized service with its own deployment and resource footprint, so the authority’s PDS doesn’t carry that work. It can also offer policies and features the PDS or space host doesn’t support, which bridges the gap for apps that want them.

The trade-offs are real, though. If the managing app is slow or prone to outages, the space is unavailable to apps and users while it’s down. The authority also gives up some control over important metadata about the space. Most important, the managing app can let people in without the authority’s consent, including itself. Weigh these before delegating to a third party, and before building managing-app endpoints for others to use with your applications.

<a id="code-8-11"></a>

```json
{
  "$type": "com.atproto.managedspace.policy",
  "managingApp": "did:web:newsletter.example#newsletter_app",
  "publishPolicy": true
}
```

`managingApp` is a `did#serviceId` reference. The managing app serves [`com.atproto.managedspace.checkAccess`](https://lexicon.garden/nsid/com.atproto.managedspace.checkAccess), and the authority calls it with service auth issued as the authority (`lxm=com.atproto.managedspace.checkAccess`) \[spec\].

**Reference: `checkAccess`** \[spec\]

A newsletter author’s PDS asks the managing app about one reader.

<a id="try-check-access"></a>

**Try it 8.3** · Ask the managing app. This example is interactive on the web: https://atproto.how/atproto-spaces-field-guide/8-policies#try-check-access

Request:

```http
GET /xrpc/com.atproto.managedspace.checkAccess
  ?space=at:space/did:plc:ldianl3maiaomvmvyyt3xzhh/com.example.newsletter/members
  &repo=did:plc:ybwcjf2zkz3yfyb6mo2z7cjf
  &clientId=https://newsletter.example/client-metadata.json
Host: newsletter.example
Authorization: Bearer <service auth JWT from the authority>
```

Headers:

- `Authorization`: A service auth token the caller’s PDS signed for this one method and audience. [Appendix G, Tokens](https://atproto.how/atproto-spaces-field-guide/g-worked-values.md#tokens)

Sample response:

```json
{
  "read": true,
  "write": false
}
```

The authority passes the space, the identity being checked as `repo`, and the attested `client_id` if the request presented one. A check prompted by a write carries no client, since `notifyRepoUpdate` doesn’t identify the app \[spec\].

`read` and `write` come back as independent answers. A paid newsletter falls out naturally, since subscribers read and only the author writes. A follower-gated space checks the follow graph instead.

In `atproto-pds`, a request without a delegation token asks with no `repo`. A managing app should answer `read: true` to that check only for spaces meant to be publicly readable. If the managing app can’t be reached, returns an error, or sends malformed output, the request fails with `502 UpstreamFailure` rather than a denial. The `managingApp` value must be an absolute `did:plc` or `did:web` reference with a fragment, and the server checks it on create, update, and import \[crates\].

<a id="publishing-configuration-to-readers"></a>

## 8.5 Publishing configuration to readers

> *In the family space.* Nora wants to know who else can see what she posts. Only Marcus can ask his PDS for the member list. The family app shows it to her anyway, because Marcus’s space repo holds a record for each member.

By default a space’s policy and member list are visible only to the authority, through `getSpace` and `listMembers`. `memberspace` and `managedspace` carry a `publishPolicy` flag, and `memberspace` also carries `publishMembers` \[spec\]. When set, the authority’s PDS writes that state as records in the authority’s own repo in the space.

Not every space needs that transparency, and leaving the flags off is a normal choice. In a memberspace, the published records are extra data the space may not want or need. A space can also be built so that members don’t know who the other members are, such as a support group or a tip line.

**Reference: Published configuration records** \[spec\]

| Flag | Collection | Record key | Record |
| --- | --- | --- | --- |
| `publishPolicy` | [`com.atproto.space.policy`](https://lexicon.garden/nsid/com.atproto.space.policy) | `self` | `policy`, holding the current policy object |
| `publishMembers` | [`com.atproto.memberspace.member`](https://lexicon.garden/nsid/com.atproto.memberspace.member) | the member’s DID | `read`, `write` |

With both flags set, Marcus’s repo in the family space holds a policy record and a record for each member, such as these two, at `com.atproto.space.policy/self` and `com.atproto.memberspace.member/did:plc:53ni6w7okqrxvjxezmopejoo` \[spec\]:

<a id="code-8-12"></a>

```json
{
  "$type": "com.atproto.space.policy",
  "policy": {
    "$type": "com.atproto.memberspace.policy",
    "publicRead": false,
    "publicWrite": false,
    "publishPolicy": true,
    "publishMembers": true
  }
}
```

<a id="code-8-13"></a>

```json
{
  "$type": "com.atproto.memberspace.member",
  "read": true,
  "write": true
}
```

The policy record wraps the policy in a `policy` field rather than being the policy object itself, so its `$type` stays [`com.atproto.space.policy`](https://lexicon.garden/nsid/com.atproto.space.policy) whichever policy the space uses.

The stored configuration stays the source of truth, and the PDS keeps the records in step. It rejects direct writes to those collections through repo CRUD, and `clearRecords` leaves them in place. Readers trust these records only in the authority’s repo, since any member could write look-alikes into their own \[spec\]. Members who have written can be enumerated through the writer set even when the member list is unpublished.

<a id="other-policies"></a>

## 8.6 Other policies

The baseline policies are neither the only permitted ones nor privileged ones \[spec\]. Any policy defines a `policy` object with its own `$type`, its access rules, its configuration, and any additional XRPC methods, by convention in the policy’s own namespace. A host that receives a `$type` it doesn’t implement answers `UnsupportedPolicy`, so clients can feature-detect.

New policies are expected, and writing one is a modest amount of work. Communities come in different shapes, and a policy is where a community states what its data perimeter allows. A policy outside the baseline is a full participant in the protocol, and it can be implemented by a PDS or by a space host built for the purpose \[spec\].

Off the Clock, a members-only community application, is one example. Its community is a hyperspace, with a primary space that has its own members and inner spaces for smaller groups, and a member of an inner space has to be a member of the space above it first. Memberspace keeps each space’s list separate, with no way to make one list depend on another. A managedspace whose managing app checks the space above could do the job, but it would trust that app to get the check right every time. A policy of its own keeps the check and its validation in the space host that enforces the policy. The protocol gives no meaning to one space sitting beneath another, so the policy is where the host learns that relationship. Off the Clock defines [`us.off-the-clock.subspace.policy`](https://lexicon.garden/nsid/us.off-the-clock.subspace.policy) for this, and `atproto-pds` implements it \[crates\].

An inner space names the space above it in its policy, in the `parent` field. A space that names none admits members directly. An inner space admits members of the space above it, and `parentAccess` sets what each of those members gets there without an entry of their own. When a member leaves or is removed from a space, the host removes their entries from every inner space beneath it, and from those spaces' writer sets, in the same change \[crates\].

The cost is portability. Every PDS implements the baseline policies \[spec\]. A space under a custom policy needs a host that implements that policy, which narrows where its authority’s account can live. A practical answer is to make the community its own identity, as the space authority, and keep that identity’s account on a host that supports the policy. The admins and members are then free to keep their accounts anywhere.

**Reference: `us.off-the-clock.subspace.policy` fields** \[crates\]

| Field | Default | Effect |
| --- | --- | --- |
| `parent` | none, so no space is above this one | The space above this one, under the same authority and the same policy |
| `parentAccess` | `read` | What each member of the space above gets without an entry: `read`, `write` (which includes read), or `none` |
| `publicRead` | false | Anyone may read, with or without a delegation token |
| `allowedApps` | the list of the space above, or any app when there is none | Mint credentials for these attested `client_id` values |
| `publishPolicy` | false | Publish the policy as a [`com.atproto.space.policy`](https://lexicon.garden/nsid/com.atproto.space.policy) record |
| `publishMembers` | not published | A space under the same authority, written `<spaceType>/<skey>`, that receives the member entries as records |

A member entry carries `read`, `write`, and `admin`, and an admin manages the member list of that one space. The policy’s methods live in its own namespace, `us.off-the-clock.subspace.*`. They are `putMembers`, `removeMembers`, `listMembers`, `listSubspaces`, and `leave` \[crates\].

<a id="common-questions"></a>

## 8.7 Common questions

**Is there a member list my app can read?**

If the authority sets `publishMembers`, its repo in the space holds one record per member, and any reader of the space can see them. Otherwise only the authority can call `listMembers`. The writer set is a different list, the accounts that have written, and `listSpaces` is different again, the spaces where the caller’s own account keeps a repo or is the authority.

**Can someone write to a space without being able to read it?**

Yes, under memberspace. A member with `write: true` and `read: false` is a write-only member, as described under memberspace. Under managedspace, the managing app can answer `checkAccess` the same way.

**Can a space change policies?**

Yes. `updateSpace` with a policy of a different `$type` migrates the space. The old policy’s state, such as its member list, is discarded.
