Skip to content

rig KVM leg: set up through Another pool with no pairing, then read the feed and control API from the LAN #4068

Open

Description

@pithead-architect

What's the problem

No automated battery ever sets a rig up as a stand-alone miner: tests/os/phases/rig.sh exercises rigs pointed at a discovered Pithead only. The user-visible promise of #4009 — a rig mining to another pool with no pairing, its feed and control API reachable from the owner's LAN, TLS choosable — has no KVM coverage, so nothing catches a regression in the contract, the renderer branch, or the wizard flow together.

What it impacts

Release confidence for the 2.1.0 rig story; every regression in the #4009 children's interaction.

How I found it

Split from #4009 (its acceptance: a KVM leg sets up through Another pool against the CI Pithead's stratum, with no pairing, and reads its feed and API from the LAN).

How important is it

High for 2.1.0 — this leg is what makes the #4009 children provable as one flow; automated legs use a Pithead only, since an outside-pool leg would move hashrate off the operator's pool (owner, 2026-11-10: that validation stays a manual ad-hoc check).

Acceptance criteria

  • A new rig-phase leg: fresh boot, wizard, submit through Another pool pointed at the CI Pithead's stratum (the pool address the leg's own discovery found answering pithead.local:3333), paired false, no pairing; the rig miner connects and the worker shows on the pool side; nothing adopts the rig.
  • From the LAN: the read-only feed answers with the token; a control-API call from a LAN address inside the rig's own subnet succeeds; the same call from outside that scope is refused.
  • The confirmation screen for this case shows the token card with the plain-HTTP wording (assert the served page, not the source).
  • A failed-dial variant: submitting a shape-valid but unreachable address still reaches the card with the warning and an ackable continue.
  • The existing rig legs (discovery, prefill, paired setup) stay green.
  • docs/dev/appliance-wizard.md's rig-role section and its phase table gain the Another-pool leg description and the paired/TLS semantics — corrected in place, not appended.

Possible solutions

  • Extend the rig phase's existing first-boot harness with one more submission variant; take the pool address from the same host-published discovery the leg already reads, submitted with paired false.

Parent: #4009

Worker brief: Test tier: tier4-kvm, phase rig only (one phase at a time), submitted through $PITHEAD_DEVELOPER_ROOT/bin/bench-submit with --base develop-v2.1.0 and the full 40-hex SHA; paste the bench-ci evidence block unedited into the PR and print it again after every new job.

Depends on: all three other #4009 children — the rig.json contract, the api_allow_from branch, and the wizard UI. If one has not landed, stop and report the dependency; never stub it.

Read tests/os/phases/rig.sh with its harness and tests/os/run.sh --help (its header line-count contract is pinned — get it right). The leg stays inside the CI network: the pool is the CI Pithead's stratum; assert the control-API refusal from a source outside the rig's own subnet without contacting any external host. Register the leg where CI runs it (the phase runner), never source it. A failed leg on an unrelated row is that row's issue — name it and keep your rows green. Follow the phase file's existing prose style; add no comments in code. Docs updates ride the same PR in appliance-wizard.md. Branch from origin/develop-v2.1.0; PR base develop-v2.1.0.

Activity

  1. added this to the v2.1.0 milestone on Nov 12, 2026
  2. added
    appliance
    needs-triage
    size:S
    on Nov 12, 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

    applianceneeds-triagesize:S

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions