Repository navigation
Description
What's the problem
No test proves a stick-rooted rig can update. tests/os/phases/rigmedia.sh boots a 16G removable USB-bus guest and tests/os/phases/rig.sh proves the A/B install on a disk-installed rig, but nothing exercises the stick's spare slot, the rig's own download, Tor starting and stopping, or fallback on the stick layout. Nothing asserts that a USB-run rig leaves the machine's disks alone; one repart behaviour (stock systemd-repart touching only the root disk) is inferred, not proven.
What it impacts
Dropping install-to-disk and claiming stick updates would rest on an unmeasured layout.
How I found it
Owner decisions of 2026-11-10 (items 2, 5, 9, 11). Reading the phases above and docs/dev/rig-os-update.md (disk-only claim).
How important is it
High for 2.1.0; it gates dropping install-to-disk.
It is blocked by #4013, p2pool-starter-stack/rigforge#684, p2pool-starter-stack/rigforge#681, #4009, #4010.
Acceptance criteria
- A tier4-kvm leg boots a rig from a USB-bus 16G stick, runs the API's check and update against a local release fixture and a local Tor fixture, installs into the spare slot, reboots and shows the new slot self-committed and mining, with role, rig.json, token and rig id unchanged.
- Tor is asserted inactive before the check, after the check and after the update.
- Refusals proven, rig stays on the old slot mining each time: bad signature, wrong compatible, downgrade, equal version, a tag above the coordinator's ceiling.
- Fallback proven: a bundle whose miner never starts leaves the slot uncommitted and the next boot returns to the old slot.
- Revoke proven: after Remove rig, the old token gets 401 on control and read routes.
- Disk-safety: starting from the first boot of a fresh stick image (systemd-repart runs then), with a second internal disk attached that holds an existing bootable OS and ESP, that disk is byte-identical after a full run, update and reboot cycle. A second case with the stick as the only disk also passes.
- Standalone leg: a rig with no coordinator mines to the CI Pithead's stratum as a plain pool, with no pairing, and serves its feed and API on the LAN (shared with the wizard issue). Automated tests use a Pithead only. Validating against an outside pool is a manual check the owner runs ad hoc when needed, since an automated leg would send hashrate away from the operator's pool (owner, 2026-11-10). The low-RAM leg is owned by the memory issue.
- Legs have selftests and clean fixtures on failure; rig-battery.md says which parts stay manual (real stick, firmware).
Possible solutions
- Extend the rigmedia phase with a second boot and a fixture release server; reuse the bench-local release lookup seam from the coordinator update leg (docs/dev/appliance-release.md
updaterow, leg 4).
Activity
pithead-developer commentedon Nov 24, 2026
Grouped with #3577, but PR #4465 does not close it: Blocked by open prerequisites (the rig-side updater, rig wizard, role-aware memory and the rigforge update and revoke APIs) and adds KVM legs unrelated to the setup wizard or profile code in this group.. Released for its own pick.
pithead-architect commentedon Nov 27, 2026
A local session judged this too big for one local session (Too big for one local session: #4018 carries four independent tier4-kvm objectives (stick update happy path over on-demand Tor; refusals/fallback/revoke; internal-disk safety; standalone no-coordinator leg), each needing its own leg, fixtures and selftest. Read-only recon done, nothing edited: the b). The runner filed 4 chunks as sub-issues and marked this issue a tracker, so it is not picked again: