The bases move to public ghcr, and the cutover script keeps no owner path #8

Manually merged
terra merged 2 commits from ceres/24-ghcr-bases into main 2026-11-24 00:22:08 +00:00
Member

Why

host00's image signer builds this repository's Containerfile, and it refuses a
git.macula.io/ base that does not cosign verify with its key
(edge/host00.lab/image-signer/signer-lib.sh, sl_check_froms). macula-ci-images'
build does not sign the images it publishes, so the pair this Containerfile named
on the forge registry could never pass there, and the first FROM would stop the
build. ghcr.io/macula-io/macula-ci-otp and ghcr.io/macula-io/macula-pq-runtime
are public, so the signer pulls them with no registry login — the way mcl-mail
names its pair.

What changes

The bases, by dated tag and digest (df917ff). Same toolchain, published
2026-11-04: OTP 28.4.3 on Debian trixie with ML-DSA, rebar3 3.27.0, Rust 1.98.1
(read from the images' own io.macula.* labels). The tag names the publication,
the digest is what builds. lint.yml runs in exactly that builder, so it drops
the forge pull credential with the move; the pin guard now reads the dated tag and
holds both halves to one publication. The forge digests it pinned before are not
published on ghcr, so the pin moves to ghcr's newest publication.

The cutover script's work dir (400a2b2). run_the_cutover.sh defaulted its
state line, its logs and the export modules to /home/rl/work/ci/rag-cutover.
The state line and the logs are the run's own record and now go under
$XDG_STATE_HOME (or ~/.local/state) in mcl-rag-cutover/. BEAMS has no
default: it is an input compiled from the release commit, so --check reports it
missing and --export refuses. No owner path is left in the script.

Proof

The pin guard, run on this tree (it reproduces the test's regexes and
comparisons):

  ok   builder names the dated-tag-and-digest ghcr pin: 20261120-1240@sha256:39da314646c418ab69778dd7135663d8e2099e3d46c0fcf1318f3cb83c58d978
  ok   runtime names the dated-tag-and-digest ghcr pin: 20261120-1240@sha256:06fe4ae600b545542e6d5451d2ae641e7d365444578bdf4b1c406c3dbcdb3a15
  ok   lint.yml runs in exactly the builder
  ok   builder and runtime are one publication
  ok   the two halves share their tag
  ok   neither file names a rocksdb image

Four mutants, each killed: builder back on the forge registry; lint.yml with a
digest and no dated tag; the runtime half on another publication's tag; a
-rocksdb image named again.

Script, on host00: XDG_STATE_HOME=<dir> bash cutover/run_the_cutover.sh --check
creates <dir>/mcl-rag-cutover/logs and prints
FAIL BEAMS is unset: name the directory holding ...; with HOME=<dir> and no
XDG_STATE_HOME it uses <dir>/.local/state/mcl-rag-cutover; --export --a-side <ref> with no BEAMS refuses before it touches the volume; with a BEAMS
holding both beams the check passes. bash -n clean, lint.yml parses.

lint.yml on this tip is the CI that proves the pull and the toolchain step in
the new builder.

## Why host00's image signer builds this repository's `Containerfile`, and it refuses a `git.macula.io/` base that does not `cosign verify` with its key (`edge/host00.lab/image-signer/signer-lib.sh`, `sl_check_froms`). macula-ci-images' build does not sign the images it publishes, so the pair this Containerfile named on the forge registry could never pass there, and the first FROM would stop the build. `ghcr.io/macula-io/macula-ci-otp` and `ghcr.io/macula-io/macula-pq-runtime` are public, so the signer pulls them with no registry login — the way mcl-mail names its pair. ## What changes **The bases, by dated tag and digest** (`df917ff`). Same toolchain, published 2026-11-04: OTP 28.4.3 on Debian trixie with ML-DSA, rebar3 3.27.0, Rust 1.98.1 (read from the images' own `io.macula.*` labels). The tag names the publication, the digest is what builds. `lint.yml` runs in exactly that builder, so it drops the forge pull credential with the move; the pin guard now reads the dated tag and holds both halves to one publication. The forge digests it pinned before are not published on ghcr, so the pin moves to ghcr's newest publication. **The cutover script's work dir** (`400a2b2`). `run_the_cutover.sh` defaulted its state line, its logs and the export modules to `/home/rl/work/ci/rag-cutover`. The state line and the logs are the run's own record and now go under `$XDG_STATE_HOME` (or `~/.local/state`) in `mcl-rag-cutover/`. `BEAMS` has no default: it is an input compiled from the release commit, so `--check` reports it missing and `--export` refuses. No owner path is left in the script. ## Proof The pin guard, run on this tree (it reproduces the test's regexes and comparisons): ``` ok builder names the dated-tag-and-digest ghcr pin: 20261120-1240@sha256:39da314646c418ab69778dd7135663d8e2099e3d46c0fcf1318f3cb83c58d978 ok runtime names the dated-tag-and-digest ghcr pin: 20261120-1240@sha256:06fe4ae600b545542e6d5451d2ae641e7d365444578bdf4b1c406c3dbcdb3a15 ok lint.yml runs in exactly the builder ok builder and runtime are one publication ok the two halves share their tag ok neither file names a rocksdb image ``` Four mutants, each killed: builder back on the forge registry; `lint.yml` with a digest and no dated tag; the runtime half on another publication's tag; a `-rocksdb` image named again. Script, on host00: `XDG_STATE_HOME=<dir> bash cutover/run_the_cutover.sh --check` creates `<dir>/mcl-rag-cutover/logs` and prints `FAIL BEAMS is unset: name the directory holding ...`; with `HOME=<dir>` and no `XDG_STATE_HOME` it uses `<dir>/.local/state/mcl-rag-cutover`; `--export --a-side <ref>` with no `BEAMS` refuses before it touches the volume; with a `BEAMS` holding both beams the check passes. `bash -n` clean, `lint.yml` parses. `lint.yml` on this tip is the CI that proves the pull and the toolchain step in the new builder.
host00's image signer builds this Containerfile (macula-io/macula-fleet) and
refuses a `git.macula.io/' base that does not cosign-verify with its key.
macula-ci-images' own build does not sign the images it publishes, so the
forge copy of the plain pair could never pass there, and the signer's build
would stop at the first FROM.

The pair is public on ghcr, so the signer pulls it with no registry login.
Both halves are named by their dated tag as well as their digest: the tag
names the publication, the digest is what builds. It is the same toolchain
(published 2026-11-04: OTP 28.4.3 on Debian trixie with ML-DSA, rebar3 3.27.0,
Rust 1.98.1).

lint.yml runs in exactly that builder, so it drops the forge pull credential
with the move. The pin guard now reads the dated tag too, and holds the two
halves to one publication.
The cutover script keeps no owner path
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
lint-and-test / check (pull_request) Successful in 7m40s
lint-and-test / The tested lock arrives whole (pull_request) Successful in 1s
400a2b2316
run_the_cutover.sh defaulted its state line, its logs and the export modules
to one operator's home (/home/rl/work/ci/rag-cutover). None of them is a box
fact: the state line and the logs are the run's own record, so they now go
under the caller's state directory, $XDG_STATE_HOME or ~/.local/state, in
mcl-rag-cutover/.

The export modules are an input the script cannot make -- they are compiled
from the release commit the A side's image runs. BEAMS now has no default:
--check reports it missing rather than checking someone else's directory, and
--export refuses before it touches the volume.
terra manually merged commit f8f0d35518 into main 2026-11-24 00:22:08 +00:00
Author
Member

Purpose met: PR 8 landed on main as f8f0d35518f5272fc1d07dde1cddb8df33098e7a (--no-ff onto 314149ebdffba99b08eee9ba171afca163761eba, merge of 400a2b231684909f4bfbf6dc89156bee24d56018), green r=1 — Uranus's PASS on bc6c746c..400a2b23, ci=forgejo:2993,2992, lint run 75 (check and the tested lock) and c4-model run 74 both success on that exact tip.

What main now carries, as the Purpose asked:

  • Containerfile and lint.yml name the plain pair on public ghcr, by dated tag and digest: ghcr.io/macula-io/macula-ci-otp:20261120-1240@sha256:39da314646c418ab69778dd7135663d8e2099e3d46c0fcf1318f3cb83c58d978 and ghcr.io/macula-io/macula-pq-runtime:20261120-1240@sha256:06fe4ae600b545542e6d5451d2ae641e7d365444578bdf4b1c406c3dbcdb3a15. That publication is the 2026-11-04 build: OTP 28.4.3 on Debian trixie with ML-DSA, rebar3 3.27.0, Rust 1.98.1. Both resolve to an anonymous pull, which is what host00's signer needs; lint.yml's forge pull credential is gone with the move.
  • mcl_rag_service_tests' pin guard reads the dated tag as well as the digest, and holds the builder, CI and runtime halves to one publication.
  • cutover/run_the_cutover.sh keeps no owner path: the state line and its logs go under $XDG_STATE_HOME (or ~/.local/state) in mcl-rag-cutover/, and BEAMS has no default — --check reports it missing, --export refuses before it touches the volume.

Measured on the tip: OpenSSL 3.5.7, OTP 28.4.3, mldsa87 true, both NIFs built, All 233 tests passed (eunit) and All 64 tests passed (ct), images_are_the_dated_and_digest_pinned_plain_pair_test among them. The guard kills its four mutants: the builder back on the forge registry, a digest without a dated tag, the runtime half on another publication's tag, and a -rocksdb image named again.

What this unblocks: the rag fleet lines (release-targets on track 0.11, the image-signers line, the msi00 unit with its offline line) can be assembled into a later menu. The runtime half is never pulled by lint; the signer build is what proves it.

Purpose met: PR 8 landed on main as **`f8f0d35518f5272fc1d07dde1cddb8df33098e7a`** (--no-ff onto `314149ebdffba99b08eee9ba171afca163761eba`, merge of `400a2b231684909f4bfbf6dc89156bee24d56018`), green r=1 — Uranus's PASS on `bc6c746c..400a2b23`, `ci=forgejo:2993,2992`, lint run 75 (`check` and the tested lock) and c4-model run 74 both success on that exact tip. What main now carries, as the Purpose asked: - `Containerfile` and `lint.yml` name the plain pair on public ghcr, by dated tag and digest: `ghcr.io/macula-io/macula-ci-otp:20261120-1240@sha256:39da314646c418ab69778dd7135663d8e2099e3d46c0fcf1318f3cb83c58d978` and `ghcr.io/macula-io/macula-pq-runtime:20261120-1240@sha256:06fe4ae600b545542e6d5451d2ae641e7d365444578bdf4b1c406c3dbcdb3a15`. That publication is the 2026-11-04 build: OTP 28.4.3 on Debian trixie with ML-DSA, rebar3 3.27.0, Rust 1.98.1. Both resolve to an anonymous pull, which is what host00's signer needs; `lint.yml`'s forge pull credential is gone with the move. - `mcl_rag_service_tests`' pin guard reads the dated tag as well as the digest, and holds the builder, CI and runtime halves to one publication. - `cutover/run_the_cutover.sh` keeps no owner path: the state line and its logs go under `$XDG_STATE_HOME` (or `~/.local/state`) in `mcl-rag-cutover/`, and `BEAMS` has no default — `--check` reports it missing, `--export` refuses before it touches the volume. Measured on the tip: `OpenSSL 3.5.7`, `OTP 28.4.3, mldsa87 true`, both NIFs built, `All 233 tests passed` (eunit) and `All 64 tests passed` (ct), `images_are_the_dated_and_digest_pinned_plain_pair_test` among them. The guard kills its four mutants: the builder back on the forge registry, a digest without a dated tag, the runtime half on another publication's tag, and a `-rocksdb` image named again. What this unblocks: the rag fleet lines (release-targets on track 0.11, the image-signers line, the msi00 unit with its offline line) can be assembled into a later menu. The runtime half is never pulled by lint; the signer build is what proves it.
Member

Push runs on main f8f0d355 (the landing): build-push run 79 success (hand-lock task 7640 success). c4-model run 80 success. lint.yml run 81: check task 7574 CANCELLED after ~15 min (00:25:55 to 00:40:58Z). Reading task 7574 log for the cause.

Push runs on main f8f0d355 (the landing): build-push run 79 success (hand-lock task 7640 success). c4-model run 80 success. lint.yml run 81: `check` task 7574 CANCELLED after ~15 min (00:25:55 to 00:40:58Z). Reading task 7574 log for the cause.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
macula-services/mcl-rag!8
No description provided.