Vendor asic-rs 0.8.1 (280 crates, offline builds) + wxWidgets 3.3.3 (pristine + patch queue); UI spec + ADR-0003; M1 on asic-rs

This commit is contained in:
2026-09-15 10:41:00 -06:00
parent 78e54915e4
commit 165d899fd8
16428 changed files with 6973006 additions and 25 deletions
+30 -22
View File
@@ -150,27 +150,33 @@ offering narrows OS generation (old stock = legacy-only algos).
## 5. Discovery + classification (M1 scope)
Port of `tools/net-scan.py` (probe/classify logic is the spec: 4028
NUL-terminated cgminer JSON, HTTP title+Server, SSH banner; per-host error
isolation) plus the two already-agreed upgrades:
**Scan engine = vendored `asic-rs` 0.8.1** (Apache-2.0, 256foundation; see
ADR-0003): `MinerFactory` with subnet configuration,
`scan_stream()` discovery, per-firmware entries for Antminer (stock,
Braiins, Vnish, LuxOS, ePIC...), WhatsMiner, Marathon, Bitaxe and more,
typed miner data (hashrate, temps, fans, power, pools). Our `net-scan.py`
knowledge is folded in rather than ported line-for-line:
- Multi-subnet / CIDR-list targeting.
- Multi-subnet / CIDR-list targeting (scan-ranges editor feeds it, per
`docs/UI-SPEC.md`).
- ARP/ICMP pre-pass so link-up-but-silent boards surface as a distinct row
(a board we can identify but not log into is a restore candidate, not
invisible).
- Probes: TCP 4028 (cgminer API), 80/8080 (vendor http), 8889 (WhatsMiner
remote-daemon; binary protocol, AES key unknown — reference only), 22 (SSH banner grab: dropbear/OpenSSH + algo fingerprint
narrows the OS), plus WhatsMiner binary API cmd 0 read for model/firmware.
- Output: machine inventory (ip, model, current fw family + version, board
family guess, access level) feeding the install wizard.
Respect `live-fleet-ops` rules: rate-limited, no auth bursts, production
ranges excluded by default.
invisible) — ours to add; asic-rs only reports responders.
- Our classification additions: install-pathway availability, foothold
state, family splits asic-rs does not model (the `command` vs `cmd`
:4028 dialect split, SSH banner/KEX generation fingerprint).
- live-fleet-ops guardrails around the scan loop: rate limiting, no auth
bursts, production ranges excluded unless explicitly enabled.
## 6. GUI: the wxWidgets decision
Requirement: native cross-platform GUI, wxWidgets. Rust binding reality
(checked crates.io 2026-09-14):
Requirement: native cross-platform GUI, wxWidgets **vendored into the repo**
(ADR-0003, wx 3.3.3 pristine + patch queue). Primary view is fixed by the
operator in `docs/UI-SPEC.md` (KPI header, scan-ranges editor, Excel-style
filter panel, columns panel; sortable/drag-reorderable table with row
checkboxes, IP pinned first, default order: hashrate, power, chip temp,
cooling, firmware, pool worker, rest). Rust binding reality (checked
crates.io 2026-09-14):
- `wxRust` 0.0.1-alpha, unmaintained since 2022.
- `wx-rs` 0.2.0 (2023, self-contained), ~6k downloads.
@@ -194,13 +200,15 @@ call is reversible until M3 (first GUI milestone).
## 7. Milestones
- **M0 — Scaffold + GUI decision.** Workspace compiles (done), CI on gitea,
ADRs for D1-D4 (drafted), wx spike (Option B) executed, binding decision
recorded.
- **M1 — Discovery + classification.** Inventory table over a real bench
subnet; the 9-board bench identifies correctly (S17 stock, S19 xil,
S19j Pro bb, S19k Pro cv, S21 Pro aml, H3, H616, M50, WardenOS dev).
Includes the dialect split (`command` vs `cmd` on :4028) and the
per-OS-DHCP-lease false-DARK rule.
ADRs (drafted), wx spike (Option B) executed against the vendored wx
3.3.3 + UI-SPEC table, binding decision recorded. Vendoring done:
asic-rs 0.8.1 (cargo-vendored), wxWidgets 3.3.3 (pristine + patches/).
- **M1 — Discovery + classification.** asic-rs MinerFactory integrated;
KPI header + sortable table render the live bench (9 boards: S17 stock,
S19 xil, S19j Pro bb, S19k Pro cv, S21 Pro aml, H3, H616, M50, WardenOS
dev); scan-ranges editor, filter panel, columns panel per UI-SPEC;
ARP/ICMP pre-pass added for silent boards; the per-OS-DHCP-lease
false-DARK rule respected.
- **M2 — Artifact registry + verify-image.** Seed manifest committed (14
artifacts with sha256: WhatsMiner SD programs, Bitmain stock zip, ePIC
powerplay, BixBit .bmu set, forged WM packages, LuxOS installer);