--- name: release description: cut a zds release end to end — bump build.zig.zon, promote the unreleased changelog section, run the checks, tag, push (which deploys pds.zat.dev and publishes the container image via spindle), verify both. use when asked to release, tag, or ship a version, or what the next release would contain. --- release the current state of `main` using the release context in the request. zds ships two ways from one tag: the push to `main` deploys `pds.zat.dev` through `.tangled/workflows/ci.yml`, and the tag push runs `.tangled/workflows/publish-image.yml`, which pushes the image to `atcr.io/zat.dev/zds`. the tag is the release; the changelog section is its notes. policy (patch vs minor vs major) lives in [docs/operations.md#releases](../../../docs/operations.md#releases). ## version locations - `build.zig.zon` line 3: `.version = "x.y.z"` — `GET /xrpc/_health` reports it, which is how the live deploy is verified - `CHANGELOG.md`: `## unreleased` at the top collects entries as work lands; a release renames it to `## x.y.z — YYYY-MM-DD`. entries are `- **fix**:` / `- **feat**:` / `- **refactor**:` / `- **docs**:`, prose that says what a client or operator sees now versus before, with nested bullets for the per-method minutiae. there is no empty `## unreleased` between releases; the next change recreates it. ## steps 1. **what is shipping**: `git log v..main --format='%h %s'` and read `## unreleased`. every commit on that range that a client or operator can notice should have an entry; add the missing ones before bumping. 2. **decide the bump**: patch for compatibility fixes and operator-safe bug fixes; minor for protocol surface, storage shape (a schema migration counts), or operator workflow changes; major only for a declared incompatible contract. before 1.0 a protocol-parity fix is still a patch. 3. **update**: `just release` (step 6) sets `.version` in `build.zig.zon` and renames `## unreleased` to `## x.y.z — `; nothing to do by hand. 4. **checks** (all must pass, no flags): ```sh just test just smoke-all git diff --check zig zen ``` Run `zig fmt --check build.zig build.zig.zon src bench tools`, matching CI. For substantial or critical-path changes, also complete adversarial diff review, replayable fuzz/property checks and focused performance measurements before pushing. Use the `pre-ship` and `zig-fuzz` skills when available; record campaign scope, mutation calibration, measured workloads and remaining gaps. 5. **parity releases**: if the range changed protocol behaviour or storage shape, complete the [benchmark stage checklist](../../../bench/README.md#stage-checklist) and record any remaining mismatch as a decision or follow-up in `docs/`. 6. **commit and tag**: `just release x.y.z`. it runs `just ui-gate` (both skins, every page, phone and desktop, on this machine's GPU) and refuses to tag if any frame-time, scroll-tracking, legibility or toolbar check fails; then it bumps `build.zig.zon`, promotes `## unreleased` and commits `release: vx.y.z` with an annotated tag. never tag by hand around a failing gate; fix the page. CI cannot run the gate (no GPU or chromium in the nixery image). 7. **push**: `git push origin main vx.y.z`. the push is the deploy gate; never run `flyctl deploy` ahead of it. 8. **watch the deploy**: the remote is a repo DID, so `tg` needs the handle/repo form: `tg pipeline status zat.dev/zds`. it is a finite status line per workflow, not the interactive `ssh -t ... 3333` viewer the push prints. when `deploy main to Fly` finishes, verify the live version: ```sh curl -fsS https://pds.zat.dev/xrpc/_health | jq .version ``` then follow the post-deploy checks in [docs/deployment.md](../../../docs/deployment.md): a 200 from `_health` alone is not verification when the change touched auth, sync, or storage. 9. **container image**: the tag push runs `publish-image.yml`, which publishes `vx.y.z`, `latest` and the 12-character commit tag. check it with `tg pipeline status zat.dev/zds`. it logs in to atcr.io with the spindle secret `ATCR_APP_PASSWORD`, a `zat.dev` app password synced from the secrets store. if the tag run is missing, trigger the workflow on the release commit: `tg pipeline trigger -w publish-image.yml -R zat.dev/zds`. `just docker-publish-release` remains for a local build, but a login made with the atcr credential helper is a browser OAuth session. 10. **devlog**: if the release has a technical story worth telling (a new subsystem, a parity finding across PDS implementations, a measured perf win), suggest a `docs/` note or a notes-repo entry and ask before writing it.