[fabrica] Release pin (QC M1): nix-pin.sh pins a clean commit and records it, its source tree and nixpkgs; release-pin.mjs refuses a pin whose source tree is not the tag's and publishes the pinned commit; docs say what is checked (one rebuild of the outputs) and that none of it has run yet

This commit is contained in:
2026-11-22 18:49:35 +01:00
parent 43a0dfdadc
commit b492ccf5f9
8 changed files with 140 additions and 59 deletions
+4 -3
View File
@@ -6,9 +6,10 @@
# `notes` is Fabrica's release notes since the previous v* tag (Fabrica docs/12_release_kit.md); `shots` takes the
# same files as `fabrica aula shots` (core docs/FORMATS.md, "Fabrica: the Aula page") from the built web UI against
# the demo control plane with invented data, in headless Edge. No landing page while app.yaml has no `aula: true`.
# `pin` publishes the Nix build's NAR hashes (.fabrica/nix/pin.json, written by scripts/nix-pin.sh on Linux and
# committed before the tag) with the tag's commit as ianitor-nix.json, so SHA256SUMS also vouches for the build
# anyone can repeat (docs/verify.md); the `verify-nix` pipeline rebuilds the tag on the NixOS runner and compares.
# `pin` publishes the Nix build's NAR hashes (.fabrica/nix/pin.json, written by scripts/nix-pin.sh on Linux at a
# clean commit and committed before the tag) as ianitor-nix.json, and refuses a pin made from other code than the
# tag's (its recorded source tree must be the tag's); that check is the gate, since pipelines cannot depend on one
# another. The `verify-nix` pipeline rebuilds the tag on the NixOS runner and compares (docs/verify.md).
name: release
on:
tag: "v*"
+4 -3
View File
@@ -1,7 +1,8 @@
# Ianitor Domi: the verifiable build (docs/verify.md). On a v* tag the NixOS runner builds .#ianitor and
# .#ianitor-web from the tag (the run record keeps each output's store path and NAR hash), builds them again
# from scratch, and compares with the pin the release publishes (.fabrica/nix/pin.json at the tag); any
# difference fails the run. Runner: label `nixos`, Nix with flakes; no KVM needed.
# .#ianitor-web from the tag (the run record keeps each output's store path and NAR hash), rebuilds each output
# derivation once more, and compares with the pin the release publishes (.fabrica/nix/pin.json at the tag: the
# source tree, nixpkgs and every hash); any difference fails the run. Runner: label `nixos`, Nix with flakes,
# node and jq from the `ci` shell; no KVM needed.
name: verify-nix
on:
tag: "v*"