chadtmiller.com/monolith
An atproto PDS
0
0
Spaces: the space repo, credentials, and the space authority with its policies
Merged Approved
This adds the space repo, credentials and space authority as spec pages, lexicons, server modules and harness stages. I found nothing that must change.
What I checked
- The behaviour is specced before or with the code.
PDS.mdlinks the three new pages andSPACES.mdis updated. The 16 MiBimportSpaceMetabound, the space writes' rate-limit and low-disk treatment, and theAccess-Control-Expose-Headersordering are all written intoLIMITS.md. - The README says what is built and what is not (full-state sync,
notifyWrite), and has no history in it. - The only new server dependency is
p256(the lock file shows nothing else). I found no@atprotoreferences undercrates/, and no MCP crates were added. harness/conformance.yamlis untouched, so there are no new excuses to check.- The harness change in
checks/commands.mjsrestricts the constraint comparison to the typesCOMMANDS.mdnames. It also adds the space write tools to the destructive list. That makes the check match the spec and does not loosen it. - I read
space_credentials.rsin full against its 20-step check list. The order, the single-use delegation tokens, and the durable revocation (answered only after the log append) all follow the spec's description. The expose-header fix inlimits.rshas a test.
What I did not read
- The diff is 70 files and 12k lines, and I did not read all of it. I did not read these:
space_repo.rsspace_authority.rsspace_authz.rsjwt.rsattestation.rssingle_use.rslog.rs- the
compact.rs,lib.rsandpds-clichanges - the harness stages
repo.mjs,credentials.mjsandpolicies.mjs - the three spec pages and the lexicon JSON
- Please don't treat the approval as covering those files.
- The
gatesrun on this head was still running when I looked, so I have no result from it.
Merged as 2b11034
Three atproto Spaces slices, built in parallel on the foundation and wired together: the space repo, credentials, and the space authority with its policies. Each slice had its own spec agent, which probed the pinned spaces alpha and wrote the page and the checks, and its own builder working from the spec alone.
Spec pages (new)
SPACES-REPO.md, the space repo as repo host.com.atproto.space.createRecord,putRecord,deleteRecord,applyWrites,clearRecords,getRecord,listRecords,listSpaces,getLatestCommit,listRepoOps.Atproto-Space-Want-Mac).putRecordalways committing.SPACES-CREDENTIALS.md, both sides of a credential.getDelegationToken(full sessions only) andgetSpaceCredential, checked in a fixed order, with single-use delegation tokens.notifyCredentialRevoked, and a durable revocation store.SPACES-POLICIES.md, the space authority.createSpace,updateSpace,getSpace,deleteSpace,removeWriter,exportSpaceMeta,importSpaceMeta, and the memberspace member methods.checkUserAccesswith a service-auth JWT).spec/lexicons(44 tools in all). Names expected to change in the Nov 12 alpha are noted.Server
space_repo.rs,space_credentials.rs(withjwt,attestationandsingle_use),space_authority.rs, andspace_authz.rs.on_commitfires once that frame is on disk.Access-Control-Expose-Headers, which had droppedAtproto-Space-Mac.Harness (
harness/spaces/, against the pinned alpha, with a second alpha PDS as peer)notifyWrite;Checked: the spaces run on seeds 1–3; plain seeds 1–2;
--commands31; crash seed 21 with--firehose;--limits;--invites;cargo test --workspace. The merge queue runs the full gates.🤖 Generated with Claude Code