Skip to content

Sovereign: build maintenance health and contextual troubleshooting #2540

Open

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

Organize existing doctor reports and bounded logs around problems miners recognize, with clear next actions.

  • Work type: Existing diagnostics redesign.
  • Design references: 07 Maintenance → Health; 34 Help & diagnostics (existing Sovereign mockups attached below; sample data, not runtime evidence).
  • Inventory coverage: S1–S2; contextual Help.

Existing Sovereign mockups

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

07 · Maintenance

Sovereign — Maintenance

34 · Help and diagnostics

Sovereign — Help and diagnostics

Complete 36-image gallery · Parent: #2478

what it impacts

Dependencies and boundaries

Build on #2513, #2523.

Related work: #2491. Existing issues retain ownership of their behavior.

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 successful/failed/long-running checks, missing reports, unsupported logs and redaction with keyboard-accessible disclosures. 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

  • Preserve read-only health checks, service/worker groups, report timestamps, queued/running/timeout-still-running/failed/no-report states.
  • Keep lazy recent logs allowlisted, redacted and bounded to the existing 200-line contract; unsupported details direct to the approved support path.
  • Provide evidence-based help for waiting to mine, hashrate drops, no payouts and connecting a wallet; distinguish observations from possible explanations.
  • Link to the owning node/worker/server/settings page and provide a home for P2Pool console surface: pithead p2pool <cmd> and a dashboard diagnostics panel over the --local-api TCP console #2491 console diagnostics when available without reimplementing its backend.
  • Review identifiers before any support export and preserve redaction. Do not invent generic service start/stop/restart buttons.

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)

    Still valid: yes, unimplemented. The current diagnostics surface is a single generic card, DiagnosticsPanel (dashboard/mining_dashboard/web/static/system/diagview.mjs:1-329), mounted into the legacy settings card-stack at dashboard/mining_dashboard/web/static/app/components.mjs:87 alongside ConfigView/SecurityPanel — not a dedicated Maintenance/Health page, and it carries no contextual troubleshooting content for the four scenarios the AC names (waiting to mine, hashrate drops, no payouts, wallet connect). No CHANGELOG entry or merged PR covers this.

    Root cause: not a bug — this is unbuilt Sovereign-redesign scope. The read-only backend contract it must preserve already exists and looks solid: diagnostics_service.py:36-56 (submit_diag_doctor/submit_diag_logs, MAX_TAIL_LINES = 200 at line 28) and routes in diagnostics_views.py:37-83 (handle_diag_doctor, handle_diag_logs), both CSRF-gated, host-clamped, host-redacted. The gap is purely presentation/IA: no Sovereign nav shell and no per-node health page exist yet for this panel to live under.

    Fix shape (smallest change): once #2513 (nav/page headers) and #2523 (server health view) land, re-home DiagnosticsPanel's existing doctor/log-tail rendering into the new Maintenance page, add contextual-help copy blocks (observation vs. explanation) for the four named scenarios, and a placeholder link for #2491 console diagnostics — no new backend routes, no new control-plane verbs.

    Evidence tier: inferred — this reuses the existing read-only diag-doctor/diag-logs control-plane routes rather than adding new ones, so a tier-1/tier-2 UI test plus the existing routes' coverage may suffice; needs a ruling since "tier follows the path" lists control plane explicitly.

    Rulings needed:

    1. Does re-skinning an existing control-plane-backed panel (no new verbs) require tier4-e2e, or is UI-level coverage sufficient? Recommend: UI-level unless a new route is added.
    2. Should this land before or strictly after Sovereign: build navigation, page headers and persistent status #2513/Sovereign: give the Pithead server its own health view #2523 merge? Recommend: strictly after — it depends on their page/nav structure.

    Duplicates/blockers: blocked by #2513 and #2523 (both open, same milestone). Related, not blocking: #2491 (console diagnostics — this issue only needs to leave it a home).

    Ready: no — cannot be implemented until #2513 and #2523 ship; a worker would have no page/nav to attach the panel to.

    Triage recommendation: MOVE-sovereign-ui — correctly already scoped to "Sovereign UI — post-2.0"; pure UI redesign of existing read-only diagnostics with no GA-blocking risk (no security/data-loss/Tari-fork implication), and it's explicitly gated on sibling Sovereign issues that are themselves post-GA.

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

  3. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #2514 for #2535 and #2542; #2513 is also required for the grouped #2540 maintenance view.

    Both shared UI prerequisites remain open and their implementations are absent from develop-v2.1.0 at a10dbf0. The latest trusted direction on #2478 and #2513 requires the lean four-page interface built on the v2.1.0 configuration model and stops further work on the current dashboard UI. Implementing these panels now would duplicate the foundation or extend that superseded UI.

    Reviewed all three grouped issues, the relevant dependency threads, repository guidance and the current frontend contracts. No existing open PR owns the group; preview PR #2782 is closed without merging. #2523 was folded into #2540 by the owner, so it is not an outstanding dependency; #2540 retains that server-health scope.

    No source changes, tests, bench jobs or PR were created. Resume this group after #2514 and #2513 land, then reconcile the notifications, maintenance and update acceptance criteria with the landed shared components and configuration model before editing.

  4. added
    blocked
    on Oct 21, 2026
  5. 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.

  6. 6 remaining items

  7. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Blocked on #2513. PR #3708 needs #2513/PR #3584 for the Maintenance/Inspect UI and #2603/PR #3539 for deploying hardening proof; both remain unmerged. Posted the blocker explanation on the draft PR and preserved the existing implementation without source changes or new bench jobs. Resume after the prerequisites land to complete UI/browser coverage and final-head deployment/restoration evidence.

    The runner resumes this issue when that one closes.

  8. added
    blocked
    on Oct 27, 2026
  9. added a commit that references this issue on Oct 30, 2026
  10. removed
    blocked
    on Oct 30, 2026
  11. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    Blocked on #2603. Pushed Maintenance/Inspect, reviewed export, server health, topology/statistics and tests at 62976c9; 32 frontend tests and 29 API tests pass, with clean verifier/security reviews. Deploying hardening proof remains blocked on #2603/PR #3539’s recovery changes, which its owner and runner must land. Updated the draft PR and blocker comment; resume afterward to incorporate that fix, verify pending GitHub/browser evidence and obtain final-head deployment/restoration proof.

    The runner resumes this issue when that one closes.

  12. added
    blocked
    on Oct 30, 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

    blockeddashboardenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions