zat.dev/zds
atproto pds · mirror of https://tangled.org/zat.dev/zds
zds 0.25.1 Latest 2 packages, all images
changelog
Reconstructed from git history for everything up to v0.1.1; kept by hand from there.
0.18.4 — 2026-11-24
- fix: PLC updates to existing DIDs send
If-Match: *so they qualify for the directory's update rate limits. New DID submissions omit the header. - deps: pin Zat 0.7.0-beta.1, the beta promotion of the library already
used for
at:spaceURIs and typed OAuth scopes.
0.18.3 — 2026-11-24
- fix: the garden renders lighting and shadows from the current pointer position each frame, so they respond as soon as you move or tap.
0.18.2 — 2026-11-24
- fix: the garden light follows the pointer more closely, and baked lighting and its soft highlights blend as you drag.
- fix: the garden fox takes four distinct steps per stride and stops stepping when it stops moving. Its ears and paws are easier to tell apart from above.
0.18.1 — 2026-11-24
- fix: the patched Spaces SDK lockfile works with both pnpm 10 and 11, allowing the interoperability checks to run in release CI.
0.18.0 — 2026-11-24
-
change: space and space-record addresses use
at:space/. Existing stored space keys are migrated at startup. Clients must obtain fresh space credentials and delegation tokens after the upgrade. -
change: new direct repo, blob and RPC authorization requests use Zat's typed scope validation. RPC authorization uses typed matching for supported grants, with legacy matching for previously accepted scope syntax.
-
fix: the garden carries its clock and wildlife between the home and account pages, including after the viewport has been resized.
-
fix: the account sign-in fields use text large enough to avoid focus zoom on iOS Safari while keeping pinch zoom available.
0.17.4 — 2026-11-24
- fix: switching the home page's time range, or a stats tab, range or resident, no longer loads a new page. The link's page is fetched and the page's content patched in place, so a skin's scene keeps running (the garden no longer restarts on every click). The links stay real links: without JavaScript, or if the fetch fails, they navigate as before.
- perf: the
gardenskin is several times cheaper to draw. The still garden (ground, plants, rocks and their shade) is rendered once into textures and each frame composites only what moves: water, cloud shade, canopy sway, critters, mist. The pond floor is lit in the same bake, clouds and mist are drawn at an eighth of the resolution, and only the critters are uploaded per frame. At 780x1688 (a phone at DPR 3) the GPU time per frame fell from over 15 ms to about 5 ms on an M5 Pro.- one internal resolution per tab, picked by a short benchmark under the poster and capped near 2.2 megapixels; the canvas no longer resizes itself every 0.7 s
- at most 60 fps, 30 on the lowest resolution or after 12 s without input, with the water on a fixed 60 Hz step; nothing renders while hidden
- pollen, fireflies and dust are drawn in GL; the full-screen 2D overlay is gone
- shaders compile in the background, so startup no longer stalls the page
- feat: the
gardenskin's wildlife and details are redrawn. Crows have swept wings with dark tips and a lighter covert band, beat their wings and bank into turns, with faint soft shadows. The fox is one silhouette: a wedge head with dark ears, white cheeks, legs that trot, and a plume tail with a white tip. Butterflies have fore and hind wings that flap. The pond is clearer, with a clean waterline and a faint web of caustics even in still water. Fireflies glow, canopies no longer show seams between their spheres, and rocks are faceted with a little lichen. A soft look (a light blur toward the top and bottom of the screen and bloom on highlights) is made once per bake; page text is never touched. - fix: the paper skin's faint ink (
--ink-faint) and the stats legend meet WCAG contrast (4.5:1). - build:
just ui-gatescrolls every web page under both skins at phone and desktop size in Chrome and fails on frame time, cards drifting from their scroll position, low contrast, blurred or hidden text, or a fixed control covering a button.just releaseruns it and refuses to tag when it fails.
0.17.3 — 2026-11-24
- fix: firehose commits describe their ops the way sync 1.1 requires, as
indigo's relay, goat and the interop lane check them.
putRecordon a key the repo did not hold is acreateop; it was anupdatewith noprev, which strict consumers refuse- each op's
previs the record that op replaced in the batch, so anapplyWritesthat deletes a key and writes it again names the right one deleteRecordof a record that is not there answers{}and writes no commit, as the reference PDS does; it used to emit a commit whose delete op had noprev. anapplyWritesdelete of a missing record is refused with400 InvalidRequest
- fix: every firehose commit carries the MST nodes a consumer needs to
invert it back to
prevData. undoing a delete can mean splitting a subtree the write never touched, and those blocks were missing, so indigo's relay logged "failed to invert commit MST" and goat flagged the commit, for some deletes depending on the tree's shape. the write path now undoes and redoes its ops on the tree before collecting blocks, which loads those nodes. - feat: the container image can stream the database to an S3-compatible
bucket (Cloudflare R2, AWS or any other) with Litestream 0.5.18. It is off
until
ZDS_LITESTREAM_BUCKETis set; without it the image runs zds exactly as before. A machine that starts with no database refuses to replicate an empty one over a non-empty backup, and restores it instead whenZDS_LITESTREAM_RESTORE_IF_MISSING=true.tools/restore-drill.shrestores the replica into a scratch directory, checks it and can boot zds on it;just smoke-backupsruns the loop against a local S3 stand-in. See docs/backups.md. - feat: with
ZDS_BLOB_MIRROR_BUCKETset, a background thread copies every blob to an S3-compatible bucket (SigV4; R2, AWS or any other), backfilling existing blobs first, and deletes the bucket's copy when the blob is deleted. A blob whose file is missing is fetched back from the bucket on read and kept once it hashes to its CID, so a lost volume needs only the database restored. The disk stays the primary copy.just smoke-blob-mirrorchecks it against a signature-checking S3 stand-in. Uses the existingblobs.storagecolumn; no schema change. - fix: garden: the ride toolbar no longer covers the last buttons on a page (Deny and Authorize on a phone's consent page). Room for it is now reserved in the body's own bottom padding, which works whether the page lays out as a block or a flex column; the old spacer did not on the sign-in pages.
0.17.2 — 2026-11-23
- fix: garden: the scene is background only; cards and text are always real DOM and scroll natively. The sign-in card is no longer repainted by the scene (its text made transparent and redrawn from a snapshot), which on a tall consent page showed two offset copies of the text and an empty Authorize button. Nothing in the scene reads the page per frame or per scroll; card rects are measured on resize only. garden.js shrinks from 114 KB to 95 KB.
- fix: garden: the ride toolbar no longer covers the last buttons on a page; the bottom spacer is the toolbar's height plus the safe area.
- fix: garden: page cards scroll natively on phones. The scene no longer paints its own copy of each card on pages other than sign-in, so no white panel trails a frame behind the real card while scrolling; the cards carry a still CSS shadow instead.
- fix: garden: riding the fox or a bird on the sign-in page hides the card's doodles (avatar, fingerprint, key, divider) along with the card, as it already did on other pages.
- fix: the passkey button's doodle gets a thin halo in the button's text color, so it reads against the button in light and dark.
0.17.1 — 2026-11-23
- fix: garden: text is crisp again and phone scrolling is smooth (the card blur and grain layer are gone). The page cards are no longer blurred and no full-screen noise layer sits over the page, so the browser stops repainting them on every frame of the scene.
0.17.0 — 2026-11-23
- build: the garden skin is opt-in at build time with
-Dweb-garden=true. Default builds no longer carry its script and textures (about 250 KB), and refuseZDS_WEB_SKIN=gardenwith a message saying so. - feat: the
gardenskin is now the whole garden sign-in it was drawn from: Brooke's WebGL2 engine, with rolling terrain, swaying trees, rippling ponds with caustics, crows you can knock out of the sky, a fox that follows the pointer and hops onto the card, footprints, pollen and fireflies. On the OAuth cards the scene paints the card and its buttons as raised sheets (the form underneath is untouched); on other pages the cards stay as they are and the scene lights and shadows them. Ride along with a bird or the fox, switch day and night, or hide the page to watch just the garden full screen, from the buttons at the bottom left. The ground textures are served from/web/texture. The garden is the same on every page and carries over as you move between them (its clock, light and wildlife, plus a still shown while the next page's scene wakes), and a light grain sits over the whole frame. Page cards are softened slightly to match. - change: the container image is about half the size: roughly 25 MB to
pull and 50 MB on disk, down from about 51 MB and 155 MB. It ships
zdsandzds-plc-repaironly (the bench and signature tools stay in the source build), on distrolessbase-debian12:debuginstead ofdebian:bookworm-slim. The busybox shell andsqlite3are still there forfly ssh consoleand the runbooks, and the CA bundle still comes from Debian above the trust floor indocs/tls-trust.md. The binaries keep their debug info zlib-compressed, so panics still print file and line:zdsis 13.6 MB instead of 29.9 MB. - change: each release publishes two images, plain and
-garden(ZDS_WEB_GARDEN=true, built with-Dweb-garden=true), toatcr.io/zat.dev/zdsand toknotless.dev/zat.dev/zds(knotless.dev/zat.dev/zds/zds-gardenfor the garden one). Knotless versions drop thevand have nolatesttag to push; knotless computes it.
0.16.0 — 2026-11-23
-
fix: the
gardenskin holds still while the page scrolls. The scene now lives in screen space under the page instead of scrolling with it, so it never lags a frame behind the cards; a finger dragging the page no longer moves the light, scatters the birds or ripples the pond (a tap still does); and a phone's address bar showing or hiding no longer resizes or redraws the ground. On touch screens the paper's sheen sits still instead of repainting on every scroll. -
feat:
ZDS_WEB_FONT(--web-font) picks the reading font for thepaperandgardenpages:nunito(the new default),inter,fraunces,system, or a path to an operator's own.woff2. It is served from this origin at/web/font.woff2; withsystemnothing is served and the pages use the platform sans as before. -
feat:
/signupand/statsfollowZDS_WEB_SKINand the font too. Underpaperandgardenthe join form and the stats tiles, charts and route lists are paper sheets on the ground (with garden's scene under them), so the homepage's "join" link no longer drops a visitor onto the dark glass page. Route names, codes and figures stay monospace or tabular. -
feat: under
paperandgardenthe favicon is a sprout on a paper sheet, and the/og-imagelink preview is the host name in Nunito on a cream sheet over green ground instead of the dark terminal card. The homepage asks for/og-image?v=3, so cached previews refresh. -
feat: the account pages are rebuilt.
/accountis three tabs (overview, security, apps) on one 780px column, with every setting in a grouped card; permissioned spaces hang off the overview as experimental. The "About this PDS" tab is now a footer that names the running version and links the source, the API reference and/stats. The pages followZDS_WEB_SKIN: underpaperandgardenthe cards are paper on the ground like the homepage and sign-in, and garden's scene runs here too. The document is built at compile time per skin, so a request no longer allocates. The overview opens on a nameplate with the account's own display name and avatar, read from its repo, and undergardenthe scene is seeded from the account's DID with one grown tree per app with access. -
feat:
POST /xrpc/dev.zat.account.revokeAppends every grant the signed-in account gave one OAuth client, and the apps tab has a revoke button for each app. Before, the page listed apps it gave you no way to remove. -
fix: signing out of
/accountrevokes the session on the server (deleteSession) instead of only forgetting it in the tab, and an expired access token is renewed once with the refresh token instead of sending you back to the sign-in form.
0.15.3 — 2026-11-23
- feat:
ZDS_WEB_SKIN=paper(--web-skin paper) dresses the homepage and the OAuth cards as paper sheets on a green ground, in light and dark. It is CSS only, layered after each page's own stylesheet fromsrc/internal/web/skins/, adds about 2 KB gzipped to a page and no requests, and drops the glass look's animated, blurred background. The default staysglass. - feat:
ZDS_WEB_SKIN=gardenis paper plus a live ground drawn with WebGL after the page has loaded: a lawn with trees, flowers, pebbles and ponds, all lit by a light that follows the pointer and casts their shadows and the cards', a fox that follows it, birds that flee it, fish that dart from it, butterflies by day and moths and fireflies by night, all free to wander off past the edge of the screen and back. It is one inline script (about 11 KB gzipped), starts when the browser is idle, draws at most 30 frames a second, lowers its resolution on slow devices, stops when the tab is hidden, and leaves the paper skin in place without WebGL, on Save-Data, in forced colours, or (still frame) with reduced motion. - fix: the ARMv6 build compiles again. 0.15.2's export cache counted hits
and misses with 64-bit atomics, which that target lacks; they are
usizenow.
0.15.2 — 2026-11-23
- perf: incremental
getRepo?since=reads only the blocks newer thansincethrough the revision index, instead of every block the account ever wrote. - perf: full
getRepoexports read their blocks in batches, about twice as fast. - feat: sync reads carry ETags and answer
If-None-Matchwith 304, so a client that already has the current commit skips the export. - perf: repeated full
getRepoexports between writes are sent from a cache of the encoded CAR (ZDS_REPO_EXPORT_CACHE_BYTES, default 32 MiB), instead of being rebuilt each time.
0.15.1 — 2026-11-23
- perf: record, repo and sync reads, account and token lookups, firehose
backfill and the public pages read through a pool of read-only SQLite
connections instead of queueing on the one database lock that writes hold.
A burst of writes, a blob GC pass or a slow homepage query no longer stalls
getRecord,listRecordsorsync.*behind it (the contention in the 2026-11-15 incident).ZDS_DB_READERSsets the pool size (default 4);0restores the single lock.
0.15.0 — 2026-11-22
- fix: two OAuth refreshes of the same refresh token in flight at once no longer log the client out. Both passed the checks, only one rotation was stored, and the other still answered with fresh tokens that the server had never saved, so that client's next call failed. The losing request now answers with the winning pair, as a retry inside the 30-second grace window already did.
- fix: OAuth sessions have the reference provider's lifetimes instead of a
14-day refresh window that every rotation renewed. Public clients get a
14-day session; confidential (
private_key_jwt) clients get a 3-month inactivity window and a 2-year absolute limit, where before they also got 14 days. Existing sessions start counting from this deploy, so nobody is signed out by it; public-client users sign in again 14 days later. - fix: a repo write whose
#commitevent would break the subscribeRepos limits is refused instead of committed. applyWrites with more than 200 writes, and any createRecord, putRecord or applyWrites whose event blocks would pass 2,000,000 bytes, answer400 InvalidRequestwith the reference PDS's messages. Before, such a commit was stored and its frame was dropped by relays, so the repo diverged from what they had. - fix:
createRecord,putRecordandapplyWritesrefuse a record that names a blob this account never uploaded, or one under takedown, with the reference PDS's400 BlobNotFound"Could not find blob: <cid>". Before, the write went through and the blob was only listed as missing.importRepostill accepts records whose blobs arrive later. - fix: proxied XRPC answers keep the service's content type and the
response headers the reference PDS forwards (
content-language,atproto-repo-rev,atproto-content-labelers,retry-after), plusvaryandetagas Tranquil does. Before, every answer was relabeledapplication/jsonand those headers were dropped, so clients lost the repo revision and labeler list and non-JSON answers arrived mislabeled. A client'sif-none-matchnow reaches the service and its304comes back without a body. - breaking: OAuth
repoandblobpermissions follow the reference grammar (@atproto/oauth-scopes), at sign-in and in existing grants. Sign-in now refuses, withinvalid_scope, forms that used to be accepted:repo:with no collection, which granted every collection; partial wildcards such asrepo:app.bsky.feed.*;repo?action=createwith no collection; unknown actions or parameters; andblob:or a malformed accept such asblob:*/png. Existing grants with these forms grant nothing for that permission. Clients sending them must ask forrepo:*, exact collections, orblob:*/*instead. - fix:
repo?collection=...permissions grant only the collections they name. They were read as a barerepoand granted every collection. - fix: OAuth accepts
blob?accept=...permissions, which the permission spec allows andblobAllowsalready honoured; sign-in refused them as "Unsupported scope".
0.14.26 — 2026-11-22
- fix: a record written without
$typeis stored with its collection as$type, as the reference PDS does, instead of refused withInvalidRequest"Invalid record type". Grain's iOS app writes favorites this way, so its likes never landed.createRecord,putRecordandapplyWritescreates and updates all fill it; a$typenaming a different collection is still refused.
0.14.25 — 2026-11-22
- feat: a refused repo write is logged.
createRecord,putRecord,deleteRecord,applyWritesanduploadBlobanswers in the 4xx range log the path, status, error, message, account, OAuth app and User-Agent; DPoP nonce challenges log the account, OAuth client and whether the proof was missing or its nonce stale. Before, a write refused for scope, validation, a swap or a nonce left nothing in the logs.
0.14.24 — 2026-11-19
- fix: every OAuth token failure on a DPoP request names its OAuth error in
the body, as the reference does, not only the missing-nonce challenge fixed
in 0.14.23. Clients that read the body, such as atproto-oauth's
DpopRetry, sawInvalidTokenfor all of these.- invalid, expired or revoked tokens, a token bound to another key, a
DPoP-bound token without its OAuth row, or a token not bound to DPoP:
401 invalid_tokenwith aWWW-Authenticate: DPoP error="invalid_token"challenge (several paths sent no challenge at all) - a proof that fails verification:
401 invalid_dpop_proof, with its challenge (wasInvalidTokenwith no challenge) - Bearer-scheme requests, which also carry password sessions and service
auth, keep
InvalidToken
- invalid, expired or revoked tokens, a token bound to another key, a
DPoP-bound token without its OAuth row, or a token not bound to DPoP:
0.14.23 — 2026-11-19
- fix: a resource request with a DPoP-bound token and no nonce is answered
with the reference's challenge body,
{"error":"use_dpop_nonce",…}, instead ofInvalidToken. DPoP clients that read the body before retrying, such as atproto-oauth'sDpopRetry(used by AIP), gave up, so signing in to sites behind AIP failed with a 500 after the token exchange succeeded.uploadBlobalso answers the challenge instead of trying the token as service auth.
0.14.22 — 2026-11-19
- fix: OAuth accepts
rpcpermissions that name their methods withlxmparameters instead of positionally (rpc?lxm=*&aud=did:web:api.bsky.app%23bsky_appview), as the permission spec allows. Sign-in to hud.place failed withinvalid_scope("Unsupported scope"). Proxied calls made under such a grant are checked against eachlxmvalue. - fix:
rpcpermissions follow the reference grammar, at sign-in and when a call is checked. A scope outside it is refused at sign-in and grants nothing in an existing token.- methods are
*or exact NSIDs, positionally or aslxm, not both; prefix wildcards such asrpc:app.bsky.feed.*no longer grant anything - exactly one
aud, and no other parameters;*for both is refused - values compare decoded, so
%2Ais*, and empty&segments are skipped
- methods are
- fix: a client's registered scope with parameters (
rpc:*?aud=…,repo:…?action=create) covers only that exact scope. A client could previously request the same resource with a wideraudor noaction.
0.14.21 — 2026-11-18
- fix:
com.atproto.repo.getRecordanswers not-found with HTTP 400, as the reference PDS does. Germ's sign-in reads a 400RecordNotFoundas "no declaration yet" and failed on the 404 that ZDS and Tranquil returned.- a missing record, a
cidmismatch or a taken-down record: 400RecordNotFound, "Could not locate record: at://…" (was 404) - a repo this PDS does not host, or a deleted account: 400
InvalidRequest, "Could not find repo: …", what the reference returns through the AppView (was 404RepoNotFound)
- a missing record, a
0.14.20 — 2026-11-18
- fix: a client that stops reading a response, such as a proxy that
half-closed a repo export, no longer holds a handler thread until the
process restarts. A response write that makes no progress for 60 seconds
fails and the connection is closed (http.zig
timeout.send). - fix: idle connections to the AppView and chat service that the upstream
has closed are released instead of piling up in CLOSE_WAIT (79 after an
hour on one instance). The proxy uses one HTTP client for all handler
threads instead of one per thread, and Zat
0.7.0-alpha.12(zttp 0.4.1) closes pooled connections the peer hung up before each request.
0.14.19 — 2026-11-18
- fix:
createRecord, and a create insideapplyWrites, on an rkey that already holds a record is refused withInvalidRequest("Record already exists") and leaves the repo unchanged. Before, it silently replaced the record, asputRecorddoes. The reference PDS refuses the same write (its MST will not add a key it already holds); a batch that deletes a key and then creates it still succeeds.
0.14.18 — 2026-11-18
- fix: proxied Bluesky feed requests, such as the Discover feed, reach the
AppView instead of failing with
UpstreamFailure. The Bluesky app can send eleven forwardable headers (topics, platform, device, session and geo); the HTTP client refused more than seven alongsideaccept. Zat0.7.0-alpha.11pins zttp 0.4.0, which sends every header, as the reference PDS does.
0.14.17 — 2026-11-18
- fix: a client that half-closes during a long response, such as a proxy
abandoning a repo export, no longer spins an HTTP event loop at full CPU. On a
shared Fly CPU that spin exhausted the burst quota and stalled every request
until the export finished. The
http.zigfork now stops watching a socket while its handler runs and resumes when the connection returns to keepalive.
0.14.16 — 2026-11-16
- fix: scope audiences and icon data URLs reject signed and malformed percent
escapes through Zat
0.7.0-alpha.10's shared decoder. Brooke's encoded RPC audience and single-decoding fix from PR #33 is preserved; RPC audience comparison remains allocation-free.
0.14.15 — 2026-11-16
-
fix: space grants without explicit collections follow declaration changes when writes are authorized, including after refresh. Explicit collection grants remain fixed. Existing grants from older releases need reauthorization because they stored defaults as an indistinguishable explicit list.
-
fix: blob uploads detect common image, video and audio formats from a bounded prefix before checking OAuth upload permissions. The detected MIME type is used in storage and the returned blob reference; unknown formats retain the request Content-Type. Blob bodies continue streaming to disk.
-
fix: operators can rotate account passwords with
admin.updateAccountPassword; residents can recover them throughrequestPasswordResetandresetPassword. Changes consume reset codes and invalidate direct sessions and remembered logins atomically, while preserving separately managed OAuth grants and app passwords. Email changes invalidate old-inbox codes; invalid codes are rejected before password hashing and valid codes are checked again when consumed.
0.14.14 — 2026-11-15
-
fix: link-preview images show the configured deployment hostname instead of the hardcoded
pds.zat.dev. The PNG is rendered once at startup, and the preview URL is versioned so clients can fetch the corrected image. -
fix: proxied calls are allowed under an
include:permission set'srpc:grants. Expanded grants store their audience percent-encoded (aud=did%3Aweb%3Aapi.bsky.chat%23bsky_chat), but the proxy compared that text byte for byte with the plaindid:web:api.bsky.chat#bsky_chat, so every call underinclude:chat.bsky.authFullChatClient?aud=…(or any audience with a#) was refused withInsufficientScope. The audience is now compared decoded, and aninclude:audience the client sent encoded is decoded before expansion, so it's encoded once rather than twice (%2523).
0.14.13 — 2026-11-15
- fix: an empty response body no longer crashes the server on Linux.
One request for an unknown OAuth client icon aborted the process (the
writevEFAULT behind both production crashes): copying an empty body produced Zig's zero-length placeholder pointer, which Linux rejects even at length zero. 416s for space blobs and empty bodies relayed by the appview proxy took the same path.
0.14.12 — 2026-11-14
- fix: the OAuth return screen shows a continuous animation while the browser hands off to the app. Continue appears after five seconds if the page stays open, following the Bluesky reference PDS.
- fix: the profile viewer menu uses Witchsky's current favicon URL.
0.14.11 — 2026-11-14
- fix: the consent card stays short for apps that ask for a lot. Past four rows of service calls, it lists one row per service ("Act as you on tangled.org · 50 actions: repo, notifications, webhook…") with the areas behind the chevron, and Deny and Authorize stay pinned to the bottom of the screen. Tangled's request went from 21 rows to 7.
0.14.10 — 2026-11-14
- fix:
/statspolish: long route names truncate and unnamed routes read as their method ("describeRepo"); proxied GET and POST are "appview reads" and "appview actions"; axis labels have their own gutter; traffic says when recording began; the apps donut names each slice on hover and keeps error pink out of its colours.
0.14.9 — 2026-11-14
- fix: a firehose subscriber that stops reading is dropped after 10 seconds without taking a frame. Its stream thread spun on the full socket instead, holding a core for as long as it stayed connected.
- fix: a request must arrive within 30 seconds of its first byte and an idle keep-alive connection closes after 75 seconds; both waited forever.
0.14.8 — 2026-11-14
- fix:
getBlobstreams the file from disk instead of reading it whole. Four concurrent downloads of a 30 MB blob peaked at 137 MB; they now peak at 19 MB. - fix: HEAD on
getBlobandgetReporeports the real Content-Length; it was 0.
0.14.7 — 2026-11-14
- fix:
getRepowrites the repo CAR to the socket instead of building it and copying it into the response. Four concurrent exports of a 32 MB repo peaked at 543 MB; they now peak at 144 MB. The CAR is unchanged.
0.14.6 — 2026-11-14
- fix:
/statsnames a password or app-password session by the app that sent it (theOriginhost, else theUser-Agentproduct), so Bluesky's traffic is Bluesky rather than "password sessions". - fix: the apps panel drops its one-bar chart in the 1h range and shows
<1%for an app with a request but under one percent.
0.14.5 — 2026-11-14
- fix: a request body of 64 KiB or more to a route that reads a small JSON body (createSession, the invite-code, admin, account-deletion and email routes) is refused with 413. It panicked the whole server.
0.14.4 — 2026-11-14
- fix: a relay that resets during the
subscribeReposhandshake no longer counts its connection out twice. The count underflowed, after which every subscriber was refused as too many and the next refusal panicked.
0.14.3 — 2026-11-14
- fix: a panic names the request its thread last served (method, path and route; no query string) before the stack trace, which can stop inside the HTTP library with no zds frame.
0.14.2 — 2026-11-14
- fix: the zds brand stays in the same spot on every page.
/statsused a 1120px column,/account900px and/apia taller header, so the brand moved between pages; all now use the homepage's 780px column and 44px header row. - fix:
/statsuses the homepage's stylesheet, background, saved theme and accent, and the same header.
0.14.1 — 2026-11-14
- fix: the homepage chart spans its axis. With few bars (all time is one per month) they sat bunched on the left and read as nothing written in recent months, and the readout lit a bar left of the one under the pointer.
- fix: the collections filter and the section titles line up, and the filter no longer repeats the collection count.
0.14.0 — 2026-11-14
- feat:
/statscharts request history instead of tables reset by every restart. It has 1h, 24h, 7d and 30d ranges (?range=) and three tabs (?tab=):- overview: requests, server errors, p95 latency and writes with trend lines; traffic by kind (reads, writes, sync & export, appview proxy, sign-in); p50/p95 latency; the slowest routes in plain words; one summary line; recent slow or failed requests since start.
- repos & sync: open firehose connections, repo exports, records and storage, writes and sync traffic and their routes.
- accounts & apps: sign-in counts and routes, and authenticated requests
by app as a donut and over time, for every resident or one
(
?resident=).
- feat: request history is kept in the database: per-minute counts by
kind for two days, per-hour counts by route, by account and app, and
storage snapshots for ninety days, each with a latency histogram so
percentiles hold across any range. A worker writes them every 20s.
- storage:
telemetry_minutes,telemetry_hours,telemetry_appsandtelemetry_storage, created on start.
- storage:
0.13.1 — 2026-11-14
- fix: the armv6 build compiles again; 0.13.0's homepage activity query indexed buckets with a 64-bit integer.
0.13.0 — 2026-11-14
- feat: the homepage chart counts records by when they were written, read
from their TID keys, so a resident who moved here shows their whole history
rather than the hours since their import. It has 24h, 7d, 30d, 1y and all
ranges (
?range=), and pointer, tap or arrow keys read out a bar.- storage: a
records (rkey, did)index, built on start.
- storage: a
- feat: homepage collections show the top ten, then "show all N"
(
?collections=allwithout script), with a filter box over the whole list. - feat: tapping a resident scopes the chart and collections to them
(
?resident=handle) behind a "showing @handle" chip. Their profile link is an icon at the end of the row. - feat: the OAuth return page shows a bead hopping from this server to the app's icon while it hands the browser back, centred and sized for any screen, and still for reduced motion.
- change: the homepage header is account and menu; the preferences button
is gone and appearance lives in the menu sheet. The
zds.header.preferencesdrawing slot is retired. - fix: the homepage heading fits a phone; a long host overflowed it.
- fix: the sign-in card points an account without a passkey at where to
add one ("Sign in with a passkey next time. Add one", opening
/account/managein a new tab). The redesign had dropped it.
0.12.3 — 2026-11-13
- fix:
importRepoaccepts repo CARs larger than 2 MB or 10,000 blocks, up to the 128 MB request limit. Migrating a larger account into zds failed with "invalid repo CAR". zat moves tov0.7.0-alpha.9.
0.12.2 — 2026-11-13
- fix: after consent, the browser returns to the app through a fresh
/oauth/authorize/returnpage that navigates on load. 0.12.1's script navigation still counted as a tap, so stream.place's universal link (its AASA claims every path) kept opening the app without the code. A granted code is shown only to the browser that signed in for the request, and only until the client exchanges it. - fix: an authorization request is answered once. A consent page restored with Back no longer issues a second code.
0.12.1 — 2026-11-13
- fix: Authorize, Deny and Cancel return to the app from script after a background post, as the reference PDS does. A form redirect onto a domain an installed app claims as a universal link (stream.place claims all of its URLs) opened the app without the code, so its iOS sign-in spun after Authorize. Without JavaScript the plain form post still works.
0.12.0 — 2026-11-12
- feat: the consent page says what an app will be able to do. Under "It will be able to", each row has a bold line for what the app can do ("Manage your tracks, lists, likes and profile", "Look up Bluesky profiles", "Use plyr-jams-next.fly.dev to join jams and authorize uploads and downloads") and a muted line for where or whose ("plyr.fm records", "via any moderation service"). Rows with more to say, such as many record types or several kinds of private space, expand. Everything is derived from the requested scopes, never written per app.
- feat: the info button opens a permissions sheet (a bottom sheet on phones) with the app's client ID, the record types it may write, file uploads, what it may view, write and manage in each kind of private space and whose, the services and methods it may call, and a "Copy raw scopes" button.
- feat: each permission row's icon is a
zds.consent.*drawing slot an operator can replace with a Doodl drawing. - fix: app icons with rounded or padded transparent edges fill their tile instead of shrinking into an inset one.
0.11.2 — 2026-11-12
- fix: the consent page is quieter. Permission rows show their title until tapped, and more than three record types from one service are counted rather than listed. The app icon fills its tile, or sits on a tile chosen from its own brightness when transparent. The details dialog lists one scope per line and scrolls inside a bounded height.
0.11.1 — 2026-11-12
- feat: the consent page shows an app icon its homepage inlines as a
data:image/...URL, decoded with the same limits as a fetched icon. - refactor: development and CI tools run on uv.
Each
tools/*.pyis auv run --scriptfile with inline metadata (standard library only), every call site usesuv run, and CI installs uv. Running the smokes locally needs uv instead of a systempython3.
0.11.0 — 2026-11-12
- feat: redesigned sign-in and consent pages, in two steps. Signing in
(password or passkey) binds the browser to that one authorization request
with a short-lived
__Host-zds-signincookie; consent is a separate Authorize step. Alogin_hintnaming a local account, by handle or DID, starts from that account with its profile name and avatar; a remembered browser gets an account picker. Consent rows are derived from the requested scopes, the app is named by its domain, and its icon is fetched and served by the PDS (/oauth/client-icon). Cancel is always reachable and errors are inline. JSON callers still sign in and consent in one request.- storage:
oauth_requestsgains three nullable columns for the pending browser sign-in, added on start.
- storage:
- feat: conditional mediation offers saved passkeys from the username field's autofill, and a passkey assertion is matched to the challenge it signed, so the autofill and explicit passkey requests cannot collide.
- refactor: the resident appearance layer (
appearance.css,appearance.js) is shared by the account portal and the OAuth pages. - docs:
docs/describes only current behavior. Upgrade guides for earlier Spaces alphas, investigations, the August MST incident and dated benchmark logs moved todocs/history/, so links todocs/permissioned-data-proposal-94.md,docs/simplespace-upgrade.md,docs/space-policy-upgrade.md,docs/space-host-migration.md,docs/attested-payments-and-write-delegation.md,docs/incident-2026-08-18-empty-mst-node.md,docs/migration-verification.md,docs/getrepo-notes.mdanddocs/spindle-cache-proposal.mdnow resolve underdocs/history/, some under new names.
0.10.2 — 2026-11-12
- fix:
getLatestCommitandlistRepoOpswrite the commit'sdataas unpadded$bytes, like the rest of zds' JSON and the reference PDS. zat moves tov0.7.0-alpha.8.
0.10.1 — 2026-11-12
- fix: passkey sign-in makes the account checks the password path makes. A
taken down, suspended or deactivated account is refused, and a passkey for
an account other than the one an OAuth request's
login_hintnames no longer completes the request.
0.10.0 — 2026-11-12
Spaces follow the November 12 alpha (bluesky-social/atproto d4def6e9f,
published as 0.0.0-spaces-alpha-20261112204144), which settles the API's
names and shapes ahead of beta. This is a hard cut: syncers move from
getSpaceCredential and registerNotify to authorizeSpaceSync with
notify, repo hosts send notifyRepoUpdate with repoRev and data, and
commit MACs use the atproto-space-commit tag. Notification registrations
made before the upgrade are dropped; syncers re-register on their next
authorization.
- change: commit MACs are requested and answered with the tag
atproto-space-commit, as the November 12 alpha settled; ZDS answeredatproto-space-repo. A request taggedatproto-space-repois now another profile's and ignored, so a credential read carrying only that answersInvalidSpaceMac. zat moves tov0.7.0-alpha.7. - change:
listWritersentries are the sharedcom.atproto.space.defs#repoWrite{repo, repoRev, data, spaceRev}and#repoRemoved{repo, spaceRev}, each with its$type, in place of{repo, latest, spaceRev}. A syncer branches on$type; a removed repo has norepoRevordata. - change:
getSpaceCredentialisauthorizeSpaceSync. Its output addsspaceRev, the space's current revision, omitted before the space's first update. A deleted space answersSpaceDeletedbefore the delegation token or client attestation is checked, so an invalid token no longer hides the deletion. - change: syncers register for notifications through
authorizeSpaceSync'snotify: {endpoint, token}instead ofregisterNotify.registerNotify,unregisterNotifyandnotifySpaceStatusare gone.- a new registration is confirmed first: ZDS calls the endpoint's
confirmRegistrationwith{space, token, challenge}and needs the challenge back, or answersRegistrationNotConfirmed. Renewals are not confirmed again. - a registration is (space, endpoint, token); each authorization renews it to its credential's expiry. A refusal withdraws it; a taken-down or deactivated authority does not.
- ZDS sends
notifySpaceUpdate{space, token, update}without service auth:#repoWriteand#repoRemoved(withprevSpaceRev) to active registrations, best effort;#registrationExpiredonce in place of the next update after a lapse; and#spaceDeletedto every registration, lapsed ones too. The last two are retried from one minute up to every 12 hours for at least 72 hours, wait out an authority's takedown, and a syncer that rejects an expiry notice is unregistered. - endpoints are fetched as untrusted URLs, at their origin.
- storage:
permissioned_space_notify_registrationsis rebuilt keyed by (space, endpoint, token), andpermissioned_space_deleted_outboxbecomespermissioned_space_syncer_outbox. Existing registrations and pending deletion notices are dropped; syncers re-register on their next authorization.
- a new registration is confirmed first: ZDS calls the endpoint's
- change:
notifyRepoUpdateis only a repo host's call to the space host, and takes{space, repo, repoRev, data}in place of{space, repo, latest}. ZDS sends that shape to remote space hosts and refuses a body withoutrepoRevanddata. - change: a managing app that can't be resolved, errors, answers
without boolean
readandwrite, or takes more than 10 seconds is an upstream failure, not a denial.authorizeSpaceSyncanswers 502UpstreamFailure, issues nothing and keeps the syncer's registration;notifyRepoUpdateanswers 502UpstreamFailure, so the repo host retries rather than dropping the write. Before, all of these answeredSpaceNotFoundorForbidden. - change:
importRepoandimportSpaceMetarequireContent-Type: application/vnd.dasl.star; any other encoding answers 400InvalidRequestbefore the body is read.getRepoandexportSpaceMetaalready answered with it. - change: a malformed
cursoronlistSpaces(not a space URI),listMembers(not a DID) orlistRecords(notcollection/rkey) answers 400InvalidCursor, as the lexicons now declare; before, it was ignored. - change:
createSpace,updateSpaceandimportSpaceMetarefuse a memberspace policy whoseallowedAppsentries are not URIs. Stored policies are not re-checked. - test: the SDK interop lane installs the published November 12 alpha of
@atproto/space(0.0.0-spaces-alpha-20261112204144) from npm instead of vendored tarballs.
0.9.1 — 2026-11-12
ZDS drops its private copies of general atproto code (PLC operations, JWKs,
DPoP, client assertions, service auth, JWT decoding, AT JSON, CIDs, TIDs,
datetimes, handle and lexicon resolution, firehose frames) and uses zat
v0.7.0-alpha.6 for them. Most entries below are where zat follows the
reference implementation more closely than the copies did.
- fix: a JWK whose point is not on its curve is refused (DPoP,
private_key_jwt, client attestations). Before, only the parity ofywas read, so a DPoP proof could carry a forgedy, verify under the real key, and bind the token to a different thumbprint.- coordinates are read as Node reads them: padding, the standard alphabet and leading zero bytes are accepted.
- a JWKS key with its own
algmust match the assertion'salg.
- fix:
createAccount(migration) anduploadBlobresolve a service-auth issuer through the configured PLC directory, asatproto-proxytargets, imported repos and permission-set authorities now also do; before, they always askedplc.directory. - change: inbound service auth (
createAccount,uploadBlob, space methods)- checks run exp, aud, lxm, iss: an expired
createAccounttoken with a wrong issuer or audience is 400ExpiredToken(was 401InvalidToken); a space token with a badissand the wronglxmis 401BadJwtLexiconMethod(wasInvalidToken). issmust be a DID with at most one non-empty fragment; atypofat+jwt,refresh+jwtordpop+jwtis refused; a non-stringlxmornonceis refused.- a bad signature is retried once with a freshly resolved key, so an issuer that just rotated is accepted.
uploadBlobchecks a local account's token against its stored key without resolving the DID;createAccountuses the issuer's#atprotomethod and requires its controller to be the DID.
- checks run exp, aud, lxm, iss: an expired
- change: DPoP compares
htuin RFC 9449 normal form (scheme and host case, default port), floors a fractionaliat, and checksathbefore the nonce, so a proof with a wrongathgets an invalid-proof error rather thanuse_dpop_nonce. - change: client assertions and attestations refuse an
iatmore than 60 seconds ahead even whenexpis present, require a non-empty stringjti, accept an arrayaudcontaining the expected audience, and floor fractional times. Error names are unchanged. - change: outbound service JWTs (
getServiceAuth, the appview proxy, space calls) JSON-escape their claims and carry a 32-hex randomjti; the payload members are orderediat, iss, sub, aud, exp, lxm, jti. - change: record JSON (
createRecord,putRecord,applyWrites, space records)- a whole-number float such as
1.0is stored as the integer, as the reference does; other floats are stillInvalidRequest. $bytestakes standard base64 with exact padding or none; wrong padding is refused, where any run of=was stripped.$bytesor$linkwith a non-string value is refused rather than stored as a map; an unparseable$linkis 400, was 500.
- a whole-number float such as
- change:
$bytesis written unpadded, as the reference writes it (listSpacesdata,#repoWritelatest.data, bytes in records read back). Floats in imported data print in JavaScript form (1e300). - change:
notifyRepoUpdaterequireslatest.datato be exactly{"$bytes": …}. - change: a blob
refwith keys beside$linkis not a blob reference. - change: CIDs in requests are fully validated; a path-form
did:webatproto-proxytarget is refused; a lexicon authority's TXT record must hold exactly onedid=; handles under reserved TLDs are refused when resolving. - change: a
#syncframe takes its did, rev and CID from the stored commit block, so it cannot disagree with the commit it carries.#identity,#accountand FutureCursor frames are byte-identical. - change: PKCE verifiers are compared in constant time.
- refactor: PLC genesis and
signPlcOperationbuild and sign operations withzat.plc; a fixture pins the genesis DID and JSON.
0.9.0 — 2026-11-12
Spaces follow the permissioned-data tip after bluesky-social/atproto#5862,
#5865 and #5877. This is a hard cut: clients on the earlier MAC headers or
signature label, and syncers reading repoRev/data from listWriters, must
move with it.
- change: the holder's signature over a space credential use is found by its
atproto-space-credentialtag under any label (the reference SDK now signs undersig); before, only the labelatproto-space-credentialwas read, so current SDK clients gotBadSpaceSignature. - change: MACs are HTTP message signatures. A syncer asks with an
Accept-Signaturemember taggedatproto-space-repooratproto-space-recordand keyed by its P-256 key share; the host answers with anAtproto-Space-CommitorAtproto-Space-Recordheader and anhmac-sha256Signature-Input/Signatureover it. The shared secret is HPKE's secret export with infoatproto-mac.Atproto-Space-Want-MacandAtproto-Space-Macare gone. - change:
listWritersentries andnotifyRepoUpdatecarrylatest, a#repoWrite(rev,data) or#repoRemoved, in place ofrepoRevanddata.removeWriter,removeMembers, and aputMembersrevoking write mark the writer removed at the nextspaceRev, forward arepoRemovedto registered syncers, and keep listing it until it writes again.- a repo host may only send
repoWrite. exportSpaceMetaleaves removed writers out.- under
publicWrite, a member whosewriteis false is not a writer. - storage:
permissioned_space_writersgainsremoved_at, added on start.
- change: every
listRepoOpspage carries the repo's currentcommitand its MAC, beside the cursor on a full page; a repo with no writes isRepoNotFound. - fix: a
subscribeRepos#syncframe's CAR is rooted at the commit, as the lexicon requires; it named the MST root, a block the CAR did not hold. - change: space credentials no longer carry the attested
client_idclaim, which nothing read and the reference does not issue. - refactor: ZDS's private copy of
@atproto/space(space URIs, tokens, credential signatures, KEM, MACs, LtHash, repo and space meta archives) is gone; it useszat.spacefrom zatv0.7.0-alpha.5. websocket follows zat tov0.3.1. - test: the SDK interop lane runs
@atproto/spacefrom the tip at2d4a6736f.
0.8.2 — 2026-11-11
- change: space metadata archives (
exportSpaceMeta,importSpaceMeta) name the writer fieldrepoRev, as at the permissioned-data tip;revis no longer read or written. - test: the SDK interop lane runs
@atproto/spacebuilt from the permissioned-data tip (aaf3311c), vendored as tarballs, instead of the November 5 npm snapshot.
0.8.1 — 2026-11-11
- fix: an OAuth grant written
space?spaceType=Xwas stored without an authority or the type's collections, and a grant without an authority matched every authority, so an app could act in other authorities' X spaces. Both scope forms now resolve to the same grant at issuance, a grant without an authority matches nothing, and PAR refuses a scope naming its type twice, not at all, or as a glob (a space type is*or one exact NSID). - fix: DNS lookups for outbound requests (OAuth client metadata, did:web proxy targets, managing apps, notify services) no longer hang a request thread when a name has more than 32 answers.
- fix: subscribeRepos no longer writes a frame to a closed connection's
descriptor, which another client could have reused, and
closewaits for the stream thread before the websocket frees the connection. - fix: the
service-refs-v1migration no longer fails startup when a space held bothdid:xanddid:x#atproto_pdsnotify registrations. - fix: service auth on space methods,
uploadBlobandcreateAccountrequireslxmto be the called method;*is refused. Space methods answer a mismatch withBadJwtLexiconMethod. - change:
getSpaceCredentialanswersSpaceDeletedwithout a delegation token too, so a public space's syncer learns of the deletion. - change: notification issuer, audience, and writer mismatches answer 403
Forbiddeninstead of 401InvalidToken/BadJwtAudienceorAccountNotAuthorized. - change: a bearer read of another account's space repo answers
RepoNotFound, as an absent repo does, instead ofNotPermitted. - change:
managingAppand notify services must be on did:plc or a pathless did:web;listRepoOpsrefuses asincethat is not a TID. - refactor: removed the unused renamed-method retry, the bare-DID endpoint
lookup, and the old notification helper names;
zig build testnow compiles the bench and tools, which v0.8.0 broke unnoticed. - docs: the API reference lists the tip's space parameters; docs describe current scope, notification and read behavior.
0.8.0 — 2026-11-11
- change: spaces speak only the current
permissioned-databranch. The November 5 alpha's methods are gone:listRepos,notifyWrite,notifyCredentialRevoked,notifySpaceDeleted,memberspace.putMemberandremoveMember,managedspace.checkUserAccess, and thegetRepoStatealias. UselistWriters,notifyRepoUpdate,notifyCredentialsRevoked,notifySpaceStatus,putMembers/removeMembers,checkAccess, andgetLatestCommit. Outgoing notifications and managing-app checks no longer fall back to the old names. - change: space fields follow the branch only. Responses drop
uri(createSpace,getSpace,listSpaces),didon writer entries, andisOwneronlistSpaces; requests dropcredentialKid(usecredentialKey),didonremoveWriter(userepo),didonlistSpaces(usespaceDid),sinceonlistBlobs, andreverseonlistRecords. - change:
managingAppandregisterNotify'sservicemust bedid#serviceIdreferences; a bare DID is refused. On upgrade, stored policies and notification registrations with a bare DID becomedid#atproto_pds, which resolves to the same endpoint the bare DID did. - change:
unregisterNotifytakes service auth from the service being withdrawn, as on the reference PDS:issmust be that service's DID andaudthe space authority. A space credential no longer withdraws a registration, since it doesn't name a service. - change: a malformed
listRepoOpscursor answersInvalidCursor, notMalformedCursor. - feat: OAuth space scopes may name their type with a
spaceTypeparameter (space?spaceType=<nsid>&…) as well as positionally (space:<nsid>?…), as the reference scope parser does. A scope that names it both ways grants nothing.
0.7.10 — 2026-11-11
- refactor: zat and websocket.zig are pinned to tagged releases, zat
v0.7.0-alpha.3 and websocket.zig v0.3.0, instead of commits. zds no longer
compiles C zlib; SQLite is its only C dependency, and it still links libc
for it and for the WebSocket server. The firehose does not offer
compression, so the new permessage-deflate codec is not on its path.
- zttp 0.3.0, through zat: deadlines are absolute across redirects and
retries, a body cut short of its Content-Length is an error rather than a
short 200, and a redirect to another origin drops
Authorization,CookieandProxy-Authorization.
- zttp 0.3.0, through zat: deadlines are absolute across redirects and
retries, a body cut short of its Content-Length is an error rather than a
short 200, and a redirect to another origin drops
0.7.9 — 2026-11-10
- fix: requests may carry up to 16 KiB of request line and headers, up from httpz's 4 KiB default. An OAuth authorize URL for a loopback client that inlines its metadata is about 4 KB, so with a browser's own headers it was refused with 431 and sign-in stalled (zds#26).
0.7.8 — 2026-11-09
- fix:
com.atproto.identity.signPlcOperationreturns valid JSON. Since PLC signing landed, its response left the outer object unclosed, so a client moving an account away from ZDS could not read the signed operation. - fix: the
FutureCursoranswer no longer closes the socket from the stream's thread while the connection's reader is using it. 0.7.7 could hand that reader a closed descriptor, which a debug build aborts on and a release build mishandles. The stream now sends the error and a close frame and leaves the socket to the reader. - security: emailed codes are scoped to their purpose, as on the reference
PDS. Each account held one code, so a code requested to confirm an email
could also authorize a PLC operation or an email change. Codes now live per
purpose (
confirm_email,update_email,plc_operation, and so on) and authorize only that one. Codes outstanding at upgrade stop working; request a new one. - feat:
ZDS_MAIL_PROVIDER=outboxkeeps mail in the database instead of sending it, anddev.zat.admin.listMailreturns it, codes included, to a holder of the admin token. It is for test and eval hosts, where an agent needs the code that confirms an email, signs a PLC operation, or deletes an account. - feat: an account can delete itself, as on the reference PDS.
com.atproto.server.requestAccountDeleteemails adelete_accountcode to the account's own session (not OAuth or an app password, and not under a takedown), andcom.atproto.server.deleteAccounttakes the DID, password, and code, then removes the account as the admin route does and emits adeleted#accountevent. - feat:
ZDS_PLC_TOMBSTONE_ON_DELETE=truetombstones a deleted account'sdid:plcwith the PDS rotation key, before the account is removed, so an eval or test host does not leave identities behind. A refused tombstone leaves the account in place. Off by default: the reference PDS never tombstones on deletion, and a tombstone cannot be undone.
0.7.7 — 2026-11-09
- fix:
subscribeReposanswers a cursor ahead of the latest seq with aFutureCursorerror frame and closes, as the spec and the reference PDS do, instead of holding the stream open and silently sending nothing. - feat:
ZDS_SEQ_FLOOR(--seq-floor) starts sequencing above a given seq, so ZDS can replace another PDS on the same hostname without relays holding a cursor it hasn't reached (see the operator guide). - change: spaces follow the lexicon review (bluesky-social/atproto#5800,
not yet in a published alpha). Errors are renamed:
NotSpaceOwnertoNotAuthorized,BadSpaceMactoInvalidSpaceMac, andUserNotAuthorizedtoAccountNotAuthorized.importRepoanswers a malformed archive withInvalidRepoFileand another account's repo withRepoMismatch, andimportSpaceMetaanswers a malformed archive withInvalidSpaceMeta.getRepoandexportSpaceMetaare served asapplication/vnd.dasl.star. - change: space fields take the lexicon review's names, and keep the
November 5 names alongside them until clients move.
createSpace,getSpace, andlistSpacesreturnspaceas well asuri;getSpaceCredentialtakescredentialKeyorcredentialKid;removeWritertakesrepoordid;listSpacesfilters byspaceDidordid; andlistReposentries carryrepoas well asdid.listSpacesentries add the caller'srepoRevanddatain each space, and the space's latestspaceRevwhen the caller is its authority. - change: space methods answer to the lexicon review's names:
listWriters(waslistRepos),notifyRepoUpdate(wasnotifyWrite),notifyCredentialsRevoked(wasnotifyCredentialRevoked), andnotifySpaceStatuswith statusdeleted(wasnotifySpaceDeleted). The old names stay routable, and each checks the service token'slxmagainst the name it was called by. Outgoing notifications use the new names and fall back to the old ones when a peer answers 404 or 501. - feat:
com.atproto.memberspace.putMembersandremoveMemberschange up to 100 members (or DIDs) in one commit. A DID listed twice inputMemberstakes its last entry, andremoveMembersleaves DIDs that are not members alone, writer set included.putMemberandremoveMemberstill work. - feat: managed spaces ask their app with
com.atproto.managedspace.checkAccess, which answersreadandwriteat once, and fall back tocheckUserAccessfor apps that don't serve it yet. A credential request without a delegation token now asks the app about an anonymous reader (norepo) instead of being refused outright. ZDS answerscheckAccessitself with a denial, as it doescheckUserAccess. - feat:
unregisterNotifywith a bare DID withdraws every registration under that DID, as the lexicon review specifies. ZDS still accepts a bare DID formanagingAppandregisterNotify, which the review narrows todid#serviceId, until clients on the November 5 alpha have moved. - feat: operators can take down a single record or blob, and read any
subject's status, as on the reference PDS.
com.atproto.admin.updateSubjectStatusaccepts astrongRefor arepoBlobRefbesides an account. A taken down record answersrepo.getRecordwithRecordNotFoundand drops out ofrepo.listRecords. A taken down blob is no longer served bysync.getBloborspace.getBlob, as proposal 0016's moderation section asks of a repo host, and can't be uploaded again.com.atproto.admin.getSubjectStatusis new. - feat:
com.atproto.sync.getBlocksreturns the requested repo blocks as a CAR with no roots. As on the reference PDS, a CID the repo doesn't hold is named in a 400InvalidRequest, and repo availability is checked like the other sync reads.
0.7.6 — 2026-11-09
- fix: a space write's notification is delivered once. The write queued
its notification ready to claim and then delivered it inline, so the
background worker could claim the same row and deliver it again, asking a
managing app twice or sending a remote authority a duplicate
notifyWrite. The row is now queued leased to the inline delivery, which releases it to the worker only after a transient failure.
0.7.5 — 2026-11-08
- fix:
com.atproto.server.deleteSessionsigns out. It was unrouted, so a client logging out left its refresh token valid. It takes the refresh token, as the reference PDS does, and revokes that session. - security: a stored password hash is no longer accepted as the password. Login checked PBKDF2 and then compared the submitted password with the stored value directly, so anyone with a copy of the accounts table could sign in by presenting an account's hash. Hashed accounts now verify only through PBKDF2.
- security: the admin token is compared in constant time.
- fix: admin routes accept the official PDS's admin credential, HTTP Basic
with username
adminand the admin token as the password, alongsideBearer <token>, so admin tools written against the official PDS work. - fix:
activateAccountcreates a missing repo instead of answering 500. - feat: a taken down account can still leave, as proposal 0016 intends.
createSessionwithallowTakendown: truegives it a session limited tocom.atproto.takendown, accepted only where it needs to migrate away:sync.getRepo,getBlob, andlistBlobson its own repo, the space exports (listSpaces,exportSpaceMeta, and its space repo'sgetRepo,listBlobs,getBlob),getPreferences, PLC operation signing, andgetServiceAuthforcom.atproto.server.createAccount. Without the flag a taken down account still getsAccountTakedown, andcreateSessionnow checks the password before revealing an account's status. - fix: token and account-status errors match the reference PDS.
- A token used outside its scope, such as the takedown session on a write,
gets 400
InvalidToken("Bad token scope") instead of 401. - Writes from an inactive account get 401
AccountTakedown,AccountSuspended, orAccountDeactivatedinstead of 400Repo*. Repo and space writes and space management refuse takedown and deactivation.importRepo,uploadBlob,putPreferences,updateHandle,createAppPassword,getAccountInviteCodes,requestEmailConfirmation, andrequestEmailUpdaterefuse takedown only.listMissingBlobschecks no status. - The takedown session can deactivate the account and proxy
com.atproto.moderation.createReportto appeal. Deactivating under a takedown keeps the takedown, and clearing the takedown leaves the account deactivated. A suspended or deleted account is still refused. - An admin token reads any repo that is not deleted through
sync.*and the space reads. - Space reads check the token before the repo's status.
- A takedown ends refresh tokens and revokes OAuth grants but leaves access
tokens valid until they expire, so a signed-in client gets
AccountTakedowninstead ofInvalidToken.
- A token used outside its scope, such as the takedown session on a write,
gets 400
- fix: spaces follow the November 5 alpha's account-status rules. A taken
down, suspended, or deactivated authority no longer issues space credentials
or serves
listRepos(RepoTakendown,RepoSuspended,RepoDeactivated). A deactivated account can no longer create, update, or delete spaces, change members or writers, or write or clear space records; it can still read its own space repo, assync.getRepoallows.getRepoanswers an unavailable repo with 400 like the other space reads instead of 403.
0.7.4 — 2026-11-06
-
fix: repeated public repo reads no longer leak account and record allocations.
describeRepo,getRecord, andlistRecordsrelease their data when the request ends, preventing the gradual memory growth that repeatedly OOM-killed the PDS. -
docs: deploys build the release binaries in CI and send Fly a runtime-only image (
Dockerfile.fly), so Fly no longer compiles zds and the machine swap takes seconds. The manual path indocs/deployment.mdnow runstools/fly-deploy.shfrom a clean archive;Dockerfilestill builds the published image from source.
0.7.3 — 2026-11-02
- fix: firehose events stored before 0.7.2 are rewritten on startup to carry
since,rebase, andtooBig, so a consumer replaying from an old cursor no longer rejects them. hydrant treats such a frame as a stream error and reconnects at the same cursor, so one bad stored event stopped it for good.
0.7.2 — 2026-11-02
- fix:
#commitfirehose frames carrysince(null on a repo's first commit),rebase, andtooBig, whichsubscribeReposrequires. Strict consumers such as hydrant rejected zds commits that left them out; indigo and Tranquil both send them. - refactor: zat 0.6.0 → 0.6.4, which stores TIDs in 64 bits.
0.7.1 — 2026-10-29
- feat: spaces move with their authority's account.
com.atproto.space.exportSpaceMetadownloads a space's policy, member list, and writer set as anatproto-space-metaSTAR archive;com.atproto.space.importSpaceMetaandcom.atproto.space.importRepoload a space and the account's repo in it on the new host, replacing what it held. See the upgrade guide.- Imports refuse app-password sessions; under OAuth they need
manage=createandmanage=update, orcreatefor each imported collection. - Imported writer entries keep their
spaceRev, solistReposcursors stay valid, and an imported repo gets a new rev with unchanged data.
- Imports refuse app-password sessions; under OAuth they need
0.7.0 — 2026-10-29
- feat!: spaces follow the October 29 alpha. One
policyunion (com.atproto.personalspace.policy,com.atproto.memberspace.policy, orcom.atproto.managedspace.policy) replaces the simplespace read policy, write policy, and app access, and everycom.atproto.simplespace.*route is removed. See the upgrade guide.com.atproto.space.{createSpace,updateSpace,getSpace,deleteSpace},com.atproto.memberspace.{putMember,removeMember,listMembers}, andcom.atproto.managedspace.checkUserAccess.updateSpacereplaces the policy wholesale, and a new$typedrops the old policy's member list.getSpaceis owner-only and returns{uri, policy}.- A managing app is asked about reads and writes, with
lxm=com.atproto.managedspace.checkUserAccess. getSpaceCredentialchecks the user before the app and answers a refused user withSpaceNotFoundinstead ofUserNotAuthorized.publishPolicyandpublishMemberskeepcom.atproto.space.policyandcom.atproto.memberspace.memberrecords in the authority's repo; direct writes to those collections are refused in any repo.- New
com.atproto.space.removeWriterandcom.atproto.space.clearRecords.removeMemberandputMemberwithwrite: falsealso drop the writer. SpaceNotFound,NotSpaceOwner,AppNotAuthorized, andPolicyMismatchanswer HTTP 400, as in the reference PDS;SpaceNotFoundwas often 404 and the others 403.- Startup converts stored configurations as the reference PDS does and
renames
simplespace_memberstomemberspace_members. Runtools/space-policy-preflight.sqlfirst to list spaces whose access changes.
- refactor:
com.atproto.space.getRepoframes its STAR archive withzat.star.Writerinstead of a local frame writer. The bytes are unchanged; the reference-archive test pins them. - refactor: adopt zat 0.6.0, the first stable release of its Zig 0.17
line, and websocket 0.2.0, which zds shares between zat and httpz. zttp
0.2.0 comes with zat. The build's
build_optionsmodule now carries anameso it stays distinct from zat's when both report version 0.6.0. - feat:
com.atproto.admin.deleteAccountpermanently deletes an account with the admin token, following the reference PDS: it removes the account and its repo, blobs, sessions, credentials, and spaces, leaves one#accountevent withstatus: "deleted"on the firehose in place of the account's history, and notifies crawlers. Unknown DIDs returnAccountNotFoundrather than succeeding silently.seq_eventsno longer cascades fromaccounts, so the deleted event outlives the account row. A startup migration rebuilds the table once.
- security: HTML pages apply only the inline styles they ship. Each page's
policy names its
<style>elements by SHA-256 instead of allowing'unsafe-inline', so injected markup can no longer restyle a page, for example to hide or overlay account controls.styleattributes no longer apply anywhere; the homepage's per-request colours and bar sizes moved into one generated<style>element hashed with each response. - feat: the site favicon is the stacked-records mark on the zat.dev tile.
- feat: account actions on
/account/manageconfirm and rename in one native dialog instead of the browser'sprompt()andconfirm(). Esc or Cancel closes it and returns focus to the button that opened it; destructive confirmations start on Cancel.- every action button shows a pending label and ignores repeat clicks until it finishes, so a double click no longer sends two requests.
- results and failures appear in a status line inside the section that ran the action. Passkey rename and delete failures were previously unhandled and left no message.
- after a passkey or app password changes, only that list reloads, and focus moves to the changed row, the next row, or the section heading. The whole account and the spaces view are no longer reloaded.
- credential rows show name and dates separately and stack their actions below the name on narrow screens. Only the account-status action that applies (deactivate or reactivate) is shown.
0.6.0 — 2026-10-23
-
breaking: Spaces follows the October 22 upstream alpha's shared-secret commit MACs. Syncers must update; signed commits are gone.
- every account has a P-256
#atproto_kemkey in its DID document. New accounts publish it in their PLC genesis operation; existing accounts, and accounts created with a caller-builtplcOp, get one from a background backfill that publishes it through PLC whenZDS_PERMISSIONED_DATA=true.getRecommendedDidCredentialsincludes it andsubmitPlcOperationrequires it. getLatestCommit,listRepoOps,getRepo, andgetRecordcalled with a space credential requireAtproto-Space-Want-Macand answer400 BadSpaceMacwithout a valid one. The MAC is returned inAtproto-Space-Mac, exposed to browsers, withVary: atproto-space-want-mac. OAuth reads of one's own repo may opt in.- commits are
{ver, repo, space, rev, data}in JSON and in thegetRepoSTAR metadata;hash,mac,ikm, andsigare gone. getLatestCommiton a repo with no writes answersRepoNotFoundinstead of{}.
- every account has a P-256
-
fix: Spaces
notifyWriteandlistReposuse the lexicon'sdatafield for the LtHash digest. The oldhashfield caused cross-host write notifications to be rejected, hiding remote writers fromlistRepos. -
breaking: Spaces follows the October 21 upstream alpha. Clients must update; the October 1 request shapes are rejected, not translated.
getSpaceCredentialtakes{space, credentialKid, delegationToken?, clientAttestation?}in the body. The request carries no authorization header and no HTTP signature;credentialKidmust be a P-256did:key.- credentials are presented as
Authorization: Atproto-Space-Credential, signed under theatproto-space-credentiallabel withtag="atproto-space-credential", coveringauthorizationandatproto-space-audience.keyidis optional and must match the credential. - a space with a public read policy issues a credential without a delegation
token. Any other space answers
SpaceNotFoundto such a request. - delegation tokens, client attestations, and
notifyWriteservice auth name the authority as<did>#atproto_pds. Space credentials are signed and verified only with the authority's#atprotokey, and the space host is always the authority's PDS.
-
fix:
getSpaceCredentialwith a delegation token answersSpaceDeletedfor a space its authority deleted. The tombstone was hidden by the space lookup, so it answeredSpaceNotFoundand the documented signal for a syncer that missednotifySpaceDeletednever fired. -
feat:
describeServerreportsspacesAlpha: truewhen Spaces is enabled, so clients can check support without signing in. -
fix: space record writes reject records whose DRISL encoding exceeds 1 MiB, and accept request bodies large enough to reach that limit (previously 256 KiB for single writes, 512 KiB for
applyWrites). -
fix: writing to one of your own spaces that was never created, or was deleted, returns
SpaceNotFound. It previously materialized an ungoverned local space row. -
fix:
notifySpaceDeletedis retried with backoff until each registered syncer accepts it or its registration would have expired. It was previously sent once, best-effort, so a syncer that was briefly down learned of the deletion only on its next credential renewal. -
breaking:
com.atproto.space.getReporeturns a STAR-lite v1 archive (application/octet-stream) instead of a two-root CAR. The metadata carries$type: "atproto-space-repo", the repo DID, the space, and the signed commit; each pair is a record path and its DRISL bytes in bytewise path order.excludeValuesis gone. -
fix: proxied requests forward every
x-atproto-*header, as the reference PDS does, alongsideaccept-language,atproto-accept-labelers, andx-bsky-topics. The caller's DPoP proof is no longer sent to the proxied service, and the unused request-sideatproto-content-labelersis dropped. -
security: outbound fetches to URLs chosen by callers, DID documents, or client metadata only reach public unicast addresses over HTTPS. Every DNS answer must be public, the connection is pinned to the checked IPv4 address, and redirects are refused. This covers OAuth client metadata and JWKS, client attestations, permission-set lexicons,
atproto-proxytargets and did:web lookups, managing-app checks, and Spaces notifications. Previously a client ID, DID document, or proxy header could point the PDS at loopback, private networks, or cloud metadata addresses.ZDS_ALLOW_PRIVATE_FETCH=truelifts this for local development. -
fix:
atproto-proxyresolution of did:plc services honorsZDS_PLC_DIRECTORYinstead of always usingplc.directory. -
security: every HTML page (home, account, signup, api reference, stats, and the admin session page) sends a Content-Security-Policy that blocks framing and limits requests to this origin, plus
X-Frame-Options: DENY,nosniff, andReferrer-Policy: no-referrer. Only the OAuth consent page refused framing before, so the account page could be framed for clickjacking. Images may still load from any HTTPS origin for icon slots. -
security: HTML pages run only the inline scripts they ship. Each page's policy names its scripts by SHA-256 instead of allowing
'unsafe-inline'and'self', so injected markup, or an uploaded blob served from this origin as JavaScript, cannot execute. A page without scripts sendsscript-src 'none'. The OAuth sign-in and consent pages now send the same policy; they previously only refused framing. -
security: outbound TLS no longer trusts the four eMudhra root keys distrusted on 2026-10-21, including cross-signed chains that lead to them. The images require
ca-certificates >= 20250419~deb12u2, and the shared HTTP and WebSocket clients enforce the distrust for caller-supplied CA bundles (zatv0.6.0-alpha.6, websocketv0.2.0-alpha.5). CI filters the same keys from the public CA set before deploying.
0.5.2 — 2026-10-17
- fix: reject public repository records larger than 1,000,000 DAG-CBOR bytes on create, update, batch writes, and import, including validate=false. Oversized batches leave the repository unchanged. JSON escaping overhead does not count toward the encoded-record limit.
0.5.1 — 2026-10-15
- fix: migrating accounts can import repositories, upload blobs, and list missing blobs before activation. Takedown, suspension, and deletion checks remain enforced; normal record writes still require activation.
- fix: authenticated owners can export deactivated repositories and blobs through sync endpoints, allowing migration retries. Anonymous and other-account requests remain blocked; authenticated blob responses are not publicly cached.
- fix: inbound accounts receive a signed empty repository without publishing
sync events.
checkAccountStatusalso repairs missing roots from earlier migration attempts, instead of returning a server error before import. - docs: document managing-app audience forms and cross-PDS access checks.
0.5.0 — 2026-10-09
- breaking: requires zig 0.17.0. CI, the container build, and the ARMv6 cross-build use the 0.17.0 release, checksum-verified.
- change: adopt zat 0.6.0-alpha.3, websocket 0.2.0-alpha.3, and the 0.17
ports of httpz, zqlite, metrics, and webauthn. Outbound HTTP now goes through
zttp: requests that refused redirects still do (
on_redirect = .refuse), and request bodies name their content type explicitly. - fix: websocket 0.2.0-alpha.3 creates pooled permessage-deflate state under the connection manager's lock. Earlier versions could hand two connections set up at the same moment the same compressor.
- fix:
app.bsky.*methods this PDS does not implement are forwarded to the configured appview when the client sends noatproto-proxyheader, matching the reference PDS. Clients such as Bridgy that callapp.bsky.feed.getAuthorFeedon the PDS previously got404 UnknownMethod. The caller's session is still required. - fix: a managing-app space that refuses a requester now logs why: the
managing app could not be resolved, the
checkUserAccessrequest failed, or the app answered with a status other than an authorized200. These denials were silent, soUserNotAuthorizedfromgetSpaceCredentialcould not be told apart from an unreachable app. - fix: DID resolution for Spaces honors
ZDS_PLC_DIRECTORY; it previously always usedhttps://plc.directory. - build: the container build fetches dependencies with backoff before compiling, like CI.
- change: the homepage and api reference headers drop the glass pill and tile chrome for a flat brand / account / menu row that stays on one line down to 320px. The source, zat, and AT Protocol links move into the menu sheet under a new "links" group; their drawing slots still apply there.
- fix: the homepage menu and settings sheets scroll their own contents instead of the page behind them, lock page scrolling while open, and open as a bottom drawer on narrow screens. Focus moves into the sheet on open and returns to the opening control after keyboard use.
0.4.1 — 2026-10-02
- fix: make OAuth
read_selfcollection-independent, matching the Spaces reference implementation. Apps whose grants include write collections can now list their space members and read their own space repos. Authority, space-key, action, and write-collection checks remain enforced.
0.4.0 — 2026-10-01
-
feat: adopt the October 1 Spaces alpha contract. Credentials use holder-bound HTTP message signatures, expire after ten minutes, and support persistent revocation. Spaces callers must replace DPoP and the
typerequest field with signatures andspaceType; OAuth DPoP is unchanged. No legacy Spaces compatibility path is retained. -
feat: persist coalesced writer notifications with bounded retries, order authority updates with
spaceRev/prevSpaceRev, and paginate writer listings by space revision. Startup backfills revisions for existing writers. Clients must discard old writer cursors. -
fix: store residents' own space writes independently of the authority's write policy; that policy controls writer registration and notification forwarding.
-
feat: simplespace access uses independent read/write policies and
putMembergrants. Space owners can manage collaborators without conflating read and write permissions. -
feat: remember browser password sign-ins during OAuth authorization, with consent, account binding, expiry, and revocation checks. Account pages group app access and sessions, paginate details, and retain sign-in across tab reloads.
-
feat: configurable navigation drawings and a shared resident account presentation. Custom drawing manifests are opt-in; bundled navigation and account assets work by default.
-
fix: startup recovery avoids scanning retained payload tables and indexes commit lookups during revision backfill.
-
fix: permissioned CAR validation permits the commit block in addition to the record limit; tests document the deniable commitment's verification and provenance limits.
-
feat: deployment now waits for formatting, unit tests, both HTTP smoke suites, and an ARMv6 ReleaseSafe build. Dependency fetching retries transient failures.
-
fix: the OAuth authorize page no longer sends
form-action 'self'. Chromium and WebKit apply that directive to every hop of a form submission's redirect chain, so the 303 from the consent POST to the client'sredirect_uriwas blocked: the server recorded the grant, the browser stayed on the authorize page, and the client never received a code. Firefox does not apply it to redirects, which is how the flow passed a manual check. The page still sendsframe-ancestors 'none', and the consent POST keeps its Origin and CSRF checks. The reference provider sets noform-actiondirective. Observed 2026-09-17 with a web client against a zds built frommain. -
feat: loopback client ids per the spec's localhost client development exception. A
client_idwith origin exactlyhttp://localhost(no port, no path) is virtual: nothing is fetched and its metadata is built from the query string (redirect_uri, repeatable, defaulting tohttp://127.0.0.1/andhttp://[::1]/;scope, defaulting toatproto), as@atproto/oauth-client-browseremits and the reference provider accepts. Redirects must be loopback IPhttpURIs and the scope must includeatproto; anything else with that origin is refused asinvalid_clientwithout a fetch. -
fix:
$bytesvalues decode with or without=padding, as the data model allows. The reference PDS sendscom.atproto.space.notifyWritehashes unpadded, and every one was refused with400 Invalid hash, so a member hosted elsewhere never appeared inlistReposfor a zds-hosted space and their records stayed invisible to everyone but themselves. -
fix: a
private_key_jwtclient whose metadata carries its keys inline asjwkscan authenticate; before, onlyjwks_uriwas read and such a client got400 invalid_clientat PAR. Both fields at once are refused, as in the reference provider. Observed with atcr.io, whose document publishesjwksinline, againstpds.zat.dev. -
fix:
/xrpc/_healthreports the version inbuild.zig.zon.build.zigand the Dockerfile each carried the literal0.3.0as a default, so a deploy that did not pass-Dversion(the Fly build never does) reported0.3.0for every release; v0.3.1 shipped labeled0.3.0.ZDS_VERSIONondocker buildstill overrides it for tagged images.
0.3.1 — 2026-09-03
-
fix: OAuth clients with
application_type: nativethat register a loopback redirect without a port (http://127.0.0.1/callback,http://[::1]/callback) match that redirect on whatever port the client bound at request time, per RFC 8252 §7.3 and the reference provider. Before,redirect_uriwas an exact string match, so a CLI had to pin fixed ports in its client document. A registered port still has to match,localhostis not a loopback host, and web clients are unchanged. -
fix: an access or refresh token this server signed whose
exphas passed answers400 ExpiredTokenon every bearer-authenticated route, as the reference PDS does. Before, it was indistinguishable from a forged token (401 InvalidToken), and on thecom.atproto.space.*routes it fell through to the space-credential parser and came back as401 AuthenticationRequired, so a client that refreshes onExpiredTokennever refreshed. OAuth access tokens keep the OAuth profile's401with aWWW-Authenticate: ... invalid_tokenchallenge. A refresh token the server revoked, or whose rotation grace window has closed, answers400 ExpiredTokeninstead of401 InvalidToken. Space routes now only try the space-credential path when the request actually carries aDPoPauthorization scheme; a badBearertoken answersInvalidTokenrather thanAuthenticationRequired. -
fix:
refreshSessionkeeps the retired refresh token usable for 30 seconds after rotation and answers it with the same successor pair. Before, a client with two requests in flight that refreshed twice with the same stored token gotInvalidTokenon the second, which the official client treats as the session being gone and logs the account out. Outside the window the retired token is refused as before. Session rows gainprevious_refresh_jtiandprevious_refresh_expires_at; the OAuth token family already had the equivalent. -
fix:
com.atproto.simplespace.*now speaks the lexicons Bluesky published for the spaces alpha (atproto2f77206). Before, Bulletin could sign in to a zds account butcreateSpaceanswered400 Missing did.createSpacetakes{type, skey?, policy, appAccess}; the space is anchored on the authenticated DID.policyandappAccessare thecom.atproto.simplespace.defsunions (#publicPolicy/#memberListPolicy/#managingAppPolicy{managingApp},#open/#allowList{allowed}); unknown variants answerUnsupportedPolicy/UnsupportedAppAccess. The pre-alpha{did, config:{policy:"member-list",…}}body is rejected.updateSpacetakes{space, policy?, appAccess?}with the same unions; a policy change replaces the managing app rather than layering a separatemanagingAppfield.com.atproto.simplespace.getSpaceis routed and returns{uri, policy, appAccess}.com.atproto.space.getSpace(the pre-alpha name) still answers, with the same body.listRepoOpspaginates: a full page returns arev/idxcursorand nocommit; the final page carries the signed commit. Default and maximum page size follow the lexicon (100 / 1000), as doeslistRepos, which now only emits a cursor on a full page.deleteRecordis idempotent likecom.atproto.repo.deleteRecord; deleting a record that is not there answers{}instead ofRecordNotFound.getSpaceCredentialuses the lexicon'sInvalidDelegationTokenfor a bad or mismatched delegation token (wasInvalidToken/InvalidRequest).- a write into a space this account has no local row for materializes the writer repo
instead of answering
NotPermitted. The writer's PDS keeps only the writer's own repo; the authority decides who is a writer whennotifyWritearrives, as in the reference PDS. This is what let a zds account post a note on a board hosted elsewhere. Before, the only way to materialize was the pre-alphacreateSpace {did: <remote authority>}call. - creating a record that already exists answers
RecordAlreadyExists(wasNotPermitted). - the space authority is always authorized for its own space, before any policy check. A
managing-appboard no longer needs the managing app reachable (or the owner to satisfy itscheckUserAccessrule) for the owner to read their own data. Matches the reference PDS (SimpleSpaceManager.authorizeUser) and pds.js (handlers/auth.js); atproto-crates instead always defersmanaging-apptocheckUserAccess, which for Bulletin authorizes the owner anyway via a self-follow. - recreating a previously deleted space succeeds (per the
createSpacelexicon) instead of a 500: the config is refreshed and the tombstone cleared, and the actor row left by the delete is reactivated rather than colliding. Matches the reference (ensureSpaceupsert) and atproto-crates (ON CONFLICT DO UPDATE). A live space still answersSpaceAlreadyExists.
-
feat:
com.atproto.sync.getRecordanswers a proof CAR rooted at the latest signed commit: the commit block, the MST node path down to the key, and the record block, or the path alone as an exclusion proof for an absent key, as in the referencecidsForPath. Before it was404 UnknownMethod, so a strict lexicon resolver (the official spaces-alpha PDS) could not resolve anyinclude:scope whose permission set lives on a zds-hosted repo. Availability errors reuse thegetRepoguard. -
fix:
/oauth/parand the token endpoint answer400 invalid_scopefor an empty scope, an unregistered scope, an unresolvableinclude:, or mixedtransition:and granular scopes. Before, the helper wrote the error and the handler overwrote it with201, so a bad scope was accepted; a failedprivate_key_jwtassertion was overwritten the same way. -
fix: every xrpc guard now terminates its request. A helper that refused a write (an OAuth token without the collection's scope, a body naming someone else's repo, a bad JSON body) wrote its error and the handler continued and answered
200;createRecordcould write a record the token was not scoped for. On theatproto-proxypath the refusal instead surfaced as a plain-text500, so clients saw an unparseable error instead of the401 InvalidTokenthat triggers a refresh. -
fix:
space:scopes are gated onZDS_PERMISSIONED_DATA. A flag-off server issued tokens carryingspace:grants and then answeredMethodNotImplementedon every space route; clients that read the grant as the capability signal saw a false positive.scopes_supportedin both metadata documents now listsatprotoplus thetransition:*hints, as the reference does; the granular entries were a zds invention no client consumed. -
fix: a write into a locally hosted space is gated by the space policy (
403 NotPermittedfor a requester the policy does not allow,SpaceNotFoundfor a tombstoned space) instead of passing on the caller's own OAuth scope alone; when the authority lives elsewhere the write defers to it.deleteSpacepurges authority state so the same type and skey can be recreated. -
fix:
GET /oauth/authorizecaches eachinclude:permission set's lexicon record for five minutes. Every render resolved it over the network twice (DoH TXT, DID resolution, a cross-PDSgetRecord), about 1.6 s per page. -
fix:
subscribeReposlogs the caller (fly-client-ip/x-forwarded-for, user agent, cursor) on connect and a per-stream summary on close, and refuses a backfill reconnect from an address that reconnects more than four times in five minutes withRateLimitExceeded. A consumer replaying tens of MB every 40 s with a never-advancing cursor was draining the machine's CPU balance; live-tail connects are never limited.
0.3.0 — 2026-08-20
-
feat: when
--server-did/ZDS_SERVER_DIDis not set but--public-urlis, the server DID is derived asdid:web:<host>(port encoded%3A), matching the reference PDS (PDS_SERVICE_DID ?? did:web:${hostname}) and tranquil. Before, an operator who set only the public URL advertiseddid:web:localhostindescribeServerand/.well-known/did.jsonand rejected service-auth tokens whoseaudwas their real DID. Explicit configuration still wins. -
refactor: one clock. Fourteen hand-rolled
clock_gettimehelpers across auth, oauth, dpop, passkeys, permissioned data, sync, the HTTP layer and the store collapse intocore/clock.zigonIo.Timestamp(ani96of nanoseconds). On 32-bit targetsstd.posix.timespec.secis 32-bit, so every one of the old copies was Y2038-bound. -
feat: zds builds and runs on 32-bit targets without native 64-bit atomics (ARMv6, e.g. a Raspberry Pi 1 — Chad Miller runs one at
pi.chadtmiller.com). Two things were in the way:sync.nowMillis()multiplied a 32-bittimespec.secand trapped at startup, and fourstd.atomic.Value(u64/i64)globals failed to compile. Chad's PR (#4) widened the multiply and added a spinlock-backedPortableAtomic(T); the follow-up deletes both in favor of not needing a 64-bit atomic anywhere:next_seqandeventlog.latest_seqwere already written under a mutex and now are read under it too (applyWritesallocates its seq inside thedb_mutexsection rather than just before it), the lock-contention timer and the crawler notify throttle keep wrappingu32timestamps, andsyncusesstore.nowMs()instead of its ownclock_gettime. With zat bumped tov0.4.4(the same treatment for its threeu64counters and two pointer-size asserts), cross-compiling-Dtarget=arm-linux-musleabihf -Dcpu=arm1176jzf_sis clean, and CI now builds that target on every push. -
fix: bump httpz to
ede9a78, which serializesdetachHttpwith the state/list transition it races.swapListguarded (remove -> publish_state-> insert) with the per-connection_mut;detachHttpmade the same list decision from the same_statewithout taking it, so the reactor could remove a conn from a list it was not in yet, clobber that list'shead/tail, and then free aConnthe list still referenced. Recycling that storage into a websocket produced theaccess of union field 'http' while field 'retired' is activepanic that SIGABRT'd this PDS on 2026-08-18. Reported and reproduced upstream; the fix movessetState(.handover)inside the lock and ships a deterministic regression test.
0.2.0 — 2026-08-18
Two months of work since v0.1.1 (2026-06-18). Headlines:
- fix:
applyWritesindexes a batch in op order. It used to apply every delete before every create, so a same-key create+delete in one batch left the record row present while the MST — which mutates in op order — had dropped it. The reference PDS walks its writes in one ordered loop (actor-store/repo/transactor.tsindexWrites) and tranquil resolves each delete against the running tree; zds was the outlier and could reach a state neither produces. Blob refs are now attached to their record by a staged span rather than matched by URI, keeping the pass linear —applyWriteshas a 5MB body cap but no op-count cap. No measurable throughput change on the write benchmark. - fix: bump zat to
v0.4.3, which makesMst.collectBlocksemit the block for an empty MST node instead of mistaking it for an unloaded stub and skipping it. Two repos on pds.zat.dev carried empty subtree nodes minted by a pre-v0.3.19writer whose blocks were never stored; the first tree walk to reach one returnedPartialTree, taking everycreateRecordto 500 andgetRepoto 404 regardless of collection. The fix is self-healing — a write that does not descend into the stranded branch still commits, and the collect pass restores the missing block. Seedocs/incident-2026-08-18-empty-mst-node.md. - fix: handle
zat.cbor.Value.floatin the CBOR -> ATProto JSON writer. New in zatv0.4.2; the unhandled switch case broke the build on the version bump. - ops: repaired the three stranded empty MST nodes in the
zat.devrepo with forward create/delete commits. Its served root now matches a canonical rebuild of its keyset. No history was rewritten. - feat: permissioned data (spaces) brought in line with the proposal — the simplespace
authority split,
com.atproto.space.getRepoState,space:OAuth scopes end to end, aligned credential and sync semantics, scoped self reads in external spaces, portable repo exports, and blob-ref tracking for permissioned records. - feat: resident account surfaces — a create-account flow at
/signupwith invite CTA, the resident account hub, app-password and passkey management, account takedown status, and hosted handle resolution/updates with a hardened lifecycle. - feat: firehose account announcements for new and pre-existing commit-less accounts;
community.lexicon.service.describecapability discovery. - fix: firehose subscriptions start at the live cursor, disconnected workers are released, and backfill slots are released on catch-up rather than on disconnect.
- fix: email verification separated from email change.
- perf: bounded blob garbage collection, repo exports isolated from primary storage, lazily buffered request-body streaming, bounded threaded-I/O worker growth, no global store stalls during blob I/O, and database lock-contention owners identified in logs.
- fix: OAuth client documents cached, expired access tokens advertised, and codes preserved across DPoP challenges.
- fix: repo correctness —
zat.signCommitfor commits, complete imported CARs required, full repo export reachability, and theHEAD getReporesponse path. - ops: deploy to fly on push to main via spindle; docker arm build arch mismatch and the webauthn dependency fetch fixed.
- deps: moved onto the canonical first-party websocket/httpz/zat graph, with zat pinned by release tag.
0.1.1 — 2026-06-18
- fix: OAuth DPoP token families hardened, and token/code grant failures logged.
- perf: lazy MST loading for repo writes.
- fix: firehose commit
sincerev, advertised repo and sync parameters honored. - fix: repo block and OAuth token migration ordering; sync event rebuild bounded in memory and its migrations cleaned up.
0.1.0 — 2026-06-16
- feat: OAuth DPoP binding.
- feat: Comail mail provider, with operator documentation.
- fix: handle large
applyWritesbodies. - feat: expanded PDS benchmark coverage.
0.0.3 — 2026-06-10
- feat: port and database path configurable from the environment.
0.0.2 — 2026-06-10
First tagged release. The initial PDS surface, built up from a Zig smoke harness on 2026-05-19:
- SQLite-backed record store, real repo write commits, per-account signing keys, and the
subscribeReposfirehose. - Reference-shaped account creation with invite-code gating; PLC operation signing, migration identity endpoints, repo import backbone, and per-account PLC repair recovery.
- Full atproto OAuth flow — private-key clients, permission sets, query-form repo scopes, passkey login (including discoverable), and app-password lifecycle with its security UI.
- Permissioned spaces with permission sets, plus a resident viewer and operator diagnostics.
- Resident landing page and preferences, app-view notification and moderation surfaces, Resend-backed mail delivery, generated API reference, Fly deployment config, and benchmark suites (local store, metastore-shaped, HTTP route, reference-PDS parity).