Description
What's the problem
Nothing proves a stick-rooted rig refuses a bad update safely, falls back when the new slot's miner never starts, or stops honoring a revoked token. rig-os-update.md states these rules (five refusals, uncommitted slot returning to the previous slot, revoke via rigforge#681) but only the disk-rig leg from PR #4103 touches any of them, and only the version-ceiling refusal. This is chunk 2 of the split of #4018. Blocked by chunk 1's stick fixtures (child of #4018), pithead#4013 and rigforge#681.
What it impacts
A rig taking a bad bundle, or a coordinator that believes Remove rig ended access, on the layout 2.1.0 actually ships rigs on.
How I found it
Split of #4018 (owner decisions of 2026-11-10); docs/dev/rig-os-update.md §Where the rig verifies, §Install, commit and fall back.
How important is it
High for 2.1.0; the refusal, fallback and revoke guarantees are the safety case for shipping stick updates.
Acceptance criteria
- Each refusal proven on the stick leg, rig stays on the old slot mining each time (
_rig_mining_upafter each, running marker andrauc.slotunchanged,rig-update.jsonrecordsrefusedwith a reason): bad bundle signature,compatiblemismatch, older version, equal version, release tag above the ceiling the caller passes. - Fallback: a bundle whose miner never starts leaves the slot uncommitted; the next boot returns to the old slot (
rauc.sloton cmdline),rig-update.jsonsettlesrolled_back, and mining continues. - Revoke: after Remove rig on the coordinator, the old token gets 401 on both the control and the read route; the rig keeps mining.
- Each assertion set has a tier-1 selftest pinning its verdict; fixtures clean up on failure;
rig-battery.mdandtesting-strategy.mdrows updated.
Possible solutions
- Extend the chunk-1 stick leg with refusal/fallback/revoke legs, reusing its seam fixture; build bad bundles by tampering (corrupt signature, rewrite
compatible, mis-version) as the appliance update phases already do, and stopxmrig.servicein the fallback bundle's payload.
Parent: #4018
Worker brief: Test tier: tier4-kvm (rigmedia phase), plus tier-1 selftests per verdict set. Requires the chunk-1 stick update leg (its seam fixture and helpers) as base; build on it, do not duplicate fixtures. Add legs on the stick rig: (1) five refusals — corrupted-signature bundle, wrong compatible, older version, equal version, channel tag above the ceiling (--max-version or the API's ceiling param) — each asserting the running slot and marker unchanged, _rig_mining_up green, rig-update.json refused with reason, and mining still green after the refusal; (2) fallback — bundle whose payload prevents xmrig from starting, assert the slot stays uncommitted, next boot back on the old rauc.slot, rolled_back verdict, mining restored; hand the rig back on the old slot for later legs (PR #4103's ORDER=B hand-back pattern); (3) revoke — after Remove rig on the coordinator, old token 401 on control and read routes (rigforge#681), rig still mining. Selftests pinned where CI runs them; fail-path cleanup like _rigmedia_fail_cleanup. No code comments in edited hunks; make lint-file-budget before proof. Submit tier4-kvm phase rigmedia via bin/bench-submit --base develop-v2.1.0; quote bench-ci evidence blocks unedited. Prereqs: chunk 1 merged, pithead#4013, rigforge#681 — name them in blocked_on if unmet.
Activity
pithead-architect commentedon Nov 27, 2026
Release regroom (owner request, 2026-11-27): moved from v2.1.0 to v2.0.6. Stick refusals, fallback and revoke proof gates the remote update; follows #4543.
pithead-developer commentedon Dec 3, 2026
Grouped with #4180, but PR #4673 does not close it: its legs assert rig-update refusals, fallback and revoke-401 on the stick, which all depend on prerequisites that are still unmerged (pithead #4543, pithead #4013, rigforge #681) — the legs cannot be written or turned green from this branch. Released for its own pick.