The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(release): attempt refs, per-arch receipts, and the mac feed
ethernetcf57433c6e28
diff --git a/website/docs/developer-guide/stable-releases.md b/website/docs/developer-guide/stable-releases.mdindex 1f9a32d1393..7711db72c30 100644--- a/website/docs/developer-guide/stable-releases.md+++ b/website/docs/developer-guide/stable-releases.md@@ -1,9 +1,9 @@# Stable release admission and promotion`Stable Release` is the release gate. A successful builder alone is not a-stable release. Stable releases use claim tags as locks and final tags as green-receipts; neither tag is a workflow trigger. Canary builds retain their separate-push-driven workflow.+stable release. Stable releases use attempt refs as locks and final tags as+publish receipts; neither tag is a workflow trigger. Canary builds retain their+separate push-driven workflow.The committed project version is always `0.0.0`. Release jobs derive the payloadversion from the admitted ref and stamp isolated build trees. Do not bump version@@ -11,31 +11,38 @@ files on `main`.## Order-1. Refresh `origin/main` and remote `v*-rc` claims. Derive the next SemVer from- the published release family seeded at `0.21.4` and every spent claim.-2. Push an annotated `vMAJOR.MINOR.PATCH-rc` claim atomically, create one- non-prerelease GitHub draft for it, and dispatch `Stable Release` on that exact- claim ref. The claim message binds its commit, autopublish policy, and one- monotonically allocated epoch. That epoch is the release date and native- packaging clock for every matrix leg and retry.+1. Refresh `origin/main` and the remote attempt and marker refs (`rc.*` and+ `abandoned-rc.*`). Derive the next SemVer from the published release family+ seeded at `0.21.4` alone. Attempts do not move the version line.+2. Push an annotated `rc.<N>-vX.Y.Z` attempt ref atomically, create one+ non-prerelease GitHub draft on it, and dispatch `Stable Release` on that exact+ ref. The attempt number comes from the existing attempt refs of that version.+ The claim message binds its commit, attempt number, autopublish policy, and+ one monotonically allocated epoch. That epoch is the release date and native+ packaging clock for every matrix leg and retry. One outstanding attempt, of+ any version, blocks a new `release`.3. Admit the exact remote annotated tag-object SHA, peeled commit, `GITHUB_REF`,`GITHUB_SHA`, checked-out `HEAD`, and ancestry on `origin/main`.4. Run the whole source, Docker, Nix, PM bundle, install/update, Termux, Windows,signed-package, and native-upgrade acceptance graph.-5. Publish immutable versioned Docker and R2 artifacts from the tested bytes.- Do not move `stable` or `latest` aliases yet and do not rebuild for publication.-6. Create the annotated final `vMAJOR.MINOR.PATCH` receipt. It binds the original- claim object, commit, candidate-manifest SHA256, Docker manifest digest, and- autopublish policy. Retarget the existing draft to this final tag.-7. The stable publication controller resolves releases oldest first. It publishes- the GitHub draft, verifies and promotes the receipt-bound Docker digest, then- advances App Installer, macOS, APT, downloads-page, and protected R2 heads.+5. Push immutable versioned Docker and R2 artifacts from the tested bytes. The+ Docker image is pushed as soon as its own tests pass, tagged by the attempt+ ref. Do not move `stable` or `latest` aliases yet and do not rebuild for+ publication.+6. Create the annotated final `vMAJOR.MINOR.PATCH` receipt at publish, not at+ green. It binds the winning attempt's ref, object, commit, archive prefix,+ candidate-manifest SHA256, Docker manifest digest, and autopublish policy.+7. The stable publication controller resolves releases oldest first. It creates+ `vX.Y.Z`, retargets the still-draft release onto it, strips the warning+ blocks, makes the release public as the last call, then verifies and promotes+ the receipt-bound Docker digest and advances App Installer, macOS, APT,+ downloads-page, and protected R2 heads.A sole green draft waits unless its claim selected autopublish. A later greenclaim flushes all contiguous earlier green drafts in order. An older running claim-blocks newer publication. Burned claims are skipped but their version numbers are-never reused. Failed, cancelled, missing, and unexpectedly skipped requirements-remain red.+blocks newer publication. A burned attempt is skipped, and its version is cut+again after `abandon`. Failed, cancelled, missing, and unexpectedly skipped+requirements remain red.Docker Hub, R2, APT, GitHub, and the Store do not support one cross-servicetransaction. The controller is therefore idempotent: after a partial failure,@@ -57,9 +64,26 @@ python scripts/release.py release --commit "$(git rev-parse origin/main)" --bump````--bump` defaults to `patch`; pass `minor` or `major` only when that change is-intentional. The selected commit must descend from or equal the highest claim's-source. Equality lets a burned release be superseded without an unrelated code-change; an ancestor or unrelated sibling is refused.+intentional. The selected commit must descend from the newest published+`vX.Y.Z`. With no published tag, any commit already on remote `main` is+accepted. An abandoned attempt puts no constraint on the next cut; it was often+abandoned because its commit is bad. `release` also refuses while any attempt,+of any version, is outstanding. The refusal prints the attempt's workflow run+URL, the `abandon` command, and the rerun command before it raises.++The attempt ref is a public lock, not a SemVer prerelease. It reads+`rc.1-v0.21.5`, not `v0.21.5-rc.1`. The package version stays plain `0.21.5`.+`parse_attempt_ref` in `scripts/releases/versioning.py` is the one grammar for+the shape.++The draft body carries a fenced warning block at the top and at the bottom: do+not publish the release from the GitHub UI. Publishing it by hand skips the+`vX.Y.Z` receipt tag, the update feeds, the Docker aliases, and the Store+release. Published releases are immutable, so a hand-published release cannot+be fixed afterwards, and it blocks the pipeline: the attempt then has neither a+marker ref nor a final tag, so `release` refuses it as outstanding and+`abandon` refuses it because it is published. The publication pass strips both+fenced blocks while the release is still a draft.Add `--autopublish` to publish immediately when the claim becomes the oldestgreen release. Without it, the release stays a draft until an explicit publish@@ -76,10 +100,10 @@ python scripts/release.py abandon --version 0.21.5 --remote origin`publish` performs a synchronous supersession preflight, then dispatches the sameordered controller used by automatic recovery. It refuses a known burned version-below a newer published release. `abandon` deletes only the draft; it deliberately-keeps the `-rc` and any final receipt so derivation cannot reuse that version.-The sequencer derives that missing-draft state as burned rather than recording a-separate abandonment flag.+below a newer published release. `abandon` deletes the draft when one exists,+writes an `abandoned-rc.<N>-vX.Y.Z` marker ref, and keeps the attempt ref. The+marker is the record of abandonment; the attempt ref is never deleted. The+version is not spent, so the next cut is `rc.<N+1>-vX.Y.Z`.Do not manually dispatch `Stable Release` from a final tag. Recovery keeps theoriginal claim ref, object SHA, commit, draft database ID, and autopublish policy.@@ -100,16 +124,25 @@ hour. This grace window covers the non-atomic draft and dispatch steps. After thhour, a still-unstarted claim is derived as burned. No claim is burned during thenormal creation window.-Desktop and Termux handoffs live in the immutable R2 tag archive. Each producer-writes a `handoff-<target>.json` receipt containing the tag, commit, paths, sizes,-and SHA256 digests. Candidate assembly emits one pinned-`release-candidates.json`; consumers verify its digest and do not re-upload the-packages. Docker publication pushes one immutable versioned manifest and records-its registry digest in the final tag. Delayed publication promotes that digest-registry-side, so it does not depend on expiring Actions artifacts.+Desktop and Termux handoffs live in the immutable R2 tag archive. The archive+key is the attempt ref: `releases/tag/rc.<N>-vX.Y.Z/`. `releases/tag/vX.Y.Z/`+is never written. Each producer writes a `handoff-<target>.json` receipt+containing the tag, commit, paths, sizes, and SHA256 digests. Per-arch receipts+live beside the candidate manifest under that prefix. Candidate assembly emits+one pinned `release-candidates.json`; consumers verify its digest and do not+re-upload the packages. Its digest is recorded nowhere before publish: the+publication pass hashes the archive copy and writes that hash into the final+tag. Docker publication pushes one immutable versioned manifest tagged by the+attempt ref and records its registry digest in the final tag. Delayed+publication promotes that digest registry-side, so it does not depend on+expiring Actions artifacts.Windows, macOS, and Termux candidate jobs stage packages and metadata under-`releases/tag/<tag>/` before acceptance. No stable feed is written at this stage.+`releases/tag/<attempt ref>/` before acceptance. No stable feed is written at+this stage. The stable APT pool path also carries the attempt ref:+`releases/termux/stable/pool/<attempt ref>/<c>/<name>.deb`. The pool upload is+immutable with a one-year cache header, so a recut of the same version writes a+different pool key.Immutable uploads accept an existing object only when its bytes match. If anarchive object, final-tag digest, versioned Docker tag, or read-back differs, stoprecovery rather than replacing the accepted candidate.@@ -123,19 +156,48 @@ the resulting Tauri package version, builds and inspects Python wheel/sdistmetadata and filenames, and checks the Nix and Docker runtime identities. Anyconsumer-facing `0.0.0` or mismatched version fails the gate.-The annotated final tag binds the GitHub release database ID admitted with the-claim. Deleting that release burns the transaction: a replacement draft with the-same tag name cannot be retargeted or published by reconciliation.+The draft stays on the attempt ref until publish. Deleting it is `abandon`, and+it does not burn the version. The annotated final tag binds the GitHub release+database ID admitted with the claim. Publish edits the release only while it is+still a draft: it creates `vX.Y.Z`, retargets the release onto it, strips the+warning blocks from the body, and reads the tag and body back. Making the+release public is the last call. Published releases are immutable, so nothing+can retarget or re-tag one afterwards.++Nothing points a client at an attempt until publish. The updater compares+versions, not URLs, and that is safe only because of this. The diagnostic page+at `releases/tag/<attempt ref>/index.html` is not an update feed, and an+attempt installed from it is not upgrade-safe: every attempt of a version has+the same package version, so the published build never replaces it. The Docker+image is pushed early under the attempt ref; the `stable` and `latest` aliases+move with the feed in the publication pass. The Store submission is held until+publish: the green run submits with auto-publish off, and the publication pass+releases a certified submission or turns auto-publish on. Stable channel+records carry an optional `archiveRef` naming the attempt ref; `releaseTag`+stays `vX.Y.Z` and the protected prefix falls back to it when `archiveRef` is+absent.The desktop workflow's optional `termux_upgrade_from_tag` input names an exactpublished release with a Termux R2 handoff. Explicit non-publishing desktop buildsretain no downloadable job artifacts.+The desktop workflow takes a `jobs` input with the groups `darwin-arm64`,+`darwin-x64`, `win32-arm64`, `win32-x64`, `win32-bundle`, `linux-x64`,+`linux-arm64`, and `termux`. Stable calls it once per group, except the linux+groups, which wait for a real Linux build. Each Mac arch and the Windows bundle+stage a receipt, and each install arm starts from its own receipt as soon as+its own bytes are staged. `acceptance` is the one join that blocks publication.+The `smoke-win32-universal` job is gone; the per-arch MSIX smokes cover each+arch, and the Windows install arms install the `.msixbundle` on both arches.+## Tag namespaces and receipts-Before relying on claim tags as locks, apply a repository ruleset for-`refs/tags/v*` that restricts creation, update, and deletion to organization-administrators and the release integration. Claim and final tags are immutable.+Before relying on attempt refs as locks, apply a repository ruleset for+`refs/tags/v*`, `refs/tags/rc.*`, and `refs/tags/abandoned-rc.*` that restricts+creation to organization administrators and the release integration and blocks+update and deletion. The ruleset is not applied yet; until an admin applies it,+these locks are honor-system — anyone with push access can delete a marker ref+or move a receipt tag. Attempt refs, marker refs, and final tags are immutable.Channel and commit builds write annotated post-build receipts such as`v0.0.7+channel.<YYYYMMDDTHHMMSSZ>.<run-id>` and`v0.0.0+commit.<YYYYMMDDTHHMMSSZ>.<run-id>` only after publication succeeds.