Skip to content

Sovereign: build accurate initial sync and runtime recovery screens #2546

Closed

Description

@VijitSingh97

What's the problem

The sync screen is the first thing a new user sees after install, and it stays up until Monero (and Tari, when it runs) has synced. Today it prints unformatted block counts with no ETA, draws a Tari gauge even when Tari is off, gives no reason when a remote node is what it waits on, and does not separate "node unreachable" from "node synced but mining not yet re-admitted". Its explanation of the recovery window is fixed prose, not live state.

The operator rescoped this issue on 2026-10-21 to the lean UI spec #3566 (section C): it becomes the first-run state of the Overview page, absorbing #1872 (counts, ETA, Tari gauge) and #2353 (remote-node wait reason). It does not wait for the setup wizard (#2543) or the configuration model (#3557); only the optional profile line does. The 36-screen Sovereign design (separate probe, settings and help actions, raw counts as the headline, no ETA) is superseded, and no work goes into the current dashboard UI.

What it impacts

How I found it

How important is it

High for v2.1.0: it is the first screen a new user sees after install, and the same screen already stalled silently for twenty minutes in #2353. Not a 2.0.x item; it lands after shell #2513, and the roadmap build order runs it in parallel with Overview #2515.

Acceptance criteria

  • While Monero, or Tari when it runs, is still syncing, a full-page sync view replaces Overview inside the Sovereign: build navigation, page headers and persistent status #2513 shell; when every running node is ready it hands over to Overview on its own, with no click. A fixture test covers syncing to ready.
  • Each running node shows percent progress and an ETA as the headline; raw block counts, if shown, are secondary and use thousands separators. The ETA is computed from progress measured over recent polls; when it cannot be measured (too few samples, no progress) the view says the estimate is unavailable, never a guess or zero. Unit tests cover steady progress, no progress, too few samples and finished.
  • With Tari off there is no Tari gauge, line or warning. A fixture with Tari off and one with Tari on pin this.
  • The view says in plain words what mining is waiting for and what ends the wait, and follows the real gating rule for optional versus required Tari instead of a fixed sentence.
  • When a remote Tari (or Monero) node is why the view waits, it names that node and states its reported sync state, whether its initial sync is achieved, the last probe error if the probe failed, and how long it has waited; one log line records each change of that state. Tier 1: a GetTipInfo response with initial_sync_achieved false renders the reason, and an RPC error renders the error.
  • Reachable, synced and mining-admitted are shown as distinct states, including a node that lost peers or regressed, the recovery window, worker re-admission and a restart of a required service (display only). Mining is never labelled active while gated. A signal the host does not provide shows as unknown, never as invented data. One fixture each for first sync, regression, recovery window and resumed mining.
  • On a poll failure or page reload the view keeps the last successful snapshot with its age and a disconnected note; unknown, stale and zero are distinct.
  • The view adds no counted control (deep links are not counted) and the control-count fixture still passes on appliance, DIY with login and DIY without login; the view is read-only on all three.
  • When the state carries an active profile (Implement the approved v2.1.0 configuration model and migration contract #3557), the view shows it with a deep link to Settings noting that Performance syncs faster; when it does not, nothing renders and sync rendering does not wait for it.
  • Works at 375 px with no horizontal scroll, is keyboard reachable, and passes WCAG AA contrast in light and dark. The PR attaches sanitized screenshots at 375 px and desktop.
  • Gating logic is not changed here; state payload additions on the host/API side are allowed where the view needs them. The current frontend tree is not touched. docs/dashboard.md describes the first-run state, tests of the removed sync screen are replaced, and no explanatory source comments are added. No live deployment or change to miners or nodes.

Possible solutions

Earlier scope, kept as evidence only (superseded 2026-10-27; do not implement from it)

What's the problem

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

Deliverable

Explain why mining is waiting and what will happen next, using real node and worker admission state.

  • Work type: Existing readiness redesign.
  • Design references: 13 sync; 14 sync recovery (existing Sovereign mockups attached below; sample data, not runtime evidence).
  • Inventory coverage: N7–N8.

Existing Sovereign mockups

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

13 · Initial sync

Sovereign — Initial sync

14 · Sync recovery

Sovereign — Sync recovery

Complete 36-image gallery · Parent: #2478

what it impacts

Dependencies and boundaries

Build on #2513, #2543, #2528.

Related work: #2472, #2499, #2464. 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 first sync, optional/required Tari, lost peers/regression, stale progress, recovery window and resumed mining with readiness fixtures. 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

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) — corrected

    Still present: the acceptance criteria are largely unmet on develop (verified against HEAD a5af51a, and no PR anywhere references #2546). The current sync screen (dashboard/mining_dashboard/web/static/system/syncview.mjs:40-72) shows only percent/current/target/remaining/mode/db_size per chain, built by build_sync() (dashboard/mining_dashboard/web/views/infra_views.py:368-388), which wraps each chain's SyncMetric into a 3-state gauge (done/loading/syncing). It does not expose reachable vs healthy vs mining-admitted as separate states, does not show worker re-admission progress, required-service recreation, or sample age, and offers no probe/settings/help actions — all required by the acceptance criteria.

    Root cause: this is a from-scratch build, not a regression, and the gap is even narrower than raw absence — some of the needed state is already flowing partway into the view layer without being used. SyncMetric (service/metrics.py:39-48) already carries a down: bool field populated from the debounced node-health signal (_sync_metric, service/metrics.py:~319), and that field is passed into build_sync() on sm — section() (infra_views.py:373-384) simply never copies it into the output dict it sends to the client. Separately, miner_released/workers_rejected/workers_expected (the mining-admitted signal) are already computed in service/data_service.py:386,485 and data_setup.py:136,206,211, but are consumed only by xvb_views.py:168, never reaching this screen. NodeHealthMonitor itself (service/health/node_health.py:6-74) tracks down/healthy via debounced reachability and a recovery window (NODE_RECOVERY_AFTER_SEC), and the one-way sync-latch bug that let mining start pre-sync is already fixed (#2472, CHANGELOG.md:116-121, shipped, closed). The SyncView component's explanatory paragraph (syncview.mjs:27-39) narrates the readmission/recovery-window behavior in prose instead of showing live state, an intentional stopgap noted in its own comment (#1886 gap 3, PR #1926).

    fix_shape: extend section() inside build_sync() (infra_views.py:373-384) to include sm.down (already on the SyncMetric argument — no new wiring into NodeHealthMonitor needed there) plus the mining-admitted signal (miner_released/workers_rejected, already computed in data_service.py, needs threading through to the sync payload) and a recovery-window timer; extend SyncView/Gauge to render them plus sample age and available probe/settings/help actions. This is UI/data-plumbing, not a control-plane change, and is a smaller diff than "source new state from NodeHealthMonitor" implies — most of it is already computed and just needs to be copied one layer further out.

    evidence_tier: tier-1 (dashboard-only UI/data-plumbing reading existing health/gating state; no build/compose/config-rendering/control-plane/merge-mining/Tor/miner change). No tier4-e2e required under "tier follows the path" — confirmed: "required-service recreation" stays display-only (show that a restart happened), not a trigger; any user-triggered action belongs to a settings/control issue.

    duplicates_or_blockers: not a duplicate. Confirmed live on GitHub: explicitly blocked by three open, unimplemented sibling issues the issue body says to build on: #2513 (navigation/persistent status, OPEN), #2543 (setup/config redesign, OPEN), #2528 (topology/node-health cards, OPEN) — all three still milestoned "Sovereign UI — post-2.0". Related-but-separate runtime defects #2472 (CLOSED/fixed) and #2499, #2464 (both OPEN, out of scope per issue body — #2464 sits in the separate v2-appliance GA-gate milestone) stay excluded from this visual work. Thread has zero comments; no rulings recorded yet.

    rulings_needed:

    triage: MOVE-sovereign-ui
    Triage recommendation: MOVE-sovereign-ui — already correctly placed in the "Sovereign UI — post-2.0" milestone (frozen until GA by ruling); confirmed live: nothing here is a GA blocker, data-loss, security, or Tari-fork issue, and it structurally depends on three still-open sibling Sovereign issues, so it cannot be implemented before them regardless of milestone.

    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 #2513. Both issues await the lean UI prerequisite #2513: the trusted parent ruling prohibits further work on the current dashboard, which remains on develop-v2.1.0. #2546 also requires setup #2543 and the shared configuration model #3558; #2528's work moved to #2540. Reconnaissance is complete; no changes, tests or PR were made, and implementation resumes after the prerequisite changes land.

    The runner resumes this issue when that one closes.

  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. 1 remaining item

  7. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Rescoped to the lean UI spec #3566 (operator, 2026-10-21): Becomes the Overview's first-run state, the first thing a new user sees after install. A full-page sync view with percent and ETA per node (not raw block counts), a Tari gauge only when Tari runs, the remote node's state as the wait reason in remote-Tari mode, and, once #3557 lands, the active profile with a deep link to Settings noting that Performance syncs faster. It hands over to Overview on its own. Absorbs #1872 and #2353. Does not need the configuration model; only the profile line waits for it.

  8. removed
    blocked
    on Oct 30, 2026
  9. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    Blocked on #3795. The required shell check fails on the existing fixture defect tracked by #3795; fix PR #3796 must merge before this branch can obtain passing evidence. Dashboard implementation, focused tests and independent reviews are complete. Blocker details and job evidence are posted on PR #3785 and #3795; resume by merging the fixed base and running new-head CI.

    The runner resumes this issue when that one closes.

  10. added
    blocked
    on Oct 30, 2026
  11. removed
    blocked
    on Oct 31, 2026
  12. pithead-developer commented on Oct 31, 2026

    @pithead-developer
    Contributor

    Blocked on #3786. Pushed the lint fix at a689682; topology lint, Biome, 30 frontend tests, metadata gates and independent reviews pass. The image failure reproduces independently and is tracked by #3786, with fix PR #3789. Evidence and blocker comments are posted; once #3789 merges, this branch needs the updated base and new-head CI proof.

    The runner resumes this issue when that one closes.

  13. added
    blocked
    on Oct 31, 2026
  14. removed
    blocked
    on Oct 31, 2026
  15. added a commit that references this issue on Oct 31, 2026
    913268e
  16. pithead-developer commented on Oct 31, 2026

    @pithead-developer
    Contributor

    Merged in #3785.

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

    dashboardenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions