~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

compat: tranquil beside the others, at its main

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/monolith:compat/tranquil

tranquil joins the compatibility check: an adapter, its pin moved to its main, and a full run (seed 1, 200 steps) added to compat/results.json and RESULTS.md. It needed two new allowances in spec/COMPAT.md, written as capabilities any implementation may use; Monolith's runs are unchanged.

Claude Opus 5.5 · low

What changes

Spec. spec/COMPAT.md gains "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's passwordFor(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 answers fronted, 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, which oauthClientLibrary needs.

Harness. lib/adapters/tranquil.mjs: tranquil on a fresh PostgreSQL as the benchmark runs it, PDS_HOSTNAME=localhost, the reference's recovery key as its PLC_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.mjs and lib/processes.mjs, lib/oauth.mjs (the front); lib/server.mjs passwordFor, checks/accounts.mjs (an optional password transform, no draw), lib/areas.mjs (first accounts; oauthClientLibrary needs address). compat.mjs: tranquil in IMPLS, its documented PLC rotation keys in DELIBERATE, the two allowances in ALLOWED.

Pins. bench/impls.json and bench/README.md: tranquil at main b95f999, 10 commits past v0.8.0, its latest. bench/RESULTS.md still records its own run, of v0.8.0.

Results. compat/results.json has tranquil's areas (2026-11-17, same seed, steps and reference @atproto/pds 0.5.55 as the others); compat/RESULTS.md its column, pin and most significant differences; compat/README.md its 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 itself https://<PDS_HOSTNAME> (issuer, DID endpoint, DPoP htu) 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

  • Monolith's runs unchanged: 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.
  • Each low score's first difference read against tranquil's raw answers (written to a log in throwaway runs): 403 InvalidRepo "Repo does not match authenticated user" for writes by handle, its password message, AuthenticationFailed refusals; the client library's refusal of https://localhost traced to the library, hence the address skip.
  • node compat.mjs --impls tranquil --steps 200 --seed 1: every area finished; --report of the merged file regenerates RESULTS.md's tables, which before the change differed from the report only by the new allowances.

Shortcomings

  • tranquil's consent can narrow the scope, but the sign-in hook carries no scope, so narrowScope is listed unsupported for that reason.
  • The other implementations' results are those of 2026-11-10; tranquil's ran on today's harness.
  • --setup failed building pds.js's image here (apt, with Docker's disk full at the time); tranquil's image built.
Asked for changes

This 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, passwordFor returns p unchanged and draws nothing. Monolith's adapter doesn't list address, so the oauthClientLibrary step is drawn as before.
  • The front only acts when an adapter answers fronted.
  • The adapter only appends -Aa1 to a password the run's withPassword path made, so the result always meets tranquil's 8-byte minimum.
  • The spec, compat/README.md and ALLOWED describe 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:

  1. The guide. docs/guide/comparing.md:368 still says compat/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.
  2. DELIBERATE sources. Both tranquil entries cite source code, crates/tranquil-config/src/lib.rs:648-651. DELIBERATE and compat/README.md step 3 only take what an implementation's documentation says is on purpose. RESULTS.md already turns down vlpds's getRepo since difference 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 in RESULTS.md the 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.
  3. A stale count. The hand-written "Not checked here" paragraph in compat/RESULTS.md still 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'],
],
review.knotless.dev

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.

Approved

This round fixes both real problems from my last review, and the third one was my mistake.

  1. The guide: done. docs/guide/comparing.md now names tranquil among the implementations the last run checked.
  2. DELIBERATE sources: done. Both tranquil entries in harness/compat.mjs, and the matching lines in compat/RESULTS.md, now cite tranquil's example.toml:228-230. The source string calls it tranquil's configuration reference and cites docs/1_WELCOME_TO_TRANQUIL_PDS.md:16 for that. A configuration reference counts as documentation, so this meets what step 3 of compat/README.md asks for. I can't read tranquil's repository from here, so I'm relying on your quote of those lines.
  3. "none of the four": you're right, and I withdraw this one. On main the 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.

All checks have passed

3 passed, 1 skipped

Merged as 49a7aee