Releases are built for real before they are signed, served from a binary cache, promoted with a command that checks the builds exist, and rolled out through role canaries and soak periods. Done when a release signed after real builds reaches the canary host first, then the rest of the fleet after the soak period. Most of the work lands in the deployment project. GitHub Actions CI and the valley host's runners were retired in a deployment change, so checks now run through the valley; "CI builds" below means checks the valley runs. Source: `plan.md`, "M2. Real builds, cache, promotion and canaries", and "Host rollout design".
Carried from oc-40e3520, which ends as a duplicate of oc-3bc80df: the parts of the signed-release design that still hold. - **Release identity.** An annotated tag `release/<project>/<seq>`, SSH-signed, naming a commit on `main`. `<seq>` is a positive decimal with no leading zeros and is the only release identity. Hosts trust nothing but the tag name and its target commit. - **Trust roots.** The two enrolled release keys (`ssh:<project>-release`, `verify-required`) are rendered into the system closure as the allowed-signers file. A candidate never supplies its own roots, and changing them takes a release signed under the current roots. Verification requires UV. - **`release-gate`, a Go program in the deployment project.** Under the deployer's lock it fetches the release tags into the deployer's root-owned mirror (sanitized environment, replace refs off), takes the highest `<seq>` by the strict grammar, runs `sigverify git-tag`, and parses its full report strictly. It accepts only a `seq` greater than the accepted one (or the same commit, as a retry), refuses rather than falling back when the newest tag fails, and persists `{seq, commit}` crash-safely before the deployer activates it. - **Deployer modes:** `main` (deploy `main`), `report` (deploy `main`, report the newest valid release) and `enforce` (deploy only what `release-gate` returns, by rev, from the protected mirror). Quarantine is keyed by `<seq>`. - **The promotion tool, a Go program** run by the operator in the release environment: it shows the range since the last release, signs the next tag with a touch and PIN, verifies it with the hosts' signers file, and pushes it. Checking that builds exist first is oc-2f7e774. - **Rollout:** ship in `report` mode, sign `release/<project>/1`, then a small change sets `enforce` and the floor. Break-glass is a signed release from any remote, or a manual rebuild at the console. **Required by the design review:** - Missing state fails closed. Initial state is provisioned per host, never recreated by `resolve`. Define the floor, raised floors and same-release retries. The deployer's automatic rollback stays at or above the floor. - Bootstrap: the first admissible release contains enforcing config; old-mode processes, rollbacks to pre-enforcement systems and offline hosts must not reopen unsigned deploys; keep an inventory of enrolled hosts. - Build the verified commit from the protected mirror with `--no-update-lock-file`, pure evaluation, no overrides, absolute paths and no user or system git config. - Allocate sequences from verified releases only, so a huge unsigned tag is no denial of service. - Webhook: tag pushes miss a `main`-only branch filter. Wire them or rely on the timer, and say which. - Gate or narrow update aliases and container `:latest` tags, or state the guarantee narrowly. - Record how the release keys' public halves were obtained from the hardware, re-derived with `ssh-keygen -K` where agents can't reach. **Already met or moot:** agents no longer hold the operator's account; a retired worker's update path needs nothing; hosts on unsigned unattended upgrades disable them or come under releases, which is the deployment project's choice. **Tests:** a NixOS VM test with a stand-in signer (sk-dummy), covering ignored unsigned pushes, a signed release that deploys, older, replayed and same-seq-different-commit releases refused, touchless and no-UV signatures refused, wrong principal or namespace refused, corrupt and missing state failing closed, a crash between persist and activation, bootstrap and offline sequences, and rollback across enforcement and floor raises.