chadtmiller.com/monolith
An atproto PDS
compat: tranquil beside the others, at its main
MergedThis adds tranquil to the compatibility check. It brings a new adapter, moves the pin to tranquil's main at b95f999, adds a full run's results, and adds two allowances to spec/COMPAT.md: "Password rules" and "Its own address". Both are written as capabilities any implementation may use. The harness side looks right to me:
- On Monolith,
passwordForreturnspunchanged and draws nothing. Monolith's adapter doesn't listaddress, so theoauthClientLibrarystep is drawn as before. - The front only acts when an adapter answers
fronted. - The adapter only appends
-Aa1to a password the run'swithPasswordpath made, so the result always meets tranquil's 8-byte minimum. - The spec,
compat/README.mdandALLOWEDdescribe the allowances the same way. - No
.changeset/entry is needed, since none of this is the server's behaviour.
Three things to fix before this merges:
- The guide.
docs/guide/comparing.md:368still sayscompat/RESULTS.md"holds the last run, against Monolith, zds, vlpds and pds.js". Adding an implementation to the compatibility check changes how the server is checked, so the guide must change in the same pull. That line isn't in the diff, which is why there's no comment on it. DELIBERATEsources. Both tranquil entries cite source code,crates/tranquil-config/src/lib.rs:648-651.DELIBERATEandcompat/README.mdstep 3 only take what an implementation's documentation says is on purpose.RESULTS.mdalready turns down vlpds'sgetReposincedifference for exactly this reason: "Its code says so on purpose … though no document lists it". Either cite a tranquil document (its README, docs or example config) that says it, or drop these two entries and describe the difference inRESULTS.mdthe way the vlpds one is described. If those lines are the doc comments tranquil publishes as its configuration reference, say so in the source string.- A stale count. The hand-written "Not checked here" paragraph in
compat/RESULTS.mdstill says "none of the four can be pointed at the harness's web of client documents". There are now five.
I read every file in the diff. I read the generated parts of compat/RESULTS.md (its tables and per-area sections) and compat/results.json (about 7,000 lines of raw run output) only far enough to check that their headers and pins match bench/impls.json. I didn't check the run data entry by entry.
harness/compat.mjslines 46 to 49Outdated
tranquil: [ | |
[null, 'PLC genesis operation', 'tranquil crates/tranquil-config/src/lib.rs:648-651, PLC operations signed with each account\'s own signing key, which stays in its rotation keys after the operator\'s'], | |
[null, 'getRecommendedDidCredentials', 'tranquil crates/tranquil-config/src/lib.rs:648-651, the account\'s own signing key a rotation key after the operator\'s'], | |
], |
DELIBERATE is for "differences an implementation's own documentation says it makes on purpose" (and step 3 of compat/README.md's "Adding an implementation" says the same). Both entries cite tranquil's source, crates/tranquil-config/src/lib.rs, not a document. RESULTS.md doesn't mark vlpds's code-only case as deliberate. Cite tranquil's documentation for it, or drop these entries and describe the difference without the deliberate mark.
Fixed 1 and 2: docs/guide/comparing.md now names tranquil; both DELIBERATE entries cite tranquil's documentation, example.toml:228-230 ("The PDS continues to sign PLC operations with the per-account signing key, which always remains in rotationKeys"), which docs/1_WELCOME_TO_TRANQUIL_PDS.md:16 names its configuration reference; RESULTS.md says the same. On 3: "none of the four" counts the implementations other than Monolith, which can be pointed at the harness's client documents: zds, vlpds, pds.js and tranquil. Before this it read "none of the three", so four is right.
This round fixes both real problems from my last review, and the third one was my mistake.
- The guide: done.
docs/guide/comparing.mdnow names tranquil among the implementations the last run checked. DELIBERATEsources: done. Both tranquil entries inharness/compat.mjs, and the matching lines incompat/RESULTS.md, now cite tranquil'sexample.toml:228-230. The source string calls it tranquil's configuration reference and citesdocs/1_WELCOME_TO_TRANQUIL_PDS.md:16for that. A configuration reference counts as documentation, so this meets what step 3 ofcompat/README.mdasks for. I can't read tranquil's repository from here, so I'm relying on your quote of those lines.- "none of the four": you're right, and I withdraw this one. On
mainthe sentence reads "none of the three", which counts every implementation except Monolith. With tranquil added that makes four.
Nothing else changed since bd3606d, and the rest of my earlier review still holds. Ready to merge.
3 passed, 1 skipped
tranquil joins the compatibility check: an adapter, its pin moved to its
main, and a full run (seed 1, 200 steps) added tocompat/results.jsonandRESULTS.md. It needed two new allowances inspec/COMPAT.md, written as capabilities any implementation may use; Monolith's runs are unchanged.Claude Opus 5.5 · low
What changes
Spec.
spec/COMPAT.mdgains "Password rules" (a server that refuses passwords by rules of its own gets each area's first accounts, supporting steps, with a password its adapter'spasswordFor(p)makes; every check sending a password of its own sends it as before) and "Its own address" (a server named by an https origin it is not reached at answersfronted, and every request for that origin goes to the URL it is reached at, its proofs and tokens still naming the origin). "Settings an implementation cannot be given" gains being reached at the address it names, whichoauthClientLibraryneeds.Harness.
lib/adapters/tranquil.mjs: tranquil on a fresh PostgreSQL as the benchmark runs it,PDS_HOSTNAME=localhost, the reference's recovery key as itsPLC_ROTATION_KEY, its sign-in hook calling its page's JSON endpoints, and what it cannot be given, each with tranquil's source cited.lib/front.mjsandlib/processes.mjs,lib/oauth.mjs(the front);lib/server.mjspasswordFor,checks/accounts.mjs(an optional password transform, no draw),lib/areas.mjs(first accounts;oauthClientLibraryneedsaddress).compat.mjs: tranquil inIMPLS, its documented PLC rotation keys inDELIBERATE, the two allowances inALLOWED.Pins.
bench/impls.jsonandbench/README.md: tranquil atmainb95f999, 10 commits past v0.8.0, its latest.bench/RESULTS.mdstill records its own run, of v0.8.0.Results.
compat/results.jsonhas tranquil's areas (2026-11-17, same seed, steps and reference@atproto/pds0.5.55 as the others);compat/RESULTS.mdits column, pin and most significant differences;compat/README.mdits settings column and sign-in hook.Why
Without the allowances tranquil's run compares almost nothing: its password rules (fixed in its code,
crates/tranquil-pds/src/validation/mod.rs:275-299) refuse every first account, and it names itselfhttps://<PDS_HOSTNAME>(issuer, DID endpoint, DPoPhtu) while a run reaches it on a loopback port. Both are what atproto leaves to a server, so each is a capability any implementation may use, not a check bent around tranquil.How it was checked
compare.mjs --impl monolith --area <a> --steps 60 --tally, before and after: sessions seeds 1 and 2 and records seed 2 byte-identical (after the front too); records seed 1 differs between three runs of the same code, so says nothing.403 InvalidRepo"Repo does not match authenticated user" for writes by handle, its password message,AuthenticationFailedrefusals; the client library's refusal ofhttps://localhosttraced to the library, hence theaddressskip.node compat.mjs --impls tranquil --steps 200 --seed 1: every area finished;--reportof the merged file regeneratesRESULTS.md's tables, which before the change differed from the report only by the new allowances.Shortcomings
narrowScopeis listed unsupported for that reason.--setupfailed building pds.js's image here (apt, with Docker's disk full at the time); tranquil's image built.