# 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: ". 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](https://tangled.org/zat.dev/zds/pulls/33/latest) 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](https://docs.astral.sh/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=&…`) as well as positionally (`space:?…`), 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 `, 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](docs/space-policy-upgrade.md#moving-spaces-with-an-account-v071). - 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](docs/space-policy-upgrade.md). - `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 `