# Compatibility results A run of `harness/compat.mjs` (compat/README.md): seed 1, 200 steps per area, against Monolith, zds, vlpds, pds.js and tranquil, each beside the reference `@atproto/pds` 0.5.55 (through `@atproto/dev-env` 0.6.26). pds.js's areas ran on their own, later the same day, with the same seed and steps, once the harness ran a server that hosts one account (spec/COMPAT.md, "One account"), and were added to the others'. tranquil's ran on their own on 2026-11-17, with the same seed, steps and reference, once the harness took a server with password rules of its own and one named by an address it is not reached at (spec/COMPAT.md, "Password rules" and "Its own address"), and were added the same way. The raw results are in [`results.json`](results.json); the tables below are `node compat.mjs --report ../compat/results.json`. Machine: macOS 26.5.2, Apple M1 Pro, Docker Desktop 28.0.1. Pinned (bench/impls.json): | implementation | version | from | |---|---|---| | Monolith | this repository's commit (below) | `cargo build --release -p pds` | | zds | v0.7.8, commit `cef2c63` | built with its own Dockerfile by `node bench.mjs --setup`, image `monolith-bench-zds:cef2c63` | | vlpds | v1.3.0, commit `91fa452` | release image `ghcr.io/jazware/vlpds@sha256:e1aca79…`, on RustFS 1.0.4 | | pds.js | main at `54f4e3a` (35 commits past v2.5.2) | built with its own Dockerfile by `node bench.mjs --setup`, image `monolith-bench-pdsjs:54f4e3a` | | tranquil | main at `b95f999` (10 commits past v0.8.0) | built with its own Dockerfile by `node bench.mjs --setup`, image `monolith-bench-tranquil:b95f999`, on PostgreSQL 18.7 | Monolith agrees with the reference in every check of every area: the report mode itself finds nothing in the server the gates hold. ## How to read it A check is one step: it goes on past what differs, and counts as failed if anything in it did. One difference often brings others in the same step and in later ones (a write the server makes and the reference refuses leaves the repositories apart, so later reads, the MST root and the firehose differ too): the first difference of each area, and of each check, is where to start. An account only the reference makes (the server refusing it) is not kept, but the reference's firehose still has its events: that is why vlpds's firehose area first shows "the reference's firehose". Supporting steps (the first accounts, and the writes the repository, sync and firehose areas need) are not counted in their area. ## The most significant differences Each is the request and both answers as the run kept them (the full ones are in the area's section below). "Left open" marks a difference where spec/PDS.md or an area page says the reference's behaviour is one the specs leave open, and Monolith copies it; "deliberate" one the implementation's documentation says is on purpose. **zds** - OAuth, PAR: `expires_in` 600, where the reference answers 299 (and spec/OAUTH.md, 299 to 300); a PAR for `atproto blob:image/*` from a loopback client declaring it is refused (`400 invalid_request`) where the reference takes it (201). - OAuth: getSession with an OAuth session's access token answers other fields than the reference's (37 checks of `oauthLogin`); the protected-resource metadata lists `scopes_supported` where the reference's is empty. - Sessions: its `accessJwt` has `typ: JWT` and no `aud`, where the reference's has `typ: at+jwt` and `aud: did:web:localhost` (spec/SESSIONS.md). - Records: a token never given out is `401 InvalidToken` (reference: 400, which spec/PDS.md fixes); a record that does not exist is `404 RecordNotFound` (reference: 400); a create of a key that exists is made (200), where the reference answers 500 (left open, spec/REPO.md). The MST roots in the repository area then differ, as the records do. - Accounts: createAccount answers `email`, `emailConfirmed` and `active` too, and a `didDoc` that is not the PLC directory's document (Multikey form); `describeRepo`'s `didDoc` has no verification method. - Sync: getBlocks of an unknown repository is `404 RepoNotFound` (reference: 400). Firehose: a `#sync` event's blocks do not hold the commit they name as root. **vlpds** - OAuth: the authorization server metadata is answered without `access-control-allow-methods`, `-headers` and `-max-age`; getSession with an OAuth session's token answers the `didDoc` the reference leaves out (36 checks of `oauthLogin`). - Sessions: its `accessJwt` has a `jti` the reference's has not. - Accounts: a password of 256 UTF-16 units of `é` is refused (`400 InvalidRequest`); the reference takes it (spec/ACCOUNTS.md's limit is 256 units). - Validation: an `app.bsky.actor.link` record the reference refuses as invalid is written (`validationStatus: unknown`). - Repository: `getRepo` with `since` the latest rev answers 2 blocks, the reference none. Its code says so on purpose (src/xrpc/sync.rs, `get_repo`: "the whole current tree is included: a superset of the reference's block set"), though no document lists it. - Sync: a block the repository no longer holds is `400 BlockNotFound` (reference: `InvalidRequest`); `listRepos`' order differs, **deliberate** (DESIGN.md:5905, `(slot, DID)` order). - Blobs: `uploadBlob` keeps the whole `Content-Type` (`text/plain ;q=1`) as the blob's `mimeType`, where the reference keeps `text/plain `; getBlob serves an upload no record references, **deliberate** (DESIGN.md:5906-5907). **pds.js** pds.js hosts one account, made through its onboarding (the adapter's `claim`); the accounts area, and the checks that need a second account, are not run against it. - Records: a write naming the repository by its handle is refused (`403 Forbidden`, "Not authorized for this repository"): it takes only the account's DID, where the reference takes either. The harness names it by handle in most writes, so most of the records, validation and blobs areas' writes are refused, and what follows them differs. A read of a record by handle is `404 RepoNotFound` (reference: `400 RecordNotFound`). - Repository, sync and firehose: the account made by its onboarding has no commit: its firehose has `#identity` and `#account` and no `#commit` or `#sync`, and getRepo of its DID is `404 RepoNotFound` until a write lands. As the writes are refused (above), the repository, sync and firehose areas compare little else. - Sessions: its `accessJwt`'s `aud` is the account's DID, where the reference's is the server's `did:web:localhost` (spec/SESSIONS.md); getSession answers no `emailAuthFactor` or `active`; createSession by email is refused. - OAuth: PAR's `expires_in` is 600 (reference 299, spec/OAUTH.md 299 to 300); a PAR from the loopback client `http://localhost` with a redirect to `http://127.0.0.1:/` is refused (`400 invalid_request`); the redirect back to the client is a 302 (reference: 303), and a refusal puts `error`, `state` and `iss` in the query whatever the `response_mode`; the protected-resource metadata lists `scopes_supported` where the reference's is empty. - Identity: resolveHandle of a handle no account has is `400 InvalidRequest` (reference: `HandleNotFound`); updateHandle to a `.test` handle is refused, as it takes only a handle that already resolves to the account. **tranquil** Its accounts area keeps the harness's own passwords, which its password rules refuse; each area's first accounts are made with a password that fits them (spec/COMPAT.md, "Password rules"). It names itself `https://localhost`, reached on a loopback port (spec/COMPAT.md, "Its own address"). - Records: a write naming the repository by its handle is refused (`403 InvalidRepo`, "Repo does not match authenticated user"): it takes only the account's DID, where the reference takes either. The harness names it by handle in most writes, so most of the records, validation and blobs areas' writes are refused, and the repository, sync and firehose areas, whose MST roots and events follow from those writes, compare little else. - Accounts: a password without 8 characters, a lowercase and an uppercase letter and a digit is refused (`400 InvalidRequest`), as are the harness's (`pw-`): 81 createAccount checks, and every account race. An email whose domain is not ASCII is `400 InvalidEmail`. - Sessions: its `accessJwt` and `refreshJwt` have `jti` and `iss`, which the reference's have not (spec/SESSIONS.md); a wrong password is `401 AuthenticationFailed` (reference: `AuthenticationRequired`). An account's access token the reference still takes is refused in later calls (`401 AuthenticationFailed`: getSession, where the reference answers 200, and createAppPassword, where it answers `400 InvalidRequest` to a bad name); deleteSession with a refresh token is `401 AuthenticationRequired` (reference: 200). `describeServer`'s domains have no leading dot (`test`, where the reference's is `.test`). - OAuth: PAR's `expires_in` is 600 (reference 299, spec/OAUTH.md 299 to 300); the authorization server metadata has no `access-control-allow-*` headers past the origin; a DPoP proof with no `typ` at the token endpoint is `400 invalid_grant` (reference: `401 invalid_dpop_proof`); a refresh by another client is `invalid_request` (reference: `invalid_grant`); revoke with no token is 200 with no body (reference: `400 invalid_request`). - Identity: updateHandle with no token is `401 AuthenticationFailed` (reference: `400 InvalidToken`); resolveHandle of a handle no account has is `404 HandleNotFound` (reference: `400 InvalidRequest`); of two accounts changing to one handle at once, the one that loses is `500` (reference: `400 HandleNotAvailable`). Its genesis operations and getRecommendedDidCredentials list the account's own signing key as a rotation key, after the operator's (deliberate: its configuration reference, `example.toml:228-230`). - Sync and blobs: getBlocks is `400 InvalidRequest` and sync.getRecord `404 RecordNotFound` where the reference answers the blocks; a blob's `mimeType` keeps the parameters it was uploaded with (`text/plain ;q=1`), and `*/*` is `application/octet-stream`; getBlob of a blob it does not have is `404 BlobNotFound` (reference: `400 InvalidRequest`). Not checked here: OAuth client documents (none of the four can be pointed at the harness's web of client documents), requestCrawl (none can be given the hostname `localhost`), for vlpds and pds.js `describeServer` (one handle domain), for pds.js `recommendedCredentials` (no recovery key among its rotation keys), and for tranquil the oauth permission sets area (no lexicon authority) and `oauthClientLibrary` (the client library refuses its `https://localhost`). compat/README.md lists every setting each could not be given. ## What ran Compared with the reference, **@atproto/pds 0.5.55 (through @atproto/dev-env 0.6.26), Node v24.22.1**; seed 1, 200 steps per area, each area a run of its own on fresh servers (Monolith at commit `d6b2d7a`, 2026-11-10). | implementation | version | from | |---|---|---| | monolith | 0.0.0 (workspace) | this repository at d6b2d7a | | zds | v0.7.8 | https://tangled.org/zat.dev/zds at cef2c63d7d6d7dd87b90100566307e9aa8a4d170, image monolith-bench-zds:cef2c63 (sha256:124944cbbdf8e0b5877885ec14dfe421ec8b42f7508761a6281e090b882dcd31) built with its own Dockerfile | | vlpds | v1.3.0 | release image ghcr.io/jazware/vlpds@sha256:e1aca7934017bb757ef3717bbd964ae758cf704dc623703262c512fd462c0477 (commit 91fa452993865b2f91ff5ed5b87fc28356796d0c); S3 store rustfs/rustfs@sha256:ed9210d6411d77ffceb70d94b964a3cb7d225983368bc25bebe01e995293dcc2 (rustfs/rustfs:1.0.4) | | pds.js | main, 35 commits past v2.5.2 | knotless://chadtmiller.com/pds.js at 54f4e3a70b9d97aece3b3c9a67e65d51591415ea, image monolith-bench-pdsjs:54f4e3a (sha256:1edd27982d754202470c989f7eaedfacf2e1e904f20ec022c5bb9cacb767fb65) built with its own Dockerfile | | tranquil | main, 10 commits past v0.8.0 | https://tangled.org/tranquil.farm/tranquil-pds at b95f999e639fbf392ffe9c21a84a38b21704536c, image monolith-bench-tranquil:b95f999 (sha256:a175c9aa23a1d6f59c7eeeda7668eb6548e9f00aaec4e44d0c77ec6a9848ebcb) built with its own Dockerfile; PostgreSQL postgres@sha256:1018733457011bf88d81db98cf43aac6d5150afc18787dbe204771fedf80ff95 (postgres:18.7-alpine) | ## Summary Each cell is the area's checks that agree with the reference, of those run. A check is one step of the area, drawn at random as compare.mjs draws them; it goes on past what differs, and counts as failed if anything did. "skipped" is an area whose every check depends on a setting the server cannot be given (below). | area | monolith | zds | vlpds | pds.js | tranquil | |---|---:|---:|---:|---:|---:| | oauth | 201/201 | **2/201** | **88/201** | **0/201** | **29/201** | | oauth scopes | 200/200 | **0/200** | **28/200** | **7/200** | **7/200** | | oauth clients | 200/200 | skipped | skipped | skipped | skipped | | sessions | 200/200 | **47/200** | **55/200** | **36/200** | **0/200** | | accounts | 200/200 | **44/200** | **90/200** | skipped | **49/200** | | records | 200/200 | **129/200** | **160/200** | **2/200** | **13/200** | | validation | 200/200 | **62/200** | **122/200** | **8/200** | **9/200** | | repository | 22/22 | **1/22** | **8/22** | **0/22** | **0/22** | | sync | 67/67 | **14/44** | **21/37** | **0/45** | **16/43** | | firehose | 22/22 | **2/22** | **1/22** | **1/22** | **2/22** | | identity | 200/200 | **34/200** | **97/200** | **35/200** | **43/200** | | blobs | 200/200 | **80/200** | **134/200** | **66/200** | **55/200** | Supporting steps (the first accounts, and the writes the repository, sync and firehose areas need) are not counted in their area; where they differ, the area's section says so. ## What each implementation could not be given **zds** - `clientFetch`: zds fetches a client document from the client_id's own https URL (src/internal/outbound.zig); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is - `hostname`: zds takes its hostname from ZDS_PUBLIC_URL, which must be the URL the harness calls (DPoP's htu, src/internal/dpop.zig:208-222), and sends requestCrawl the host without its port (src/atproto/sync.zig:676-688): it cannot be localhost, as the reference's is - `narrowScope`: zds's authorization page has no consent step (src/atproto/oauth.zig:438-489): a sign-in grants the scope asked, so a narrower one cannot be chosen - `limits`: zds has no general rate limits to turn on (only updateHandle, full getRepo exports and subscribeRepos) - `restart`: a container keeps the environment it was made with: no restart with another **vlpds** - `clientFetch`: vlpds fetches a client document from the client_id's own URL, https unless --dev-mode (src/oauth/client.rs:423-426); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is - `hostname`: vlpds takes its hostname from VLPDS_PUBLIC_URL, which must be the URL the harness calls (DPoP's htu and the issuer), and asks no relay on another host to crawl when its own is local (src/crawlers.rs:366-369): it cannot be localhost, telling the harness's crawlers - `handleDomains`: vlpds serves one handle domain (VLPDS_HANDLE_DOMAIN, here `test`); more are added only by its admin API, each of two labels or more, so `.example` cannot be one: describeServer's availableUserDomains is [".test"] - `adminPassword`: vlpds's admin token must be 32 bytes or more outside --dev-mode (src/server.rs:208-237): a fresh one, not the reference's `admin-pass` - `mail`: vlpds keeps the mail it sends readable (vlpds.admin.getDevMail) only with --dev-mode, which also changes how it fetches clients and resolves handles; it runs without it, as the benchmark runs it - `narrowScope`: vlpds's consent form only takes scopes away from the request (src/xrpc/oauth.rs:1915-1943), where the reference's page API takes any scope - `restart`: a container keeps the environment it was made with: no restart with another **pds.js** - `accounts`: pds.js hosts one account (README.md, "one server, one identity"): createAccount only adopts a DID made elsewhere, for a migration (packages/core/src/handlers/xrpc-server.js:222-340), and a new one is made once, by POST /account/onboarding/create on an empty server (xrpc-server.js:453-615), which the adapter's claim calls - `rotationKey`: pds.js lists the account's signing key alone as its rotation key, held by the server (xrpc-server.js:540-551): the harness has no key to sign an operation of its own with - `recoveryKey`: the genesis operation's rotation keys are the account's signing key alone (xrpc-server.js:547): the reference's recovery key cannot be one - `hostname`: pds.js tells one relay of itself (RELAY_URL), at most every 20 minutes (packages/core/src/pds.js:149, 1934-1950), not each crawler it is given; and it names its endpoint https:// (xrpc-server.js:546), so the hostname cannot be the URL the harness calls - `handleDomains`: pds.js's one handle domain is its hostname (xrpc-server.js:127): describeServer's availableUserDomains is [".localhost"], and `.test` and `.example` cannot be given - `clientFetch`: pds.js fetches a client document from the client_id's own URL (packages/core/src/oauth.js:635-646); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is - `narrowScope`: pds.js's consent form approves or denies the scope asked (packages/core/src/handlers/oauth.js:884-956): a narrower one cannot be chosen - `adminPassword`: pds.js has no com.atproto.admin.* methods (docs/endpoint-comparison.md) - `mail`: its container has no mail transport (docker/server.js), so it sends none - `limits`: pds.js has no rate limits to turn on - `restart`: a container keeps the environment it was made with: no restart with another **tranquil** - `rotationKey`: tranquil signs each account's PLC operations with that account's own signing key, which it holds and which is always one of its rotation keys; its one operator key, PLC_ROTATION_KEY, is a public did:key it cannot sign with (crates/tranquil-config/src/lib.rs:648-653, crates/tranquil-pds/src/plc/mod.rs:368-377): the harness has no key to sign an operation of its own with - `hostname`: tranquil names itself https://, which must be localhost for the reference's server DID, and with that hostname it asks no crawler to crawl (crates/tranquil-pds/src/crawlers.rs:45-48) - `clientFetch`: tranquil fetches a client document from the client_id's own URL (crates/tranquil-oauth/src/client.rs:251); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is - `narrowScope`: tranquil's consent takes the scopes approved (crates/tranquil-oauth-server/src/endpoints/authorize/consent.rs:87), but the sign-in hook (compat/README.md, "The OAuth sign-in hook") carries no scope to approve: the scope asked is approved - `adminPassword`: tranquil has no admin password: an admin is an account marked so in its database, calling with its own access token (crates/tranquil-pds/src/auth/extractor.rs:170, 214) - `mail`: tranquil sends mail only to an SMTP relay (MAIL_SMARTHOST_HOST, crates/tranquil-config/src/lib.rs:1152) and keeps none to read back; with no sender address its email is off - `restart`: a container keeps the environment it was made with: no restart with another - `address`: tranquil names itself https://localhost, reached in the run on a loopback port (spec/COMPAT.md, "Its own address"); the atproto OAuth client library refuses an https resource on a loopback host, so it cannot sign in to it here - `lexiconAuthority`: tranquil looks a permission set's lexicon up in DNS, as `_lexicon.` (crates/tranquil-scopes/src/permission_set.rs:297), with no setting naming one DID for every NSID, as PDS_LEXICON_AUTHORITY_DID does; the harness serves no DNS ## What spec/COMPAT.md lets an implementation other than Monolith have Monolith is held to all of spec/PDS.md and the pages it links; these are let every other implementation alike, and nothing else is. - **Taken out of every answer (spec/COMPAT.md, "Taken out of every answer")**: as for Monolith: each account's DID, its signing key, the server's URL, each commit's `cid` and `rev`, tokens, cursors and error messages; the `error` name and the HTTP status must match, and a `didDoc` must be the PLC directory's. - **The KEM key (spec/COMPAT.md, "The KEM key")**: an `atproto_kem` key may be published or not; one published must be a P-256 did:key other than the signing key, the same in getRecommendedDidCredentials. `spacesAlpha` is not checked. - **OAuth access tokens' life (spec/COMPAT.md, "OAuth access tokens' life")**: `expires_in` of 15 minutes or of 60. - **`describeServer` (spec/COMPAT.md, "describeServer")**: only `did`, `availableUserDomains` and `inviteCodeRequired` are compared, as for Monolith. - **Exact numbers of limits (spec/COMPAT.md, "Exact numbers of limits")**: no blob at the upload limit or one byte past it, and no PAR body of 100 KiB or one byte past it, is sent. - **Signing in (spec/COMPAT.md, "Signing in")**: on the server's own page, through its adapter's hook; compared from the redirect to the client on. Where its page cannot narrow the scope, the scope asked is approved. The reference's page API checks are not run. - **Monolith's own departures (spec/COMPAT.md, "Monolith's own departures")**: not held: OAuth's and OAuth clients' departures, and `request_parameter_supported: false`. - **One account (spec/COMPAT.md, "One account")**: a server that hosts one account makes it through its adapter, not createAccount, and each area has that one; the checks that make an account or need a second are not run, and its rotation key is read from the account's genesis operation. - **Password rules (spec/COMPAT.md, "Password rules")**: where a server refuses passwords by a rule of its own, each area's first accounts are made, on both sides, with a password its adapter makes from the one drawn; every check sending a password of its own sends it as before. - **Its own address (spec/COMPAT.md, "Its own address")**: a server that names itself by an https origin it is not reached at in the run has every request for that origin sent to the URL it is reached at, otherwise as before; its proofs and tokens still name the origin. - **Settings an implementation cannot be given (spec/COMPAT.md, the section of that name)**: the checks needing one are not run, and each is named below with why. zds made use of: a KEM key (atproto_kem) in the genesis operation, as Monolith's (spec/SPACES.md) (131 times). pds.js made use of: OAuth access tokens of the reference's 60 minutes, not spec/OAUTH.md's 15 (96 times). ## By area ### oauth OAuth, the protocol: the server's metadata, PAR, the code exchange with PKCE, DPoP and its nonces, refresh and its rotation, revocation, DPoP-bound calls to XRPC, and a client app's own library. **monolith**: 201 of 201 checks agree. **zds**: 2 of 201 checks agree, 199 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkOAuthMetadata | 1 | 1 | OAuth: protected resource metadata; OAuth: authorization server metadata; OAuth: JWKS; OAuth: OPTIONS /.well-known/oauth-authorization-server; OAuth: OPTIONS /oauth/jwks; and 6 more | | oauthGetSession | 16 | 16 | OAuth: getSession (13); OAuth: password session's refresh token with DPoP (2); OAuth: getSession with a replaced access token | | oauthParRefused | 24 | 24 | OAuth: PAR refused: include: (3); OAuth: PAR refused: scope malformed (2); OAuth: PAR refused: code_challenge_method (2); OAuth: PAR refused: no client_id (2); OAuth: PAR refused: redirect_uri left out, two registered (2); and 11 more | | oauthLogin | 44 | 44 | OAuth: getSession after sign-in (37); the server's PAR expires_in (spec/OAUTH.md) (23); OAuth: PAR (21); OAuth: token: code (20); OAuth: redirect (19) | | oauthRefresh | 30 | 32 | OAuth: getSession after a refresh (current) (16); OAuth: getSession with the replaced access token (12); OAuth: token: refresh (current) (11); OAuth: token: refresh (other key) (8); OAuth: getSession after a refresh (other key) (8); and 4 more | | oauthDpopRefused | 27 | 27 | OAuth: DPoP refused at getSession: two headers (3); OAuth: DPoP refused at par: htm another method; OAuth: DPoP refused at par: two headers; OAuth: DPoP refused at par: typ jwt; OAuth: DPoP refused at revoke: nonce a number; and 20 more | | oauthTokenRefused | 16 | 16 | the server's PAR expires_in (spec/OAUTH.md) (10); OAuth: token refused: no code_verifier (4); OAuth: token: code after a refusal (no code_verifier) (4); OAuth: token refused: another redirect_uri (4); OAuth: token: code after a refusal (another redirect_uri) (4); and 15 more | | oauthRevoke | 21 | 21 | OAuth: revoke (access token, own key) (6); OAuth: getSession after a revocation (access token, own key) (6); OAuth: revoke (refresh token, own key) (5); OAuth: getSession after a revocation (refresh token, own key) (5); OAuth: token: refresh (other key) (4); and 16 more | | oauthClientLibrary | 10 | 10 | OAuth: the client library (atproto) (4); OAuth: the client library (atproto transition:email) (3); OAuth: the client library (atproto transition:generic) (3) | | oauthRevokeRefused | 10 | 10 | OAuth: revoke refused: JSON (3); OAuth: revoke refused: no token (2); OAuth: revoke refused: no client_id (2); OAuth: revoke refused: text/plain; OAuth: revoke refused: bogus token_type_hint; and 1 more | First difference, at step 0 (checkOAuthMetadata): OAuth: protected resource metadata. ``` request: { "get": "/.well-known/oauth-protected-resource" } reference: { "status": 200, "type": "application/json", "cors": "*", "body": { "resource": "", "authorization_servers": [ "" ], "scopes_supported": [], "bearer_methods_supported": [ "header" ], "resource_documentation": "https://atproto.com" } } zds: { "status": 200, "type": "application/json", "cors": "*", "body": { "resource": "", "authorization_servers": [ "" ], "scopes_supported": [ "atproto", "transition:generic", "transition:email", "transition:chat.bsky" ], "bearer_methods_supported": [ "header" ], "resource_documentation": "https://atproto.com" } } ``` Supporting steps: 6 of 6 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: 88 of 201 checks agree, 113 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkOAuthMetadata | 1 | 1 | OAuth: authorization server metadata; OAuth: JWKS; OAuth: OPTIONS /.well-known/oauth-authorization-server; OAuth: OPTIONS /oauth/jwks; OAuth: OPTIONS /oauth/par; and 8 more | | oauthDpopRefused | 20 | 31 | OAuth: DPoP refused at par: htm lower case (2); OAuth: DPoP refused at par: replayed (2); OAuth: DPoP refused at token: no typ; OAuth: DPoP refused at par: not a JWT; OAuth: DPoP refused at token: not a JWT; and 13 more | | oauthRevoke | 4 | 17 | OAuth: token: refresh (other key) (2); OAuth: getSession after a refresh (other key) (2); OAuth: getSession after a revocation (garbage, other key); OAuth: getSession after a revocation (access token, other key) | | oauthParRefused | 6 | 28 | OAuth: PAR refused: no client_id (2); OAuth: PAR refused: ui_locales; OAuth: PAR refused: empty client_id; OAuth: PAR refused: port not the registered one (text/plain); OAuth: PAR refused: scope malformed | | oauthTokenRefused | 12 | 18 | OAuth: token: code after a refusal (another redirect_uri) (2); OAuth: token: code after a refusal (no code_verifier) (2); OAuth: token: code after a refusal (another client) (2); OAuth: token refused: no client_id; OAuth: token refused: another DPoP key; and 5 more | | oauthClientLibrary | 9 | 9 | OAuth: the client library (atproto transition:email) (4); OAuth: the client library (atproto) (4); OAuth: the client library (atproto transition:generic) | | oauthLogin | 36 | 43 | OAuth: getSession after sign-in (36) | | oauthGetSession | 12 | 23 | OAuth: getSession (11); OAuth: OAuth access token as deleteSession | | oauthRefresh | 11 | 19 | OAuth: token: refresh (other key) (5); OAuth: getSession after a refresh (other key) (5); OAuth: getSession after a refresh (current) (4); OAuth: token: refresh (current); OAuth: token: refresh (no proof); and 1 more | | oauthRevokeRefused | 2 | 12 | OAuth: revoke refused: text/plain (2) | First difference, at step 0 (checkOAuthMetadata): OAuth: authorization server metadata. ``` request: { "get": "/.well-known/oauth-authorization-server" } reference: { "status": 200, "type": "application/json", "cors": { "access-control-allow-origin": "*", "access-control-allow-methods": "*", "access-control-allow-headers": "Content-Type,DPoP", "access-control-max-age": "86400" }, "body": { "issuer": "", "request_uri_parameter_supported": true, "require_request_uri_registration": true, "scopes_supported": [ "atproto", "transition:email", "transition:generic", "transition:chat.bsky" ], "subject_types_supported": [ "public" ], "response_types_supported": [ "code" ], "response_modes_supported": [ "query", "fragment", "form_post" ], "grant_types_supported": [ "authorization_code", "refresh_token" ], "code_challenge_methods_supported": [ "S256" ], "ui_locales_supported": [ "en-US" ], "display_values_supported": [ "page", "popup", "touch" ], "authorization_response_iss_parameter_supported": true, "jwks_uri": "/oauth/jwks", "authorization_endpoint": "/oauth/authorize", "token_endpoint": "/oauth/token", "token_endpoint_auth_methods_supported": [ "none", "private_key_jwt" ], "revocation_endpoint": "/oauth/revoke", "pushed_authorization_request_endpoint": "/oauth/par", "require_pushed_authorization_requests": true, "protected_resources": [ "" ], "client_id_metadata_document_supported": true, "prompt_values_supported": [ "none", "login", "consent", "select_account", "create" ] } } vlpds: { "status": 200, "type": "application/json", "cors": { "access-control-allow-origin": "*", "access-control-allow-methods": null, "access-control-allow-headers": null, "access-control-max-age": null }, "body": { "authorization_endpoint": "/oauth/authorize", "authorization_response_iss_parameter_supported": true, "client_id_metadata_document_supported": true, "code_challenge_methods_supported": [ "S256" ], "display_values_supported": [ "page", "popup", "touch" ], "grant_types_supported": [ "authorization_code", "refresh_token" ], "issuer": "", "jwks_uri": "/oauth/jwks", "prompt_values_supported": [ "none", "login", "consent", "select_account", "create" ], "protected_resources": [ "" ], "pushed_authorization_request_endpoint": "/oauth/par", "request_uri_parameter_supported": true, "require_pushed_authorization_requests": true, "require_request_uri_registration": true, "response_modes_supported": [ "query", "fragment", "form_post" ], "response_types_supported": [ "code" ], "revocation_endpoint": "/oauth/revoke", "scopes_supported": [ "atproto", "transition:email", "transition:generic", "transition:chat.bsky" ], "subject_types_supported": [ "public" ], "token_endpoint": "/oauth/token", "token_endpoint_auth_methods_supported": [ "none", "private_key_jwt" ], "ui_locales_supported": [ "en-US" ] } } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: 0 of 201 checks agree, 201 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkOAuthMetadata | 1 | 1 | OAuth: protected resource metadata; OAuth: authorization server metadata; OAuth: JWKS; OAuth: OPTIONS /.well-known/oauth-authorization-server; OAuth: OPTIONS /oauth/jwks; and 9 more | | oauthRevokeRefused | 6 | 6 | OAuth: revoke refused: no client_id (2); OAuth: revoke refused: empty token; OAuth: revoke refused: no nonce; OAuth: revoke refused: text/plain; OAuth: revoke refused: bogus token_type_hint | | oauthClientLibrary | 15 | 15 | OAuth: the client library (atproto transition:generic) (6); OAuth: the client library (atproto transition:email) (5); OAuth: the client library (atproto) (4) | | oauthLogin | 45 | 45 | OAuth: redirect (45); OAuth: getSession after sign-in (39); the server's PAR expires_in (spec/OAUTH.md) (34); OAuth: token: code (21); OAuth: PAR (11) | | oauthRefresh | 26 | 26 | OAuth: getSession after a refresh (current) (13); OAuth: token: refresh (current) (11); OAuth: getSession with the replaced access token (9); OAuth: token: refresh (other key) (8); OAuth: getSession after a refresh (other key) (8); and 6 more | | oauthParRefused | 31 | 31 | OAuth: PAR refused: port not the registered one (5); OAuth: PAR refused: include: (3); OAuth: PAR refused: response_type (3); OAuth: PAR refused: code_challenge_method (2); OAuth: PAR refused: redirect URI with a user (2); and 14 more | | oauthRevoke | 15 | 15 | OAuth: revoke (refresh token, own key) (4); OAuth: getSession after a revocation (refresh token, own key) (4); OAuth: revoke (garbage, own key) (3); OAuth: getSession after a revocation (garbage, own key) (3); OAuth: getSession with the replaced access token (3); and 15 more | | oauthDpopRefused | 29 | 29 | OAuth: DPoP refused at getSession: no htu (2); OAuth: DPoP refused at getSession: two headers (2); OAuth: DPoP refused at par: replayed (2); OAuth: DPoP refused at par: jti a number; OAuth: DPoP refused at par: two headers; and 21 more | | oauthTokenRefused | 17 | 17 | OAuth: redirect (for another check) (12); the server's PAR expires_in (spec/OAUTH.md) (10); OAuth: token refused: another redirect_uri (3); OAuth: token: code after a refusal (another redirect_uri) (3); OAuth: token: the same code again (3); and 15 more | | oauthGetSession | 16 | 16 | OAuth: getSession (13); OAuth: getSession with a replaced access token (2); OAuth: OAuth access token as deleteSession | First difference, at step 0 (checkOAuthMetadata): OAuth: protected resource metadata. ``` request: { "get": "/.well-known/oauth-protected-resource" } reference: { "status": 200, "type": "application/json", "cors": "*", "body": { "resource": "", "authorization_servers": [ "" ], "scopes_supported": [], "bearer_methods_supported": [ "header" ], "resource_documentation": "https://atproto.com" } } pds.js: { "status": 200, "type": "application/json", "cors": "*", "body": { "resource": "", "authorization_servers": [ "" ], "bearer_methods_supported": [ "header" ], "scopes_supported": [ "atproto", "transition:generic", "transition:email" ] } } ``` Supporting steps: 2 of 2 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: 29 of 201 checks agree, 172 differ. Skipped: `oauthClientLibrary` (address: tranquil names itself https://localhost, reached in the run on a loopback port (spec/COMPAT.md, "Its own address"); the atproto OAuth client library refuses an https resource on a loopback host, so it cannot sign in to it here). | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkOAuthMetadata | 1 | 1 | OAuth: authorization server metadata; OAuth: JWKS; OAuth: OPTIONS /.well-known/oauth-authorization-server; OAuth: OPTIONS /oauth/jwks; OAuth: OPTIONS /oauth/par; and 8 more | | oauthDpopRefused | 27 | 34 | OAuth: DPoP refused at getSession: two headers (2); OAuth: DPoP refused at par: iat a string (2); OAuth: DPoP refused at token: replayed (2); OAuth: DPoP refused at revoke: iat 300 s ahead (2); OAuth: DPoP refused at token: no typ; and 18 more | | oauthRevoke | 19 | 20 | OAuth: revoke (garbage, own key) (6); OAuth: getSession after a revocation (garbage, own key) (6); OAuth: getSession after a refresh (current) (5); OAuth: revoke (refresh token, other key) (3); OAuth: getSession after a revocation (refresh token, other key) (3); and 20 more | | oauthParRefused | 19 | 35 | OAuth: PAR refused: code_challenge_method left out (2); OAuth: PAR refused: scope malformed (2); OAuth: PAR refused: scope not declared (json) (2); OAuth: PAR refused: port not the registered one (json); OAuth: PAR refused: empty client_id; and 11 more | | oauthTokenRefused | 15 | 20 | the server's PAR expires_in (spec/OAUTH.md) (10); the server's a token answer (spec/OAUTH.md) (3); OAuth: token refused: another DPoP key (2); OAuth: token refused: text/plain (2); OAuth: token refused: no code_verifier (2); and 8 more | | oauthGetSession | 15 | 15 | OAuth: getSession (12); OAuth: password session's access token with DPoP (3) | | oauthLogin | 35 | 35 | the server's PAR expires_in (spec/OAUTH.md) (29); OAuth: getSession after sign-in (28); the server's a token answer (spec/OAUTH.md) (24); OAuth: redirect (15); OAuth: token: code (8); and 1 more | | oauthRefresh | 26 | 26 | OAuth: getSession after a refresh (current) (17); the server's a token answer (spec/OAUTH.md) (13); OAuth: getSession with the replaced access token (10); OAuth: getSession after a refresh (other key) (8); OAuth: token: refresh (current) (7); and 2 more | | oauthRevokeRefused | 15 | 15 | OAuth: revoke refused: no nonce (4); OAuth: revoke refused: JSON (3); OAuth: revoke refused: text/plain (2); OAuth: revoke refused: bogus token_type_hint (2); OAuth: revoke refused: no token (2); and 2 more | First difference, at step 0 (checkOAuthMetadata): OAuth: authorization server metadata. ``` request: { "get": "/.well-known/oauth-authorization-server" } reference: { "status": 200, "type": "application/json", "cors": { "access-control-allow-origin": "*", "access-control-allow-methods": "*", "access-control-allow-headers": "Content-Type,DPoP", "access-control-max-age": "86400" }, "body": { "issuer": "", "request_uri_parameter_supported": true, "require_request_uri_registration": true, "scopes_supported": [ "atproto", "transition:email", "transition:generic", "transition:chat.bsky" ], "subject_types_supported": [ "public" ], "response_types_supported": [ "code" ], "response_modes_supported": [ "query", "fragment", "form_post" ], "grant_types_supported": [ "authorization_code", "refresh_token" ], "code_challenge_methods_supported": [ "S256" ], "ui_locales_supported": [ "en-US" ], "display_values_supported": [ "page", "popup", "touch" ], "authorization_response_iss_parameter_supported": true, "jwks_uri": "/oauth/jwks", "authorization_endpoint": "/oauth/authorize", "token_endpoint": "/oauth/token", "token_endpoint_auth_methods_supported": [ "none", "private_key_jwt" ], "revocation_endpoint": "/oauth/revoke", "pushed_authorization_request_endpoint": "/oauth/par", "require_pushed_authorization_requests": true, "protected_resources": [ "" ], "client_id_metadata_document_supported": true, "prompt_values_supported": [ "none", "login", "consent", "select_account", "create" ] } } tranquil: { "status": 200, "type": "application/json", "cors": { "access-control-allow-origin": "*", "access-control-allow-methods": null, "access-control-allow-headers": null, "access-control-max-age": null }, "body": { "issuer": "", "authorization_endpoint": "/oauth/authorize", "token_endpoint": "/oauth/token", "jwks_uri": "/oauth/jwks", "scopes_supported": [ "atproto", "transition:generic", "transition:chat.bsky", "transition:email" ], "response_types_supported": [ "code" ], "response_modes_supported": [ "query", "fragment" ], "grant_types_supported": [ "authorization_code", "refresh_token" ], "token_endpoint_auth_methods_supported": [ "none", "private_key_jwt" ], "code_challenge_methods_supported": [ "S256" ], "pushed_authorization_request_endpoint": "/oauth/par", "require_pushed_authorization_requests": true, "require_request_uri_registration": true, "authorization_response_iss_parameter_supported": true, "revocation_endpoint": "/oauth/revoke", "introspection_endpoint": "/oauth/introspect", "client_id_metadata_document_supported": true, "prompt_values_supported": [ "none", "login", "consent", "select_account", "create" ] } } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. ### oauth scopes OAuth scopes, enforced on every method: calls with an OAuth session's token, and with one thing wrong in its proof, token or scheme. **monolith**: 200 of 200 checks agree. **zds**: 0 of 200 checks agree, 200 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | oauthScopedEdges | 6 | 6 | OAuth: PAR (4); OAuth: scopes: uploadBlob ("image/png\t; q=1"), with blob:image/* (4); OAuth: scopes: uploadBlob ("image/p\tng"), with blob:image/* (4); OAuth: scopes: uploadBlob ("im\tage/png"), with blob:image/* (4); OAuth: scopes: uploadBlob ("TEXT/PLAÉN"), with blob:image/* (4); and 14 more | | oauthScopedRefused | 62 | 62 | OAuth: getSession after sign-in (24); the server's PAR expires_in (spec/OAUTH.md) (16); OAuth: redirect (12); OAuth: token: code (11); OAuth: PAR (9); and 54 more | | oauthScopedCall | 132 | 132 | OAuth: getSession after sign-in (43); OAuth: token: code (24); OAuth: PAR (23); the server's PAR expires_in (spec/OAUTH.md) (22); OAuth: redirect (22); and 43 more | First difference, at step 1 (oauthScopedEdges): OAuth: PAR. ``` request: { "par": { "client_id": "http://localhost?scope=atproto+blob%3Aimage%2F*&redirect_uri=http%3A%2F%2F127.0.0.1%2Fcallback", "response_type": "code", "redirect_uri": "http://127.0.0.1/callback", "scope": "atproto blob:image/*", "state": "66qV4eEbZcczS7zL", "code_challenge": "I-dMy91_R8Oz55h2bssm9xfS_fipqZ_R8ET5wtXeav4", "code_challenge_method": "S256", "response_mode": "form_post" }, "json": false, "dpop_jkt": false } reference: { "status": 201, "body": { "request_uri": "", "expires_in": "" }, "nonce": true } zds: { "status": 400, "error": "invalid_request", "nonce": false } ``` Supporting steps: 6 of 6 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: 28 of 200 checks agree, 172 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | oauthScopedCall | 126 | 126 | OAuth: getSession after sign-in (41); OAuth: scopes: updateHandle (a handle that does not parse) (10); OAuth: scopes: putRecord (10); OAuth: scopes: applyWrites (9); OAuth: scopes: deleteRecord (6); and 41 more | | oauthScopedRefused | 33 | 61 | OAuth: getSession after sign-in (16); OAuth: scopes: com.atproto.server.getSession: the wrong HTTP method (2); OAuth: scopes: com.atproto.server.listAppPasswords: the Bearer scheme (2); OAuth: scopes: com.atproto.sync.getLatestCommit (a proof, for a replay); OAuth: scopes: com.atproto.server.getSession: proof iat 60 s ahead; and 15 more | | oauthScopedEdges | 13 | 13 | OAuth: scopes: uploadBlob ("image/png\t; q=1"), with blob:image/* (13); OAuth: scopes: uploadBlob ("image/p\tng"), with blob:image/* (13); OAuth: scopes: uploadBlob ("im\tage/png"), with blob:image/* (13); OAuth: scopes: uploadBlob ("TEXT/PLAÉN"), with blob:image/* (13); OAuth: scopes: uploadBlob ("TEXT/PLAÃN"), with blob:image/* (13); and 10 more | First difference, at step 1 (oauthScopedCall): OAuth: getSession after sign-in. ``` request: { "getSession": "getSession after sign-in" } reference: { "status": 200, "body": { "did": "", "handle": "m-o2x.test", "active": true }, "nonce": true } vlpds: { "status": 200, "body": { "active": true, "did": "", "didDoc": { "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/multikey/v1", "https://w3id.org/security/suites/secp256k1-2019/v1" ], "alsoKnownAs": [ "at://m-o2x.test" ], "id": "", "service": [ { "id": "#atproto_pds", "serviceEndpoint": "", "type": "AtprotoPersonalDataServer" } ], "verificationMethod": [ { "controller": "", "id": "#atproto", "publicKeyMultibase": "zQ3shWMKLgSezwfpYKSBMfgC5N2rV2MwKntwENGsUvtJ4ivrb", "type": "Multikey" } ] }, "handle": "m-o2x.test" }, "nonce": true } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: 7 of 200 checks agree, 193 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | oauthScopedCall | 134 | 134 | OAuth: redirect (40); OAuth: getSession after sign-in (38); the server's PAR expires_in (spec/OAUTH.md) (30); OAuth: token: code (15); OAuth: scopes: createRecord (11); and 42 more | | oauthScopedRefused | 51 | 58 | OAuth: redirect (20); OAuth: getSession after sign-in (20); the server's PAR expires_in (spec/OAUTH.md) (18); OAuth: scopes: com.atproto.sync.getLatestCommit: no DPoP header (4); OAuth: token: code (4); and 39 more | | oauthScopedEdges | 8 | 8 | OAuth: scopes: uploadBlob ("image/png\t; q=1"), with blob:image/* (8); OAuth: scopes: uploadBlob ("image/p\tng"), with blob:image/* (8); OAuth: scopes: uploadBlob ("im\tage/png"), with blob:image/* (8); OAuth: scopes: uploadBlob ("TEXT/PLAÉN"), with blob:image/* (8); OAuth: scopes: uploadBlob ("TEXT/PLAÃN"), with blob:image/* (8); and 12 more | First difference, at step 1 (oauthScopedCall): the server's PAR expires_in (spec/OAUTH.md). ``` request: { "par": { "client_id": "http://localhost?scope=atproto+repo%3Fcollection%3Dcom.example.todo%26collection%3Dcom.example.test.item%26action%3Dcreate+repo%3A*%3Faction%3Ddelete+blob%3A*%2F*+account%3Aemail%3Faction%3Dmanage&redirect_uri=http%3A%2F%2F127.0.0.1%2Fcallback", "response_type": "code", "redirect_uri": "http://127.0.0.1/callback", "scope": "account:email?action=manage blob:*/* repo:*?action=delete repo?collection=com.example.todo&collection=com.example.test.item&action=create atproto", "state": "Cl-WciZQbB_lypJ0", "code_challenge": "TZlbMJK4mE4e_Ck_5FcjGKbeDqu9hPldaZwJo7XeUp8", "code_challenge_method": "S256", "login_hint": "ZZ1.TEST", "prompt": "consent" } } reference: "299 to 300" pds.js: 600 ``` Supporting steps: 2 of 2 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: 7 of 200 checks agree, 193 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | oauthScopedCall | 126 | 126 | OAuth: getSession after sign-in (41); the server's PAR expires_in (spec/OAUTH.md) (30); the server's a token answer (spec/OAUTH.md) (30); OAuth: redirect (14); OAuth: token: code (12); and 46 more | | oauthScopedRefused | 54 | 61 | the server's PAR expires_in (spec/OAUTH.md) (16); OAuth: getSession after sign-in (16); the server's a token answer (spec/OAUTH.md) (15); OAuth: redirect (4); OAuth: scopes: com.atproto.sync.getLatestCommit: no DPoP header (3); and 47 more | | oauthScopedEdges | 13 | 13 | OAuth: scopes: uploadBlob ("image/png\t; q=1"), with blob:image/* (13); OAuth: scopes: uploadBlob ("image/p\tng"), with blob:image/* (13); OAuth: scopes: uploadBlob ("im\tage/png"), with blob:image/* (13); OAuth: scopes: uploadBlob ("TEXT/PLAÉN"), with blob:image/* (13); OAuth: scopes: uploadBlob ("TEXT/PLAÃN"), with blob:image/* (13); and 13 more | First difference, at step 1 (oauthScopedCall): the server's PAR expires_in (spec/OAUTH.md). ``` request: { "par": { "client_id": "http://localhost?scope=atproto+transition%3Ageneric+repo%3Acom.example.note%3Faction%3Dcreate+identity%3Ahandle&redirect_uri=http%3A%2F%2F127.0.0.1%2Fcallback", "response_type": "code", "redirect_uri": "http://127.0.0.1/callback", "scope": "atproto transition:generic", "state": "E3DrYxwiGrKTa9z-", "code_challenge": "vkhO5wfIWoUuX1zS-2-60Qde5p52HjEeEoCAv73MtzU", "code_challenge_method": "S256" } } reference: "299 to 300" tranquil: 600 ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. ### oauth clients OAuth clients' metadata documents: fetched from the harness's web, kept and refused as the reference does; confidential clients and their assertions. **monolith**: 200 of 200 checks agree. **zds**: no check ran. Skipped: `oauthClientDocument` (clientFetch: zds fetches a client document from the client_id's own https URL (src/internal/outbound.zig); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthClientCache` (clientFetch: zds fetches a client document from the client_id's own https URL (src/internal/outbound.zig); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthClientLogin` (clientFetch: zds fetches a client document from the client_id's own https URL (src/internal/outbound.zig); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthAssertionRefused` (clientFetch: zds fetches a client document from the client_id's own https URL (src/internal/outbound.zig); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthConfidentialSession` (clientFetch: zds fetches a client document from the client_id's own https URL (src/internal/outbound.zig); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is). Supporting steps: 6 of 6 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: no check ran. Skipped: `oauthClientDocument` (clientFetch: vlpds fetches a client document from the client_id's own URL, https unless --dev-mode (src/oauth/client.rs:423-426); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthClientCache` (clientFetch: vlpds fetches a client document from the client_id's own URL, https unless --dev-mode (src/oauth/client.rs:423-426); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthClientLogin` (clientFetch: vlpds fetches a client document from the client_id's own URL, https unless --dev-mode (src/oauth/client.rs:423-426); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthAssertionRefused` (clientFetch: vlpds fetches a client document from the client_id's own URL, https unless --dev-mode (src/oauth/client.rs:423-426); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthConfidentialSession` (clientFetch: vlpds fetches a client document from the client_id's own URL, https unless --dev-mode (src/oauth/client.rs:423-426); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is). Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: no check ran. Skipped: `oauthClientDocument` (clientFetch: pds.js fetches a client document from the client_id's own URL (packages/core/src/oauth.js:635-646); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthClientCache` (clientFetch: pds.js fetches a client document from the client_id's own URL (packages/core/src/oauth.js:635-646); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthClientLogin` (clientFetch: pds.js fetches a client document from the client_id's own URL (packages/core/src/oauth.js:635-646); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthAssertionRefused` (clientFetch: pds.js fetches a client document from the client_id's own URL (packages/core/src/oauth.js:635-646); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthConfidentialSession` (clientFetch: pds.js fetches a client document from the client_id's own URL (packages/core/src/oauth.js:635-646); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is). Supporting steps: 2 of 2 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: no check ran. Skipped: `oauthClientDocument` (clientFetch: tranquil fetches a client document from the client_id's own URL (crates/tranquil-oauth/src/client.rs:251); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthClientCache` (clientFetch: tranquil fetches a client document from the client_id's own URL (crates/tranquil-oauth/src/client.rs:251); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthClientLogin` (clientFetch: tranquil fetches a client document from the client_id's own URL (crates/tranquil-oauth/src/client.rs:251); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthAssertionRefused` (clientFetch: tranquil fetches a client document from the client_id's own URL (crates/tranquil-oauth/src/client.rs:251); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is), `oauthConfidentialSession` (clientFetch: tranquil fetches a client document from the client_id's own URL (crates/tranquil-oauth/src/client.rs:251); it has no mapping of origins to the harness's web, as PDS_OAUTH_CLIENT_FETCH is). Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. ### sessions Sessions: createSession, getSession, refreshSession, app passwords and their scopes, deleteSession, tokens of the wrong kind, and describeServer. **monolith**: 200 of 200 checks agree. **zds**: 47 of 200 checks agree, 152 differ, 1 could not go on. | check | failed | of | what differed (how often) | |---|--:|--:|---| | appPasswords | 46 | 50 | the server's accessJwt (spec/SESSIONS.md) (18); the server's refreshJwt (spec/SESSIONS.md) (18); com.atproto.server.createSession (16); com.atproto.server.createAppPassword (16); the session a refresh token names (11); and 5 more | | createSession | 15 | 31 | com.atproto.server.createSession (15) | | refreshSession | 36 | 39 | com.atproto.server.refreshSession (36); the server's accessJwt (spec/SESSIONS.md) (35); the server's refreshJwt (spec/SESSIONS.md) (35); the session a refresh token names (22) | | wrongTokens | 20 | 23 | com.atproto.server.getSession (7); com.atproto.server.refreshSession (5); com.atproto.server.deleteSession (2); com.atproto.repo.createRecord (2); com.atproto.server.revokeAppPassword (2); and 3 more | | deleteSession | 14 | 22 | com.atproto.server.deleteSession (12); com.atproto.server.getSession (4); com.atproto.server.refreshSession (4) | | getSession | 13 | 13 | com.atproto.server.getSession (13) | | sessionRace | 9 | 9 | the server's accessJwt (spec/SESSIONS.md) (23); the server's refreshJwt (spec/SESSIONS.md) (23); com.atproto.server.refreshSession (6); com.atproto.server.createAppPassword (3); then could not go on: Cannot read properties of undefined (reading 'body') (3); and 1 more | First difference, at step 1 (appPasswords): the server's accessJwt (spec/SESSIONS.md). ``` request: { "tokens": "of 's createAccount or createSession" } reference: { "typ": "at+jwt", "scope": "com.atproto.access", "sub": "", "aud": "did:web:localhost", "iat": "", "life": 7200 } zds: { "typ": "JWT", "scope": "com.atproto.access", "sub": "", "jti": "zds-1794295086-618642720-0", "iat": "", "life": 7200 } ``` Supporting steps: 6 of 6 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: 55 of 200 checks agree, 145 differ. Skipped: `describeServer` (handleDomains: vlpds serves one handle domain (VLPDS_HANDLE_DOMAIN, here `test`); more are added only by its admin API, each of two labels or more, so `.example` cannot be one: describeServer's availableUserDomains is [".test"]). | check | failed | of | what differed (how often) | |---|--:|--:|---| | refreshSession | 34 | 41 | com.atproto.server.refreshSession (34); the server's accessJwt (spec/SESSIONS.md) (29); the session a refresh token names (21); the server's refreshJwt (spec/SESSIONS.md) (18) | | createSession | 21 | 31 | com.atproto.server.createSession (21) | | appPasswords | 48 | 57 | com.atproto.server.createAppPassword (18); com.atproto.server.createSession (17); the server's accessJwt (spec/SESSIONS.md) (17); the session a refresh token names (15); the server's refreshJwt (spec/SESSIONS.md) (10); and 5 more | | wrongTokens | 15 | 30 | com.atproto.server.getSession (9); the server's accessJwt (spec/SESSIONS.md) (2); com.atproto.server.revokeAppPassword (2); com.atproto.server.refreshSession (2) | | deleteSession | 14 | 25 | com.atproto.server.deleteSession (8); com.atproto.server.getSession (5); com.atproto.server.refreshSession (2); the server's accessJwt (spec/SESSIONS.md) | | getSession | 7 | 9 | com.atproto.server.getSession (7) | | sessionRace | 6 | 7 | the server's accessJwt (spec/SESSIONS.md) (7); com.atproto.server.refreshSession (3); com.atproto.server.createAppPassword (3); then could not go on: Cannot read properties of undefined (reading 'body') (3); the session a refresh token names | First difference, at step 1 (refreshSession): the server's accessJwt (spec/SESSIONS.md). ``` request: { "tokens": "of 's createAccount or createSession" } reference: { "typ": "at+jwt", "scope": "com.atproto.access", "sub": "", "aud": "did:web:localhost", "iat": "", "life": 7200 } vlpds: { "typ": "at+jwt", "scope": "com.atproto.access", "sub": "", "aud": "did:web:localhost", "jti": "00065fe6e4f3f5c11a2c3ae5136b835f", "iat": "", "life": 7200 } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: 36 of 200 checks agree, 163 differ, 1 could not go on. Skipped: `describeServer` (handleDomains: pds.js's one handle domain is its hostname (xrpc-server.js:127): describeServer's availableUserDomains is [".localhost"], and `.test` and `.example` cannot be given). | check | failed | of | what differed (how often) | |---|--:|--:|---| | wrongTokens | 28 | 28 | com.atproto.server.getSession (8); com.atproto.server.refreshSession (5); com.atproto.server.deleteSession (4); com.atproto.repo.createRecord (3); com.atproto.server.listAppPasswords (3); and 4 more | | deleteSession | 21 | 29 | com.atproto.server.deleteSession (13); com.atproto.server.refreshSession (9); com.atproto.server.getSession (4); the server's accessJwt (spec/SESSIONS.md); the server's refreshJwt (spec/SESSIONS.md) | | createSession | 22 | 42 | com.atproto.server.createSession (22) | | appPasswords | 38 | 46 | com.atproto.server.createAppPassword (13); com.atproto.server.createSession (11); the server's accessJwt (spec/SESSIONS.md) (9); the server's refreshJwt (spec/SESSIONS.md) (9); the session a refresh token names (8); and 5 more | | refreshSession | 33 | 33 | com.atproto.server.refreshSession (33); the server's accessJwt (spec/SESSIONS.md) (22); the server's refreshJwt (spec/SESSIONS.md) (22); the session a refresh token names (16) | | getSession | 16 | 16 | com.atproto.server.getSession (16) | | sessionRace | 6 | 6 | the server's accessJwt (spec/SESSIONS.md) (5); the server's refreshJwt (spec/SESSIONS.md) (5); com.atproto.server.refreshSession (4); com.atproto.server.createAppPassword (2); the server's sessions refreshes at once answer | First difference, at step 1 (wrongTokens): the server's accessJwt (spec/SESSIONS.md). ``` request: { "tokens": "of 's createAccount or createSession" } reference: { "typ": "at+jwt", "scope": "com.atproto.access", "sub": "", "aud": "did:web:localhost", "iat": "", "life": 7200 } pds.js: { "typ": "at+jwt", "scope": "com.atproto.access", "sub": "", "aud": "did:plc:ao33ts3uwvjvnz2pme36lvhn", "iat": "", "life": 7200 } ``` Supporting steps: 2 of 2 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: 0 of 200 checks agree, 200 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | refreshSession | 38 | 38 | com.atproto.server.refreshSession (38); the server's accessJwt (spec/SESSIONS.md) (30); the server's refreshJwt (spec/SESSIONS.md) (30); the session a refresh token names (21) | | createSession | 38 | 38 | com.atproto.server.createSession (38) | | appPasswords | 43 | 43 | com.atproto.server.createAppPassword (21); the server's app password (spec/SESSIONS.md) (15); the server's app password createdAt (spec/SESSIONS.md) (15); com.atproto.server.createSession (13); the server's accessJwt (spec/SESSIONS.md) (12); and 5 more | | wrongTokens | 21 | 21 | com.atproto.server.listAppPasswords (5); com.atproto.server.revokeAppPassword (4); com.atproto.server.getSession (4); com.atproto.repo.createRecord (3); com.atproto.server.deleteSession (2); and 4 more | | describeServer | 12 | 12 | com.atproto.server.describeServer (12) | | getSession | 20 | 20 | com.atproto.server.getSession (20) | | sessionRace | 9 | 9 | the server's accessJwt (spec/SESSIONS.md) (26); the server's refreshJwt (spec/SESSIONS.md) (26); com.atproto.server.refreshSession (7); the session a refresh token names (5); com.atproto.server.createAppPassword (2); and 1 more | | deleteSession | 19 | 19 | com.atproto.server.deleteSession (19); com.atproto.server.refreshSession (9); com.atproto.server.getSession (6) | First difference, at step 1 (refreshSession): the server's accessJwt (spec/SESSIONS.md). ``` request: { "tokens": "of 's createAccount or createSession" } reference: { "typ": "at+jwt", "scope": "com.atproto.access", "sub": "", "aud": "did:web:localhost", "iat": "", "life": 7200 } tranquil: { "typ": "at+jwt", "scope": "com.atproto.access", "sub": "", "aud": "did:web:localhost", "jti": "ddad2c63-43b1-4f7b-8408-1d7d2c8df9a5", "iat": "", "life": 7200, "iss": "did:plc:dcipds3xsyr37d2pkyt5e42j" } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. ### accounts Accounts: createAccount, the DID it registers with the PLC directory and its genesis operation, and what it refuses. **monolith**: 200 of 200 checks agree. **zds**: 44 of 200 checks agree, 156 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | accountRace | 18 | 18 | com.atproto.server.createAccount (18); the server's createAccount didDoc (13); com.atproto.server.getSession (13); then could not go on: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) (5) | | createAccount | 90 | 90 | com.atproto.server.createAccount (94); the server's createAccount didDoc (75); com.atproto.server.getSession (75) | | createAccountRefused | 48 | 92 | com.atproto.server.createAccount (48) | First difference, at step 1 (accountRace): com.atproto.server.createAccount: the account that won the race. ``` request: { "bodies": [ { "handle": "ac4q9.test", "email": "ac4q9@example.com", "password": "pw-ac4q9" }, { "handle": "ac4q9.tEST", "email": "AC4q9@exAMPlE.coM", "password": "pw-ac4q9" } ], "sent": "at once" } reference: { "status": 200, "body": { "handle": "ac4q9.test", "did": "", "didDoc": { "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/secp256k1-2019/v1" ], "id": "", "alsoKnownAs": [ "at://ac4q9.test" ], "verificationMethod": [ { "id": "#atproto", "type": "EcdsaSecp256k1VerificationKey2019", "controller": "", "publicKeyMultibase": "" } ], "service": [ { "id": "#atproto_pds", "type": "AtprotoPersonalDataServer", "serviceEndpoint": "" } ] }, "accessJwt": "", "refreshJwt": "" } } zds: { "status": 200, "body": { "accessJwt": "", "refreshJwt": "", "did": "", "didDoc": { "@context": [ "https://www.w3.org/ns/did/v1" ], "id": "", "alsoKnownAs": [ "at://ac4q9.test" ], "verificationMethod": [ { "id": "#atproto", "type": "Multikey", "controller": "", "publicKeyMultibase": "" } ], "service": [ { "id": "#atproto_pds", "type": "AtprotoPersonalDataServer", "serviceEndpoint": "" } ] }, "handle": "ac4q9.test", "email": "ac4q9@example.com", "emailConfirmed": false, "active": true } } ``` Supporting steps: 6 of 6 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: 90 of 200 checks agree, 110 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | createAccount | 87 | 87 | com.atproto.server.createAccount (87); the server's createAccount didDoc (61); com.atproto.server.getSession (61) | | accountRace | 20 | 20 | com.atproto.server.createAccount (20); then could not go on: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) (12); the server's createAccount didDoc (8); com.atproto.server.getSession (8) | | createAccountRefused | 3 | 93 | com.atproto.server.createAccount (3) | First difference, at step 1 (createAccount): com.atproto.server.createAccount. ``` request: { "handle": "ZZ5X.teST", "email": "ZZ5x@exAmPle.COM", "password": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé" } reference: { "status": 200, "body": { "handle": "zz5x.test", "did": "", "didDoc": { "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/secp256k1-2019/v1" ], "id": "", "alsoKnownAs": [ "at://zz5x.test" ], "verificationMethod": [ { "id": "#atproto", "type": "EcdsaSecp256k1VerificationKey2019", "controller": "", "publicKeyMultibase": "" } ], "service": [ { "id": "#atproto_pds", "type": "AtprotoPersonalDataServer", "serviceEndpoint": "" } ] }, "accessJwt": "", "refreshJwt": "" } } vlpds: { "status": 400, "error": "InvalidRequest" } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: no check ran. Skipped: `createAccount` (accounts: pds.js hosts one account (README.md, "one server, one identity"): createAccount only adopts a DID made elsewhere, for a migration (packages/core/src/handlers/xrpc-server.js:222-340), and a new one is made once, by POST /account/onboarding/create on an empty server (xrpc-server.js:453-615), which the adapter's claim calls), `createAccountRefused` (accounts: pds.js hosts one account (README.md, "one server, one identity"): createAccount only adopts a DID made elsewhere, for a migration (packages/core/src/handlers/xrpc-server.js:222-340), and a new one is made once, by POST /account/onboarding/create on an empty server (xrpc-server.js:453-615), which the adapter's claim calls), `accountRace` (accounts: pds.js hosts one account (README.md, "one server, one identity"): createAccount only adopts a DID made elsewhere, for a migration (packages/core/src/handlers/xrpc-server.js:222-340), and a new one is made once, by POST /account/onboarding/create on an empty server (xrpc-server.js:453-615), which the adapter's claim calls). Supporting steps: 2 of 2 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: 49 of 200 checks agree, 151 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | createAccount | 81 | 81 | com.atproto.server.createAccount (81) | | accountRace | 24 | 24 | com.atproto.server.createAccount (24); then could not go on: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) (24) | | createAccountRefused | 46 | 95 | com.atproto.server.createAccount (46) | First difference, at step 1 (createAccount): com.atproto.server.createAccount. ``` request: { "handle": "ZZ5X.teST", "email": "ZZ5x@exAmPle.COM", "password": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé" } reference: { "status": 200, "body": { "handle": "zz5x.test", "did": "", "didDoc": { "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/secp256k1-2019/v1" ], "id": "", "alsoKnownAs": [ "at://zz5x.test" ], "verificationMethod": [ { "id": "#atproto", "type": "EcdsaSecp256k1VerificationKey2019", "controller": "", "publicKeyMultibase": "" } ], "service": [ { "id": "#atproto_pds", "type": "AtprotoPersonalDataServer", "serviceEndpoint": "" } ] }, "accessJwt": "", "refreshJwt": "" } } tranquil: { "status": 400, "error": "InvalidRequest" } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. ### records Records: createRecord, putRecord, deleteRecord, applyWrites, swapCommit and swapRecord, getRecord, listRecords, describeRepo, writes to another account's repository, and requests the lexicons refuse. **monolith**: 200 of 200 checks agree. **zds**: 129 of 200 checks agree, 71 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | oddRequests | 8 | 9 | com.atproto.repo.createRecord (6); com.atproto.repo.applyWrites; com.atproto.repo.deleteRecord | | deleteRecord | 6 | 20 | com.atproto.repo.deleteRecord (6) | | applyWrites | 4 | 15 | com.atproto.repo.applyWrites (4) | | putRecord | 1 | 35 | com.atproto.repo.putRecord | | getRecord | 16 | 29 | com.atproto.repo.getRecord (16) | | createRecord | 11 | 36 | com.atproto.repo.createRecord (11) | | listRecords | 13 | 20 | com.atproto.repo.listRecords (23) | | crossWrites | 9 | 9 | com.atproto.repo.deleteRecord (5); com.atproto.repo.putRecord (2); com.atproto.repo.createRecord; com.atproto.repo.applyWrites | | describeRepo | 3 | 3 | com.atproto.repo.describeRepo (3); the server's com.atproto.repo.describeRepo (3) | First difference, at step 1 (oddRequests): com.atproto.repo.createRecord. ``` request: { "body": { "repo": "ac1x.test", "collection": "not an nsid", "rkey": "k_9", "record": { "$type": "com.example.note", "text": "", "n": 93, "tags": [ "y" ] } }, "token": "never-given-out" } reference: { "status": 400, "error": "InvalidToken" } zds: { "status": 401, "error": "InvalidToken" } ``` Supporting steps: 6 of 6 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: 160 of 200 checks agree, 40 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | describeRepo | 6 | 6 | com.atproto.repo.describeRepo (6); the server's com.atproto.repo.describeRepo (6) | | createRecord | 10 | 37 | com.atproto.repo.createRecord (10) | | applyWrites | 3 | 16 | com.atproto.repo.applyWrites (3) | | listRecords | 18 | 22 | com.atproto.repo.listRecords (36) | | crossWrites | 1 | 10 | com.atproto.repo.putRecord | | oddRequests | 2 | 7 | com.atproto.repo.deleteRecord (2) | First difference, at step 2 (describeRepo): com.atproto.repo.describeRepo. ``` request: { "params": { "repo": "zz4q9.test" } } reference: { "status": 200, "body": { "handle": "zz4q9.test", "did": "", "didDoc": { "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/secp256k1-2019/v1" ], "id": "", "alsoKnownAs": [ "at://zz4q9.test" ], "verificationMethod": [ { "id": "#atproto", "type": "EcdsaSecp256k1VerificationKey2019", "controller": "", "publicKeyMultibase": "" } ], "service": [ { "id": "#atproto_pds", "type": "AtprotoPersonalDataServer", "serviceEndpoint": "" } ] }, "collections": [], "handleIsCorrect": true } } vlpds: { "status": 200, "body": { "collections": [], "did": "", "didDoc": { "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/multikey/v1", "https://w3id.org/security/suites/secp256k1-2019/v1" ], "alsoKnownAs": [ "at://zz4q9.test" ], "id": "", "service": [ { "id": "#atproto_pds", "serviceEndpoint": "", "type": "AtprotoPersonalDataServer" } ], "verificationMethod": [ { "controller": "", "id": "#atproto", "publicKeyMultibase": "", "type": "Multikey" } ] }, "handle": "zz4q9.test", "handleIsCorrect": true } } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: 2 of 200 checks agree, 198 differ. Skipped: `crossWrites` (accounts: pds.js hosts one account (README.md, "one server, one identity"): createAccount only adopts a DID made elsewhere, for a migration (packages/core/src/handlers/xrpc-server.js:222-340), and a new one is made once, by POST /account/onboarding/create on an empty server (xrpc-server.js:453-615), which the adapter's claim calls). | check | failed | of | what differed (how often) | |---|--:|--:|---| | getRecord | 35 | 35 | com.atproto.repo.getRecord (35) | | putRecord | 39 | 39 | com.atproto.repo.putRecord (39) | | applyWrites | 16 | 16 | com.atproto.repo.applyWrites (16) | | createRecord | 41 | 41 | com.atproto.repo.createRecord (41) | | deleteRecord | 25 | 25 | com.atproto.repo.deleteRecord (25) | | listRecords | 9 | 9 | com.atproto.repo.listRecords (24) | | concurrent | 20 | 22 | com.atproto.repo.putRecord, sent at once with others (97); applyWrites racing on one commit; then could not go on: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) | | oddRequests | 6 | 6 | com.atproto.repo.createRecord (4); com.atproto.repo.getRecord; com.atproto.repo.putRecord | | createWithTid | 3 | 3 | createRecord without rkey (3); then could not go on: Cannot read properties of undefined (reading 'split') (3) | | describeRepo | 4 | 4 | com.atproto.repo.describeRepo (4); the server's com.atproto.repo.describeRepo (3) | First difference, at step 1 (getRecord): com.atproto.repo.getRecord. ``` request: { "params": { "repo": "zz1.test", "collection": "com.example.todo", "rkey": "b2" } } reference: { "status": 400, "error": "RecordNotFound" } pds.js: { "status": 404, "error": "RepoNotFound" } ``` Supporting steps: 2 of 2 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: 13 of 200 checks agree, 187 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | deleteRecord | 23 | 23 | com.atproto.repo.deleteRecord (23) | | describeRepo | 5 | 5 | com.atproto.repo.describeRepo (5); the server's com.atproto.repo.describeRepo (5) | | createRecord | 29 | 35 | com.atproto.repo.createRecord (29) | | applyWrites | 17 | 19 | com.atproto.repo.applyWrites (17) | | putRecord | 30 | 30 | com.atproto.repo.putRecord (30) | | getRecord | 28 | 28 | com.atproto.repo.getRecord (28) | | concurrent | 9 | 12 | com.atproto.repo.putRecord, sent at once with others (20); applyWrites racing on one commit (5); then could not go on: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) (5) | | listRecords | 24 | 24 | com.atproto.repo.listRecords (50) | | crossWrites | 8 | 9 | com.atproto.repo.deleteRecord (3); com.atproto.repo.putRecord (2); com.atproto.repo.applyWrites (2); com.atproto.repo.createRecord | | createWithTid | 7 | 7 | createRecord without rkey (7); then could not go on: Cannot read properties of undefined (reading 'split') (7) | | oddRequests | 7 | 8 | com.atproto.repo.createRecord (4); com.atproto.repo.deleteRecord (2); com.atproto.repo.applyWrites | First difference, at step 1 (deleteRecord): com.atproto.repo.deleteRecord. ``` request: { "body": { "repo": "m-o2x.test", "collection": "com.example.todo", "rkey": "b2" }, "token": "" } reference: { "status": 200, "body": {} } tranquil: { "status": 403, "error": "InvalidRepo" } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. ### validation Records checked against their lexicons: known types valid and not, `validate`, duplicates replaced, in applyWrites too. **monolith**: 200 of 200 checks agree. **zds**: 62 of 200 checks agree, 138 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | validatedBatch | 36 | 49 | com.atproto.repo.applyWrites (36) | | validatedWrite | 52 | 87 | com.atproto.repo.putRecord (27); com.atproto.repo.createRecord (23); com.atproto.repo.listRecords (3) | | duplicates | 41 | 55 | com.atproto.repo.listRecords (30); com.atproto.repo.createRecord (15); com.atproto.repo.putRecord (6); com.atproto.repo.applyWrites (5) | | validatedElsewhere | 9 | 9 | com.atproto.repo.putRecord (4); com.atproto.repo.createRecord (3); com.atproto.repo.applyWrites (2) | First difference, at step 1 (validatedBatch): com.atproto.repo.applyWrites. ``` request: { "body": { "repo": "ac1x.test", "writes": [ { "$type": "com.atproto.repo.applyWrites#create", "collection": "app.bsky.graph.verification", "rkey": "3kaaaaaaaaa24", "value": { "subject": "", "handle": "0ohn.test", "displayName": "👍🏽Z👍🏽 éZéé", "createdAt": "1985-04-12T23:20:50.1234567Z", "$type": "app.bsky.graph.verification", "batch": 1 } } ], "validate": false }, "token": "", "what": [ "create app.bsky.graph.verification: valid" ] } reference: { "status": 200, "body": { "commit": "", "results": [ { "cid": "bafyreih372jvyljsul4xixw43vpr5q7l7hrbgedracg4pvjykdhiqc6moe", "uri": "at:///app.bsky.graph.verification/3kaaaaaaaaa24", "$type": "com.atproto.repo.applyWrites#createResult" } ] } } zds: { "status": 200, "body": { "commit": "", "results": [ { "$type": "com.atproto.repo.applyWrites#createResult", "uri": "at:///app.bsky.graph.verification/3kaaaaaaaaa24", "cid": "bafyreih372jvyljsul4xixw43vpr5q7l7hrbgedracg4pvjykdhiqc6moe", "validationStatus": "unknown" } ] } } ``` Supporting steps: 6 of 6 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: 122 of 200 checks agree, 78 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | validatedWrite | 15 | 90 | com.atproto.repo.createRecord (9); com.atproto.repo.putRecord (4); com.atproto.repo.listRecords (2) | | duplicates | 53 | 55 | com.atproto.repo.listRecords (51); com.atproto.repo.createRecord (5); com.atproto.repo.putRecord (2); com.atproto.repo.applyWrites (2) | | validatedBatch | 10 | 43 | com.atproto.repo.applyWrites (10) | First difference, at step 1 (validatedWrite): com.atproto.repo.putRecord. ``` request: { "body": { "repo": "m-o2x.test", "collection": "app.bsky.actor.link", "record": { "url": "a_b:c", "title": "🇯🇵7Z", "createdAt": "1985-04-12T23:20:50.123-07:00", "labels": { "values": [ { "val": "🙂Zññ 🏳️‍🌈7👍🏽" }, { "val": " ", "x_y": 441 }, { "val": "77777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777" }, { "val": "ZZ" }, { "val": "é🇯🇵🇯🇵🙂🙂7é7 7" }, { "val": null, "$type": "com.atproto.label.defs#selfLabel" }, { "val": "🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈" }, { "val": "🙂é7ñ👨‍👩‍👧‍👦", "$type": "com.atproto.label.defs#selfLabel" }, { "val": "🙂aéé🇯🇵🙂é" }, { "val": "👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽" } ], "$type": "com.atproto.label.defs#selfLabels" }, "extraField": [], "$type": "app.bsky.actor.link", "batch": 1 }, "rkey": "3kaaaaaaaaa26" }, "token": "", "what": "null: val null" } reference: { "status": 400, "error": "InvalidRequest" } vlpds: { "status": 200, "body": { "cid": "bafyreihoihpuhjuqbp6vak4dfvglkrwh5sdzicnrzt2ioccqnwf7arq5fu", "commit": "", "uri": "at:///app.bsky.actor.link/3kaaaaaaaaa26", "validationStatus": "unknown" } } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: 8 of 200 checks agree, 192 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | duplicates | 46 | 46 | com.atproto.repo.listRecords (37); com.atproto.repo.createRecord (22); com.atproto.repo.applyWrites (12); com.atproto.repo.putRecord (12) | | validatedBatch | 49 | 49 | com.atproto.repo.applyWrites (49) | | validatedWrite | 97 | 97 | com.atproto.repo.createRecord (50); com.atproto.repo.putRecord (47); com.atproto.repo.listRecords (2) | First difference, at step 1 (duplicates): com.atproto.repo.applyWrites. ``` request: { "body": { "repo": "zz1.test", "writes": [ { "$type": "com.atproto.repo.applyWrites#create", "collection": "app.bsky.graph.block", "rkey": "3kaaaaaaaaa26", "value": { "subject": true, "createdAt": "1985-04-12T23:20:50.1Z", "zz": -692, "$type": "app.bsky.graph.block", "batch": 1 } } ], "validate": true }, "token": "", "what": [ "create app.bsky.graph.block: type: subject of another type" ] } reference: { "status": 400, "error": "InvalidRequest" } pds.js: { "status": 403, "error": "Forbidden" } ``` Supporting steps: 2 of 2 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: 9 of 200 checks agree, 191 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | validatedWrite | 85 | 90 | com.atproto.repo.putRecord (43); com.atproto.repo.createRecord (42); com.atproto.repo.listRecords (2) | | duplicates | 54 | 55 | com.atproto.repo.listRecords (51); com.atproto.repo.createRecord (29); com.atproto.repo.putRecord (15); com.atproto.repo.applyWrites (6) | | validatedBatch | 40 | 43 | com.atproto.repo.applyWrites (40) | | validatedElsewhere | 12 | 12 | com.atproto.repo.putRecord (5); com.atproto.repo.applyWrites (4); com.atproto.repo.createRecord (3) | First difference, at step 1 (validatedWrite): com.atproto.repo.putRecord. ``` request: { "body": { "repo": "m-o2x.test", "collection": "app.bsky.actor.link", "record": { "url": "a_b:c", "title": "🇯🇵7Z", "createdAt": "1985-04-12T23:20:50.123-07:00", "labels": { "values": [ { "val": "🙂Zññ 🏳️‍🌈7👍🏽" }, { "val": " ", "x_y": 441 }, { "val": "77777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777" }, { "val": "ZZ" }, { "val": "é🇯🇵🇯🇵🙂🙂7é7 7" }, { "val": null, "$type": "com.atproto.label.defs#selfLabel" }, { "val": "🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈🏳️‍🌈" }, { "val": "🙂é7ñ👨‍👩‍👧‍👦", "$type": "com.atproto.label.defs#selfLabel" }, { "val": "🙂aéé🇯🇵🙂é" }, { "val": "👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽" } ], "$type": "com.atproto.label.defs#selfLabels" }, "extraField": [], "$type": "app.bsky.actor.link", "batch": 1 }, "rkey": "3kaaaaaaaaa26" }, "token": "", "what": "null: val null" } reference: { "status": 400, "error": "InvalidRequest" } tranquil: { "status": 403, "error": "InvalidRepo" } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. ### repository The repository: each account's whole repository from getRepo, verified (signature, MST, every record) by the reference's library against the DID's key, its MST root the reference's, getRepo since, getLatestCommit. **monolith**: 22 of 22 checks agree. **zds**: 1 of 22 checks agree, 21 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkRepos | 21 | 22 | the repository (56); com.atproto.sync.getRepo (6) | First difference, at step 10 (checkRepos): the repository: the MST roots differ, so the records or their encoding do. ``` request: { "did": "", "records": [ "com.example.test.item/b", "com.example.test.item/k_9", "com.example.test.item/self", "com.example.todo/a.b" ] } reference: { "data": "bafyreidtyplhth3jw4gepg57ygegqpbgq7z3as2nr4ycyopbp5ii62pos4" } zds: { "data": "bafyreidf4433by6szkgtmdpikrx3ggnpclxckqlyd7djboaz6pebrt5aie" } ``` Supporting steps: 53 of 206 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: 8 of 22 checks agree, 14 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkRepos | 14 | 22 | com.atproto.sync.getRepo (17) | First difference, at step 20 (checkRepos): com.atproto.sync.getRepo. ``` request: { "did": "", "since": "the latest rev" } reference: "no blocks" vlpds: 2 blocks ``` Supporting steps: 33 of 207 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: 0 of 22 checks agree, 22 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkRepos | 22 | 22 | com.atproto.sync.getRepo (44); then could not go on: Cannot read properties of undefined (reading 'subarray') (22) | First difference, at step 0 (checkRepos): com.atproto.sync.getRepo. ``` request: { "did": "" } reference: "a CAR" pds.js: { "status": 404, "error": "RepoNotFound" } ``` Supporting steps: 202 of 202 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: 0 of 22 checks agree, 22 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkRepos | 22 | 22 | the repository (66); com.atproto.sync.getRepo (16) | First difference, at step 0 (checkRepos): the repository: the MST roots differ, so the records or their encoding do. ``` request: { "did": "", "records": [] } reference: { "data": "bafyreie5737gdxlw5i64vzichcalba3z2v5n6icifvx5xytvske7mr3hpm" } tranquil: { "data": "bafyreibdndbxevddkq5mjovctiio55v2ter2d2k65czm7snnrzp7dmwhhq" } ``` Supporting steps: 195 of 207 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. ### sync Sync: listRepos, getRepoStatus, getBlocks, sync.getRecord with its proof, and requestCrawl. **monolith**: 67 of 67 checks agree. **zds**: 14 of 44 checks agree, 30 differ. Skipped: `noCrawlsYet` (hostname: zds takes its hostname from ZDS_PUBLIC_URL, which must be the URL the harness calls (DPoP's htu, src/internal/dpop.zig:208-222), and sends requestCrawl the host without its port (src/atproto/sync.zig:676-688): it cannot be localhost, as the reference's is), `checkCrawls` (hostname: zds takes its hostname from ZDS_PUBLIC_URL, which must be the URL the harness calls (DPoP's htu, src/internal/dpop.zig:208-222), and sends requestCrawl the host without its port (src/atproto/sync.zig:676-688): it cannot be localhost, as the reference's is). | check | failed | of | what differed (how often) | |---|--:|--:|---| | syncGetRecord | 8 | 12 | com.atproto.sync.getRecord (8) | | getBlocks | 8 | 13 | com.atproto.sync.getBlocks (4); the server's getBlocks (4) | | getGoneBlocks | 7 | 8 | the server's getBlocks (7); com.atproto.sync.getBlocks (7) | | getRepoStatus | 3 | 7 | com.atproto.sync.getRepoStatus (3) | | listRepos | 4 | 4 | com.atproto.sync.listRepos (7) | First difference, at step 30 (getBlocks): com.atproto.sync.getBlocks. ``` request: { "did": "did:plc:aaaaaaaaaaaaaaaaaaaaaaaa", "cids": [ "bafyreiazlmyudag645wo6gphhufpn22flw3wgbct5prx7vc665oos2ybje", "bafyreiazlmyudag645wo6gphhufpn22flw3wgbct5prx7vc665oos2ybje" ] } reference: { "status": 400, "error": "RepoNotFound" } zds: { "status": 404, "error": "RepoNotFound" } ``` Supporting steps: 39 of 162 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: 21 of 37 checks agree, 16 differ. Skipped: `noCrawlsYet` (hostname: vlpds takes its hostname from VLPDS_PUBLIC_URL, which must be the URL the harness calls (DPoP's htu and the issuer), and asks no relay on another host to crawl when its own is local (src/crawlers.rs:366-369): it cannot be localhost, telling the harness's crawlers), `checkCrawls` (hostname: vlpds takes its hostname from VLPDS_PUBLIC_URL, which must be the URL the harness calls (DPoP's htu and the issuer), and asks no relay on another host to crawl when its own is local (src/crawlers.rs:366-369): it cannot be localhost, telling the harness's crawlers). | check | failed | of | what differed (how often) | |---|--:|--:|---| | getGoneBlocks | 8 | 8 | com.atproto.sync.getBlocks (8) | | listRepos | 7 | 8 | com.atproto.sync.listRepos (25); the reference's listRepos (7) (documented as deliberate: vlpds DESIGN.md:5905, listRepos in (slot, DID) order, not the order accounts were made) | | getBlocks | 1 | 7 | com.atproto.sync.getBlocks | First difference, at step 5 (getGoneBlocks): com.atproto.sync.getBlocks. ``` request: { "did": "", "cids": [ "an earlier commit of the side’s own", "bafyreicx5l6556kauvy7yipzozmznhiuzabrx4jrskf63v53dl6amstwba" ] } reference: { "status": 400, "error": "InvalidRequest" } vlpds: { "status": 400, "error": "BlockNotFound" } ``` Supporting steps: 26 of 170 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: 0 of 45 checks agree, 45 differ. Skipped: `noCrawlsYet` (hostname: pds.js tells one relay of itself (RELAY_URL), at most every 20 minutes (packages/core/src/pds.js:149, 1934-1950), not each crawler it is given; and it names its endpoint https:// (xrpc-server.js:546), so the hostname cannot be the URL the harness calls), `checkCrawls` (hostname: pds.js tells one relay of itself (RELAY_URL), at most every 20 minutes (packages/core/src/pds.js:149, 1934-1950), not each crawler it is given; and it names its endpoint https:// (xrpc-server.js:546), so the hostname cannot be the URL the harness calls). | check | failed | of | what differed (how often) | |---|--:|--:|---| | syncGetRecord | 15 | 15 | com.atproto.sync.getRecord (15) | | getGoneBlocks | 4 | 4 | the server's getLatestCommit (4); com.atproto.sync.getBlocks (3) | | listRepos | 9 | 9 | the server's getLatestCommit (26); the server's listRepos (26); com.atproto.sync.listRepos (26) | | getBlocks | 12 | 12 | the server's getLatestCommit (12); com.atproto.sync.getBlocks (12) | | getRepoStatus | 5 | 5 | com.atproto.sync.getRepoStatus (5) | First difference, at step 2 (syncGetRecord): com.atproto.sync.getRecord. ``` request: { "did": "", "collection": "com.example.todo", "rkey": "b1" } reference: { "status": 200, "body": { "root": "", "blocks": [ "bafyreibpwze6zapifkib26eg65gjq6mwpjwjufkdxu2gzcfqbwif6pki4u", "bafyreidf3bz7dtuzt5whowf3bqnrpz5u4le4xpaw3iem7znb7lrdekadd4" ] } } pds.js: { "status": 404, "error": "RecordNotFound" } ``` Supporting steps: 157 of 157 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: 16 of 43 checks agree, 27 differ. Skipped: `noCrawlsYet` (hostname: tranquil names itself https://, which must be localhost for the reference's server DID, and with that hostname it asks no crawler to crawl (crates/tranquil-pds/src/crawlers.rs:45-48)), `checkCrawls` (hostname: tranquil names itself https://, which must be localhost for the reference's server DID, and with that hostname it asks no crawler to crawl (crates/tranquil-pds/src/crawlers.rs:45-48)). | check | failed | of | what differed (how often) | |---|--:|--:|---| | getBlocks | 6 | 8 | com.atproto.sync.getBlocks (6) | | listRepos | 9 | 10 | com.atproto.sync.listRepos (42); the reference's listRepos (9) | | syncGetRecord | 12 | 12 | com.atproto.sync.getRecord (12) | First difference, at step 6 (getBlocks): com.atproto.sync.getBlocks. ``` request: { "did": "", "cids": [ "bafyreidd4cnm6waaov77wxssrxilkccwrqy5wxzzmhmpyyoxvn7ahudkw4", "bafyreidd4cnm6waaov77wxssrxilkccwrqy5wxzzmhmpyyoxvn7ahudkw4", "bafyreidd4cnm6waaov77wxssrxilkccwrqy5wxzzmhmpyyoxvn7ahudkw4" ] } reference: { "status": 200, "body": "the blocks asked" } tranquil: { "status": 400, "error": "InvalidRequest" } ``` Supporting steps: 156 of 164 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. ### firehose The firehose: each side's subscribeRepos from the start, every event checked as a consumer would, in order, with its blocks, and replays from a cursor. **monolith**: 22 of 22 checks agree. **zds**: 2 of 22 checks agree, 20 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkFirehose | 20 | 21 | the server's firehose (152); the firehose (24); the reference's firehose (16); subscribeRepos from a cursor that is not an integer (5) | First difference, at step 10 (checkFirehose): the server's firehose. ``` request: { "event": "#sync", "seq": 4 } reference: "blocks holding the commit they name as root" zds: { "type": "#sync", "did": "", "seq": 4, "rev": "3mzwvlm5ude25" } ``` Supporting steps: 54 of 206 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: 1 of 22 checks agree, 20 differ, 1 could not go on. | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkFirehose | 21 | 21 | the server's firehose (130); the reference's firehose (16); the firehose (9); then could not go on: Cannot mix BigInt and other types, use explicit conversions (9) | First difference, at step 10 (checkFirehose): the reference's firehose. ``` request: { "event": "#identity", "seq": 1 } reference: "the DID of an account it made" vlpds: { "type": "#identity", "did": "did:plc:kqa6mligqxlzw6okkuljqcti", "seq": 1 } ``` Supporting steps: 34 of 207 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: 1 of 22 checks agree, 21 differ. Skipped: `createAccount` (accounts: pds.js hosts one account (README.md, "one server, one identity"): createAccount only adopts a DID made elsewhere, for a migration (packages/core/src/handlers/xrpc-server.js:222-340), and a new one is made once, by POST /account/onboarding/create on an empty server (xrpc-server.js:453-615), which the adapter's claim calls). | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkFirehose | 21 | 21 | the firehose (24); the server's firehose (21); subscribeRepos from a cursor in the future (5); subscribeRepos from a cursor that is not an integer (5) | First difference, at step 10 (checkFirehose): the server's firehose. ``` request: { "did": "" } reference: "an event for the account's latest commit, undefined, its #sync, and 1 #identity events, within 3s" pds.js: [ { "type": "#identity", "did": "", "seq": 1 }, { "type": "#account", "did": "", "seq": 2 } ] ``` Supporting steps: 202 of 202 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: 2 of 22 checks agree, 20 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | checkFirehose | 20 | 21 | the reference's firehose (28); the firehose (25); subscribeRepos from a cursor that is not an integer (9) | First difference, at step 10 (checkFirehose): the reference's firehose. ``` request: { "event": "#identity", "seq": 1 } reference: "the DID of an account it made" tranquil: { "type": "#identity", "did": "did:plc:n5www7oid3afyf53vof53rn6", "seq": 1 } ``` Supporting steps: 194 of 207 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. ### identity Identity: handles, their changes and the PLC operations they make, resolveHandle, /.well-known/atproto-did, getRecommendedDidCredentials, and DID documents. **monolith**: 200 of 200 checks agree. **zds**: 34 of 200 checks agree, 166 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | describeRepo | 23 | 23 | com.atproto.repo.describeRepo (23); the server's com.atproto.repo.describeRepo (18) | | resolveHandle | 31 | 34 | com.atproto.identity.resolveHandle (31) | | wellKnownHandle | 11 | 34 | /.well-known/atproto-did (11) | | updateHandle | 39 | 39 | com.atproto.repo.describeRepo (73); com.atproto.identity.resolveHandle (58); com.atproto.server.getSession (39); the server's PLC log after a handle change (29); /.well-known/atproto-did (28); and 4 more | | updateHandleRefused | 36 | 43 | com.atproto.identity.updateHandle (36); the server's PLC log after a refused handle change (2) | | handleRace | 7 | 7 | com.atproto.identity.updateHandle (23); com.atproto.server.getSession (14); com.atproto.repo.describeRepo (14); the server's PLC log after a handle change (10); com.atproto.identity.resolveHandle (10); and 2 more | | updateHandleNoToken | 11 | 11 | com.atproto.identity.updateHandle (11) | | recommendedCredentials | 8 | 9 | com.atproto.identity.getRecommendedDidCredentials (8); the server's getRecommendedDidCredentials (4) | First difference, at step 1 (describeRepo): com.atproto.repo.describeRepo. ``` request: { "params": { "repo": "ac1x.test" } } reference: { "status": 200, "body": { "handle": "ac1x.test", "did": "", "didDoc": { "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/secp256k1-2019/v1" ], "id": "", "alsoKnownAs": [ "at://ac1x.test" ], "verificationMethod": [ { "id": "#atproto", "type": "EcdsaSecp256k1VerificationKey2019", "controller": "", "publicKeyMultibase": "" } ], "service": [ { "id": "#atproto_pds", "type": "AtprotoPersonalDataServer", "serviceEndpoint": "" } ] }, "collections": [], "handleIsCorrect": true } } zds: { "status": 200, "body": { "handle": "ac1x.test", "did": "", "didDoc": { "id": "", "alsoKnownAs": [ "at://ac1x.test" ], "service": [ { "id": "#atproto_pds", "type": "AtprotoPersonalDataServer", "serviceEndpoint": "" } ] }, "collections": [], "handleIsCorrect": true } } ``` Supporting steps: 6 of 6 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: 97 of 200 checks agree, 103 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | updateHandleNoToken | 3 | 9 | com.atproto.identity.updateHandle (3) | | updateHandle | 40 | 40 | com.atproto.repo.describeRepo (43); com.atproto.server.getSession (40); the server's describeRepo after a handle change (40); the server's PLC log after a handle change (5); the server's describeRepo after an operation the server did not post (3) | | wellKnownHandle | 4 | 31 | /.well-known/atproto-did (4) | | updateHandleRefused | 8 | 39 | com.atproto.identity.updateHandle (8) | | recommendedCredentials | 1 | 12 | com.atproto.identity.getRecommendedDidCredentials | | describeRepo | 28 | 28 | com.atproto.repo.describeRepo (28); the server's com.atproto.repo.describeRepo (28) | | handleRace | 12 | 12 | com.atproto.server.getSession (24); com.atproto.repo.describeRepo (24); the server's describeRepo after a handle change (24) | | resolveHandle | 7 | 29 | com.atproto.identity.resolveHandle (7) | First difference, at step 2 (updateHandle): com.atproto.server.getSession. ``` request: { "token": "" } reference: { "status": 200, "body": { "did": "", "handle": "ac6.test", "email": "zz4q9@b.c", "emailConfirmed": false, "emailAuthFactor": false, "active": true } } vlpds: { "status": 200, "body": { "active": true, "did": "", "didDoc": { "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/multikey/v1", "https://w3id.org/security/suites/secp256k1-2019/v1" ], "alsoKnownAs": [ "at://ac6.test" ], "id": "", "service": [ { "id": "#atproto_pds", "serviceEndpoint": "", "type": "AtprotoPersonalDataServer" } ], "verificationMethod": [ { "controller": "", "id": "#atproto", "publicKeyMultibase": "", "type": "Multikey" } ] }, "email": "zz4q9@b.c", "emailAuthFactor": false, "emailConfirmed": false, "handle": "ac6.test" } } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: 35 of 200 checks agree, 165 differ. Skipped: `recommendedCredentials` (recoveryKey: the genesis operation's rotation keys are the account's signing key alone (xrpc-server.js:547): the reference's recovery key cannot be one), `handleRace` (accounts: pds.js hosts one account (README.md, "one server, one identity"): createAccount only adopts a DID made elsewhere, for a migration (packages/core/src/handlers/xrpc-server.js:222-340), and a new one is made once, by POST /account/onboarding/create on an empty server (xrpc-server.js:453-615), which the adapter's claim calls). | check | failed | of | what differed (how often) | |---|--:|--:|---| | resolveHandle | 23 | 43 | com.atproto.identity.resolveHandle (23) | | updateHandleRefused | 27 | 42 | com.atproto.identity.updateHandle (27) | | updateHandleNoToken | 12 | 12 | com.atproto.identity.updateHandle (12) | | updateHandle | 40 | 40 | com.atproto.repo.describeRepo (74); /.well-known/atproto-did (74); com.atproto.identity.resolveHandle (73); the server's PLC log after a handle change (40); com.atproto.server.getSession (40); and 1 more | | describeRepo | 30 | 30 | com.atproto.repo.describeRepo (30); the server's com.atproto.repo.describeRepo (12) | | wellKnownHandle | 33 | 33 | /.well-known/atproto-did (33) | First difference, at step 1 (resolveHandle): com.atproto.identity.resolveHandle. ``` request: { "params": { "handle": "pq2q9.test" } } reference: { "status": 400, "error": "HandleNotFound" } pds.js: { "status": 400, "error": "InvalidRequest" } ``` Supporting steps: 2 of 2 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: 43 of 200 checks agree, 157 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | updateHandleNoToken | 12 | 12 | com.atproto.identity.updateHandle (12) | | updateHandle | 33 | 33 | com.atproto.server.getSession (33); com.atproto.repo.describeRepo (33); the server's describeRepo after a handle change (33); the server's PLC update operation (25); com.atproto.identity.resolveHandle (25); and 1 more | | wellKnownHandle | 9 | 29 | /.well-known/atproto-did (9) | | updateHandleRefused | 30 | 41 | com.atproto.identity.updateHandle (30); the server's PLC log after a refused handle change (3) | | recommendedCredentials | 10 | 10 | the server's getRecommendedDidCredentials (7); com.atproto.identity.getRecommendedDidCredentials (5) (documented as deliberate: tranquil example.toml:228-230, its configuration reference (docs/1_WELCOME_TO_TRANQUIL_PDS.md:16), the account's own signing key always one of its rotation keys) | | describeRepo | 23 | 23 | com.atproto.repo.describeRepo (23); the server's com.atproto.repo.describeRepo (22) | | resolveHandle | 28 | 40 | com.atproto.identity.resolveHandle (28) | | handleRace | 12 | 12 | the server's PLC update operation (24); com.atproto.server.getSession (24); com.atproto.repo.describeRepo (24); the server's describeRepo after a handle change (24); com.atproto.identity.updateHandle (12) | First difference, at step 1 (updateHandleNoToken): com.atproto.identity.updateHandle. ``` request: { "body": { "handle": "zz5x.test" }, "token": "never-given-out" } reference: { "status": 400, "error": "InvalidToken" } tranquil: { "status": 401, "error": "AuthenticationFailed" } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. ### blobs Blobs: uploadBlob, records that reference them, getBlob, listBlobs. **monolith**: 200 of 200 checks agree. **zds**: 80 of 200 checks agree, 120 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | listBlobs | 25 | 33 | com.atproto.sync.listBlobs (35) | | uploadBlob | 32 | 69 | com.atproto.repo.uploadBlob (32) | | blobRecord | 39 | 65 | com.atproto.repo.createRecord (12); com.atproto.repo.getRecord (12); com.atproto.repo.uploadBlob (10); com.atproto.repo.putRecord (10); com.atproto.repo.deleteRecord (6); and 1 more | | getBlob | 24 | 33 | com.atproto.sync.getBlob (20); com.atproto.sync.getBlob headers (4) | First difference, at step 3 (uploadBlob): com.atproto.repo.uploadBlob. ``` request: { "bytes": "136 bytes", "token": "", "chunked": false } reference: { "status": 400, "error": "InvalidRequest" } zds: { "status": 200, "body": { "blob": { "$type": "blob", "ref": { "$link": "bafkreih34a5fnlzuknfgg43p2bnxz4vtebjji2bhjp6aekokb7rilxpedi" }, "mimeType": "application/octet-stream", "size": 136 } } } ``` Supporting steps: 6 of 6 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **vlpds**: 134 of 200 checks agree, 66 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | blobRecord | 26 | 79 | com.atproto.repo.putRecord (10); com.atproto.repo.createRecord (9); com.atproto.repo.uploadBlob (5); com.atproto.repo.getRecord (3); com.atproto.repo.deleteRecord; and 1 more | | uploadBlob | 12 | 50 | com.atproto.repo.uploadBlob (12) | | getBlob | 19 | 40 | com.atproto.sync.getBlob (19) (documented as deliberate: vlpds DESIGN.md:5906-5907 and docs/blobs.md:65-66, an upload served before any record references it) | | listBlobs | 9 | 31 | com.atproto.sync.listBlobs (10) | First difference, at step 1 (blobRecord): com.atproto.repo.uploadBlob. ``` request: { "bytes": "168 bytes", "type": "text/plain ;q=1", "token": "", "chunked": false } reference: { "status": 200, "body": { "blob": { "$type": "blob", "ref": { "$link": "bafkreia5tga7cqjocdfpgwzg7fef54zyodhbgcmqfyfox2vhmnamwjnbce" }, "mimeType": "text/plain ", "size": 168 } } } vlpds: { "status": 200, "body": { "blob": { "$type": "blob", "mimeType": "text/plain ;q=1", "ref": { "$link": "bafkreia5tga7cqjocdfpgwzg7fef54zyodhbgcmqfyfox2vhmnamwjnbce" }, "size": 168 } } } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount. **pds.js**: 66 of 200 checks agree, 134 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | blobRecord | 71 | 71 | com.atproto.repo.putRecord (29); com.atproto.repo.createRecord (27); com.atproto.repo.getRecord (20); com.atproto.repo.deleteRecord (8); com.atproto.repo.applyWrites (7); and 1 more | | getBlob | 24 | 42 | com.atproto.sync.getBlob (22); com.atproto.sync.getBlob headers (2) | | uploadBlob | 12 | 59 | com.atproto.repo.uploadBlob (12) | | listBlobs | 27 | 28 | com.atproto.sync.listBlobs (80) | First difference, at step 1 (blobRecord): com.atproto.repo.putRecord. ``` request: { "body": { "repo": "zz1.test", "collection": "com.example.blob", "rkey": "b", "record": { "$type": "com.example.blob", "n": 6, "batch": 1, "img": { "$type": "blob", "ref": { "$link": "bafkreicncwmtiv2hjmsnk4tbmvy7apbixobub3v2ktdeqzd755cx3hokw4" }, "mimeType": "video/mp4", "size": 34 } } }, "token": "" } reference: { "status": 200, "body": { "uri": "at:///com.example.blob/b", "cid": "bafyreifj67fwxkabda2u6qfjtbrcmsja53hkstgbcdutsfpowlf5qxzf6e", "commit": "", "validationStatus": "unknown" } } pds.js: { "status": 403, "error": "Forbidden" } ``` Supporting steps: 2 of 2 differed (not counted above); the first, the server's one account: com.atproto.server.getSession. **tranquil**: 55 of 200 checks agree, 145 differ. | check | failed | of | what differed (how often) | |---|--:|--:|---| | blobRecord | 65 | 65 | com.atproto.repo.putRecord (31); com.atproto.repo.createRecord (15); com.atproto.repo.getRecord (11); com.atproto.repo.deleteRecord (10); com.atproto.repo.applyWrites (9); and 1 more | | uploadBlob | 20 | 62 | com.atproto.repo.uploadBlob (20) | | getBlob | 36 | 39 | com.atproto.sync.getBlob (36); com.atproto.sync.getBlob headers (14); then could not go on: The "otherBuffer" argument must be an instance of Buffer or Uint8Array. Received undefined (14) | | listBlobs | 24 | 34 | com.atproto.sync.listBlobs (40) | First difference, at step 1 (blobRecord): com.atproto.repo.uploadBlob. ``` request: { "bytes": "168 bytes", "type": "text/plain ;q=1", "token": "", "chunked": false } reference: { "status": 200, "body": { "blob": { "$type": "blob", "ref": { "$link": "bafkreia5tga7cqjocdfpgwzg7fef54zyodhbgcmqfyfox2vhmnamwjnbce" }, "mimeType": "text/plain ", "size": 168 } } } tranquil: { "status": 200, "body": { "blob": { "$type": "blob", "mimeType": "text/plain ;q=1", "ref": { "$link": "bafkreia5tga7cqjocdfpgwzg7fef54zyodhbgcmqfyfox2vhmnamwjnbce" }, "size": 168 } } } ``` Supporting steps: 7 of 7 differed (not counted above); the first, createAccount (a first account): com.atproto.server.createAccount.