Repository navigation
Description
What's the problem
Release battery item M13 has the owner update a mining rig the way users do: boot a newer USB stick on an installed rig and choose Keep everything. The rig must come back with the same role, the same rig.json and miner token, mining on the new image and self-committed. The tier4-kvm rig phase already proves the power-cut return and the A/B bundle update. No automated leg reinstalls a newer image over an installed rig's /data (the gap noted in #3961), so this part of M13 is manual on every release.
What it impacts
- A regression in the Keep-everything path for rigs would reach users unnoticed, for example a lost miner token, a changed role or a rig that stops mining after the update. The coordinator would then lose its adopted rig.
- Each release waits on a hardware step that a VM can do except for its firmware and USB-media parts.
How I found it
A release-gate review on 2026-11-10 mapped M13's steps onto tests/os/phases/rig.sh and the install-rig phase. The power-cut and A/B legs exist; the Keep-everything reinstall over /data does not.
How important is it
High for 2.0.4. The owner asked for the manual release steps to be automated in 2.0.4, and this is the largest automatable part of M13.
Acceptance criteria
- A tier4-kvm leg installs a rig to the internal disk and gets it mining with a token, adopted by the coordinator once the appliance: fix #3069 — prove dashboard rig adoption and config push #3717 backport lands. It then boots a newer image, built with a bumped version marker, from the removable USB bus over the same disk, answers RigForge and chooses Keep everything.
- The leg asserts an unchanged machine role,
rig.jsonand minerACCESS_TOKEN. It asserts that the rig mines on the new image, that the new slot self-commits (A_OK=1 A_TRY=0), and that the coordinator still reads the rig as the same worker. - The leg has a selftest, and a failure at any step deletes its fixtures.
rig-battery.mdmarks the Keep-everything part of M13 as automated. The firmware parts (Restore on AC Power Loss, a real stick) stay manual and are named as such.
Possible solutions
- Build a second image in the same job with a bumped version marker. Attach it as removable USB media to the installed rig guest and drive the RigForge and Keep everything answers through the existing installer automation.
- Reuse the install-rig phase's disk and the rig-share leg's coordinator guest so the adoption check needs no new fixture.
Activity
pithead-developer commentedon Nov 10, 2026
Scope note after the owner decisions of 2026-11-10: rigs run from the USB stick and install-to-disk for the rig role is being dropped. This leg stays valuable only for rigs already installed to disk (the migration case). Its acceptance criteria are unchanged and it need not wait for the new work.
Additions:
rig-battery.md wording for M13 should say it applies to disk-installed rigs and point at the stick leg for everything else.
docs: clear the closed-issue cites beside the corrected battery rows
pithead-developer commentedon Nov 11, 2026
Grouped with #3996, but PR #4030 does not close it: The Keep-everything reinstall leg needs its own new fixture work (a prebuilt disk-installed rig fixture or a test-only installer seam, plus a second image build with a bumped marker) and its coordinator re-adoption check builds on this PR's adopt leg landing — larger than it looks and it needs its own proof, so it gets no closing keyword here.. Released for its own pick.
Bring the battery and release docs in line with the automated rig leg…
pithead-developer commentedon Nov 13, 2026
Moved to v2.0.5 (owner-approved backlog groom, 2026-11-13): needs a new fixture and a second image build.
pithead-developer commentedon Nov 16, 2026
PR #4119's rigkeep leg asserts the scope note's rig-id criterion (kept, or minted if absent, across Keep everything) and is blocked honestly red on pithead#4014 (mint the rig id in rig.json, pass through the RigForge config; itself blocked by rigforge#680): the rig's RigForge config is rebuilt from rig.json every boot (
lib/pithead/14-local-miner.sh:321-346) and today carries no rig id, so a rig id that existed before a Keep-everything reinstall is gone on the first boot after it (bench job 4162: 166 pass · 1 fail — the rig-id row). Root cause, follow-up delta and the strict-assertion rationale are in the PR body's proof section; when #4014 lands the leg drops its setup seeding, rebases and re-proves on a fresh tier4-kvm rigkeep job.pithead-developer commentedon Nov 16, 2026
Blocked on #4014. The rigkeep leg is complete and honestly red on exactly one row: bench 4162@28da71ad2 runs 166 pass · 1 fail, and the fail is the product truth the scope note exists to catch — a rig id present before a Keep-everything reinstall is gone on the first boot after it, because render_rig_miner_config (lib/pithead/14-local-miner.sh:321-346) rebuilds the rig's RigForge config from rig.json every boot and rig.json carries no rig id ("rig_id exists nowhere in pithead today"). The kept-or-minted criterion is the behavior pithead#4014 mints (rig id in rig.json beside the token, passed through the RigForge config; #4014 is itself blocked by rigforge#680), so the PR stays strictly asserting and waits on #4014 rather than weakening or skipping the row. Everything else is finished and proved on head 28da71a: full M13 story green (identity verdict with the rig-id clause, 40-case selftest, GitHub checks green, PR MERGEABLE); the body carries the 4158 and 4162 post-mortems with the failed rows, and PR #4119 and issue #3995 both carry blocker comments naming #4014, what clears it, and the ready follow-up delta (drop the leg's setup seeding when #4014 lands, rebase, re-run tier4-kvm rigkeep on the new head, paste fresh evidence). Who can clear it: owner landing of pithead#4014 (after rigforge#680).
The runner resumes this issue when that one closes.
Tor diagnostics snapshot: circuits, consensus, guards, bootstrap and …