Repository navigation
Description
What's the problem
No tier-4 test on an appliance rig proves that a coordinator can adopt it and then push a change to it. Adoption writes a workers.list entry through the dashboard control routes (preview, then commit with typed APPLY). "Apply to rig" then sends a change through /api/control/worker-apply to the rig's control port. Adoption is covered at tier 1/3 only. The DIY rigforge-control phase exercises worker-apply, but only after a host-side pre-adoption. The end-to-end proof is the manual step M12 (docs/dev/manual-qa/appliance/14-rigforge-rig.md 14.2), and rig-battery.md records its replacement, "a dashboard-driven adopt/config push check", as not yet written.
Coverage on develop-v2.1.0 at 7cb2266:
- In
tests/os,adoptappears only in comments and card-text checks (rig-control-off-leg.sh,setup-again-leg.sh). rig-share-leg.shasserts accepted-share counters only.rig.shproves the control port is closed to an unpinned source and that the rig accepts a change from its own loopback. It never proves the coordinator can reach it.- The DIY rigforge-control phase pre-adopts its rig by injecting the descriptor with a host
apply. - The adopt route is tier 1/3 only (
test_worker_adopt_route.py,test-control-add-only-ssrf.sh). - Manual-test round: the automation ledger — every finding's check, and the gaps to close before RC2 #1886's first gap was closed with "re-file individually", and this part never was.
What it impacts
Operators who adopt a rig from the dashboard, on the appliance and on DIY. Adoption is how the dashboard gets write access to a rig, and Apply to rig is how it changes the rig's config. A regression in the route, the token handling or the rig's control pin to the coordinator would go unnoticed until someone runs the manual walkthrough.
The leg drives the control routes, not the Workers view. The Machines page (#2517, #3566 section D) keeps the same host and API and the typed APPLY for "adopt or manage this rig", so the proof survives the 2.1.0 cutover and adds no work to the current dashboard UI.
How I found it
Found while building the manual QA walkthrough (#3065, merged as #3128), which mapped each step against the four test tiers and filed the steps that could be automated. Parent tracker: #3068. The coverage list above was re-checked against develop-v2.1.0 on 2026-10-27 and still holds.
Not checked: whether a dashboard restart is needed before an adopted rig reads as adopted (docs/dashboard.md says the worker list is read at process start), whether the coordinator guest in this leg has the dashboard control channel on, and how much run time the leg adds against the phases=all cap (#2744, parked).
How important is it
Low. This is test debt (P3-hardening, maintenance & gates) and never blocks a ship. The step is still covered by hand in the release walkthrough. It is workable now because the owner lifted the pause on parked and test work on 2026-10-27.
Acceptance criteria
- A tier-4 KVM leg in
rig_share_leg, after the share row, runs on the coordinator and rig guests it already boots and adds no guest. - Before adoption, the coordinator's
/api/stateshows the rig as not adopted. - The leg previews, then commits with typed
APPLYaworkers.listappend (rig address, control port, the rig card's token) through the control routes./api/statethen shows the worker adopted with its API reachable. If a dashboard restart is needed first, the leg does it and the PR says so. - A
worker-applyDONATION change reachesapplied. The rig's RigForge config shows the new value and its pools are unchanged. - The rig's control port stays unreachable from the bench host while the coordinator reaches it.
- The leg puts back the donation level it changed, so later rig legs see an unchanged rig.
- The card token never appears in leg output or evidence.
- The PR records the run time the leg adds.
rig-battery.mdM12 names the leg. The PR adds no explanatory source comments and changes nothing in the current dashboard UI or its tests.
Possible solutions
- Add the leg to
tests/os/rig-share-leg.shafter the share row. Reuse its coordinator state helper, and the control request pattern intests/integration/lib/run-rig-control.sh(POST with the control header, then poll/api/control/result). - Keep the leg to the minimum calls (one preview, one commit, one worker-apply, a few reads) so it costs little against the
phases=allcap. - The adopt dialog and inspector clicks stay in the tier-2 browser tests and move with the Machines page (Sovereign: make the machines view usable for 2, 50 and 100 workers #2517). This leg does not click.
- Unknowns to settle in the PR: whether adoption alone makes the rig read as adopted or needs a dashboard restart or the next config apply, and whether the coordinator guest needs the control channel switched on for this leg.
Earlier scope, kept as evidence only (superseded 2026-10-27; do not implement from it)
What's the problem
Manual step: checklist 14.1–14.2 (M12). The coordinator's dashboard adopts a RigForge rig through Workers → adopt form (rig address, control port 8082, the card's token), then Apply to rig lands a donation-level change and leaves the pools untouched. Before adoption, the worker row shows not adopted.
Current coverage:
- No tier-4 test drives the adopt route on either channel. In
tests/os,adoptappears only in comments and card-text checks (rig-control-off-leg.sh,setup-again-leg.sh). rig-share-leg.shasserts accepted-share counters only.rig.shproves the control port is closed to an unpinned source, never that it is open to the coordinator.- The DIY rigforge-control phase pre-adopts its rig by a host
apply. - The route itself is tier 1/3 only (
test_worker_adopt_route.py,test-control-add-only-ssrf.sh). - Manual-test round: the automation ledger — every finding's check, and the gaps to close before RC2 #1886's first gap was closed with "re-file individually", and this part never was.
what it impacts
Impact is not separately established in the existing report; confirm the affected users or behavior.
How I found it
Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.
how important is it
Importance has not been assessed explicitly; triage must state the priority and its reason.
acceptance criteria
Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.
possible solutions
Proposed check (KVM, in rig_share_leg after the share row):
- The coordinator's
/api/stateshows the rig as not adopted. - Preview, then commit with typed
APPLYaworkers.listappend (rig IP,8082, card token) through the control route. The worker turns adopted with its API reachable. - A
worker-applyDONATION change reachesapplied. The rig's RigForge config shows the new value and unchanged pools. - The bench host still cannot reach the rig's
8082, while the coordinator can.
Found while building the manual QA walkthrough (#3065). Part of #3068. Test debt for after the 2.0.0 cut, so it is blocked by #2774.
Activity
docs(release): link the automation-gap tracker; fix S4's chart claim
docs(release): full manual QA walkthrough in the release checklist (#…
pithead-developer commentedon Oct 21, 2026
Parked in Icebox under the lean roadmap (owner, 2026-10-21): all work on the current dashboard UI is deferred until the lean 4-page UI (now part of v2.1.0), which replaces it.
appliance: fix #3069 — prove dashboard rig adoption and config push (#…
pithead-developer commentedon Oct 30, 2026
Merged in #3717.
fix(os): clear cosign go-jose vulnerability (#3762)
test(lan): retain bounded crash-recovery evidence (#3793)