Round 17 A (part 1): committed write CLI (G1) + best-share reads (G9) + parity roadmap
build-test-release / release (push) Successful in 6m3s

Executing the aftermarket config+scan parity plan (docs/aftermarket-parity-roadmap.md,
from the ultracode writer/adversary workflow). This is Round A's foundation + first cheap win.

G1 - miner_probe is now a committed config+scan CLI, not a local-only diagnostic. Added
capability-gated write verbs: `light <ip> <on|off>`, `pause`, `resume`, `restart` (alongside
the existing setpl/setpools/led), a READ vs WRITE usage banner warning that write verbs mutate
(use the test-bed miners, not production), and best_share/session_best_share columns in `scan`.
Verified: `light on`/`light off` on a LuxOS corpus unit -> Ok(true) (reversible).

G9 - implement GetBestShare/GetSessionBestShare (were empty impls feeding two dead columns):
Braiins v26_04 reads miner/stats -> /miner_stats/best_share; LuxMiner v1 reads summary ->
/SUMMARY/0/Best Share + Best Session Share. Both reuse already-collected responses (no extra
calls). asic-rs patch 0013. Verified live read-only: BOS 10.4.1.83 = 130601978 (no session on
BOS); LuxOS 10.4.1.60 = 638881749/638881749, 10.4.1.67 = 497802665/497802665 -- exact API match.
(WhatsMiner stock summary exposes no best-share on the tested units; deferred. The roadmap's BOS
source "miner_stats" was a typo for the real "miner/stats" endpoint.)

Also commits the parity roadmap (docs/) as the plan of record for rounds A-F.
Round A remainder (G8 constraints reads, G13 LuxOS pool-op privileged fix, G14 telemetry
enrichment) follows; G13 needs a password-set LuxOS unit to fully verify.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6
This commit is contained in:
2026-09-21 22:36:59 -06:00
co-authored by Claude Opus 4.8
parent 983ad807b5
commit 3f55be4820
7 changed files with 975 additions and 11 deletions
+315 -6
View File
@@ -8,15 +8,26 @@
//! Scan the given subnets and print, per responder (TSV):
//! ip make firmware model_id control_board watts supports_power_limit supports_tuning
//!
//! Mutation modes (setpl) are intentionally NOT included here: asic-rs exposes
//! no read-back of a miner's configured power limit, so an exact
//! restore-to-prior-state cannot be guaranteed from this tool alone.
//! miner_probe setpl <ip> <watts>
//! Apply a power limit to ONE miner and print the setter's result. This
//! MUTATES the device -- capture and restore its prior configured limit
//! separately (e.g. WhatsMiner cgminer API on :4028 reports "Power Limit"
//! read-only). asic-rs has no power-limit read-back, so this tool cannot
//! restore on its own.
//!
//! Credentials come from ~/.config/alkane-toolkit/scan-credentials.txt, or from
//! ALKANE_PROBE_USER / ALKANE_PROBE_PASS if set (so a test can authenticate
//! without touching the app's saved config).
use asic_rs::MinerFactory;
use asic_rs::core::traits::miner::MinerAuth;
use futures_util::StreamExt;
use measurements::Power;
fn load_creds() -> Option<(String, String)> {
if let (Ok(u), Ok(pw)) = (std::env::var("ALKANE_PROBE_USER"), std::env::var("ALKANE_PROBE_PASS")) {
return Some((u, pw));
}
let home = std::env::var("HOME").ok()?;
let p = std::path::PathBuf::from(home)
.join(".config/alkane-toolkit/scan-credentials.txt");
@@ -51,7 +62,7 @@ async fn scan(cidrs: &[String]) {
}
};
}
println!("ip\tmake\tfirmware\tmodel_id\tcontrol_board\twatts\tsupports_power_limit\tsupports_tuning");
println!("ip\tmake\tfirmware\tfw_version\tmodel_id\tcontrol_board\twatts\tsupports_power_limit\tsupports_tuning\tbest_share\tsession_best_share");
let mut stream = f.scan_stream_with_ip();
let mut found = 0usize;
while let Some((ip, miner)) = stream.next().await {
@@ -63,10 +74,14 @@ async fn scan(cidrs: &[String]) {
.as_ref()
.map(|c| c.to_string())
.unwrap_or_default();
let fw_ver = data.firmware_version.clone().unwrap_or_default();
let bs = data.best_share.map(|v| format!("{v:.0}")).unwrap_or_default();
let sbs = data.session_best_share.map(|v| format!("{v:.0}")).unwrap_or_default();
println!(
"{ip}\t{}\t{}\t{}\t{}\t{watts:.0}\t{}\t{}",
"{ip}\t{}\t{}\t{}\t{}\t{}\t{watts:.0}\t{}\t{}\t{bs}\t{sbs}",
data.device_info.make,
data.device_info.firmware,
fw_ver,
data.device_info.model,
cb,
m.supports_set_power_limit(),
@@ -78,6 +93,261 @@ async fn scan(cidrs: &[String]) {
eprintln!("scan complete: {found} miner(s) responded");
}
/// Dump raw hashrate value/unit/algo (and expected) as asic-rs reports them,
/// to diagnose the SI-prefix handling for non-SHA algorithms (round-9 #8, Z15).
async fn hashrate(cidrs: &[String]) {
let mut f = factory();
for c in cidrs {
f = match f.with_subnet(c) {
Ok(f) => f,
Err(e) => {
eprintln!("bad subnet {c}: {e}");
return;
}
};
}
println!("ip\tmodel\talgo\thr_value\thr_unit\texp_value\texp_unit");
let mut stream = f.scan_stream_with_ip();
while let Some((ip, miner)) = stream.next().await {
if let Some(m) = miner {
let data = m.get_data().await;
let hr = data.hashrate.as_ref();
let exp = data.expected_hashrate.as_ref();
println!(
"{ip}\t{}\t{}\t{}\t{}\t{}\t{}",
data.device_info.model,
hr.map(|h| h.algo.to_string()).unwrap_or_default(),
hr.map(|h| h.value).unwrap_or(0.0),
hr.map(|h| format!("{:?}", h.unit)).unwrap_or_default(),
exp.map(|h| h.value).unwrap_or(0.0),
exp.map(|h| format!("{:?}", h.unit)).unwrap_or_default(),
);
}
}
eprintln!("hashrate dump complete");
}
async fn setpl(ip_s: &str, watts: f64) {
let ip: std::net::IpAddr = match ip_s.parse() {
Ok(ip) => ip,
Err(e) => {
eprintln!("bad ip {ip_s}: {e}");
return;
}
};
let f = factory();
match f.scan_miner(ip).await {
Ok(Some(m)) => {
let data = m.get_data().await;
eprintln!(
"target {ip}: {} {} {} (supports_power_limit={})",
data.device_info.make,
data.device_info.firmware,
data.device_info.model,
m.supports_set_power_limit()
);
match m.set_power_limit(Power::from_watts(watts)).await {
Ok(v) => println!("set_power_limit({watts:.0} W) -> Ok({v})"),
// {e:#} prints the full anyhow chain (the miner's own Msg is the
// root cause), which is exactly what we need to characterise #4.
Err(e) => println!("set_power_limit({watts:.0} W) -> Err: {e:#}"),
}
}
Ok(None) => eprintln!("no miner at {ip}"),
Err(e) => eprintln!("scan_miner {ip}: {e}"),
}
}
/// LOCAL-ONLY: toggle a miner's locate light on then back off, to validate the
/// (token-authenticated) write path safely -- the LED is reversible and does not
/// disturb mining. Restores the light to off afterward.
async fn led(ip_s: &str) {
let ip: std::net::IpAddr = match ip_s.parse() {
Ok(ip) => ip,
Err(e) => {
eprintln!("bad ip {ip_s}: {e}");
return;
}
};
let f = factory();
match f.scan_miner(ip).await {
Ok(Some(m)) => {
let data = m.get_data().await;
eprintln!(
"target {ip}: {} {} {} (supports_set_fault_light={})",
data.device_info.make,
data.device_info.firmware,
data.device_info.model,
m.supports_set_fault_light()
);
match m.set_fault_light(true).await {
Ok(v) => println!("set_fault_light(on) -> Ok({v})"),
Err(e) => println!("set_fault_light(on) -> Err: {e:#}"),
}
let after_on = m.get_data().await.light_flashing;
println!(" light_flashing after on = {after_on:?}");
// Restore: turn the locate light back off.
match m.set_fault_light(false).await {
Ok(v) => println!("set_fault_light(off) [restore] -> Ok({v})"),
Err(e) => println!("set_fault_light(off) [restore] -> Err: {e:#}"),
}
let after_off = m.get_data().await.light_flashing;
println!(" light_flashing after off = {after_off:?}");
}
Ok(None) => eprintln!("no miner at {ip}"),
Err(e) => eprintln!("scan_miner {ip}: {e}"),
}
}
/// Apply a single "default" pool group to ONE miner via asic-rs set_pools_config
/// (the same path the GUI's pool feature uses). MUTATES the device's pool config.
/// Usage: setpools <ip> <url> <user> <pass>
async fn setpools(ip_s: &str, url: &str, user: &str, pass: &str) {
use asic_rs::core::config::pools::{PoolConfig, PoolGroupConfig};
use asic_rs::core::data::pool::PoolURL;
let ip: std::net::IpAddr = match ip_s.parse() {
Ok(ip) => ip,
Err(e) => {
eprintln!("bad ip {ip_s}: {e}");
return;
}
};
let f = factory();
match f.scan_miner(ip).await {
Ok(Some(m)) => {
let data = m.get_data().await;
eprintln!(
"target {ip}: {} {} {} (supports_pools_config={})",
data.device_info.make,
data.device_info.firmware,
data.device_info.model,
m.supports_pools_config()
);
let group = PoolGroupConfig {
name: "default".to_string(),
quota: 1,
pools: vec![PoolConfig {
url: PoolURL::from(url.to_string()),
username: user.to_string(),
password: pass.to_string(),
}],
};
match m.set_pools_config(vec![group]).await {
Ok(v) => println!("set_pools_config -> Ok({v})"),
Err(e) => println!("set_pools_config -> Err: {e:#}"),
}
// Read back the configured pools to verify.
let after = m.get_data().await;
for (i, p) in after.pools.iter().flat_map(|g| g.pools.iter()).enumerate() {
let u = p.url.as_ref().map(|u| u.to_string()).unwrap_or_default();
let acct = p.user.clone().unwrap_or_default();
println!(" pool[{i}] {u} user={acct}");
}
}
Ok(None) => eprintln!("no miner at {ip}"),
Err(e) => eprintln!("scan_miner {ip}: {e}"),
}
}
/// READ-ONLY: dump a miner's structured messages (code + severity + component +
/// text) plus its per-board data, to design health/error attribution.
async fn msgs(ip_s: &str) {
let ip: std::net::IpAddr = match ip_s.parse() {
Ok(ip) => ip,
Err(e) => {
eprintln!("bad ip {ip_s}: {e}");
return;
}
};
let f = factory();
match f.scan_miner(ip).await {
Ok(Some(m)) => {
let d = m.get_data().await;
println!(
"{ip}: {} {} hashboards={:?} expected={:?}",
d.device_info.firmware,
d.device_info.model,
d.hashboards.len(),
d.expected_hashboards,
);
for b in d.hashboards.iter() {
println!(
" board position={} hashrate={:?} chips={:?}/{:?}",
b.position,
b.hashrate.clone().map(|h| h.as_unit(asic_rs::core::data::hashrate::HashRateUnit::TeraHash).value),
b.working_chips,
b.expected_chips,
);
}
if d.messages.is_empty() {
println!(" (no messages)");
}
for msg in &d.messages {
println!(
" MSG code={} sev={:?} comp={:?} :: {}",
msg.code, msg.severity, msg.component, msg.message
);
}
}
Ok(None) => eprintln!("no miner at {ip}"),
Err(e) => eprintln!("scan_miner {ip}: {e}"),
}
}
/// Set the locate light to an explicit on/off state (round 16/G1). Capability-gated.
async fn light(ip_s: &str, on: bool) {
let Ok(ip) = ip_s.parse::<std::net::IpAddr>() else {
eprintln!("bad ip {ip_s}");
return;
};
match factory().scan_miner(ip).await {
Ok(Some(m)) => {
if !m.supports_set_fault_light() {
eprintln!("{ip}: locate light not supported");
return;
}
match m.set_fault_light(on).await {
Ok(v) => println!("{ip} light {} -> Ok({v})", if on { "on" } else { "off" }),
Err(e) => println!("{ip} light -> Err: {e:#}"),
}
}
Ok(None) => eprintln!("no miner at {ip}"),
Err(e) => eprintln!("scan_miner {ip}: {e}"),
}
}
/// Run a simple lifecycle action (restart / pause / resume) on one miner (G1).
/// Capability-gated; MUTATES (pause/restart disrupt mining -- run on the test bed).
async fn lifecycle(ip_s: &str, verb: &str) {
let Ok(ip) = ip_s.parse::<std::net::IpAddr>() else {
eprintln!("bad ip {ip_s}");
return;
};
match factory().scan_miner(ip).await {
Ok(Some(m)) => {
let res = match verb {
"restart" if m.supports_restart() => m.restart().await,
"pause" if m.supports_pause() => m.pause(None).await,
"resume" if m.supports_resume() => m.resume(None).await,
"restart" | "pause" | "resume" => {
eprintln!("{ip}: {verb} not supported");
return;
}
_ => {
eprintln!("unknown lifecycle verb {verb}");
return;
}
};
match res {
Ok(v) => println!("{ip} {verb} -> Ok({v})"),
Err(e) => println!("{ip} {verb} -> Err: {e:#}"),
}
}
Ok(None) => eprintln!("no miner at {ip}"),
Err(e) => eprintln!("scan_miner {ip}: {e}"),
}
}
fn main() {
let args: Vec<String> = std::env::args().collect();
let rt = match tokio::runtime::Builder::new_current_thread().enable_all().build() {
@@ -89,8 +359,47 @@ fn main() {
};
match args.get(1).map(String::as_str) {
Some("scan") if args.len() >= 3 => rt.block_on(scan(&args[2..])),
Some("hashrate") if args.len() >= 3 => rt.block_on(hashrate(&args[2..])),
Some("setpl") if args.len() == 4 => {
let watts: f64 = args[3].parse().unwrap_or(-1.0);
if watts <= 0.0 {
eprintln!("watts must be a positive number");
std::process::exit(2);
}
rt.block_on(setpl(&args[2], watts));
}
Some("led") if args.len() == 3 => rt.block_on(led(&args[2])),
Some("light") if args.len() == 4 && matches!(args[3].as_str(), "on" | "off") => {
rt.block_on(light(&args[2], args[3] == "on"))
}
Some(v @ ("restart" | "pause" | "resume")) if args.len() == 3 => {
rt.block_on(lifecycle(&args[2], v))
}
Some("setpools") if args.len() == 6 => {
rt.block_on(setpools(&args[2], &args[3], &args[4], &args[5]))
}
Some("msgs") if args.len() == 3 => rt.block_on(msgs(&args[2])),
_ => {
eprintln!("usage: miner_probe scan <cidr> [<cidr>...]");
eprintln!(
"miner_probe -- asic-rs config + scan CLI for the alkane-toolkit fleet\n\
\n\
READ (safe on any miner):\n\
\x20 scan <cidr> [<cidr>...] discover + telemetry (TSV)\n\
\x20 hashrate <cidr> [<cidr>...] raw hashrate/algo dump\n\
\x20 msgs <ip> structured faults + per-board data\n\
\n\
WRITE (MUTATES the miner -- use the test-bed miners, not production):\n\
\x20 light <ip> <on|off> set the locate light\n\
\x20 led <ip> toggle locate light on then off (reversible test)\n\
\x20 pause <ip> pause mining\n\
\x20 resume <ip> resume mining\n\
\x20 restart <ip> restart/reboot\n\
\x20 setpl <ip> <watts> set power limit\n\
\x20 setpools <ip> <url> <user> <pass> set the default pool group\n\
\n\
Each write verb is capability-gated (skips miners that do not support it).\n\
Credentials: ALKANE_PROBE_USER/PASS or ~/.config/alkane-toolkit/scan-credentials.txt."
);
std::process::exit(2);
}
}
+517
View File
@@ -0,0 +1,517 @@
# Aftermarket Toolkit Config + Scan Parity Roadmap
Scope: configuration and scanning/telemetry features only. Firmware flashing/installation
flows are out of scope except where a toolkit exposes config as part of them. This is a
plan document only; no repo source was edited and no live miner was mutated in producing it.
Repo: `/home/noah/Ultron/projects/miner-firmware/alkane-toolkit`
Sources merged: baseline audit of alkane-toolkit today, plus gap-closed per-toolkit specs for
Braiins toolbox + Braiins OS REST API, LuxOS installer + luxminer :4028 JSON API, ePIC
rig-runner + PowerPlay/UMC OS REST API (:4028), and WhatsMiner (btminer :4028 read + :8889 /
4028-token write path, WhatsMinerTool feature surface).
---
## 1. Executive summary
Our toolkit already covers the universal fleet-management basics on every make: discovery and
make/model/firmware identification, core live telemetry (hashrate, expected hashrate, wattage,
efficiency, temps, fans, pools, messages, uptime, locate light), and seven capability-gated
write actions (fault light, pause, resume, restart, set power limit, set tuning percent,
configure pools). Those write actions are wired into the GUI right-click menu but are almost
entirely absent from the committed CLI (`miner_probe` at git HEAD has only `scan`; setpl / led /
setpools / msgs / hashrate are uncommitted local-only additions).
Where we fall short of the aftermarket toolkits is the deep configuration surface each firmware
exposes: structured autotuning (power/hashrate target, named presets, per-board overclock),
cooling/thermal configuration, fan control, DPS / perpetual-tune / ATM auto-scaling, network
config, timezone, change-password, factory reset, advanced keyed settings, and the richer scan
reads that feed those dialogs (constraints/limits tables, PSU info, per-chip health/frequency,
best-share, network config read). A recurring pattern: the asic-rs backend already implements a
setter (change_password, factory_reset, set_timezone_config, set_temperature_config, set
scaling/tuning config on some makes) but the GUI and CLI never surface it, so the gap is pure
UI/CLI wiring rather than new protocol work. The other recurring pattern is a scan read that is
fetched but discarded (BOS fan duty, per-pool extended stats, Lux per-chip health detail).
Headline parity (have = 1.0, partial = 0.5, missing = 0):
- Antminer (union across BOS / LuxOS / VNish / ePIC / stock, 58 distinct features):
have 15, partial 15, missing 28 -> weighted parity approximately 39%.
- WhatsMiner (WhatsMinerTool + btminer API, 30 distinct features):
have 12, partial 5, missing 13 -> weighted parity approximately 48%.
Biggest gaps, both makes: structured tuning (targets/presets/per-board), cooling + fan config,
DPS/ATM/perpetual-tune auto-scaling, and the CLI being effectively read-only today.
Top ~12 highest-priority gaps (detail in section 3):
1. Commit the full write CLI in `miner_probe` (light/pause/resume/restart/pools/power + new config verbs). CLI is read-only today; every UI action lacks a committed command.
2. Structured tuning: power target + hashrate target + tuner-mode + reset (BOS; stock Antminer / WhatsMiner mining-mode; unifies with per-make backends).
3. Named preset / profile select (LuxOS 21 profiles, VNish presets, ePIC tune-presets) via `SupportsPresets` + `SupportsTuningConfig::Preset`.
4. Cooling configuration (BOS cooling modes/temps/fan-pause; LuxOS tempctrl+fanctrl; ePIC fanspeed/shutdowntemp/critical-temp) - largest single missed config family.
5. Manual fan control (LuxOS fanset, ePIC fanspeed, antminer/epic backend `SupportsFanConfig`).
6. Auto-scaling: BOS DPS + LuxOS ATM + ePIC PerpetualTune (needs a dedicated auto-tuning config trait; ScalingConfig cannot carry it).
7. Per-board voltage/frequency override (LuxOS voltageset/frequencyset, ePIC /tune/clock + /tune/voltage) via `TuningTarget::Manual`.
8. Timezone config (BOS/VNish/ePIC backends complete; UI/CLI missing) - pure wiring.
9. Change password (BOS/VNish/antminer/ePIC backends complete; UI/CLI missing) - pure wiring; add for WhatsMiner (backend gap).
10. Factory reset (BOS/VNish/antminer backends complete; UI/CLI missing) + WhatsMiner restore_factory backend gap.
11. Best-share + session-best-share scan (two columns exist, no backend fills them; BOS/LuxOS/WhatsMiner summary all carry the value).
12. Network config read + write (all makes) and PSU-info scan (BOS/ePIC/WhatsMiner) - new core structs/traits.
File written: `/tmp/claude-1000/-home-noah/312805ea-e1aa-4f86-9144-632f3a9c1252/scratchpad/aftermarket-parity-roadmap.md`
---
## 2. Parity matrices
Legend: our_support = have / partial / missing. UI = exposed in GUI right-click menu today.
CLI = exposed in committed `miner_probe` today (uncommitted local-only additions are marked
`local`). Toolkit columns: B = Braiins toolbox/BOS, L = LuxOS/luxminer, V = VNish, E = ePIC/
PowerPlay, S = stock Antminer. A dot means that toolkit exposes the feature.
### 2a. Antminer parity matrix
Category C = config, T = telemetry/scan.
| # | Feature | Cat | B | L | V | E | S | our_support | asic-rs trait | UI | CLI |
|---|---------|-----|---|---|---|---|---|-------------|---------------|----|-----|
| 1 | Discovery + make/model/fw ID | T | . | . | . | . | . | have | MinerFactory + Validate + GetDeviceInfo | yes | scan |
| 2 | Device identity (mac/serial/host/ctrl-board/versions/PIC) | T | . | . | . | . | . | have | GetMAC/GetHostname/GetSerialNumber/GetControlBoardVersion/GetApiVersion/GetFirmwareVersion | yes | scan |
| 3 | Live telemetry core (hr/exp-hr/watts/eff/temps/fans/state/uptime/light) | T | . | . | . | . | . | have | GetHashrate/GetExpectedHashrate/GetWattage/GetHashboards/GetFans/GetOperatingState/GetIsMining/GetUptime/GetLightFlashing | yes | no |
| 4 | Per-hashboard telemetry (board_name/chip_type/multi-window) | T | . | . | . | . | . | partial | GetHashboards | yes | no |
| 5 | Fan RPM + commanded duty ratio | T | . | . | . | . | . | partial | GetFans | yes | no |
| 6 | Pool list + extended per-pool share stats | T | . | . | . | . | . | partial | GetPools | yes | no |
| 7 | Best share + session best share | T | . | . | . | . | . | missing | GetBestShare/GetSessionBestShare (empty impls) | no | no |
| 8 | PSU info (model/hw/fw/voltage range) | T | . | . | . | . | | missing | none (new GetPsuInfo) | no | no |
| 9 | Fluid / immersion temperature | T | . | . | . | | | partial | GetFluidTemperature (BOS empty; VNish impl) | yes | no |
| 10 | Tuning target read (configured + scaled) | T | . | . | . | . | | partial | GetTuningTarget/GetScaledTuningTarget | yes | no |
| 11 | Tuner / power / hashrate constraints read | T | . | . | | . | | partial | GetTuningCapabilities (BOS have; Lux limits missing) | yes | no |
| 12 | Cooling constraints read | T | . | . | | . | | missing | none (new GetCoolingCapabilities) | no | no |
| 13 | DPS / hashboard / scaling constraints read | T | . | . | | . | | missing | none (new) | no | no |
| 14 | Advanced keyed settings read (22 keys) | T | . | | | | | missing | none (new AdvancedSettings) | no | no |
| 15 | Network config read (ip/mask/gw/dns/proto) | T | . | . | . | . | | partial | partial (GetMAC/GetHostname drop the rest) | no | no |
| 16 | Diagnostics data-collection archive | T | . | | | . | | partial | ReadLogs (compose) | no | no |
| 17 | Firmware update check (read only) | T | . | . | . | . | | have | UpgradeFirmware::check_firmware_update | no | no |
| 18 | Structured messages / events / appeals | T | . | . | . | . | . | have | GetMessages | yes | no |
| 19 | Per-chip health detail (score/errors) | T | | . | | | | partial | DataField::Chips (reduced) | no | no |
| 20 | Per-chip frequency array | T | | . | | | | missing | none (frequencyget unused) | no | no |
| 21 | Temp-control targets read | T | . | . | . | . | | missing | none (Lux tempctrl / ePIC shutdowntemp unmapped) | no | no |
| 22 | Limits / bounds read | T | | . | | . | | missing | none (Lux limits / ePIC capabilities partial) | no | no |
| 23 | Operating-state / paused (derived) | T | . | . | . | . | | partial | GetOperatingState (Lux missing/derivable) | yes | no |
| 24 | Perpetual-tune / ATM / DPS status read | T | . | . | | . | | missing | none (ePIC perpetualtune / Lux atm unmapped) | no | no |
| 25 | Scheduler / idle-periods read | T | | | | . | | missing | none | no | no |
| 26 | Fault / locate light on-off | C | . | . | . | . | . | have | SetFaultLight | yes | local |
| 27 | Pause mining | C | . | . | . | . | . | have | Pause | yes | no |
| 28 | Resume mining | C | . | . | . | . | . | have | Resume | yes | no |
| 29 | Restart / reboot | C | . | . | . | . | . | have | Restart | yes | no |
| 30 | Configure pools (write) | C | . | . | . | . | . | have | SupportsPoolsConfig | yes | local |
| 31 | Set power limit / power target (watts) | C | . | . | . | . | . | have | SetPowerLimit (VNish masked) | yes | local |
| 32 | Set tuning percent / throttle | C | | | . | | | have | SetTuningPercent | yes | no |
| 33 | Set hashrate target + tuner-mode + reset + steps | C | . | . | . | . | | missing | SupportsTuningConfig (BOS false) | no | no |
| 34 | Named preset / profile select | C | | . | . | . | | partial | SupportsPresets + SupportsTuningConfig::Preset | no | no |
| 35 | Custom profile create / remove | C | | . | | | | missing | none (profilenew/profilerem) | no | no |
| 36 | Per-board voltage + frequency override | C | | . | . | . | | missing | SupportsTuningConfig::Manual (unwired) | no | no |
| 37 | Cooling config (mode/temps/fan-pause/min-fans/range) | C | . | . | . | . | | missing | partial (SupportsTemperatureConfig/FanConfig defaults) | no | no |
| 38 | Manual fan control | C | | . | | . | . | missing | SupportsFanConfig (antminer/epic true; unwired UI) | no | no |
| 39 | Temperature / thermal-limit config | C | . | . | . | . | | partial | SupportsTemperatureConfig (VNish only) | no | no |
| 40 | DPS / auto-scaling config | C | . | | | . | | missing | SupportsScalingConfig (epic true; BOS false) | no | no |
| 41 | ATM auto-thermal-tuning (min/max profile + windows) | C | | . | | | | missing | none (new SupportsAutoTuningConfig) | no | no |
| 42 | Perpetual-tune config (algo + target) | C | | | | . | | missing | none (new; overlaps auto-tuning trait) | no | no |
| 43 | Timezone config | C | . | | . | . | | partial | SupportsTimezoneConfig (backends done, UI/CLI missing) | no | no |
| 44 | Change password | C | . | | . | . | | partial | ChangePassword (backends done, UI/CLI missing) | no | no |
| 45 | Factory reset | C | . | | . | | | partial | FactoryReset (backends done, UI/CLI missing) | no | no |
| 46 | Network config write (dhcp/static) | C | . | . | . | . | | missing | none (new SupportsNetworkConfig) | no | no |
| 47 | Advanced keyed settings write | C | . | | | | | missing | none (new AdvancedSettings) | no | no |
| 48 | Remove tuned profiles (force retune) | C | . | | | | | missing | none | no | no |
| 49 | Stock miner mode (high/normal/low/sleep) | C | . | | | | . | missing | SupportsTuningConfig::MiningMode (stock impl, unwired) | no | no |
| 50 | Chip health check trigger | C | | . | | | | missing | none (healthchipset) | no | no |
| 51 | Reset miner (process restart, no reboot) | C | | . | | | | missing | none (reset_miner unwired) | no | no |
| 52 | Kill (hard-stop) | C | | . | | | | missing | none | no | no |
| 53 | Hostname set | C | . | . | . | . | | missing | none (mostly install-time on Lux) | no | no |
| 54 | Coin type select | C | | | | . | | missing | none (/coin) | no | no |
| 55 | Board enable / disable | C | | | | . | | missing | none (/boardenable) | no | no |
| 56 | Scheduler / idle-periods write | C | | | | . | | missing | none (/scheduler) | no | no |
| 57 | Shutdown-temp / critical-temp / overdrive / idle-on-loss | C | | | | . | | missing | none (ePIC misc setters) | no | no |
| 58 | Custom contract apply (Braiins pool) | C | . | | | | | missing | none (niche) | no | no |
Antminer totals: have 15, partial 15, missing 28 (of 58).
### 2b. WhatsMiner parity matrix
Toolkit column W = WhatsMinerTool / btminer API (:4028 read + :8889 or 4028-token write).
btminer notes: :4028 is anonymous read-only; privileged writes go to :8889 (AES-ECB + md5-crypt
token) or 4028 with host_sign token. Confirmed writes on stock BTMiner: update_pools,
restart_btminer, set_power_pct, reboot, poweroff, update_network, update_password, restore_factory,
restore_dhcp, update_power_mode, update_coin_type. Confirmed NOT on stock 4028: set_freq,
set_voltage, set_led, adjust_power (LED/per-board tuning live in the ~40% uncharted :8889 space).
| # | Feature | Cat | W | our_support | asic-rs trait | UI | CLI |
|---|---------|-----|---|-------------|---------------|----|-----|
| 1 | Discovery + make/model/fw ID | T | . | have | MinerFactory + Validate | yes | scan |
| 2 | Device identity (mac/serial/model/control-board) | T | . | have | GetMAC/GetSerialNumber/GetDeviceInfo | yes | scan |
| 3 | Live telemetry core (hr/exp/watts/eff/temps/fans/uptime) | T | . | have | GetHashrate/GetWattage/GetHashboards/GetFans/GetUptime | yes | no |
| 4 | Ambient / environment temperature | T | . | have | GetFluidTemperature (ambient) | yes | no |
| 5 | PSU fan RPM | T | . | have | GetFans (PSU fan, WhatsMiner-only) | yes | no |
| 6 | Pool list + accepted/rejected | T | . | have | GetPools | yes | no |
| 7 | Best share + session best share | T | . | missing | GetBestShare/GetSessionBestShare (empty) | no | no |
| 8 | PSU info (get_psu: model/vout/true-power) | T | . | missing | none (new GetPsuInfo) | no | no |
| 9 | Error codes / health messages (get_error_code) | T | . | have | GetMessages | yes | no |
| 10 | Operating state / paused | T | . | missing | GetOperatingState (not populated for WM) | no | no |
| 11 | Power-mode read (high/normal/low) | T | . | missing | none | no | no |
| 12 | Per-board detail (freq/chips/serial/voltage) | T | . | partial | GetHashboards | yes | no |
| 13 | Fault / locate light on-off | C | . | have | SetFaultLight (supports=true) | yes | local |
| 14 | Restart / reboot | C | . | have | Restart | yes | no |
| 15 | Pause mining | C | . | have | Pause | yes | no |
| 16 | Resume mining | C | . | have | Resume | yes | no |
| 17 | Configure pools (write, 3 slots) | C | . | have | SupportsPoolsConfig | yes | local |
| 18 | Set power limit (watts) | C | . | partial | SetPowerLimit (v1/v2/v3; error-swallow bug r15 #4) | yes | local |
| 19 | Power-mode set (high/normal/low/sleep) | C | . | partial | SupportsTuningConfig (v2/v3 true; MiningMode unwired) | no | no |
| 20 | Set power percent | C | . | missing | none (set_power_pct; SetTuningPercent false for WM) | no | no |
| 21 | Poweroff device | C | . | missing | none (distinct from pause) | no | no |
| 22 | Change password (update_password) | C | . | missing | ChangePassword (WM supports=false) | no | no |
| 23 | Network config (update_network / restore_dhcp) | C | . | missing | none (new SupportsNetworkConfig) | no | no |
| 24 | Factory reset (restore_factory) | C | . | missing | FactoryReset (WM supports=false) | no | no |
| 25 | Coin type select (update_coin_type) | C | . | missing | none | no | no |
| 26 | Timezone / NTP config | C | . | missing | SupportsTimezoneConfig (WM false) | no | no |
| 27 | Fan / cooling config | C | . | missing | SupportsFanConfig (WM false) | no | no |
| 28 | Per-board freq / voltage tuning | C | . | missing | none (not on stock 4028; :8889 uncharted) | no | no |
| 29 | Structured tuning config (target) | C | . | partial | SupportsTuningConfig (v2/v3 true; unwired UI/CLI) | no | no |
| 30 | Restore miner setting (revert config) | C | . | missing | none | no | no |
WhatsMiner totals: have 12, partial 5, missing 13 (of 30).
---
## 3. Prioritized gap list (missing + partial)
Each gap gives: asic-rs backend work, ui.rs ConfigAction / action wiring, miner_probe/CLI surface,
clean-integration note, hardware verification plan (IP/model + read-back + restore), and priority.
Standard UI wiring for any NEW capability (a compile break otherwise), applied throughout below:
(1) add bool to `struct MinerCaps` (model.rs); (2) add to `MinerCaps::intersect` and `any_control()`;
(3) set it in the caps literal in scan.rs `to_row` from the matching `supports_*()`; (4) add a
`ConfigAction` variant with label()/progress_label(); (5) add an apply_action arm calling the
`&dyn Miner` trait method; (6) add ID_CTX_* const + a gated `menu.menu_append` block + a handler
arm in ui.rs; (7) add a `miner_probe` subcommand. Any NEW setter trait must join the
`SupportsConfigs` supertrait bundle (traits/miner.rs) and get a `ConfigField` variant
(config/collector.rs) or it will not dispatch on `&dyn Miner`.
HARD constraint reflected in every verification plan: config-WRITE tests run on a bench/lab unit
or a unit pulled from production during a maintenance window, NEVER on the live production units
that are read-only (BOS .83/.27, LuxOS .60/.67, ePIC .6/.10, the WhatsMiner fleet). Read paths
verify against those live units.
### PRIORITY: HIGH
G1. Commit a full write CLI in miner_probe (all makes).
- Backend: none (reuse existing traits).
- CLI: promote uncommitted local-only modes into committed subcommands and add config verbs:
`light <ip> <on|off>`, `pause`, `resume`, `restart`, `setpools <ip> <url> <user> <pass>`,
`config power <ip> <watts>` (was `setpl`), plus every new config verb below. Each does
arg-parse + capability gate + constraint clamp before the call.
- Integration: the CLI mirrors the GUI ConfigAction set one-to-one; a shared apply layer keeps
them from diverging.
- HW verify: read-only verbs vs live units (`miner_probe scan`, hashrate). LED is reversible even
on production (does not disturb hashing): set on -> read state true -> set off -> read false.
Disruptive verbs (pause/restart/power) on bench only.
- Priority: HIGH (unblocks scripted fleet ops; every UI action is CLI-invisible today).
G2. Structured tuning: power target + hashrate target + tuner-mode + reset + relative steps.
- Backend: implement `SupportsTuningConfig` for BraiinsV2604 (set_tuning_config: HashRate -> PUT
performance/hashrate-target, Power -> reuse SetPowerLimit path; switching target type flips
tuner_mode); flip supports_tuning_config -> true. Stock Antminer v2020/v2023_07 already map
`TuningTarget::MiningMode` Low/Normal/High (unwired). WhatsMiner v2/v3 already true.
- UI: `ConfigAction::HashrateTarget(f64)` (or unified TuningTarget action) + MinerCaps.tuning_config
gate + dialog offering power|hashrate|default clamped to tuner_constraints.
- CLI: `config hashrate <ip> <ths>`, `config tuner <ip> default`, `config mode <ip> <high|normal|low>`.
- Integration: one generic tuning action routes to per-make backends; clamp via GetTuningCapabilities.
- HW verify: bench BOS S19J Pro (hashrate_target 70.75-252.57 TH/s) - record tuner_mode+target,
set, read back configuration/miner + tuner-state, restore original. NEVER on .83/.27.
- Priority: HIGH.
G3. Named preset / profile select.
- Backend: LuxOS - impl `SupportsPresets::get_presets` from `profiles` (21 dynamic steps, list
live never hardcoded) and `SupportsTuningConfig::set_tuning_config(Preset(name)) -> rpc.profileset`
(flip privileged=true; see G16). VNish get_presets already true. ePIC - map Tune Presets from
/capabilities and `POST /tune` / `POST /perpetualtune`.
- UI: MinerCaps.tuning_config + `ConfigAction::Preset(String)` + ID_CTX_PRESET dialog populated
live from get_presets(). Note the existing GUI "Presets" button is unrelated (view layouts).
- CLI: `presets <ip>` (list), `setpreset <ip> <name>`.
- HW verify: LuxOS bench (.67 shows config Profile=495MHz/Step -2) - snapshot Profile, profileset
another, read back, restore. NEVER on .60/.67 production.
- Priority: HIGH.
G4. Cooling configuration (largest missed config family).
- Backend: BOS - impl `SupportsTemperatureConfig` (hot/dangerous/target) + `SupportsFanConfig`
(Auto{target_temp,idle_speed} / Manual{fan_speed}) + a NEW cooling-mode trait/enum
CoolingMode{Auto,Manual,Immersion} + fan-pause (mode/runtime/pwm) + min-required-fans +
custom-fan-range on a CoolingConfig aggregate (endpoint from a web capture; do not execute).
LuxOS - add rpc.tempctrlset + wire tempctrl/fanctrl. ePIC - POST /fanspeed, /fans/minimum,
/shutdowntemp, /criticaltemp.
- UI: `ConfigAction::Cooling(CoolingConfig)` + gate + dialog whose ranges come from cooling
constraints (new CoolingCapabilities read, G8).
- CLI: `config cooling <ip> --mode ... --target-temp ... --hot-temp ...`.
- HW verify: bench BOS/LuxOS/ePIC - record cooling/state + config temps + fan duty, set (e.g.
target-temp to current), read back, restore. NEVER on production.
- Priority: HIGH.
G5. Manual fan control.
- Backend: LuxOS impl `SupportsFanConfig` -> rpc.fanset(speed|-1, min_fans) (already
privileged=true); antminer/epic backends already report supports_fan_config=true (unwired).
ePIC POST /fanspeed.
- UI: MinerCaps.fan + `ConfigAction::Fan(FanConfig)` + ID_CTX_FAN dialog (Auto vs Manual %,
clamped to limits FanSpeed range).
- CLI: `fans <ip>` (read FANCTRL) + `setfan <ip> <speed|-1>`.
- HW verify: LuxOS bench (.60 FANCTRL FanMinSpeed 20, MinFans 1) - snapshot, fanset 80, read
~80, restore fanset -1 (auto). Never below thermally safe speed. NEVER on production.
- Priority: HIGH.
G6. Auto-scaling config: BOS DPS + LuxOS ATM + ePIC PerpetualTune.
- Backend: BOS impl `SupportsScalingConfig::set_scaling_config` (power_step/min_power_target/
shutdown/duration); note ScalingConfig lacks hashrate_step/on_start_percent/mode - extend it or
carry via set_tuning_config's Option<ScalingConfig>. LuxOS + ePIC need a dedicated core
`SupportsAutoTuningConfig` trait + AtmConfig/PerpetualTuneConfig struct (min/max profile, three
temp windows, startup/post-ramp timings, algorithm select) added to the SupportsConfigs bundle
with a ConfigField::Atm so the collector iterates it. ePIC: POST /perpetualtune{,/algo,/reset,
/errorthrottle} with algorithms VoltageOptimizer/BoardTune/ChipTune/PowerTune (min/max from
/capabilities).
- UI: `ConfigAction::Dps` / `ConfigAction::Atm` / `ConfigAction::PerpetualTune` + gates + dialogs
fed by the constraints reads (G8).
- CLI: `config dps <ip> on|off [...]`, `atm <ip>` / `setatm <ip> ...`, `config perpetualtune <ip> ...`.
- HW verify: bench per make - record current config, set current-equivalent params, read back,
restore off/original. NEVER on production.
- Priority: HIGH.
G7. Per-board voltage + frequency override.
- Backend: LuxOS add rpc.voltageset/frequencyset/frequencystop; handle
`TuningTarget::Manual{boards:(freq,voltage)}` in set_tuning_config (exact type match, no new
trait). ePIC POST /tune/clock/{all,board,chip}, /tune/voltage, /tune/config/chip. Determine
per-board vs per-chip grammar on the bench first (Lux frequencyget returns 126 per-chip freqs).
- UI: reuse tuning-config dialog with an Advanced manual per-board mode, clamped to limits.
- CLI: `setmanual <ip> <board> <freq> <voltage>`.
- HW verify: bench with CONSOLE access only (bad voltage can damage a board) - snapshot
voltageget/frequencyget, apply small delta, read back, restore via profileset(default).
- Priority: HIGH.
G8. Constraints / limits / capabilities scan reads (plumbing for every dialog above).
- Backend: BOS parse cooling_constraints + dps_constraints + hashboards_constraints from the
already-fetched WEB_CONSTRAINTS response into new CoolingCapabilities/ScalingCapabilities/
HashboardCapabilities. LuxOS parse `limits` (PowerTarget 1000-4000, AtmMinutes 1-1440, AtmTemp
1-10, FanSpeed -1..100, MinFans 0-4, Frequency 100-1000 step 5-25, BypassVoltage 11.5-15.5).
ePIC parse /capabilities (Default Clock/Voltage/Hashrate, Tune Presets, PerpetualTune min/max,
Psu Info).
- UI/CLI: not necessarily a visible column; required to validate/clamp dialog inputs. `limits <ip>`,
`capabilities <ip>`.
- HW verify: read-only on live units (already captured on .83, .60, .6). No restore.
- Priority: HIGH (blocks safe write dialogs).
G9. Best share + session best share scan.
- Backend: BOS impl GetBestShare from WEB_MINER_STATS /miner_stats/best_share (or best_share_str
for large diffs; verified 130601978 live on .83; session stays None - BOS has no session field).
LuxOS add DataField::BestShare -> summary /SUMMARY/0/Best Share and SessionBestShare ->
/SUMMARY/0/Best Session Share (verified 638881749 live on .60). WhatsMiner map btminer summary
best-share. All reuse already-fetched responses.
- UI: populates the two existing MinerRow columns that no backend fills today.
- CLI: appears in `scan` extended output.
- HW verify: read-only vs live units, assert equals the API value. No restore.
- Priority: HIGH (cheap, two dead columns).
### PRIORITY: MEDIUM
G10. Timezone config (BOS/VNish/ePIC).
- Backend: COMPLETE (SupportsTimezoneConfig; BOS GraphQL setTimezone, ePIC POST /timezone). No
asic-rs work.
- UI: `ConfigAction::Timezone(Tz)` + MinerCaps.timezone gate + dialog populated from
get_timezone_config's available list.
- CLI: `config timezone <ip> <IANA>`.
- HW verify: bench - read current tz, set to same, read back, restore. Low risk.
- Priority: MEDIUM (pure wiring).
G11. Change password (BOS/VNish/antminer/ePIC; WhatsMiner needs backend).
- Backend: COMPLETE for BOS/VNish/antminer/ePIC (ChangePassword; re-auths on success). WhatsMiner
gap - impl update_password over the :8889/4028-token path (supports currently false).
- UI: `ConfigAction::ChangePassword(String)` + gate + dialog; GUI must update saved credentials on
success (change_password takes &mut self and re-auths).
- CLI: `config password <ip> <newpass>`.
- HW verify: bench only - change to temp password then back; verify get_data() still authenticates.
NEVER on production (a failed change locks the toolkit out).
- Priority: MEDIUM.
G12. Factory reset (BOS/VNish/antminer; WhatsMiner needs backend).
- Backend: COMPLETE for BOS/VNish/antminer (FactoryReset; distinct from restore.rs stock-firmware
flow). WhatsMiner gap - impl restore_factory (supports currently false).
- UI: `ConfigAction::FactoryReset` + gate + STRONG double-confirm dialog.
- CLI: `config factory-reset <ip> --yes`.
- HW verify: bench only, destructive - read config before/after. NEVER on production.
- Priority: MEDIUM (low frequency, but backend already there).
G13. Pool config completeness + LuxOS session-bug fix.
- Backend: LuxOS - flip addgroup/groupquota/removegroup/addpool/switchpool/enablepool/disablepool
to privileged=true (they currently send no session_id, so writes fail on password-set units);
add the missing rpc.removepool. Extend build_pools_dialog with incremental ops
(switch/enable/disable/quota/remove) beyond wholesale replace-all.
- UI: richer pools dialog; caps.pools already wired.
- CLI: committed `setpools` already planned in G1; add per-op verbs.
- HW verify: sacrificial bench NOT pointed at a production pool - reproduce the "Missing session_id"
error on a password-set bench unit, then confirm privileged=true fixes it; restore original pools.
- Priority: MEDIUM (correctness bug on locked units).
G14. Enrich per-hashboard / fan / pool telemetry (fetched-but-discarded fields).
- Backend: BOS add fan target_speed_ratio (commanded duty) to FanData; add stale_shares/
last_difficulty/generated_work/last_share_time/per-pool best_share to PoolData; add board_name/
chip_type to BoardData. LuxOS retain per-chip Score/ReadErrors/WriteErrors/BadHashCount from
healthchipget. All from already-fetched responses.
- UI: tooltips / detail panels; additive.
- CLI: extended `scan` / `healthchip <ip>`.
- HW verify: read-only vs live units, assert new fields populate (BOS fan duty 0.63 on .83, Lux
per-chip Score 88-102 on .60). No restore.
- Priority: MEDIUM.
G15. PSU info scan (BOS/ePIC/WhatsMiner).
- Backend: add core PsuInfo struct (model, hw/fw version, min/max voltage, serial, true-power) +
GetPsuInfo trait + MinerData field. BOS reads WEB_MINER_DETAILS /psu_info; ePIC /capabilities
Psu Info; WhatsMiner get_psu (unauth read).
- UI: MinerRow detail/tooltip.
- CLI: appears in scan detail.
- HW verify: read-only (BOS .83 psu APW121215d/e 11.96-15.2V; ePIC .6 PSU Type 117). No restore.
- Priority: MEDIUM.
G16. Network config read + write (all makes).
- Backend: add core NetworkInfo struct + GetNetworkInfo (read) and NetworkConfig struct +
SupportsNetworkConfig (write, added to the SupportsConfigs bundle + ConfigField::Network). BOS
GET/PUT /network; LuxOS `config` read + rpc.netset; ePIC GET/POST /network + /wifi; WhatsMiner
update_network / restore_dhcp. Confirm grammar on bench first.
- UI: address/protocol MinerRow columns (read); `ConfigAction::Network(NetworkConfig)` +
ID_CTX_NETWORK dialog (write) behind explicit confirm + warning. Pre-fill from the read.
- CLI: `net <ip>` (read), `config network <ip> dhcp|static [...] --yes`.
- HW verify: read-only for the read side vs live units. Write on a bench unit with SERIAL/CONSOLE
access ONLY (a wrong static config strands the miner; note the LuxOS fleet uses 1:1 NAT so netset
rewrites the miner's real interface). Change hostname (benign) then restore; do NOT change IP on a
remotely-managed unit.
- Priority: MEDIUM (read side); network-write is high-risk, gate hard.
G17. Structured messages / per-chip health / temp-target / operating-state reads (LuxOS + ePIC).
- Backend: LuxOS map tempctrl targets (Target/Hot/ChipTarget/WaterInlet) + derive GetOperatingState
from config CurtailMode/IsTuning/SystemStatus + frequencyget per-chip array. ePIC map
PerpetualTune status + Scheduler read + HBStatus.
- UI: optional columns + detail panels; operating-state feeds the Paused column with real state.
- CLI: `tempctrl <ip>`, `freqs <ip>`.
- HW verify: read-only vs live (Lux .60 tempctrl Target 45/ChipTarget 83; CurtailMode/IsTuning
present). Derived paused state verified after a bench curtail sleep. No restore for reads.
- Priority: MEDIUM.
G18. WhatsMiner power-mode set + set-power-percent + poweroff.
- Backend: wire WhatsMiner v2/v3 SupportsTuningConfig MiningMode (high/normal/low) via
update_power_mode; add set_power_pct path; add poweroff (distinct from pause). Note the r15 #4
set_power_limit error-swallow bug should be fixed while here.
- UI: mode selector via the generic tuning action (G2); poweroff as a maintenance menu item with
strong confirm.
- CLI: `config mode <ip> <high|normal|low>`, `config power-pct <ip> <pct>`, `poweroff <ip> --yes`.
- HW verify: bench WhatsMiner (M30S-class) - read summary, set mode, read back, restore; poweroff
characterized on bench then power-cycle to recover. NEVER on the live fleet.
- Priority: MEDIUM.
### PRIORITY: LOW
G19. BOS advanced keyed settings (read + write, 22 keys with danger-gating).
- Backend: new AdvancedSettings trait (keyed map + static metadata: type/default/status/min_version/
enum/min-max/depends-on from `advanced list`); read is safe/additive, write requires danger
confirm. Transport from a web capture; do not execute writes.
- UI: Advanced-settings editor panel validating against metadata, explicit confirm for
status=dangerous keys.
- CLI: `advanced-get <ip> [--key K|--all]`, `advanced set <ip> <key=value> [--force]`, `advanced reset`.
- HW verify: read-only vs .83 (22 keys captured). Write on bench, benign key (mdns_enabled) only.
- Priority: LOW-MEDIUM (read side medium, write low).
G20. LuxOS maintenance: reset-miner / kill / chip-health-check / custom-profile create-remove.
- Backend: add rpc.reset_miner wiring (CLI-only), rpc.healthchipset, rpc.profilenew/profilerem.
kill semantics to be characterized on bench first (recommend omit from fleet GUI).
- UI: profile create/delete under the preset submenu; reset-miner/kill CLI-only.
- CLI: `resetminer <ip>`, `healthchip <ip> [set ...]`, `profilenew/profilerem`.
- HW verify: bench only.
- Priority: LOW.
G21. ePIC misc setters: coin type, board enable/disable, scheduler/idle-periods, shutdown/critical
temp, overdrive, idle-on-connection-lost, hostname.
- Backend: POST /coin, /boardenable + /disableboardonfailure + /enableboardsonidle, /scheduler +
/scheduler/idleperiods, /shutdowntemp + /criticaltemp, /overdrive, /idleonconnectionlost, /hostname.
- UI: grouped under an ePIC advanced/maintenance submenu (most are ePIC-specific, gate on make).
- CLI: matching `config <verb> <ip> ...`.
- HW verify: bench ePIC (.6/.10 are read-only production).
- Priority: LOW.
G22. Diagnostics collect + firmware update-check surfacing + BOS custom-contract.
- Backend: none new (compose get_data + read_logs + config + constraints into a tarball); surface
check_firmware_update current-vs-latest. Custom-contract is niche Braiins-pool - document/defer.
- UI: "Collect diagnostics..." menu item; optional update badge.
- CLI: `collect <ip> [-o dir]`.
- HW verify: read-only compose vs .83.
- Priority: LOW.
---
## 4. Recommended implementation order (shippable rounds)
Round A - CLI foundation and cheap wins (unblocks everything else):
- G1 (commit write CLI), G9 (best-share/session-best-share), G8 (constraints/limits/capabilities
reads), G14 (fetched-but-discarded telemetry), G13 backend session-bug fix (LuxOS privileged=true).
Rationale: G8 is required plumbing for the write dialogs; G1/G9/G14 are low-risk and immediately
visible; the LuxOS session fix is a correctness bug.
Round B - pure UI/CLI wiring of complete backends:
- G10 (timezone), G11 (change password, non-WM), G12 (factory reset, non-WM).
Rationale: backends already implemented; only UI ConfigAction + CLI verbs + dialogs needed.
Round C - structured tuning (the flagship parity family):
- G2 (power/hashrate target + tuner-mode + stock mining-mode), G3 (preset/profile select),
G7 (per-board override).
Rationale: single generic tuning action + per-make backends; the biggest config-parity closer.
Round D - cooling and auto-scaling:
- G4 (cooling config), G5 (fan control), G6 (DPS/ATM/PerpetualTune).
Rationale: depends on Round A constraints reads; largest remaining missed family.
Round E - WhatsMiner config depth:
- G18 (power-mode/power-pct/poweroff), G11+G12 WhatsMiner backends (change_password,
restore_factory), G16 WhatsMiner network (update_network/restore_dhcp).
Round F - network + advanced + long tail:
- G16 (network read everywhere + gated write), G15 (PSU info), G17 (Lux/ePIC extra reads),
G19 (BOS advanced), G20 (LuxOS maintenance), G21 (ePIC misc), G22 (diagnostics/update/contract).
---
## 5. Verification coverage note
Confirmed on real hardware, read-only, this run:
- Braiins OS: 10.4.1.83 and 10.4.1.27 (Antminer S19J Pro NoPic, BOS 26.09-plus, API 1.8.0). Verified
live: version/details/network/miner_stats/hashboards/cooling-state/pools/tuner-state/constraints,
best_share 130601978, tuner_constraints (power 944-6435 W, hashrate 70.75-252.57 TH/s), cooling +
dps + hashboards constraints, PSU info, fan duty 0.63, configured-tuning-target None in default
power mode (both units), advanced 22-key read via braiins-toolbox.
- LuxOS: 10.4.1.60 (Profile default) and 10.4.1.67 (Profile 495MHz/Step -2), Antminer S19j Pro,
LUXminer 2026.9.21, API 3.7, IsPowerTargetSupported=false. Verified live: version/summary/stats/
devs/devdetails/temps/fans/pools/events, 21 profiles, full `limits` bounds table, atm, tempctrl,
fanctrl (FANCTRL), healthchipget per-chip, frequencyget (126 freqs), voltageget, config network +
Update* + CurtailMode/IsTuning/SystemStatus, best-share 638881749; check-command matrix (Exists/
Access) for led/profileset/atmset/fanset/tempctrlset/voltageset/frequencyset/curtail/rebootdevice/
resetminer/kill/netset and the N/N set hostnameset/passwd/timezone/timezoneset/factoryreset.
- ePIC / PowerPlay UMC: 10.4.1.6 and 10.4.1.10 (AntMiner S19j Pro, BM1362), UMC API v1.36.0, 63
OpenAPI paths captured. Verified live read-only: /summary, /capabilities (Tune Presets +
PerpetualTune algorithms VoltageOptimizer/BoardTune/ChipTune/PowerTune with min/max + Psu Info),
/perpetualtune status, /network, /ethernet, /temps, /timezone, /scheduler, /otelsettings,
/hashratesplit config+status.
- WhatsMiner: fleet scanned read-only across 10.7.1.0/24 and 10.8.1.0/24 via `miner_probe scan`
(M30S-class, H6OS/H616 control boards, mix of watts and supports_power_limit flags). btminer :4028
anonymous reads (summary/get_token/get_error_code) confirmed as the read surface.
Taken from docs / --help / source / reverse-engineering only (not executed live this run):
- Every config-WRITE path on every make (hard rule: no live mutation). Write endpoints and grammars
are described from braiins-toolbox --help, luxminer RPC docs, the ePIC OpenAPI POST definitions,
and the WhatsMiner btminer RE wiki (8889 command table + 4028 token flow).
- BOS firmware-update-check (hits the vendor release server), custom-contract, and the advanced-set
transport (needs a web capture to pin the exact GraphQL/REST call).
- WhatsMiner :8889 privileged writes (update_pools/set_power_pct/restart confirmed in prior RE
sessions; LED/per-board tuning live in the ~40% uncharted :8889 command space and are unverified).
- Stock Antminer / MicroBT miner set-mode was confirmed in the asic-rs source (mapping present) but
not probed against a live stock unit this run.
@@ -0,0 +1,98 @@
Subject: [PATCH 0013] braiins+luxminer: implement best-share / session-best-share (round 16 G9)
The GetBestShare/GetSessionBestShare traits had empty impls on every backend, so
MinerData.best_share/session_best_share were always None and the toolkit's two
"Best share" / "Session best" columns were dead.
Braiins v26_04: map DataField::BestShare to the already-fetched miner/stats WebAPI
response (/miner_stats/best_share) and parse it. (BOS has no session-best field ->
session stays None.) Verified live read-only on 10.4.1.83: 130601978.
LuxMiner v1: map DataField::BestShare + SessionBestShare to the already-fetched
summary RPC (/SUMMARY/0/Best Share and /Best Session Share) and parse both.
Verified live read-only on 10.4.1.60 (638881749/638881749) and 10.4.1.67
(497802665/497802665).
No extra network calls (both reuse commands already collected by get_data).
diff --git a/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs b/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs
index fa947aee..e65fb201 100644
--- a/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs
+++ b/vendor/asic-rs-firmwares-braiins/src/backends/v26_04/mod.rs
@@ -286,6 +286,14 @@ impl GetDataLocations for BraiinsV2604 {
tag: None,
},
)],
+ DataField::BestShare => vec![(
+ WEB_MINER_STATS,
+ DataExtractor {
+ func: get_by_pointer,
+ key: Some("/miner_stats/best_share"),
+ tag: None,
+ },
+ )],
DataField::TuningTarget => vec![
(
WEB_MINER_CONFIGURATION,
@@ -548,7 +556,13 @@ impl GetUptime for BraiinsV2604 {
}
}
-impl GetBestShare for BraiinsV2604 {}
+impl GetBestShare for BraiinsV2604 {
+ fn parse_best_share(&self, data: &HashMap<DataField, Value>) -> Option<f64> {
+ // Braiins OS reports the all-time best share at miner/stats -> miner_stats.best_share
+ // (round 16 / G9). Large diffs may exceed f64 exactness but are fine for display.
+ data.extract::<f64>(DataField::BestShare)
+ }
+}
impl GetSessionBestShare for BraiinsV2604 {}
impl GetOperatingState for BraiinsV2604 {
diff --git a/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs b/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs
index aac39eb6..2d1331bf 100644
--- a/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs
+++ b/vendor/asic-rs-firmwares-luxminer/src/backends/v1/mod.rs
@@ -445,6 +445,22 @@ impl GetDataLocations for LuxMinerV1 {
tag: None,
},
)],
+ DataField::BestShare => vec![(
+ RPC_SUMMARY,
+ DataExtractor {
+ func: get_by_pointer,
+ key: Some("/SUMMARY/0/Best Share"),
+ tag: None,
+ },
+ )],
+ DataField::SessionBestShare => vec![(
+ RPC_SUMMARY,
+ DataExtractor {
+ func: get_by_pointer,
+ key: Some("/SUMMARY/0/Best Session Share"),
+ tag: None,
+ },
+ )],
DataField::Uptime => vec![(
RPC_STATS,
DataExtractor {
@@ -888,8 +904,18 @@ impl GetUptime for LuxMinerV1 {
}
}
-impl GetBestShare for LuxMinerV1 {}
-impl GetSessionBestShare for LuxMinerV1 {}
+impl GetBestShare for LuxMinerV1 {
+ fn parse_best_share(&self, data: &HashMap<DataField, Value>) -> Option<f64> {
+ // LuxOS summary -> "Best Share" (all-time), round 16 / G9.
+ data.extract::<f64>(DataField::BestShare)
+ }
+}
+impl GetSessionBestShare for LuxMinerV1 {
+ fn parse_session_best_share(&self, data: &HashMap<DataField, Value>) -> Option<f64> {
+ // LuxOS summary -> "Best Session Share" (since boot), round 16 / G9.
+ data.extract::<f64>(DataField::SessionBestShare)
+ }
+}
impl GetOperatingState for LuxMinerV1 {}
File diff suppressed because one or more lines are too long
+15 -1
View File
@@ -286,6 +286,14 @@ impl GetDataLocations for BraiinsV2604 {
tag: None,
},
)],
DataField::BestShare => vec![(
WEB_MINER_STATS,
DataExtractor {
func: get_by_pointer,
key: Some("/miner_stats/best_share"),
tag: None,
},
)],
DataField::TuningTarget => vec![
(
WEB_MINER_CONFIGURATION,
@@ -548,7 +556,13 @@ impl GetUptime for BraiinsV2604 {
}
}
impl GetBestShare for BraiinsV2604 {}
impl GetBestShare for BraiinsV2604 {
fn parse_best_share(&self, data: &HashMap<DataField, Value>) -> Option<f64> {
// Braiins OS reports the all-time best share at miner/stats -> miner_stats.best_share
// (round 16 / G9). Large diffs may exceed f64 exactness but are fine for display.
data.extract::<f64>(DataField::BestShare)
}
}
impl GetSessionBestShare for BraiinsV2604 {}
impl GetOperatingState for BraiinsV2604 {
+1 -1
View File
@@ -1 +1 @@
{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"fe8effe2bfdda5d4c390656c016729f531a2b1c60033228557659c0befdde9f2","Cargo.lock":"a2b2cb45bb8b574e4f29ffdcdb5ebafd1dd87a0e6e11b47383973a99be367784","Cargo.toml":"503efa00123f8567f5fe40bf6a93e9e453d13094df0e0e1b7e98bdacdfbd2595","Cargo.toml.orig":"1c4ba0315fb491c086fc22a5c9bafaf7288c6b1fd48679c3d03dbd9df156a8b5","src/backends/mod.rs":"548d988b877410e330a55e275f64b2adad95ca5f1a0f085fe144957c96b8906f","src/backends/v1/mod.rs":"06f28c59112bd40771db1c865d00402ae37f18146a3eaf9de905d3f4a0a6ba51","src/backends/v1/rpc.rs":"9dea9c65629e1e9b833b96a4ae88014f7195a26036104f92daa264fbdf13feba","src/firmware.rs":"d95345295ae5043dfc357e69ae56c564b261fdb3b19b5c0ad1765267ff05ab3f","src/lib.rs":"53f7acddeff8f7d82f80d09e0a9f91962011f9ccf2e441c4ca05cd7fc4eb292e","src/test/json/mod.rs":"24191681066d5cf6a3022ad59c1baa92b57e3ce7717bb78d6a682af9e19a38c4","src/test/json/v1/config.json":"6ca9e6217d853d4bf1e75d69159630e9c9184ede96751706b88dfb699b5d59ad","src/test/json/v1/devs.json":"8f746dc6a02953eee5ee96dcf53be8dc7880a8ffc2c6e303f0284bcf6a97f42d","src/test/json/v1/events.json":"913683ff97af3333018807e1cc6e43467ea8a55925e5964dc402616615e2a5e3","src/test/json/v1/fans.json":"f8a9a1234d651055c80f4ebb1380bbb4e6d19eb33012902c55fff1385e592447","src/test/json/v1/healthchipget_0.json":"10619460049333ca016b2beec59ecc514ed9077fb19bdf7d0ed697201f8cb96c","src/test/json/v1/healthchipget_1.json":"80927fb1480c95be7f3a4e155d63f68f97720530ff7cf5d5ade06f2a3e810bf0","src/test/json/v1/healthchipget_2.json":"1e93ee2ab472ee7af58add08b4251e3ce0ad4f986d4325abbf43fd4c9b3dd28f","src/test/json/v1/mod.rs":"5a050f07455e622e35ad79ab1c8a6daf2ea38c4198472e49c6bbfe80538a9e48","src/test/json/v1/pools.json":"0068745327e31853fec051172abb7337f18a4cf9972c51967113d63f4f31f504","src/test/json/v1/power.json":"80534bb4581de7c8b747bf33b5d629b909c6e16a531d18ecb4afd7ffad3f014f","src/test/json/v1/profiles.json":"1f00429036e270daa08f12cd2d7357135070c57acd7a899a3c0af6167fe82abb","src/test/json/v1/stats.json":"2b105f0eb927046c9d2389bde978a43e3d54d12a420dfbe400786bb2f0ae31ca","src/test/json/v1/summary.json":"aaea3378eb7040952037e2f1ef7bd5f20a1b242bf93d4ba0501c46104b0b31a0","src/test/json/v1/temps.json":"1ee781cd2be3ed6a6a07e23be930248735fb51348c160453ba10f6ef71fcb7f1","src/test/json/v1/version.json":"4beb6ca5c0ebf359cee0434fdcc4d0a1a0607436634e46be3fd951e2256595df","src/test/json/v1/voltageget_0.json":"c445fa8674c2542b2d296fbafdd3166c53008dfbd9da8095327217989d37f1da","src/test/json/v1/voltageget_1.json":"96b91c3447dd66e7f1f575ed3b99611062e8b1d516d31422b74e425c46b2f49c","src/test/json/v1/voltageget_2.json":"7d40544021b2e32401135ae333067b770d2d736ada9e60deaca8fd8f5a79a1e3","src/test/mod.rs":"ed52c3d613eabc4a0346bb38bcfdf7a94933d61e368d3c9094821edeab92f81b"},"package":"513792d93a2a21d5258d9e6ac0e6dc9e0a6365118934514b4e656792add78066"}
{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"fe8effe2bfdda5d4c390656c016729f531a2b1c60033228557659c0befdde9f2","Cargo.lock":"a2b2cb45bb8b574e4f29ffdcdb5ebafd1dd87a0e6e11b47383973a99be367784","Cargo.toml":"503efa00123f8567f5fe40bf6a93e9e453d13094df0e0e1b7e98bdacdfbd2595","Cargo.toml.orig":"1c4ba0315fb491c086fc22a5c9bafaf7288c6b1fd48679c3d03dbd9df156a8b5","src/backends/mod.rs":"548d988b877410e330a55e275f64b2adad95ca5f1a0f085fe144957c96b8906f","src/backends/v1/mod.rs":"3e57d2c72d1d48c0b86f5438202633fcd9c1ebf375bd87ffe53ea5298ae936ad","src/backends/v1/rpc.rs":"9dea9c65629e1e9b833b96a4ae88014f7195a26036104f92daa264fbdf13feba","src/firmware.rs":"d95345295ae5043dfc357e69ae56c564b261fdb3b19b5c0ad1765267ff05ab3f","src/lib.rs":"53f7acddeff8f7d82f80d09e0a9f91962011f9ccf2e441c4ca05cd7fc4eb292e","src/test/json/mod.rs":"24191681066d5cf6a3022ad59c1baa92b57e3ce7717bb78d6a682af9e19a38c4","src/test/json/v1/config.json":"6ca9e6217d853d4bf1e75d69159630e9c9184ede96751706b88dfb699b5d59ad","src/test/json/v1/devs.json":"8f746dc6a02953eee5ee96dcf53be8dc7880a8ffc2c6e303f0284bcf6a97f42d","src/test/json/v1/events.json":"913683ff97af3333018807e1cc6e43467ea8a55925e5964dc402616615e2a5e3","src/test/json/v1/fans.json":"f8a9a1234d651055c80f4ebb1380bbb4e6d19eb33012902c55fff1385e592447","src/test/json/v1/healthchipget_0.json":"10619460049333ca016b2beec59ecc514ed9077fb19bdf7d0ed697201f8cb96c","src/test/json/v1/healthchipget_1.json":"80927fb1480c95be7f3a4e155d63f68f97720530ff7cf5d5ade06f2a3e810bf0","src/test/json/v1/healthchipget_2.json":"1e93ee2ab472ee7af58add08b4251e3ce0ad4f986d4325abbf43fd4c9b3dd28f","src/test/json/v1/mod.rs":"5a050f07455e622e35ad79ab1c8a6daf2ea38c4198472e49c6bbfe80538a9e48","src/test/json/v1/pools.json":"0068745327e31853fec051172abb7337f18a4cf9972c51967113d63f4f31f504","src/test/json/v1/power.json":"80534bb4581de7c8b747bf33b5d629b909c6e16a531d18ecb4afd7ffad3f014f","src/test/json/v1/profiles.json":"1f00429036e270daa08f12cd2d7357135070c57acd7a899a3c0af6167fe82abb","src/test/json/v1/stats.json":"2b105f0eb927046c9d2389bde978a43e3d54d12a420dfbe400786bb2f0ae31ca","src/test/json/v1/summary.json":"aaea3378eb7040952037e2f1ef7bd5f20a1b242bf93d4ba0501c46104b0b31a0","src/test/json/v1/temps.json":"1ee781cd2be3ed6a6a07e23be930248735fb51348c160453ba10f6ef71fcb7f1","src/test/json/v1/version.json":"4beb6ca5c0ebf359cee0434fdcc4d0a1a0607436634e46be3fd951e2256595df","src/test/json/v1/voltageget_0.json":"c445fa8674c2542b2d296fbafdd3166c53008dfbd9da8095327217989d37f1da","src/test/json/v1/voltageget_1.json":"96b91c3447dd66e7f1f575ed3b99611062e8b1d516d31422b74e425c46b2f49c","src/test/json/v1/voltageget_2.json":"7d40544021b2e32401135ae333067b770d2d736ada9e60deaca8fd8f5a79a1e3","src/test/mod.rs":"ed52c3d613eabc4a0346bb38bcfdf7a94933d61e368d3c9094821edeab92f81b"},"package":"513792d93a2a21d5258d9e6ac0e6dc9e0a6365118934514b4e656792add78066"}
+28 -2
View File
@@ -445,6 +445,22 @@ impl GetDataLocations for LuxMinerV1 {
tag: None,
},
)],
DataField::BestShare => vec![(
RPC_SUMMARY,
DataExtractor {
func: get_by_pointer,
key: Some("/SUMMARY/0/Best Share"),
tag: None,
},
)],
DataField::SessionBestShare => vec![(
RPC_SUMMARY,
DataExtractor {
func: get_by_pointer,
key: Some("/SUMMARY/0/Best Session Share"),
tag: None,
},
)],
DataField::Uptime => vec![(
RPC_STATS,
DataExtractor {
@@ -888,8 +904,18 @@ impl GetUptime for LuxMinerV1 {
}
}
impl GetBestShare for LuxMinerV1 {}
impl GetSessionBestShare for LuxMinerV1 {}
impl GetBestShare for LuxMinerV1 {
fn parse_best_share(&self, data: &HashMap<DataField, Value>) -> Option<f64> {
// LuxOS summary -> "Best Share" (all-time), round 16 / G9.
data.extract::<f64>(DataField::BestShare)
}
}
impl GetSessionBestShare for LuxMinerV1 {
fn parse_session_best_share(&self, data: &HashMap<DataField, Value>) -> Option<f64> {
// LuxOS summary -> "Best Session Share" (since boot), round 16 / G9.
data.extract::<f64>(DataField::SessionBestShare)
}
}
impl GetOperatingState for LuxMinerV1 {}