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

zat.dev/zds

atproto pds · mirror of https://tangled.org/zat.dev/zds

0
0
1682 lines · 99.6 KB Raw History

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:space URIs 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 garden skin 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 garden skin'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-gate scrolls 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 release runs 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.
    • putRecord on a key the repo did not hold is a create op; it was an update with no prev, which strict consumers refuse
    • each op's prev is the record that op replaced in the batch, so an applyWrites that deletes a key and writes it again names the right one
    • deleteRecord of 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 no prev. an applyWrites delete of a missing record is refused with 400 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_BUCKET is 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 when ZDS_LITESTREAM_RESTORE_IF_MISSING=true. tools/restore-drill.sh restores the replica into a scratch directory, checks it and can boot zds on it; just smoke-backups runs the loop against a local S3 stand-in. See docs/backups.md.
  • feat: with ZDS_BLOB_MIRROR_BUCKET set, 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-mirror checks it against a signature-checking S3 stand-in. Uses the existing blobs.storage column; 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 refuse ZDS_WEB_SKIN=garden with a message saying so.
  • feat: the garden skin 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 zds and zds-plc-repair only (the bench and signature tools stay in the source build), on distroless base-debian12:debug instead of debian:bookworm-slim. The busybox shell and sqlite3 are still there for fly ssh console and the runbooks, and the CA bundle still comes from Debian above the trust floor in docs/tls-trust.md. The binaries keep their debug info zlib-compressed, so panics still print file and line: zds is 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), to atcr.io/zat.dev/zds and to knotless.dev/zat.dev/zds (knotless.dev/zat.dev/zds/zds-garden for the garden one). Knotless versions drop the v and have no latest tag to push; knotless computes it.

0.16.0 — 2026-11-23

  • fix: the garden skin 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 the paper and garden pages: 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; with system nothing is served and the pages use the platform sans as before.

  • feat: /signup and /stats follow ZDS_WEB_SKIN and the font too. Under paper and garden the 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 paper and garden the favicon is a sprout on a paper sheet, and the /og-image link 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. /account is 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 follow ZDS_WEB_SKIN: under paper and garden the 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 under garden the scene is seeded from the account's DID with one grown tree per app with access.

  • feat: POST /xrpc/dev.zat.account.revokeApp ends 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 /account revokes 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 from src/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 stays glass.
  • feat: ZDS_WEB_SKIN=garden is 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 usize now.

0.15.2 — 2026-11-23

  • perf: incremental getRepo?since= reads only the blocks newer than since through the revision index, instead of every block the account ever wrote.
  • perf: full getRepo exports read their blocks in batches, about twice as fast.
  • feat: sync reads carry ETags and answer If-None-Match with 304, so a client that already has the current commit skips the export.
  • perf: repeated full getRepo exports 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, listRecords or sync.* behind it (the contention in the 2026-11-15 incident). ZDS_DB_READERS sets the pool size (default 4); 0 restores 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 #commit event 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, answer 400 InvalidRequest with 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, putRecord and applyWrites refuse a record that names a blob this account never uploaded, or one under takedown, with the reference PDS's 400 BlobNotFound "Could not find blob: <cid>". Before, the write went through and the blob was only listed as missing. importRepo still 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), plus vary and etag as Tranquil does. Before, every answer was relabeled application/json and those headers were dropped, so clients lost the repo revision and labeler list and non-JSON answers arrived mislabeled. A client's if-none-match now reaches the service and its 304 comes back without a body.
  • breaking: OAuth repo and blob permissions follow the reference grammar (@atproto/oauth-scopes), at sign-in and in existing grants. Sign-in now refuses, with invalid_scope, forms that used to be accepted: repo: with no collection, which granted every collection; partial wildcards such as repo:app.bsky.feed.*; repo?action=create with no collection; unknown actions or parameters; and blob: or a malformed accept such as blob:*/png. Existing grants with these forms grant nothing for that permission. Clients sending them must ask for repo:*, exact collections, or blob:*/* instead.
  • fix: repo?collection=... permissions grant only the collections they name. They were read as a bare repo and granted every collection.
  • fix: OAuth accepts blob?accept=... permissions, which the permission spec allows and blobAllows already honoured; sign-in refused them as "Unsupported scope".

0.14.26 — 2026-11-22

  • fix: a record written without $type is stored with its collection as $type, as the reference PDS does, instead of refused with InvalidRequest "Invalid record type". Grain's iOS app writes favorites this way, so its likes never landed. createRecord, putRecord and applyWrites creates and updates all fill it; a $type naming a different collection is still refused.

0.14.25 — 2026-11-22

  • feat: a refused repo write is logged. createRecord, putRecord, deleteRecord, applyWrites and uploadBlob answers 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, saw InvalidToken for 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_token with a WWW-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 (was InvalidToken with no challenge)
    • Bearer-scheme requests, which also carry password sessions and service auth, keep InvalidToken

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 of InvalidToken. DPoP clients that read the body before retrying, such as atproto-oauth's DpopRetry (used by AIP), gave up, so signing in to sites behind AIP failed with a 500 after the token exchange succeeded. uploadBlob also answers the challenge instead of trying the token as service auth.

0.14.22 — 2026-11-19

  • fix: OAuth accepts rpc permissions that name their methods with lxm parameters instead of positionally (rpc?lxm=*&aud=did:web:api.bsky.app%23bsky_appview), as the permission spec allows. Sign-in to hud.place failed with invalid_scope ("Unsupported scope"). Proxied calls made under such a grant are checked against each lxm value.
  • fix: rpc permissions 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 as lxm, not both; prefix wildcards such as rpc:app.bsky.feed.* no longer grant anything
    • exactly one aud, and no other parameters; * for both is refused
    • values compare decoded, so %2A is *, and empty & segments are skipped
  • 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 wider aud or no action.

0.14.21 — 2026-11-18

  • fix: com.atproto.repo.getRecord answers not-found with HTTP 400, as the reference PDS does. Germ's sign-in reads a 400 RecordNotFound as "no declaration yet" and failed on the 404 that ZDS and Tranquil returned.
    • a missing record, a cid mismatch or a taken-down record: 400 RecordNotFound, "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 404 RepoNotFound)

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 inside applyWrites, on an rkey that already holds a record is refused with InvalidRequest ("Record already exists") and leaves the repo unchanged. Before, it silently replaced the record, as putRecord does. 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 alongside accept. Zat 0.7.0-alpha.11 pins 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.zig fork 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 through requestPasswordReset and resetPassword. 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's rpc: 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 plain did:web:api.bsky.chat#bsky_chat, so every call under include:chat.bsky.authFullChatClient?aud=… (or any audience with a #) was refused with InsufficientScope. The audience is now compared decoded, and an include: 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 writev EFAULT 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: /stats polish: 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: getBlob streams 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 getBlob and getRepo reports the real Content-Length; it was 0.

0.14.7 — 2026-11-14

  • fix: getRepo writes 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: /stats names a password or app-password session by the app that sent it (the Origin host, else the User-Agent product), 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 subscribeRepos handshake 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. /stats used a 1120px column, /account 900px and /api a taller header, so the brand moved between pages; all now use the homepage's 780px column and 44px header row.
  • fix: /stats uses 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: /stats charts 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_apps and telemetry_storage, created on start.

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.
  • feat: homepage collections show the top ten, then "show all N" (?collections=all without 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.preferences drawing 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/manage in a new tab). The redesign had dropped it.

0.12.3 — 2026-11-13

  • fix: importRepo accepts 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 to v0.7.0-alpha.9.

0.12.2 — 2026-11-13

  • fix: after consent, the browser returns to the app through a fresh /oauth/authorize/return page 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/*.py is a uv run --script file with inline metadata (standard library only), every call site uses uv run, and CI installs uv. Running the smokes locally needs uv instead of a system python3.

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-signin cookie; consent is a separate Authorize step. A login_hint naming 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_requests gains three nullable columns for the pending browser sign-in, added on start.
  • 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 to docs/history/, so links to docs/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.md and docs/spindle-cache-proposal.md now resolve under docs/history/, some under new names.

0.10.2 — 2026-11-12

  • fix: getLatestCommit and listRepoOps write the commit's data as unpadded $bytes, like the rest of zds' JSON and the reference PDS. zat moves to v0.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_hint names 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 answered atproto-space-repo. A request tagged atproto-space-repo is now another profile's and ignored, so a credential read carrying only that answers InvalidSpaceMac. zat moves to v0.7.0-alpha.7.
  • change: listWriters entries are the shared com.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 no repoRev or data.
  • change: getSpaceCredential is authorizeSpaceSync. Its output adds spaceRev, the space's current revision, omitted before the space's first update. A deleted space answers SpaceDeleted before the delegation token or client attestation is checked, so an invalid token no longer hides the deletion.
  • change: syncers register for notifications through authorizeSpaceSync's notify: {endpoint, token} instead of registerNotify. registerNotify, unregisterNotify and notifySpaceStatus are gone.
    • a new registration is confirmed first: ZDS calls the endpoint's confirmRegistration with {space, token, challenge} and needs the challenge back, or answers RegistrationNotConfirmed. 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: #repoWrite and #repoRemoved (with prevSpaceRev) to active registrations, best effort; #registrationExpired once in place of the next update after a lapse; and #spaceDeleted to 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_registrations is rebuilt keyed by (space, endpoint, token), and permissioned_space_deleted_outbox becomes permissioned_space_syncer_outbox. Existing registrations and pending deletion notices are dropped; syncers re-register on their next authorization.
  • change: notifyRepoUpdate is 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 without repoRev and data.
  • change: a managing app that can't be resolved, errors, answers without boolean read and write, or takes more than 10 seconds is an upstream failure, not a denial. authorizeSpaceSync answers 502 UpstreamFailure, issues nothing and keeps the syncer's registration; notifyRepoUpdate answers 502 UpstreamFailure, so the repo host retries rather than dropping the write. Before, all of these answered SpaceNotFound or Forbidden.
  • change: importRepo and importSpaceMeta require Content-Type: application/vnd.dasl.star; any other encoding answers 400 InvalidRequest before the body is read. getRepo and exportSpaceMeta already answered with it.
  • change: a malformed cursor on listSpaces (not a space URI), listMembers (not a DID) or listRecords (not collection/rkey) answers 400 InvalidCursor, as the lexicons now declare; before, it was ignored.
  • change: createSpace, updateSpace and importSpaceMeta refuse a memberspace policy whose allowedApps entries 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 of y was read, so a DPoP proof could carry a forged y, 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 alg must match the assertion's alg.
  • fix: createAccount (migration) and uploadBlob resolve a service-auth issuer through the configured PLC directory, as atproto-proxy targets, imported repos and permission-set authorities now also do; before, they always asked plc.directory.
  • change: inbound service auth (createAccount, uploadBlob, space methods)
    • checks run exp, aud, lxm, iss: an expired createAccount token with a wrong issuer or audience is 400 ExpiredToken (was 401 InvalidToken); a space token with a bad iss and the wrong lxm is 401 BadJwtLexiconMethod (was InvalidToken).
    • iss must be a DID with at most one non-empty fragment; a typ of at+jwt, refresh+jwt or dpop+jwt is refused; a non-string lxm or nonce is refused.
    • a bad signature is retried once with a freshly resolved key, so an issuer that just rotated is accepted.
    • uploadBlob checks a local account's token against its stored key without resolving the DID; createAccount uses the issuer's #atproto method and requires its controller to be the DID.
  • change: DPoP compares htu in RFC 9449 normal form (scheme and host case, default port), floors a fractional iat, and checks ath before the nonce, so a proof with a wrong ath gets an invalid-proof error rather than use_dpop_nonce.
  • change: client assertions and attestations refuse an iat more than 60 seconds ahead even when exp is present, require a non-empty string jti, accept an array aud containing 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 random jti; the payload members are ordered iat, iss, sub, aud, exp, lxm, jti.
  • change: record JSON (createRecord, putRecord, applyWrites, space records)
    • a whole-number float such as 1.0 is stored as the integer, as the reference does; other floats are still InvalidRequest.
    • $bytes takes standard base64 with exact padding or none; wrong padding is refused, where any run of = was stripped.
    • $bytes or $link with a non-string value is refused rather than stored as a map; an unparseable $link is 400, was 500.
  • change: $bytes is written unpadded, as the reference writes it (listSpaces data, #repoWrite latest.data, bytes in records read back). Floats in imported data print in JavaScript form (1e300).
  • change: notifyRepoUpdate requires latest.data to be exactly {"$bytes": …}.
  • change: a blob ref with keys beside $link is not a blob reference.
  • change: CIDs in requests are fully validated; a path-form did:web atproto-proxy target is refused; a lexicon authority's TXT record must hold exactly one did=; handles under reserved TLDs are refused when resolving.
  • change: a #sync frame takes its did, rev and CID from the stored commit block, so it cannot disagree with the commit it carries. #identity, #account and FutureCursor frames are byte-identical.
  • change: PKCE verifiers are compared in constant time.
  • refactor: PLC genesis and signPlcOperation build and sign operations with zat.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-credential tag under any label (the reference SDK now signs under sig); before, only the label atproto-space-credential was read, so current SDK clients got BadSpaceSignature.
  • change: MACs are HTTP message signatures. A syncer asks with an Accept-Signature member tagged atproto-space-repo or atproto-space-record and keyed by its P-256 key share; the host answers with an Atproto-Space-Commit or Atproto-Space-Record header and an hmac-sha256 Signature-Input/Signature over it. The shared secret is HPKE's secret export with info atproto-mac. Atproto-Space-Want-Mac and Atproto-Space-Mac are gone.
  • change: listWriters entries and notifyRepoUpdate carry latest, a #repoWrite (rev, data) or #repoRemoved, in place of repoRev and data.
    • removeWriter, removeMembers, and a putMembers revoking write mark the writer removed at the next spaceRev, forward a repoRemoved to registered syncers, and keep listing it until it writes again.
    • a repo host may only send repoWrite.
    • exportSpaceMeta leaves removed writers out.
    • under publicWrite, a member whose write is false is not a writer.
    • storage: permissioned_space_writers gains removed_at, added on start.
  • change: every listRepoOps page carries the repo's current commit and its MAC, beside the cursor on a full page; a repo with no writes is RepoNotFound.
  • fix: a subscribeRepos #sync frame'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_id claim, 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 uses zat.space from zat v0.7.0-alpha.5. websocket follows zat to v0.3.1.
  • test: the SDK interop lane runs @atproto/space from the tip at 2d4a6736f.

0.8.2 — 2026-11-11

  • change: space metadata archives (exportSpaceMeta, importSpaceMeta) name the writer field repoRev, as at the permissioned-data tip; rev is no longer read or written.
  • test: the SDK interop lane runs @atproto/space built 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=X was 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 close waits for the stream thread before the websocket frees the connection.
  • fix: the service-refs-v1 migration no longer fails startup when a space held both did:x and did:x#atproto_pds notify registrations.
  • fix: service auth on space methods, uploadBlob and createAccount requires lxm to be the called method; * is refused. Space methods answer a mismatch with BadJwtLexiconMethod.
  • change: getSpaceCredential answers SpaceDeleted without a delegation token too, so a public space's syncer learns of the deletion.
  • change: notification issuer, audience, and writer mismatches answer 403 Forbidden instead of 401 InvalidToken/BadJwtAudience or AccountNotAuthorized.
  • change: a bearer read of another account's space repo answers RepoNotFound, as an absent repo does, instead of NotPermitted.
  • change: managingApp and notify services must be on did:plc or a pathless did:web; listRepoOps refuses a since that is not a TID.
  • refactor: removed the unused renamed-method retry, the bare-DID endpoint lookup, and the old notification helper names; zig build test now 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-data branch. The November 5 alpha's methods are gone: listRepos, notifyWrite, notifyCredentialRevoked, notifySpaceDeleted, memberspace.putMember and removeMember, managedspace.checkUserAccess, and the getRepoState alias. Use listWriters, notifyRepoUpdate, notifyCredentialsRevoked, notifySpaceStatus, putMembers / removeMembers, checkAccess, and getLatestCommit. 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), did on writer entries, and isOwner on listSpaces; requests drop credentialKid (use credentialKey), did on removeWriter (use repo), did on listSpaces (use spaceDid), since on listBlobs, and reverse on listRecords.
  • change: managingApp and registerNotify's service must be did#serviceId references; a bare DID is refused. On upgrade, stored policies and notification registrations with a bare DID become did#atproto_pds, which resolves to the same endpoint the bare DID did.
  • change: unregisterNotify takes service auth from the service being withdrawn, as on the reference PDS: iss must be that service's DID and aud the space authority. A space credential no longer withdraws a registration, since it doesn't name a service.
  • change: a malformed listRepoOps cursor answers InvalidCursor, not MalformedCursor.
  • feat: OAuth space scopes may name their type with a spaceType parameter (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, Cookie and Proxy-Authorization.

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.signPlcOperation returns 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 FutureCursor answer 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=outbox keeps mail in the database instead of sending it, and dev.zat.admin.listMail returns 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.requestAccountDelete emails a delete_account code to the account's own session (not OAuth or an app password, and not under a takedown), and com.atproto.server.deleteAccount takes the DID, password, and code, then removes the account as the admin route does and emits a deleted #account event.
  • feat: ZDS_PLC_TOMBSTONE_ON_DELETE=true tombstones a deleted account's did:plc with 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: subscribeRepos answers a cursor ahead of the latest seq with a FutureCursor error 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: NotSpaceOwner to NotAuthorized, BadSpaceMac to InvalidSpaceMac, and UserNotAuthorized to AccountNotAuthorized. importRepo answers a malformed archive with InvalidRepoFile and another account's repo with RepoMismatch, and importSpaceMeta answers a malformed archive with InvalidSpaceMeta. getRepo and exportSpaceMeta are served as application/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, and listSpaces return space as well as uri; getSpaceCredential takes credentialKey or credentialKid; removeWriter takes repo or did; listSpaces filters by spaceDid or did; and listRepos entries carry repo as well as did. listSpaces entries add the caller's repoRev and data in each space, and the space's latest spaceRev when the caller is its authority.
  • change: space methods answer to the lexicon review's names: listWriters (was listRepos), notifyRepoUpdate (was notifyWrite), notifyCredentialsRevoked (was notifyCredentialRevoked), and notifySpaceStatus with status deleted (was notifySpaceDeleted). The old names stay routable, and each checks the service token's lxm against 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.putMembers and removeMembers change up to 100 members (or DIDs) in one commit. A DID listed twice in putMembers takes its last entry, and removeMembers leaves DIDs that are not members alone, writer set included. putMember and removeMember still work.
  • feat: managed spaces ask their app with com.atproto.managedspace.checkAccess, which answers read and write at once, and fall back to checkUserAccess for apps that don't serve it yet. A credential request without a delegation token now asks the app about an anonymous reader (no repo) instead of being refused outright. ZDS answers checkAccess itself with a denial, as it does checkUserAccess.
  • feat: unregisterNotify with a bare DID withdraws every registration under that DID, as the lexicon review specifies. ZDS still accepts a bare DID for managingApp and registerNotify, which the review narrows to did#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.updateSubjectStatus accepts a strongRef or a repoBlobRef besides an account. A taken down record answers repo.getRecord with RecordNotFound and drops out of repo.listRecords. A taken down blob is no longer served by sync.getBlob or space.getBlob, as proposal 0016's moderation section asks of a repo host, and can't be uploaded again. com.atproto.admin.getSubjectStatus is new.
  • feat: com.atproto.sync.getBlocks returns 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 400 InvalidRequest, 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.deleteSession signs 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 admin and the admin token as the password, alongside Bearer <token>, so admin tools written against the official PDS work.
  • fix: activateAccount creates a missing repo instead of answering 500.
  • feat: a taken down account can still leave, as proposal 0016 intends. createSession with allowTakendown: true gives it a session limited to com.atproto.takendown, accepted only where it needs to migrate away: sync.getRepo, getBlob, and listBlobs on its own repo, the space exports (listSpaces, exportSpaceMeta, and its space repo's getRepo, listBlobs, getBlob), getPreferences, PLC operation signing, and getServiceAuth for com.atproto.server.createAccount. Without the flag a taken down account still gets AccountTakedown, and createSession now 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, or AccountDeactivated instead of 400 Repo*. Repo and space writes and space management refuse takedown and deactivation. importRepo, uploadBlob, putPreferences, updateHandle, createAppPassword, getAccountInviteCodes, requestEmailConfirmation, and requestEmailUpdate refuse takedown only. listMissingBlobs checks no status.
    • The takedown session can deactivate the account and proxy com.atproto.moderation.createReport to 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 AccountTakedown instead of InvalidToken.
  • 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, as sync.getRepo allows. getRepo answers 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, and listRecords release 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 in docs/deployment.md now runs tools/fly-deploy.sh from a clean archive; Dockerfile still 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, and tooBig, 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: #commit firehose frames carry since (null on a repo's first commit), rebase, and tooBig, which subscribeRepos requires. 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.exportSpaceMeta downloads a space's policy, member list, and writer set as an atproto-space-meta STAR archive; com.atproto.space.importSpaceMeta and com.atproto.space.importRepo load 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=create and manage=update, or create for each imported collection.
    • Imported writer entries keep their spaceRev, so listRepos cursors stay valid, and an imported repo gets a new rev with unchanged data.

0.7.0 — 2026-10-29

  • feat!: spaces follow the October 29 alpha. One policy union (com.atproto.personalspace.policy, com.atproto.memberspace.policy, or com.atproto.managedspace.policy) replaces the simplespace read policy, write policy, and app access, and every com.atproto.simplespace.* route is removed. See the upgrade guide.
    • com.atproto.space.{createSpace,updateSpace,getSpace,deleteSpace}, com.atproto.memberspace.{putMember,removeMember,listMembers}, and com.atproto.managedspace.checkUserAccess. updateSpace replaces the policy wholesale, and a new $type drops the old policy's member list. getSpace is owner-only and returns {uri, policy}.
    • A managing app is asked about reads and writes, with lxm=com.atproto.managedspace.checkUserAccess.
    • getSpaceCredential checks the user before the app and answers a refused user with SpaceNotFound instead of UserNotAuthorized.
    • publishPolicy and publishMembers keep com.atproto.space.policy and com.atproto.memberspace.member records in the authority's repo; direct writes to those collections are refused in any repo.
    • New com.atproto.space.removeWriter and com.atproto.space.clearRecords. removeMember and putMember with write: false also drop the writer.
    • SpaceNotFound, NotSpaceOwner, AppNotAuthorized, and PolicyMismatch answer HTTP 400, as in the reference PDS; SpaceNotFound was often 404 and the others 403.
    • Startup converts stored configurations as the reference PDS does and renames simplespace_members to memberspace_members. Run tools/space-policy-preflight.sql first to list spaces whose access changes.
  • refactor: com.atproto.space.getRepo frames its STAR archive with zat.star.Writer instead 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_options module now carries a name so it stays distinct from zat's when both report version 0.6.0.
  • feat: com.atproto.admin.deleteAccount permanently 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 #account event with status: "deleted" on the firehose in place of the account's history, and notifies crawlers. Unknown DIDs return AccountNotFound rather than succeeding silently.
    • seq_events no longer cascades from accounts, 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. style attributes 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/manage confirm and rename in one native dialog instead of the browser's prompt() and confirm(). 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_kem key in its DID document. New accounts publish it in their PLC genesis operation; existing accounts, and accounts created with a caller-built plcOp, get one from a background backfill that publishes it through PLC when ZDS_PERMISSIONED_DATA=true. getRecommendedDidCredentials includes it and submitPlcOperation requires it.
    • getLatestCommit, listRepoOps, getRepo, and getRecord called with a space credential require Atproto-Space-Want-Mac and answer 400 BadSpaceMac without a valid one. The MAC is returned in Atproto-Space-Mac, exposed to browsers, with Vary: 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 the getRepo STAR metadata; hash, mac, ikm, and sig are gone.
    • getLatestCommit on a repo with no writes answers RepoNotFound instead of {}.
  • fix: Spaces notifyWrite and listRepos use the lexicon's data field for the LtHash digest. The old hash field caused cross-host write notifications to be rejected, hiding remote writers from listRepos.

  • breaking: Spaces follows the October 21 upstream alpha. Clients must update; the October 1 request shapes are rejected, not translated.

    • getSpaceCredential takes {space, credentialKid, delegationToken?, clientAttestation?} in the body. The request carries no authorization header and no HTTP signature; credentialKid must be a P-256 did:key.
    • credentials are presented as Authorization: Atproto-Space-Credential, signed under the atproto-space-credential label with tag="atproto-space-credential", covering authorization and atproto-space-audience. keyid is optional and must match the credential.
    • a space with a public read policy issues a credential without a delegation token. Any other space answers SpaceNotFound to such a request.
    • delegation tokens, client attestations, and notifyWrite service auth name the authority as <did>#atproto_pds. Space credentials are signed and verified only with the authority's #atproto key, and the space host is always the authority's PDS.
  • fix: getSpaceCredential with a delegation token answers SpaceDeleted for a space its authority deleted. The tombstone was hidden by the space lookup, so it answered SpaceNotFound and the documented signal for a syncer that missed notifySpaceDeleted never fired.

  • feat: describeServer reports spacesAlpha: true when 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: notifySpaceDeleted is 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.getRepo returns 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. excludeValues is gone.

  • fix: proxied requests forward every x-atproto-* header, as the reference PDS does, alongside accept-language, atproto-accept-labelers, and x-bsky-topics. The caller's DPoP proof is no longer sent to the proxied service, and the unused request-side atproto-content-labelers is 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-proxy targets 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=true lifts this for local development.

  • fix: atproto-proxy resolution of did:plc services honors ZDS_PLC_DIRECTORY instead of always using plc.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, and Referrer-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 sends script-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 (zat v0.6.0-alpha.6, websocket v0.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. checkAccountStatus also 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 no atproto-proxy header, matching the reference PDS. Clients such as Bridgy that call app.bsky.feed.getAuthorFeed on the PDS previously got 404 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 checkUserAccess request failed, or the app answered with a status other than an authorized 200. These denials were silent, so UserNotAuthorized from getSpaceCredential could not be told apart from an unreachable app.
  • fix: DID resolution for Spaces honors ZDS_PLC_DIRECTORY; it previously always used https://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_self collection-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 type request field with signatures and spaceType; 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 putMember grants. 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's redirect_uri was 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 sends frame-ancestors 'none', and the consent POST keeps its Origin and CSRF checks. The reference provider sets no form-action directive. Observed 2026-09-17 with a web client against a zds built from main.

  • feat: loopback client ids per the spec's localhost client development exception. A client_id with origin exactly http://localhost (no port, no path) is virtual: nothing is fetched and its metadata is built from the query string (redirect_uri, repeatable, defaulting to http://127.0.0.1/ and http://[::1]/; scope, defaulting to atproto), as @atproto/oauth-client-browser emits and the reference provider accepts. Redirects must be loopback IP http URIs and the scope must include atproto; anything else with that origin is refused as invalid_client without a fetch.

  • fix: $bytes values decode with or without = padding, as the data model allows. The reference PDS sends com.atproto.space.notifyWrite hashes unpadded, and every one was refused with 400 Invalid hash, so a member hosted elsewhere never appeared in listRepos for a zds-hosted space and their records stayed invisible to everyone but themselves.

  • fix: a private_key_jwt client whose metadata carries its keys inline as jwks can authenticate; before, only jwks_uri was read and such a client got 400 invalid_client at PAR. Both fields at once are refused, as in the reference provider. Observed with atcr.io, whose document publishes jwks inline, against pds.zat.dev.

  • fix: /xrpc/_health reports the version in build.zig.zon. build.zig and the Dockerfile each carried the literal 0.3.0 as a default, so a deploy that did not pass -Dversion (the Fly build never does) reported 0.3.0 for every release; v0.3.1 shipped labeled 0.3.0. ZDS_VERSION on docker build still overrides it for tagged images.

0.3.1 — 2026-09-03

  • fix: OAuth clients with application_type: native that 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_uri was an exact string match, so a CLI had to pin fixed ports in its client document. A registered port still has to match, localhost is not a loopback host, and web clients are unchanged.

  • fix: an access or refresh token this server signed whose exp has passed answers 400 ExpiredToken on every bearer-authenticated route, as the reference PDS does. Before, it was indistinguishable from a forged token (401 InvalidToken), and on the com.atproto.space.* routes it fell through to the space-credential parser and came back as 401 AuthenticationRequired, so a client that refreshes on ExpiredToken never refreshed. OAuth access tokens keep the OAuth profile's 401 with a WWW-Authenticate: ... invalid_token challenge. A refresh token the server revoked, or whose rotation grace window has closed, answers 400 ExpiredToken instead of 401 InvalidToken. Space routes now only try the space-credential path when the request actually carries a DPoP authorization scheme; a bad Bearer token answers InvalidToken rather than AuthenticationRequired.

  • fix: refreshSession keeps 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 got InvalidToken on 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 gain previous_refresh_jti and previous_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 (atproto 2f77206). Before, Bulletin could sign in to a zds account but createSpace answered 400 Missing did.

    • createSpace takes {type, skey?, policy, appAccess}; the space is anchored on the authenticated DID. policy and appAccess are the com.atproto.simplespace.defs unions (#publicPolicy / #memberListPolicy / #managingAppPolicy{managingApp}, #open / #allowList{allowed}); unknown variants answer UnsupportedPolicy / UnsupportedAppAccess. The pre-alpha {did, config:{policy:"member-list",…}} body is rejected.
    • updateSpace takes {space, policy?, appAccess?} with the same unions; a policy change replaces the managing app rather than layering a separate managingApp field.
    • com.atproto.simplespace.getSpace is routed and returns {uri, policy, appAccess}. com.atproto.space.getSpace (the pre-alpha name) still answers, with the same body.
    • listRepoOps paginates: a full page returns a rev/idx cursor and no commit; the final page carries the signed commit. Default and maximum page size follow the lexicon (100 / 1000), as does listRepos, which now only emits a cursor on a full page.
    • deleteRecord is idempotent like com.atproto.repo.deleteRecord; deleting a record that is not there answers {} instead of RecordNotFound.
    • getSpaceCredential uses the lexicon's InvalidDelegationToken for a bad or mismatched delegation token (was InvalidToken / 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 when notifyWrite arrives, 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-alpha createSpace {did: <remote authority>} call.
    • creating a record that already exists answers RecordAlreadyExists (was NotPermitted).
    • the space authority is always authorized for its own space, before any policy check. A managing-app board no longer needs the managing app reachable (or the owner to satisfy its checkUserAccess rule) for the owner to read their own data. Matches the reference PDS (SimpleSpaceManager.authorizeUser) and pds.js (handlers/auth.js); atproto-crates instead always defers managing-app to checkUserAccess, which for Bulletin authorizes the owner anyway via a self-follow.
    • recreating a previously deleted space succeeds (per the createSpace lexicon) 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 (ensureSpace upsert) and atproto-crates (ON CONFLICT DO UPDATE). A live space still answers SpaceAlreadyExists.
  • feat: com.atproto.sync.getRecord answers 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 reference cidsForPath. Before it was 404 UnknownMethod, so a strict lexicon resolver (the official spaces-alpha PDS) could not resolve any include: scope whose permission set lives on a zds-hosted repo. Availability errors reuse the getRepo guard.

  • fix: /oauth/par and the token endpoint answer 400 invalid_scope for an empty scope, an unregistered scope, an unresolvable include:, or mixed transition: and granular scopes. Before, the helper wrote the error and the handler overwrote it with 201, so a bad scope was accepted; a failed private_key_jwt assertion 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; createRecord could write a record the token was not scoped for. On the atproto-proxy path the refusal instead surfaced as a plain-text 500, so clients saw an unparseable error instead of the 401 InvalidToken that triggers a refresh.

  • fix: space: scopes are gated on ZDS_PERMISSIONED_DATA. A flag-off server issued tokens carrying space: grants and then answered MethodNotImplemented on every space route; clients that read the grant as the capability signal saw a false positive. scopes_supported in both metadata documents now lists atproto plus the transition:* 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 NotPermitted for a requester the policy does not allow, SpaceNotFound for a tombstoned space) instead of passing on the caller's own OAuth scope alone; when the authority lives elsewhere the write defers to it. deleteSpace purges authority state so the same type and skey can be recreated.

  • fix: GET /oauth/authorize caches each include: permission set's lexicon record for five minutes. Every render resolved it over the network twice (DoH TXT, DID resolution, a cross-PDS getRecord), about 1.6 s per page.

  • fix: subscribeRepos logs 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 with RateLimitExceeded. 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_DID is not set but --public-url is, the server DID is derived as did: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 advertised did:web:localhost in describeServer and /.well-known/did.json and rejected service-auth tokens whose aud was their real DID. Explicit configuration still wins.

  • refactor: one clock. Fourteen hand-rolled clock_gettime helpers across auth, oauth, dpop, passkeys, permissioned data, sync, the HTTP layer and the store collapse into core/clock.zig on Io.Timestamp (an i96 of nanoseconds). On 32-bit targets std.posix.timespec.sec is 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-bit timespec.sec and trapped at startup, and four std.atomic.Value(u64/i64) globals failed to compile. Chad's PR (#4) widened the multiply and added a spinlock-backed PortableAtomic(T); the follow-up deletes both in favor of not needing a 64-bit atomic anywhere: next_seq and eventlog.latest_seq were already written under a mutex and now are read under it too (applyWrites allocates its seq inside the db_mutex section rather than just before it), the lock-contention timer and the crawler notify throttle keep wrapping u32 timestamps, and sync uses store.nowMs() instead of its own clock_gettime. With zat bumped to v0.4.4 (the same treatment for its three u64 counters and two pointer-size asserts), cross-compiling -Dtarget=arm-linux-musleabihf -Dcpu=arm1176jzf_s is clean, and CI now builds that target on every push.

  • fix: bump httpz to ede9a78, which serializes detachHttp with the state/list transition it races. swapList guarded (remove -> publish _state -> insert) with the per-connection _mut; detachHttp made the same list decision from the same _state without taking it, so the reactor could remove a conn from a list it was not in yet, clobber that list's head/tail, and then free a Conn the list still referenced. Recycling that storage into a websocket produced the access of union field 'http' while field 'retired' is active panic that SIGABRT'd this PDS on 2026-08-18. Reported and reproduced upstream; the fix moves setState(.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: applyWrites indexes 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.ts indexWrites) 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 — applyWrites has 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 makes Mst.collectBlocks emit 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.19 writer whose blocks were never stored; the first tree walk to reach one returned PartialTree, taking every createRecord to 500 and getRepo to 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. See docs/incident-2026-08-18-empty-mst-node.md.
  • fix: handle zat.cbor.Value.float in the CBOR -> ATProto JSON writer. New in zat v0.4.2; the unhandled switch case broke the build on the version bump.
  • ops: repaired the three stranded empty MST nodes in the zat.dev repo 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 /signup with 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.describe capability 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.signCommit for commits, complete imported CARs required, full repo export reachability, and the HEAD getRepo response 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 since rev, 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 applyWrites bodies.
  • 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 subscribeRepos firehose.
  • 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).