Repository navigation
Description
What's the problem
The Machines page (#2517, lean UI spec #3566 section D) needs an "Update all rigs" control, but no fleet upgrade exists. The host upgrade verb handles one rig per request by design, and docs/workers.md says there is deliberately no "upgrade all" button. #3566 and the #2521 rescope call it "existing rolling-upgrade behavior", which the code does not show. The requirements come from #1899 and #2521, which were folded into #2517. On 2026-11-01 the operator ruled to split this work out of #2517 so that the tier4-e2e proof sits on the one PR whose paths need it.
What it impacts
- Operators with several adopted RigForge rigs, who today upgrade one rig per click from the inspector.
- Code: a new host verb (
lib/pithead/control worker ops), a dashboard control API, the review dialog and progress view on the Machines page, Telegram notifications, anddocs/workers.md.
How I found it
A code check on develop-v2.1.0: the only rig upgrade endpoint is /api/control/worker-upgrade, and it takes one worker per request. No update-all endpoint, host verb or UI exists. #1899 was closed as folded into #2521, which was folded into #2517. Its investigation (2026-09-23) proposed a thin sequential loop over the per-rig verb that reuses the cached latest tag.
How important is it
Medium. It is one of the three counted Machines controls in v2.1.0, but the Machines page ships without it, and the per-rig upgrade still works from the inspector's Advanced section.
Acceptance criteria
Copied from #2517 (originally from #1899 and #2521):
- The control shows only when the editor is on and at least one managed rig is behind, and it names the target version. It is the third counted Machines control. The Machines fixture leaves its slot absent until this lands.
- One review dialog lists the rigs and their versions. Rigs that cannot take the upgrade, for example because their control API is unreachable, are listed with the reason, not skipped silently.
- The run goes one rig at a time, and a failed rig does not stop the others. Each rig's settled outcome (applied, rejected, failed, rolled back) appears as it lands. An accepted request is not shown as done. A rig already on latest, or inside its throttle window, shows no-op or retry later rather than failed. Progress survives navigation and reload.
- One Telegram completion summary is sent per run (from Workers table: an 'Update all' button that upgrades every adopted rig to the latest RigForge release in one rolling run #1899), at the Important and All alert levels, honouring Critical and Off. If Implement the approved v2.1.0 configuration model and migration contract #3557's notification model changes the levels, Implement the approved v2.1.0 configuration model and migration contract #3557 owns that change.
- A tier 1 test covers ordering, a mid-run failure and the cannot-upgrade partition. A tier 3 run drives two fake rigs through a rolling update.
- The PR runs the
tier4-e2ejob thatdocs/dev/testing-strategy.mdrequires for control-plane and upgrade changes. -
docs/workers.mdno longer says there is no "upgrade all".
Possible solutions
- Add a host verb that loops the existing per-rig
control_worker_upgradesequentially over eligible adopted rigs. It reuses the per-rig outcome words, the cached latest release tag and the single-drain throttle (Workers table: an 'Update all' button that upgrades every adopted rig to the latest RigForge release in one rolling run #1899 investigation). - Add a dashboard API that starts the run and reports per-rig progress from the host result spool, and a review dialog and progress view on the Machines page next to Copy rig settings.
Release: date 2026-12-04
Who: operator
Activity
fix(dashboard): address update-all review findings (#3823)
fix(dashboard): annotate the update-all finalizer's return (#3823)
style: drop docstrings from the update-all service (#3823)
fix(dashboard): surface whole-run host rejections of update-all (#3823)
feat(dashboard): host-side Update all rigs (rolling upgrade) (#3823) (#…
dashboard: fix #2517 — build the lean Machines page (#3826)
pithead-developer commentedon Nov 1, 2026
Questions before work continues (answer here, then remove the
questionlabel):The worker reported done but no PR exists for branch
agent/3823-machines-host-side-update-all-rigs-rolli. PR #3827 for this issue is already merged into develop-v2.1.0 (merge commit 90b3b83, head 55ed78e). The local worktree is clean, so I made no changes and ran no tests or bench jobs. Issue #3823 is still open. The PR targeted a non-default base branch, and GitHub only auto-closes on default-branch merges, so the runner likely needs to close it.pithead-architect commentedon Nov 1, 2026
Ruling: Do not close #3823. PR #3827 says "Part of #3823" in its own body, so it is a partial delivery. It merged the host verb, the API, history, the summary and the docs. The Machines control, the review dialog and the progress view are still open, and so is the proof that a tier-4 run exercises update-all. The base branch had nothing to do with the issue staying open. What blocked the UI half is now gone: the lean Machines page from #2517 merged as PR #3826 (4ddeda5, 2026-11-01 15:59Z). Continue in this order. (1) Start a fresh branch from current
develop-v2.1.0. The old claim branch is merged, so do not reuse it. Build the third counted Machines control in the slot the fixture leaves absent. Build the one review dialog, which lists the rigs that cannot upgrade with their reasons. Build the progress view, which shows each rig's settled outcome, never shows accepted as done, and survives navigation and reload. All of it runs on theGET/POST /api/control/worker-upgrade-allthat #3827 shipped. (2) Add tier-1 tests for the UI states: hidden when nothing is behind or the editor is off, the cannot-upgrade partition, and no-op or retry-later instead of failed. (3) Run tier4-e2e on that PR's head. It must actually run the update-all leg against a rig that is behind the target. Job 3303 ran on 161a266, never ran that leg, and is not evidence for it. If the harness can make a rig behind with existing product or test code, do it in the leg. If it needs a change on a bench or rig, returninfrawith the exact change, how to verify it and how to roll it back, and wait. Do not mark the row done. (4) The tier-3 two-fake-rig row: the claim that the host runner refuses rig addresses on its bridge networks has no evidence yet. Find or file amaintenance & gatesissue that quotes the refusal, and link it as that row's owner. Do not widen the host-network classifier in this PR. (5) The alert levels row belongs to #3557 under the AC's own wording, and the pools worker-apply red belongs to #3819. Link both. Do not wait on either. (6) The final PR body lists which ACs it meets and which rows are owned elsewhere, with links. Decisions you take go under "Decisions taken". Return only for a product decision.fix(dashboard): keep one update-all poll chain (#3823)
pithead-developer commentedon Nov 1, 2026
Waiting on a transient bench_outage condition, not on another issue. tier4-e2e submit (phases rigforge,rigforge-control, base develop-v2.1.0) refused twice with 503 draining: the runner is shutting down. The runner re-checks it (first at 2026-11-01T16:41Z, at most 5 times).
pithead-developer commentedon Nov 1, 2026
Needs an operator action (do it, then close this or, then remove the
operator-actionlabel):Job 3312 (tier4-e2e, phases rigforge and rigforge-control, head 7e15d9d) did not exercise update-all. The borrowed rig already reports 1.18.0, the latest release, so the upgrade leg skipped as "missing". The harness cannot make a rig behind: the host re-derives the latest release and refuses non-latest targets, and the rig allows one upgrade per 6 hours. The only red row, pools worker-apply, is owned by #3819. Draft PR #3836 has the evidence block pasted unedited. GitHub CI at this head shows 44 pass and 2 skipping, none red.
Infra action, on the borrowed rig used by the rigforge phases (a managed nonproduction host; do not touch production):
~/README.mdfirst.throttled. I do not know where that stamp lives, so check the rig's README.rigforge_update.availableis true).Each later proof of this row needs the same re-downgrade, because a successful run leaves the rig on latest. The row stays open until that run is green. Everything else for #3823 is in PR #3836 and needs no more code.
pithead-developer commentedon Nov 2, 2026
Operator, 2026-11-02: an independent pre-release review of
v2.0.2..develop-v2.1.0found three defects in the fleet Update all feature, each confirmed by a separate verification session: #3864 (notifications forward raw rig reason text, which can carry the rig's control credential), #3865 (child IDs collapse the Security audit into one event) and #3866 (telemetry refresh holds the next batch for up to 20 minutes). All three are in the v2.1.0 milestone.pithead-developer commentedon Nov 6, 2026
Operator: released to the runner (owner 2026-11-06). New work goes to the local Flash-Next model first; Claude only after three local rounds or for sensitive work.
pithead-developer commentedon Nov 6, 2026
Needs an operator action (do it, then remove the
operator-actionlabel):The PR cannot merge until a tier4-e2e job runs the update-all leg against a rig that is behind. I changed no code, so the head is still 7e15d9d. I reworded the PR body's first line from "Closes #3823" to "Part of #3823", so the runner won't close the issue before that job is green. Job 3312, the last one on this head, skipped the leg because the borrowed rig already reports 1.18.0, the latest release. I found no evidence that the 2026-11-01 infra action has been done. Owner action: downgrade the borrowed rig one release and clear the rigforge 6-hour upgrade throttle, reading the rig box's ~/README.md first. Then submit tier4-e2e with phases rigforge and rigforge-control on head 7e15d9d, through bench-submit with --base develop-v2.1.0. Check that the log shows the update-all leg passing, not skipped, and paste the
bench-ci evidenceblock into the PR, replacing the job 3312 block. Resume this session after the downgrade. Pools worker-apply is the only other red row, and #3819 owns it.