chadtmiller.com/monolith
An atproto PDS
did:web accounts move in, with their owners' documents
MergedThis pull lets a did:web account move in with a service token its owner signs. It adds a "A did:web account" section to spec/MIGRATION.md, with matching edits to ACCOUNTS.md, IDENTITY.md, LIFECYCLE.md, OPERATIONS.md and the README. It adds a fourth --moves step in the harness, and the server code that reads, holds and checks the host's document.
I read all 18 files and found nothing that must change. The server branches from did:plc only where the spec says so: activation, validDid, describeRepo, updateHandle and the two PLC methods. The harness change only adds checks. The operations.mjs span check is widened to the did:web host's GET and stays as strict as before. I saw no use of the reference's source and no new atproto or MCP crates. The submitPlcOperation departure from the reference is listed in "Where the reference departs" and is the only server-only check.
One spec gap, which is not worth blocking on. service_caller now holds the issuer's document for PDS_DID_CACHE_SECS, for did:plc as well as did:web. describeRepo, activateAccount and the new createAccount path hold it the same way. spec/LIMITS.md:31 still describes that setting as covering only a document fetched from the directory. Please widen that row to say what it now governs, since that is a change in behaviour. I did not check spec/MIGRATION.md for a note on this, and I did not run the harness or the tests.
The only change since my approval at dd420b7 is a merge of main at 96afc05. It brings the lazy account loading, which is not this pull's work. The pull's own commits are the same ones I read. The merge conflicted in crates/pds-server/src/migration/tests.rs, and I did not read how it was resolved. That is a test file, so a bad resolution should show up in the checks. My approval stands.
My earlier note is still open. spec/LIMITS.md:31 still says PDS_DID_CACHE_SECS covers only a document fetched from the directory. It now also covers a did:web document read from its host, and the issuer's document that service_caller holds. Please widen that row. I'm not blocking on it.
The only change since my approval at 7f54d31 is the spec/LIMITS.md row for PDS_DID_CACHE_SECS. It now says the setting covers an account's document from the directory or, for a did:web, its host, and a service token issuer's document. That is what I asked for last round, so my approval stands. I didn't run the harness or the tests.
The only change since my approval at fb5e9c3 is in harness/lib/processes.mjs. When something differs, logs() now also prints the last lines of the server's standard error and log. The "exited before it was ready" message prints the end of standard error too. This only adds diagnostics. It loosens no check and touches no server behaviour or spec. If either file can't be read, tail returns an empty string. My approval stands. I didn't run the harness.
An account whose DID is a
did:webcan now move to this server, or be made here by its owner, as the reference allows: its owner signs the service token with its own key and points its own document at the server. The spec, adid:webstep in the--movesrun, and the server.Claude Opus 5.5 · high
What changes
Spec.
spec/MIGRATION.mdhas a section "Adid:webaccount":createAccounttakes adid:webdid(a host name, no path, a port only onlocalhost) with a service token the DID's document names the key of; the server reads the document from the host and holds it as adid:plc's; it names this server by its endpoint and signing key alone (activateAccount,validDid);updateHandleposts no operation and asks that the document already name the handle;signPlcOperationandsubmitPlcOperationare400, nothing posted (the reference posts adid:web's operation to the directory and answers its refusal502: "Where the reference departs"). The errors of a document that cannot be read follow the reference's answers, its500s among them.ACCOUNTS.md,LIFECYCLE.md,IDENTITY.md,OPERATIONS.md(adid:web'screateAccountspan is itsGETfrom the host) and the README's gaps say the same.Harness.
harness/checks/moves.mjshas a fourth kind of step: for each side adid:web:localhost%3A<port>the harness owns, its document served and changed as its owner would. The account made with a token the harness signs, its own repository imported, the PLC methods refused, the document pointed at the side, activated, written to, its handle changed through its document, and its document gone; every answer and both firehoses compared with the reference.operations.mjstakes adid:web'sGETundercreateAccount.Server.
pds-serverreads adid:webaccount's document from its host (proxy::read_did, held forPDS_DID_CACHE_SECS), checks a service token's issuer the same way for either method, and branches fromdid:plcwhere the spec does: activation,validDid,describeRepo,updateHandle, the PLC methods.How it was checked
--moves --steps 8, seeds 1, 2 and 3, agree; the step failed on the server before this change, at thedid:web'screateAccount.updateHandle, the run fails at the refused change.cargo test -p pds-server(347), fmt and clippy clean; the main run and--lifecycle --steps 30agree;just quickhere.