Repository navigation
Description
What's the problem
The KVM battery sets up every appliance guest with HARNESS_WALLET and HARNESS_TARI, both defined once in tests/os/lib/core.sh:
HARNESS_WALLET(line 30) is XMRig's public donation address, as its comment says.HARNESS_TARI(line 35) is a throwaway address that is not the owner's.
In local-node phases this is harmless. A scratch disk never syncs, so the sync gate keeps P2Pool and the built-in miner idle (#35).
When the bench supplies its synced nodes, some guests leave the sync gate and really mine, so their shares credit an address that is not the owner's:
stack:stack_browser_config(tests/os/phases/stack.sh:30-53) sets the two harness addresses,p2pool.pool = "mini"andxvb.enabled = true. It leaveslocal_miner.enabledat the wizard default, which istrue(Tier-4 parity: the stack-behaviour suite (tests/integration/run.sh) has never run against the appliance runtime — add a KVMstackphase that drives it against a remote-node provisioned guest #2062).rig: the share leg (tests/os/rig-share-leg.sh, KVM battery: no accepted share is ever proven on the appliance channel — the rig guest mines at its own sshd and the coordinator guest never releases; add a two-guest leg (remote-node coordinator + rig-role guest) #2063) builds the same remote-node coordinator and points a RigForge guest at it.image-upgrade:tests/os/phases/image-upgrade.sh:121-135selects remote mode with the local miner on and the harness addresses (XvB off). Read from the source; not observed in a run.provision: the first wizard submit fixes the guest's wallet toHARNESS_WALLET(tests/os/provision-browser-submit.sh:24). The reserved-node leg (tests/os/appliance-node-runtime-leg.sh) then moves that guest to the synced nodes, keeping the wallet. Read from the source; not observed in a run.provision, old-image migration recovery:tests/os/migration-recovery.shprovisions with the harness wallet and the local miner on. It moves to the synced nodes at line 106 and waits for advancing hash counts. This runs only when an old image is set. Read from the source; not observed in a run.- XvB routing leg:
tests/os/appliance-xvb-routing-leg.shswitches a guest's proxy to the real XvB pool. That route is credited to the XvB donor id (dashboard/mining_dashboard/service/xvb/algo_service.py:89), not the wallet. Whether shares are submitted during that window is not shown.
On 2026-11-14 the owner ruled that test hash must go to the owner's own wallets, never "to nothing or someone else".
What it impacts
- Hash on the KVM benches during these phases. It credits XMRig's donation address, a throwaway Tari address or the XvB donor id, never the owner.
- Measured in bench-ci job 4020 (a
rigrun).- The RigForge guest reported an h60 of 3330, 520 and 1040 H/s across its three share legs, with fresh accepted shares in each.
- The coordinator's built-in miner's accepted count rose in each leg: 2 to 3, 3 to 5, 6 to 8.
- Per-leg duration is not measured.
- Scope. Test harness only. No product code is affected.
How I found it
A read-only review on 2026-11-14, after the owner's ruling. It covered:
- the source on
developat the paths above; - the
kvm-rig.logartifact of bench-ci job 4020, lines 536-538, 607-608 and 678-679 (the three share legs).
How important is it
Medium. It breaks an owner rule on every KVM run that uses the bench's synced nodes: all test hash pays the owner. The hash involved per run is small, though. It is test-only, so it should not displace 2.0.4 release work. Criterion 2 would fail every node phase until the bench supplies the addresses, so the bench side lands first; this issue is held with operator-action until then.
Acceptance criteria
- Owner addresses used. When the bench supplies the owner's payout addresses, every guest the battery configures uses them for
monero.wallet_addressandtari.wallet_address. That includes theprovisionguest from its first submit, the migration-recovery guest, and thestack,rigandimage-upgradeguests. A self-test checks the wallet in each of those served configs. - Refusal without them. When the bench supplies its node variables (
PITHEAD_OS_MONERO_NODE_HOSTand the Tari equivalents) but not the payout addresses, the battery exits non-zero before it provisions any guest, and its message names the missing variable, never a value. The gate keys on the node variables, not on phase names. A self-test covers it. - Local phases unchanged. With no node variables supplied, local-node phases and the self-tests run as today.
- No leak. The addresses arrive through bench-supplied environment variables. They never appear in the repository, a log, an artifact or the dashboard output the battery captures, and a self-test checks this.
- XvB. No hashing guest is routed to the real XvB pool under an identity that is not the owner's. Either the donor id is owner-controlled, or XvB is off, or the routing leg runs with the local miner off. The PR states which.
Possible solutions
- Preferred. Make the single definition in
tests/os/lib/core.shread bench-supplied variables, for exampleHARNESS_WALLET="${PITHEAD_OS_PAYOUT_MONERO:-<today's value>}". Every phase then inherits them. Add one early check intests/os/run.shfor criterion 2. The bench side supplies and validates the addresses; that is tracked separately. - Alternative. Keep the harness addresses, and turn the local miner and XvB off wherever remote mode is set (stack, rig share leg, image-upgrade, provision, migration recovery). This drops the mining assertions in the
rigshare leg and inmigration_wait_for_mining, so the first option is preferred.
Activity
pithead-developer commentedon Nov 15, 2026
The bench side, which supplies and validates the addresses, is bench-ci#2524. It lands first.
Keep owner payouts and wallet fragments out of the KVM battery output (…
Redact the remaining KVM battery output paths and restore max_temp_c …
Redact the remote-node submit failure body and bring changed KVM batt…
Redact the image-upgrade stream and Tor/migration dumps, and probe th…
Assert the rig adopt leg writes only the probe key and restore a null…
Keep the guest miner off during the Tari wallet leg's address swap an…
fix(test): KVM battery mines to the bench-supplied owner payouts (#4118…
pithead-developer commentedon Nov 20, 2026
Fixed by #4120 (merged as e40f58a). When a bench supplies chain nodes, the KVM battery now mines only to the payout addresses the bench passes in, and
require_owner_payoutsrefuses to start without them. With no payout variables set, the defaults are the owner's public wallets: the README donation wallet and the owner's Tari wallet. The battery's KVM node phases passed at the PR head with digest-verified owner payouts (provision, rig, stack, media). Image-upgrade is tracked separately in #4294.