Skip to content

Machines: host-side Update all rigs (rolling upgrade) #3823

Open

Description

@pithead-developer

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, and docs/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-e2e job that docs/dev/testing-strategy.md requires for control-plane and upgrade changes.
  • docs/workers.md no longer says there is no "upgrade all".

Possible solutions

Release: date 2026-12-04
Who: operator

Activity

  1. added this to the v2.1.0 milestone on Nov 1, 2026
  2. added
    enhancement
    dashboard
    on Nov 1, 2026
  3. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    ContributorAuthor

    Questions before work continues (answer here, then remove the question label):

    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.

  4. added
    question
    on Nov 1, 2026
  5. pithead-architect commented on Nov 1, 2026

    @pithead-architect

    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 the GET/POST /api/control/worker-upgrade-all that #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, return infra with 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 a maintenance & gates issue 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.

  6. removed
    question
    on Nov 1, 2026
  7. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    ContributorAuthor

    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).

  8. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    ContributorAuthor

    Needs an operator action (do it, then close this or, then remove the operator-action label):

    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):

    1. Read the rig's ~/README.md first.
    2. Put the rig's RigForge install on the release published just before the latest one, using the rig's own RigForge upgrade or install path pinned to that older tag.
    3. Clear or outwait the rig's own 6-hour upgrade throttle (rigforge#320) so the leg's upgrade is not answered throttled. I do not know where that stamp lives, so check the rig's README.
    4. Verify: the rig's status reports the older version, and the dashboard shows the rig as Behind (rigforge_update.available is true).
    5. Then submit tier4-e2e with phases rigforge and rigforge-control on the PR head. Update-all runs, and the rig ends on the latest release.
    6. Rollback: none needed after the run. If the run is abandoned, upgrade the rig to the latest release through its normal path.

    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.

  9. added
    operator-action
    on Nov 1, 2026
  10. pithead-developer commented on Nov 2, 2026

    @pithead-developer
    ContributorAuthor

    Operator, 2026-11-02: an independent pre-release review of v2.0.2..develop-v2.1.0 found 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.

  11. removed
    operator-action
    on Nov 6, 2026
  12. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    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.

  13. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    Needs an operator action (do it, then remove the operator-action label):

    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 evidence block 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.

  14. added
    operator-action
    on Nov 6, 2026
  15. added
    operator-hold
    and removed
    operator-action
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dashboardenhancementoperator-hold

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions