Skip to content

Sovereign: build the worker inspector, tuning and change history #2518

Closed as not planned

Description

@VijitSingh97

What's the problem

Parent: #2478 · Milestone: Sovereign UI — post-2.0 · After 2.0.0 GA; not a GA release blocker.

Deliverable

Give each machine a quick inspector and a full detail destination, preserving existing RigForge controls and read-only operation.

  • Work type: Existing worker UI redesign.
  • Design references: 02 machine detail; 21 worker inspector (existing Sovereign mockups attached below; sample data, not runtime evidence).
  • Inventory coverage: M5–M8; M10.

Existing Sovereign mockups

Existing concept images with sample data. The acceptance criteria and validated host/API contracts take precedence over illustrative labels or values.

02 · Machine detail

Sovereign — Machine detail

21 · Worker inspector

Sovereign — Worker inspector

Complete 36-image gallery · Parent: #2478

what it impacts

Dependencies and boundaries

Build on #2517, #2516, #2514.

Use the current host/API/schema contract when implementation starts; the design inventory is a baseline, not proof that develop has not changed. Preserve the parent accessibility, privacy, offline and authority rules. Any missing backend capability must be explicit, never represented by fabricated live data.

How I found it

Verification

Exercise managed, monitoring-only, unauthorized, stale, hot-but-mining and failed-apply workers; verify all six writable fields and keyboard navigation. Follow #2478's required checks and attach sanitized visual evidence to the implementing PR. This issue does not authorize a live deployment or changes to miners/nodes.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Acceptance criteria

  • Show CPU/governor/huge pages/mainboard/temperature/power/efficiency/autotune and freshness; label unsupported telemetry as unavailable.
  • Keep 24h/1wk/All history, config/upgrade markers, provenance, drift, config version comparisons and enough sample context to avoid causal tuning claims.
  • Support the existing writable fields exactly: pools, DONATION, autotune, watchdog, watchdog_interval_min and max_temp_c; preserve types, JSON/file preload, validation and apply polling.
  • Show a local pending diff and exact target before single-worker apply; do not pretend the existing worker API has the stack host-preview transaction.
  • Only offer controls authorized and supported by the worker. Pause/resume/restart or thread profiles need an explicit capability contract before appearing as actionable controls.
  • Keep filter/scroll/draft context, use a full page on mobile, and distinguish requested from completed upgrades.

possible solutions

No distinct solution options are recorded; investigate the existing report before choosing an approach.

Activity

  1. added
    enhancement
    dashboard
    on Sep 22, 2026
  2. pithead-developer commented on Sep 24, 2026

    @pithead-developer
    Contributor

    Investigation brief (operator pre-read, 2026-09-23) — verified against pithead@a5af51a

    Most of what this issue asks to "build" already exists on develop. Worker Inspect (dashboard/mining_dashboard/web/static/workers/workerview.mjs) already ships the CPU/governor/hugepages/mainboard/power/efficiency/autotune/watchdog stat rows (web/views/rigforge_views.py:63-64,83-84,88-89 — line numbers drifted slightly from earlier read but same gated add() calls), the 24h/1w/all hashrate chart with config-change markers (workerview.mjs ~91-97, 250-257), and config provenance/drift and hashrate-by-config-version tables (workerview.mjs:300-320), plus a table+JSON editor over exactly the six writable keys the AC names — {pools, DONATION, autotune, watchdog, watchdog_interval_min, max_temp_c} (service/control_service.py:375-376). This lines up with siblings #2514/#2516/#2517 (all confirmed still open, same "Sovereign UI — post-2.0" milestone, no merged restyle baseline): the Sovereign issues are restyles of already-functional UI, not new builds.

    Two real gaps against the AC, confirmed by direct code read:

    • "Label unsupported telemetry as unavailable" — rigforge_views.py's add() calls are each gated by if <field>: with no else branch, so a missing field is silently dropped, not shown as unavailable. No "unavailable" row pattern exists anywhere in the Worker Inspect stat rendering today (grepped; only an unrelated badge-bad "api unreachable" chip exists elsewhere).
    • "Show a local pending diff and exact target before apply" — apply() (workerview.mjs:177-214) already computes the changes diff via buildTableChanges/parseJsonChanges but posts it straight to /api/control/worker-apply with nothing rendered for the operator to review first (Apply button ~line 290). Confirmed the AC's caveat ("do not pretend the existing worker API has the stack host-preview transaction") is deliberate: a real host-level preview mechanism (configpreview.mjs's PreviewModal, backed by POST /api/control/preview) exists for the host config flow but has no analog on the worker-apply path — so the right fix is rendering the already-computed local diff, not adding a round trip.

    No pause/resume/restart/thread-profile capability exists anywhere in control_service.py or xmrig_client.py, so that AC item is satisfied by omission, not deferred work.

    fix_shape: add unavailable rows to rigforge_display() for the named fields only; render the already-computed diff inline above Apply. Everything else is a CSS/layout pass over existing components — no logic change.

    Blocked on #2517/#2516/#2514 landing first for a Sovereign styling baseline; no duplicate found.

    Triage: issue is already correctly milestoned "Sovereign UI — post-2.0" (confirmed via GitHub) and self-declared non-blocking; underlying feature is live, so 2.0.0 ships complete either way. No milestone change needed — recommend closing the triage loop as CONFIRM-sovereign-ui (not "move", since it never left).

    Verify against the code before relying on this; it was written by an investigator, not the implementer.

  3. self-assigned this
    on Oct 6, 2026
  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #2517, the Machines baseline that this inspector explicitly builds on. Shared chart work #2516 and review controls #2514 also remain open. The latest trusted direction on #2478 and #2513 requires the lean four-page interface built on the v2.1.0 configuration model, whose concrete implementation owner is #3558; it explicitly stops further work on the current dashboard UI. Implementing the inspector against today's components would bypass those prerequisites.

    Read-only reconnaissance confirmed that the current Worker Inspect payload already supplies telemetry, writable configuration, history, drift and provenance in dashboard/mining_dashboard/web/views/worker_detail.py. The issue threads and development guidance were reviewed; there are no source changes, tests, bench jobs or PR from this session. Resume after the shared model and UI prerequisite changes land, then reconcile the inspector criteria with those contracts before implementation.

    The grouped siblings need separate implementation scope: #2521 now owns the rolling-upgrade orchestration folded in from #1899 by the owner's decision, while the current implementation upgrades one worker at a time; #2524 follows a separate earnings/payout coverage data path. Neither is included in an inspector change.

  5. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #2517. #2518 requires the Machines baseline in #2517 plus the shared model and UI prerequisites; latest trusted direction prohibits extending the current dashboard UI. Posted the blocker explanation on #2518; no source changes, tests or PR were created. Resume after the prerequisite changes land.

    The runner resumes this issue when that one closes.

  6. added
    blocked
    on Oct 21, 2026
  7. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked (operator, 2026-10-21): v2.1.0 UI work waits for the lean UI spec (#3566), which maps this issue to one of the 4 pages or folds or closes it. That stops rounds being spent on the old 36-screen Sovereign scope. Unblocks when #3566 closes.

  8. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Rescoped to the lean UI spec #3566 (operator, 2026-10-21): Folded into #2517 (Machines). The inspector opens by row click and shows health only outside Advanced: status, last seen, software version, 24 h hashrate, shares. Restart, Update this rig, adopt or manage (typed APPLY unchanged) and the Table / JSON config edit sit behind Advanced. Per-rig change history is not built in v2.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

blockeddashboardenhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions