Skip to content

Sovereign: verify complete feature coverage, accessibility and migration #2547

Open

Description

@VijitSingh97

What's the problem

#2547 is the last gate for the lean UI: the final verification and the cutover that deletes the old dashboard frontend. Its body still describes the 36-screen Sovereign scope: a feature-to-page checklist for 76 inventory groups, every configuration field and every individual Telegram subscription, enforced by a checker script. The lean UI spec #3566 replaced that scope with four pages (Overview, Machines, Earnings, Settings), one Performance / Balance / Privacy control, an Advanced drawer and at most 10 controls outside it. Run as written, the checker would demand back what the lean spec removed on purpose. The owner ruled on 2026-10-27 that every page moves to the new UI, that no work goes into the current one, and that it is deleted at the cutover (#2547). Parent tracker: #2478.

What it impacts

How I found it

How important is it

High for the v2.1.0 lean claim: the old UI is deleted only here, and a wrong scope would either block the release on removed features or let a gap through. It is last in the build order and cannot start before the shell, the page issues and #3557 land, so it is not urgent today.

Acceptance criteria

Scope

Coverage

  • Every dashboard row of the roadmap's Dashboard controls table has its stated disposition (kept, simplified, merged, moved, replaced, removed or behind Advanced) in the new UI. A record of row, disposition, location and evidence is attached to the closing PR. The CLI help row is outside this issue.
  • Every key in the roadmap's Config keys table is reachable as the table says: Essential and profile keys on their page, Advanced keys found by label and by key name in the drawer and editable on DIY with a login without the CLI, automatic keys showing their derived value. Telegram shows a bot token, a chat id and one level (All, Important, Critical or Off); the wallet-changed and clearnet-exposed alarms are always on and cannot be switched. No per-event switches remain.
  • Every 2.0.0 fixture config loads after migration and renders the same stack. The comparison is of effective stack behavior, not config text; a removed key maps into the profile or is ignored with a one-line warning.

Controls and platforms

  • Fixture tests on the appliance, DIY with a login and DIY without a login fail on the 11th counted control outside Advanced. The worst-case fixtures show 10, 9 and 2.
  • Each platform shows only what applies, as the platform table in v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 says. DIY has no local-miner switch, reboot, power off or OS verdict banner. Without a login the editor, profile, alerts, price, XvB, rig update, Update Pithead and Back up now are hidden and one read-only notice names the CLI route. Tari lines, gauges and warnings are absent when Tari is off. Update all rigs shows only when a managed rig is behind, and Update Pithead only when an update exists.
  • With the donation feature (Opt-in hashpower donation to the Pithead project wallet #2476) off, as it ships, no donation control or label appears on any page and the counts above are unchanged.

States and flows

  • Fixtures of 2, 50 and 100 rigs. The 100-rig Machines page has no horizontal scroll at 375 px and no sort or filter control outside Advanced.
  • Healthy, empty, stale or disconnected, editor off, missing telemetry, no history, sync or recovery, and a partial Update all rigs failure each render a plain-words state and never present stale data as current. Missing backend data is shown as unavailable, never fabricated.
  • The first-run sync view replaces the page, shows percent and ETA per node, and hands over to Overview on its own.
  • The preview-and-confirm gate keeps its typed APPLY, payout-suffix inputs and the typed confirmations for disk wipe, restore, upgrade, reboot and power off. The Settings draft is cleared when the dashboard session changes (Clear the retained configuration draft when the dashboard session changes #3323). Deep links from attention items land on the place that fixes them, and back and forward work.
  • Back up now produces an encrypted backup, the no-backup-yet attention item clears, and restoring that backup still works through the appliance wizard and the DIY CLI.

Accessibility, privacy and evidence

Cutover and repository

  • One cutover PR swaps the new frontend in and deletes the old frontend tree. Afterwards no source, document or test refers to the Simple / Advanced / Configuration / Backup tabs, the Advanced-view hint, the mine-cart strip or other removed controls, and the dashboard docs describe the four pages.
  • Nothing is stranded by the missing no-JS wizard form: no test or document depends on it, and the docs name the CLI as the no-browser setup path.
  • Repository-required checks pass, including make test and the applicable dashboard patch coverage and file budgets; skips and failures are recorded explicitly; the final head has an independent agent review. No explanatory source comments. No live deployment and no 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

Run the final acceptance pass after the individual slices land; each slice still owns its own regression checks.

  • Work type: Cross-screen verification.
  • Design references: All 36 studies and operational states (existing Sovereign mockups attached below; sample data, not runtime evidence).
  • Inventory coverage: All 76 inventory groups plus explicit new capabilities.

Existing Sovereign mockups

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

Representative references are shown here; the parent issue provides the complete 36-image index.

Overview · Overview

Sovereign — Overview

19 · Fleet · 100 workers

Sovereign — Fleet · 100 workers

08 · First-run configuration

Sovereign — First-run configuration

13 · Initial sync

Sovereign — Initial sync

Complete 36-image gallery · Parent: #2478

what it impacts

Dependencies and boundaries

Final acceptance follows the implementation children tracked on #2478. Keep this checklist current as each slice lands.

Related work: #1875, #2402. 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

Run repository-required checks, including make test and applicable dashboard patch coverage/file budgets; record skips/failures explicitly and obtain independent review of the final head. 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

  • Maintain a feature-to-page checklist for O1–O7, H1–H6, M1–M10, E1–E11, N1–N8, C1–C14, A1–A3, S1–S6, W1–W10 and I1, reconciled against develop at implementation time.
  • Check every exposed configuration field and all 27 notification subscriptions, including conditional/off states, authority boundaries and Other/unclassified keys.
  • Exercise 2/50/100 workers; healthy, empty, stale/disconnected, read-only/control-disabled, missing telemetry, no history, sync/recovery and partial job failures.
  • Verify dark/light/auto at 1400×900, 390×844 and 200% reflow; perform keyboard and real screen-reader checks alongside automated accessibility tests.
  • Check deep links/back/forward/preferences/drafts, offline assets, reduced motion, accurate network routes, masked summaries and secret-free logs/exports.
  • Record sanitized visual evidence in PRs, not design binaries in the repo. Reuse existing screenshot tooling (No in-repo tool to screenshot the dashboard at a given viewport width #2402); each required gap is fixed or explicitly re-scoped on Dashboard UI overhaul: build the Sovereign design direction (36 screens, 2026-09-16 studies) #2478 before closure.

Acceptance script

This script operationalizes the Acceptance criteria above for the final pass, after the implementation children of #2478 land. Done means it prints ACCEPTED and exits 0 on the PR head that closes this issue. Every check is a mechanical pass or fail, so no judgment call is needed. Paste the script's full output into the PR body.

The issue does not say where the feature-to-page checklist lives. The script reads it from docs/dev/sovereign-acceptance.md, a Markdown record that each slice can keep current. That path and the record format are this script's, not the issue's. The checks that need a person, such as a real screen reader, keyboard use and visual review, are still done by a person. The script only checks that each one is recorded as done with a PR as evidence, or re-scoped to a named issue.

**save the script below as /tmp/accept_2547.py (outside the repo), then, from the repo root:**
python3 /tmp/accept_2547.py

It takes about a second and changes no files. --results DIR reads DIR/sovereign-acceptance.md instead of the repo copy. That option exists only to test the checker against a sample record.

Record format:

  • One line Verified head: <40-hex SHA>, naming the develop commit the pass was run against.
  • Tables with the columns | Item | Page | Verdict | Evidence |. Every data row has exactly four cells. Backticks around an item are ignored, and × reads as x.
  • A row is done when Page is not empty and either Verdict is pass with a PR in Evidence (#123 or a https://github.com/<owner>/<repo>/pull/123 URL), or Verdict is rescoped #<issue>, naming the issue recorded on Dashboard UI overhaul: build the Sovereign design direction (36 screens, 2026-09-16 studies) #2478 that now owns the gap.
Check Passes when
C1 The record exists, every table row has four cells, and no item appears twice. Its Verified head: SHA is HEAD or an ancestor of HEAD.
C2 All 76 inventory groups have a done row: O1–O7, H1–H6, M1–M10, E1–E11, N1–N8, C1–C14, A1–A3, S1–S6, W1–W10 and I1.
C3 Every leaf field of the head's config.reference.json has a done row named by its dotted path, for example monero.remote.host. Keys starting with _ are excluded; develop has 110 fields today. Other, the fallback for unclassified keys, also needs a done row. The field list is read at run time, so fields added later are required too.
C4 Each of the 27 audited Telegram subscriptions has a done off-state row, for example telegram.events.node_down off. Any key added under telegram.events since is required too.
C5 workers 2, workers 50 and workers 100 are done. So are state healthy, state empty, state stale/disconnected, state read-only/control-disabled, state missing telemetry, state no history, state sync/recovery and state partial job failures.
C6 The nine <theme> <viewport> rows are done: dark, light and auto, each at 1400x900, 390x844 and 200% reflow. So are keyboard, screen reader and automated accessibility.
C7 deep links, back/forward, preferences, drafts, offline assets, reduced motion, network routes, masked summaries and secret-free logs/exports are done.
C8 No raster image (.png, .jpg, .jpeg, .gif, .webp, .bmp, .tif, .tiff, .avif, .heic) is added relative to the merge-base with develop.

Rules:

  • Do not change the script's item names, required lists or expected outcomes. If an item no longer fits develop, re-scope it on Dashboard UI overhaul: build the Sovereign design direction (36 screens, 2026-09-16 studies) #2478 and record rescoped #<issue>. Do not edit the script.
  • A reviewer re-runs the same script on the head they review. A changed head needs a fresh run.
  • The repo's normal gates still apply on top of this: make test, make test-patch-coverage, the file budget, and the adversarial review.

Baseline, run 2026-10-03 on 3822294 (develop): the script prints NOT ACCEPTED: 1/8 checks pass. Only C8 passes, because no record exists and no Sovereign slice has landed. The pass side has only been checked against a SYNTHETIC record. That record listed every required item with placeholder pages and PR numbers, and with --results it printed ACCEPTED: 8/8 checks pass. A copy with two items missing and two verdicts that cite no PR or issue printed NOT ACCEPTED: 4/8 checks pass. No real Sovereign evidence exists yet.

Hint, not binding: start the record when the first slice lands and add rows as each slice merges. A rescoped #<issue> row is still done, but it needs the matching scope note on #2478 before closure, and this script cannot check that.

Independent re-check, 2026-10-03: a second session re-ran this script in a fresh worktree at 3822294. Develop printed NOT ACCEPTED: 1/8 checks pass, and with the synthetic results file it printed ACCEPTED: 8/8 checks pass. Files the script mutates were left unchanged after each run.

accept_2547.py
"""Acceptance check for p2pool-starter-stack/pithead#2547 (Sovereign final acceptance pass).

Save this file OUTSIDE the repo (for example /tmp/accept_2547.py) so it is never committed.
Run from the repository root on the PR head:
    python3 /tmp/accept_2547.py                  # reads docs/dev/sovereign-acceptance.md
    python3 /tmp/accept_2547.py --results DIR    # reads DIR/sovereign-acceptance.md instead
Python 3 standard library only; it reads files and git metadata and changes nothing.
Prints PASS/FAIL per check and exits 0 only when every check passes.

The record is Markdown. It holds a line `Verified head: <40-hex develop SHA>` and tables whose
data rows have exactly four cells: | Item | Page | Verdict | Evidence |. A row is done when its
Page is not empty and either Verdict is `pass` with a PR in Evidence (#123 or a .../pull/123
URL), or Verdict is `rescoped #<issue>` naming the issue recorded on #2478 that now owns it.
"""
import json
import re
import subprocess
import sys
from pathlib import Path

RECORD = "sovereign-acceptance.md"
REPO_RECORD = Path("docs/dev") / RECORD
GROUPS = {"O": 7, "H": 6, "M": 10, "E": 11, "N": 8, "C": 14, "A": 3, "S": 6, "W": 10, "I": 1}
AUDITED_EVENTS = {
    "node_down", "node_recovered", "container_unhealthy", "sync_finished", "stack_online",
    "worker_offline", "worker_recovered", "worker_joined", "worker_left", "hashrate_low",
    "hashrate_loss", "hugepages", "low_ram", "high_reject_rate", "disk_space", "db_unhealthy",
    "db_reset", "block_found", "payout_found", "payout_confirmed", "raffle_win", "xvb_no_share",
    "xvb_registration", "wallet_changed", "clearnet_exposed", "daily_summary", "new_release",
}
FLEET = ["workers 2", "workers 50", "workers 100"] + [f"state {s}" for s in (
    "healthy", "empty", "stale/disconnected", "read-only/control-disabled",
    "missing telemetry", "no history", "sync/recovery", "partial job failures")]
DISPLAY = [f"{t} {v}" for t in ("dark", "light", "auto")
           for v in ("1400x900", "390x844", "200% reflow")]
A11Y = ["keyboard", "screen reader", "automated accessibility"]
BEHAVIOUR = ["deep links", "back/forward", "preferences", "drafts", "offline assets",
             "reduced motion", "network routes", "masked summaries", "secret-free logs/exports"]
RASTER = (".png", ".jpg", ".jpeg", ".gif", ".webp", ".bmp", ".tif", ".tiff", ".avif", ".heic")
PR_REF = re.compile(r"(?:^|[^\w&])#\d+\b|https://github\.com/[\w.-]+/[\w.-]+/pull/\d+")
results = []


def report(name, ok, detail=""):
    results.append(ok)
    print(f"{'PASS' if ok else 'FAIL'}  {name}" + (f"  [{detail}]" if detail else ""), flush=True)


def git(*args):
    return subprocess.run(["git", *args], capture_output=True, text=True)


def leaves(node, path=()):
    if isinstance(node, dict) and node:
        for key, value in node.items():
            if not key.startswith("_"):
                yield from leaves(value, path + (key,))
    else:
        yield ".".join(path)


args = sys.argv[1:]
if args and (len(args) != 2 or args[0] != "--results"):
    sys.exit("usage: accept_2547.py [--results DIR]")
record = Path(args[1]) / RECORD if args else REPO_RECORD
text = record.read_text() if record.is_file() else ""
rows, bad, dupes = {}, [], []
for line in text.splitlines():
    line = line.strip()
    if not line.startswith("|"):
        continue
    cells = [c.strip() for c in line.strip("|").split("|")]
    if all(set(c) <= set(":- ") for c in cells) or cells[0].strip("`").lower() == "item":
        continue  # separator or header row
    if len(cells) != 4:
        bad.append(line[:60])
        continue
    item = cells[0].strip("`").strip().replace("×", "x")
    if item in rows:
        dupes.append(item)
    rows[item] = cells[1:]
head_sha = re.search(r"^Verified head: `?([0-9a-f]{40})`?\s*$", text, re.M)
ancestor = bool(head_sha) and git("merge-base", "--is-ancestor", head_sha.group(1), "HEAD").returncode == 0
report("C1 the record exists, every table row has 4 cells, items are unique, and its verified head "
       "is HEAD or an ancestor", bool(rows) and not bad and not dupes and ancestor,
       f"{record}: {len(rows)} rows, malformed {bad[:2]}, duplicates {dupes[:3]}, "
       f"head {head_sha.group(1)[:12] if head_sha else None} ancestor={ancestor}")


def done(item):
    if item not in rows:
        return False
    page, verdict, evidence = rows[item]
    return bool(page) and ((verdict == "pass" and bool(PR_REF.search(evidence)))
                           or bool(re.fullmatch(r"rescoped #\d+", verdict)))


def require(name, items):
    missing = [i for i in items if i not in rows]
    open_rows = [i for i in items if i in rows and not done(i)]
    report(name, bool(items) and not missing and not open_rows,
           f"{len(items)} required, missing {len(missing)} {missing[:4]}, "
           f"not done {len(open_rows)} {open_rows[:4]}")


require("C2 all 76 feature-inventory groups (O1-O7 ... I1) are done",
        [f"{g}{n}" for g, count in GROUPS.items() for n in range(1, count + 1)])
reference = json.loads(Path("config.reference.json").read_text())
fields = sorted(leaves(reference))
require(f"C3 every config.reference.json field on this head ({len(fields)}) and the Other fallback are done",
        fields + ["Other"])
live_events = set(reference.get("telegram", {}).get("events", {}))
require("C4 the off state of all 27 audited Telegram subscriptions (plus any added since) is done",
        [f"telegram.events.{e} off" for e in sorted(AUDITED_EVENTS | live_events)])
require("C5 the 2/50/100-worker fleets and all eight operational states are done", FLEET)
require("C6 dark/light/auto at 1400x900, 390x844 and 200% reflow, keyboard, a real screen reader "
        "and automated accessibility are done", DISPLAY + A11Y)
require("C7 deep links, back/forward, preferences, drafts, offline assets, reduced motion, network "
        "routes, masked summaries and secret-free logs/exports are done", BEHAVIOUR)

git("fetch", "-q", "origin", "develop")
base = git("merge-base", "origin/develop", "HEAD").stdout.strip()
added = git("diff", "--name-only", "--diff-filter=A", base).stdout.split()
raster = [f for f in added if f.lower().endswith(RASTER)]
report("C8 no raster image is added to the repo (visual evidence belongs in the PRs)",
       bool(base) and not raster, f"added rasters: {raster[:5]}")

print(f"\n{'ACCEPTED' if all(results) else 'NOT ACCEPTED'}: {sum(results)}/{len(results)} checks pass")
sys.exit(0 if all(results) else 1)

possible solutions

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

Activity

  1. added
    enhancement
    dashboard
    testing
    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, as a future acceptance task — not actionable today. ready: no.

    What this issue is: the final acceptance-pass checklist for the whole Sovereign UI redesign, explicitly gated on #2478's implementation children landing ("Final acceptance follows the implementation children tracked on #2478. Keep this checklist current as each slice lands."). It carries no code change of its own.

    Current state on develop (pithead-ro @ a5af51a, fetched today): zero Sovereign implementation exists. find . -iname '*sovereign*' and a repo-wide grep -ril sovereign return no hits; pithead-ro:dashboard/mining_dashboard/ has no Sovereign-named files or routes. All ~30 children of #2478 (including #2515, #2516, #2517, #2518, #2543, #2544, #2545, #2546) are OPEN, all milestoned "Sovereign UI — post-2.0", with zero merged or even opened PRs against any Sovereign slice (gh pr list --search "sovereign in:title" --state all returns empty).

    root_cause: not a defect; the precondition for this checklist (at least one Sovereign slice merged) is unmet.

    fix_shape: none. Nothing for a worker to implement from this brief — the acceptance pass has no surface to run against yet.

    evidence_tier: N/A for #2547 itself; each implementing child PR carries its own tier4-e2e/tier4-kvm evidence per "tier follows the path" when it eventually lands.

    duplicates_or_blockers: blocked by #2478 and all of its ~30 child issues, none merged.

    rulings_needed: none blocking — confirm the default that #2547 needs no action until the first Sovereign child PR merges.

    Triage recommendation: MOVE-sovereign-ui — already correctly placed in the "Sovereign UI — post-2.0" milestone (confirmed open/frozen-until-GA per policy); it is explicitly non-GA-blocking and has no implementable surface until #2478's children start landing.

    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

    Rescoped (owner, 2026-10-21): from 'keep every field' to the lean 4-page model: Overview, Machines, Earnings, Settings, one Performance / Balance / Privacy profile control, and an Advanced drawer for the rest, with at most 10 controls outside Advanced. Builds on the v2.1.0 config model; no further work on the current dashboard UI.

  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #2513. Blocked on pithead#2513: develop-v2.1.0 still exposes Simple/Advanced/Configuration navigation, so the approved four-page interface cannot receive final acceptance. Implementation owners must land navigation, Settings, the shared configuration model (#3558), and the remaining required slices before this pass can proceed. Read-only reconnaissance is complete; no edits, tests, bench jobs or PR were created.

    The runner resumes this issue when that one closes.

  5. added
    blocked
    on Oct 21, 2026
  6. 3 remaining items

  7. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Rescoped to the lean UI spec #3566 (operator, 2026-10-21): Rescoped to verify against the lean inventory in #3566, not the 76 old groups: every Dashboard controls row has its stated disposition; the control-count test passes on the appliance, DIY with login and DIY without login fixtures (at most 10 outside Advanced); every 2.0.0 fixture config loads after migration; the accessibility and 375 px sweeps pass; the old frontend tree is deleted. Last in the order, after the configuration model (#3557) and the page issues.

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

    @pithead-developer
    Contributor

    Blocked on #3557. The previous shell blocker #2513 is resolved by merged PR #3584, verified on develop-v2.1.0 at 7cbf81b. That change provides the opt-in /ui-preview shell; page content still shows construction placeholders and the old frontend remains.

    The current #2547 scope and accepted spec #3566 require final verification and cutover only after the configuration model and page implementations land. #3557 remains open, with implementation children #3574–#3579 unfinished; #3558 was closed as its duplicate. The required page issues #2515, #2546, #2517, #2525, #2530, #2540 and #2543 also remain open. Without their implementations, migration equivalence, platform control counts, complete page accessibility and legacy deletion cannot be accepted.

    Read-only reconnaissance and the prerequisite refresh are complete. The working tree is clean; no source changes, tests, bench jobs or PR were created. The implementation owners must land the configuration-model children and required pages, and close #3557 with its contract evidence; resume this final acceptance/cutover after those prerequisites land. This replaces the earlier dependency on #2513 and the superseded 76-group scope.

  10. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    Blocked on #3557. #2513 is resolved by merged PR #3584, but final acceptance and cutover still require the unfinished configuration model (#3557) and seven page implementations. Their owners must land those changes before migration, control counts, accessibility and old-frontend deletion can be verified; this blocker is now documented on #2547. Reconnaissance is complete; no edits, tests, bench jobs or PR were created.

    The runner resumes this issue when that one closes.

  11. 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

    blockeddashboardenhancementtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions