Repository navigation
Description
What's the problem
Part of #4212 acceptance criterion 4 (and the recorded proof for AC2): the appliance gate must run RigForge with its Rust implementation selected and record the result, or record that it did not run. The tier4-kvm battery's rig phase (tests/os/phases/rig.sh) asserts the rig's /data/rigforge config and the xmrig seed delivery; nothing references RIGFORGE_IMPL (rigforge#706 will add the RIGFORGE_IMPL=rust|bash dispatcher; RigForge develop has none) or the delivered binary. The image-upgrade phase likewise has no line proving that an update moving the RigForge pin leaves the installed-binary state matching the new image.
What it impacts
The tier4-kvm rig and image-upgrade phase evidence and the runner-visible record of RigForge's Rust path on appliances. No product runtime behavior changes.
How I found it
Required by pithead#4212. Read 2026-11-25: tests/os/phases/rig.sh (config asserts and the xmrig-seed delivery assert), tests/os/phases/image-upgrade.sh, tests/os/README.md, and rigforge develop (no RIGFORGE_IMPL anywhere).
How important is it
The proof piece of pithead#4212: without a recorded line, "delivered but never exercised" surfaces only when a RigForge release flips the default. The did-not-run record is itself an acceptance criterion, not a substitute for one.
Acceptance criteria
- Rig phase: when the installed Rust binary exists on the guest, run RigForge with the Rust implementation selected (
RIGFORGE_IMPL=rust, per rigforge#706: unknown value or missing binary is a non-zero error, never a silent fallback) on the cheapest meaningful verb, and record the verdict with the binary's version as a phase line; when it does not exist, print a visible line recording that it did not run and why (no binary at this pin). Never a silent skip. --phase rigon the PR head passes today by recording did-not-run, and that job's uneditedbench-ci evidenceblock is pasted in the PR — this is pithead#4212's currently-provable state.- Image-upgrade (or the crossupdate mechanics, whichever drives the pin move cheaper within the phase): after an update whose image moved the RigForge pin, a line asserts the new slot's installed-binary state matches what the image baked (absent today, and that branch is what is recorded), so the delivery story has a recorded row at the update leg too.
- New phase-internal functions are reflected in
tests/os/selftest-run-modules.sh's pinned run.sh function list (that selftest aborts the loop when the list drifts);tests/os/README.mdsays what each new row asserts. - No existing battery row is renamed, removed, or weakened.
Possible solutions
- A line in
phase_rigafter the existing xmrig-seed delivery assert, with a guest-side helper where the rig-phase idiom puts one; a matching line in the image-upgrade phase after the new slot boots. - When rigforge#706 lands the dispatcher and a release ships the asset, the same line runs for real with no structural change.
Parent: #4212
Worker brief: Test tier: tier4-kvm, one phase at a time: --phase rig on the head (expected: passes with the explicit did-not-run record, since no RigForge release through v1.19.0 ships a binary asset and the baked tree is VERSION 1.18.1); add --phase image-upgrade for the update-delivery row. Both through bench-submit with --base develop-v2.1.0; paste each bench-ci evidence block unedited and again when each job finishes.
Read first: tests/os/run.sh line-6 usage and phase plumbing, tests/os/phases/rig.sh (its _build_image/_ssh/_ssh helpers and the xmrig-seed delivery assert near the /data/rigforge config rows is the anchor), tests/os/phases/image-upgrade.sh and tests/os/image-upgrade-bundle.sh, tests/os/README.md, tests/os/selftest-run-modules.sh (it pins the whole run.sh function list on one line — every function you add must appear or the selftest loop aborts; it needs ./pithead built). Parent: pithead#4212 (its AC4 and AC2 record). Conforming contract: rigforge#706 (RIGFORGE_IMPL=rust|bash, default bash; unknown value or missing binary exits non-zero, never falls back silently).
Behavior spec: rig phase prints one Rust-implementation row per boot — binary installed: run RIGFORGE_IMPL=rust on the installed binary / rigforge.sh at the cheapest meaningful read-only verb, record pass or fail with the binary's version; binary absent: a visible line recording did-not-run and why. Image-upgrade phase records that the new slot's installed-binary state matches the new image's baked state (absent-vs-absent recorded today). No silent skips, no weakening of existing rows, no comments in code. Any other red row in a shared phase is not yours: name it and its owning issue. In the PR body state that today's provable state is the did-not-run record, per the issue's own criterion, and that flipping to real runs is a rigforge release event, not a code gap.
Activity