Repository navigation
Description
What's the problem
Parent: #2478. Spec: #3566 sections H, I and J (rules in A). Milestone: v2.1.0.
The first-run wizard is still the old form. On the default path it shows 16 fields (up to 25), carries a JSON editor and a no-JS form, and is styled for the superseded 36-screen scope. The lean spec replaces it with a wizard that asks three questions (Monero wallet, optional Tari wallet, profile) and keeps only the safety flows that cannot be dropped. This issue builds those screens. #3577 owns the question list, the DIY browser-or-CLI choice and the CLI/browser parity test. #2544 (disk selection and erase review) and #2545 (restore, failed setup, one-time hand-off) were folded into this issue on 2026-10-21 and keep their acceptance criteria; #3327 (duplicate restore uploads) was folded into #2545.
What it impacts
- Every new DIY and appliance user at first run, and appliance users who reinstall or restore.
- Docs and tests: the wizard section of
docs/dashboard.mdand the tests of controls this change removes. - Neighbours: Sovereign: build accurate initial sync and runtime recovery screens #2546 builds the first-run sync state that the hand-off opens; Sovereign: verify complete feature coverage, accessibility and migration #2547 verifies the cutover and deletes the old frontend.
- The wizard is its own flow and does not count toward the dashboard's ten-control budget.
How I found it
- The operator rescope on this issue (2026-10-21) and v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 H, I and J define the target. The owner reaffirmed on 2026-10-27 that every page moves to the new UI and that no work goes into the current one.
- Ask three questions at setup on the CLI and in the browser wizard #3577 recorded the current state from a read-only scan of
developat 9249b0b: 16 browser fields by default, three hand-kept config builders, and a browser wizard that today starts only at appliance first boot. - The roadmap's control table gives the dispositions: keep the token gate, replace the setup form, remove the JSON editor, keep restore, disk install, saved-role and done/failed.
- The 2026-09-23 investigation on Sovereign: make installer disk selection and erase review unambiguous #2544 found that changing the wipe mode did not clear the typed disk-name confirmation. That finding was not re-checked against current code.
- Nothing was run in a browser. No wizard mockup is recorded in the lean set; the three concept images in the earlier scope (08, 10, 16) are evidence only.
How important is it
High. The three-question wizard is the north-star path (install to mining by answering three questions) and the restore and disk-erase screens carry data-loss gates. It waits for the configuration model (#3557), so it is not a release emergency.
Acceptance criteria
- Questions: the browser wizard asks exactly three, in this order: Monero payout address (required, validation as today); Tari wallet (optional; blank asks nothing more and writes Tari off, filled writes the bundled node, checksum and wrong-network errors re-prompt); profile Performance / Balance / Privacy (Balance preselected, one plain sentence per position, Performance names the clearnet sync exposure). A test pins the list and order against the CLI prompt list from Ask three questions at setup on the CLI and in the browser wizard #3577.
- Never asked on the default path: pool tier, dashboard login, hostname, light mode, worker API port, node mode, Telegram, onion, local miner, stratum password. A render test asserts no field outside the three questions, the consents and the appliance-only steps.
- Consents (DIY: install packages, HugePages boot change, start) are separate steps with plain wording, and the start step shows the chosen answers and their effects first. How the DIY browser leg takes the privileged consents is settled with Ask three questions at setup on the CLI and in the browser wizard #3577 and tested; no consent is skipped or assumed.
- Token gate: console token normalization, secure session cookie, throttled retry and lockout, and error announcement with focus are unchanged and tested. On DIY the token is printed in the terminal.
- Appliance only: role choice (Pithead, Pithead plus miner, Rig) with accurate consequences, and a Rig role that asks for pool, worker and password instead of payout questions. The DIY wizard shows no role, disk or restore step (fixture test per platform).
- Disk (Sovereign: make installer disk selection and erase review unambiguous #2544, appliance only): shows disk name, size, model and serial, install state, and what keep, data and all each retain or delete. The typed disk-name confirmation stays host-checked. Changing the disk or the wipe mode clears the confirmation and the reviewed choice, and a test proves a submit after a mode switch is refused until retyped. Browsing or selecting never writes. Keep-installation, preserved-chain and RigForge USB options remain where supported; restore and failed-install routes stay visible.
- Restore (Sovereign: redesign restore, failed setup and one-time handoff #2545, Setup restore permits duplicate archive uploads while awaiting a response #3327): archive and passphrase host validation and the 64 MiB limit are unchanged; errors are announced with focus; the screen says chains are excluded. With the first upload held open, a second click or Enter sends no second request and shows a busy state; after a refusal or network error one deliberate retry works with the archive and passphrase kept; success advances from server state. The saved-role screen (keep, restore, set up again) and its wiped-recovery warnings remain.
- Stages: setup, installing, failed, hand-off and done render from server state, survive reload, keep valid choices and retry only the failed work. No independent client-side progress model. Finish is never enabled before the server reports it, a restored archive is never described as a synced node, and installer shutdown and USB-removal instructions follow verified stages.
- Hand-off: the generated login, URLs, rig details and emergency material are shown once with a required acknowledgement and safe copy behavior, and never written to history or telemetry. The encrypted recovery backup is offered once, using the behavior of the Settings backup card (Sovereign: organize mining and advanced settings without losing fields #2530). The wizard then opens Overview at the first-run sync state built by Sovereign: build accurate initial sync and runtime recovery screens #2546.
- The wizard JSON editor and the no-JS form are not carried into the new wizard;
./pithead setup --cliis the no-browser path and restore-from-backup is the expert path. Deleting the old form builder follows the cutover (Sovereign: verify complete feature coverage, accessibility and migration #2547), since the Ask three questions at setup on the CLI and in the browser wizard #3577 parity test pins it until then. - Phone and accessibility: at 375 px there is no horizontal scroll, every control is reachable by keyboard with visible focus, contrast passes WCAG AA in light and dark, and the wizard follows the OS theme. Secrets and connection details stay masked per the dashboard policy except in the one-time hand-off.
- Docs and tests: the
docs/dashboard.mdwizard section is updated, tests of removed controls are deleted, and no explanatory source comments are added. The PR attaches sanitized screenshots at 375 px, tablet and desktop widths from the repo screenshot tool. Proof uses fake devices and archives only; no live deployment and no change to miners or nodes.
Possible solutions
- Build the new wizard screens beside the current wizard and swap them in at the cutover (v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 section K, recommended there), driving them from the existing server stage machine and endpoints. The current wizard gets no further work except deletion.
- Unknown, to settle with Ask three questions at setup on the CLI and in the browser wizard #3577: whether the DIY browser leg can take the package-install and HugePages consents or must hand them to the terminal that holds sudo.
- Unknown: which of Sovereign: organize mining and advanced settings without losing fields #2530 and this issue builds the shared profile component that v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 section I says Settings and the wizard both use.
- Unknown: whether the pre-start hand-off can create the encrypted backup before the stack runs; if not, the hand-off links to it from Settings.
- Remote Monero and Tari node entry leave the wizard for Settings > Advanced (Sovereign: organize mining and advanced settings without losing fields #2530). Confirm Sovereign: organize mining and advanced settings without losing fields #2530 carries their blocking probes and actionable failures, which the old wizard required.
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
Bring Sovereign to first run without replacing the server-authoritative wizard or hiding advanced configuration.
- Work type: Existing wizard redesign.
- Design references: 08 first-run configure; 10 role; 16 token (existing Sovereign mockups attached below; sample data, not runtime evidence).
- Inventory coverage: W1–W2; W4–W6.
Existing Sovereign mockups
Existing concept images with sample data. The acceptance criteria and validated host/API contracts take precedence over illustrative labels or values.
16 · Setup token
10 · Setup role
08 · First-run configuration
Complete 36-image gallery · Parent: #2478
what it impacts
Dependencies and boundaries
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 all roles, token retry, remote-node failure, Tari off/required, invalid config and reload with the existing wizard tests and phone 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
- Preserve console token normalization, secure session cookie, throttled retry and accessible error/focus handling.
- Offer Pithead, Pithead + RigForge and RigForge roles with accurate consequences; rig-only asks for pool/worker/password rather than dashboard payout setup.
- Keep naming, wallets, nodes, pool, local miner, XvB, optional Tari, sync route, timezone, notifications and JSON available through essentials plus optional sections.
- Preserve generated/chosen password rules and the no-login warning; connection details and secrets follow the same masking policy as the dashboard.
- Keep remote-node probes blocking where required and show actionable failures; review actual selected configuration and effects before starting.
- Use existing server stages and reload behavior rather than an independent client-side progress model.
possible solutions
No distinct solution options are recorded; investigate the existing report before choosing an approach.



Activity
pithead-developer commentedon Sep 24, 2026
Investigation brief (operator pre-read, 2026-09-23)
Scope: pithead#2543, child of tracker #2478 ("Sovereign UI — post-2.0"), asks for a visual redesign of the existing first-run wizard (setup token, role choice, essentials/advanced config) to the Sovereign look, while preserving the current server-authoritative behavior.
still_valid: yes, untouched. The wizard this issue targets is live and unchanged: token gate + HMAC-compare + lockout/re-mint at
dashboard/mining_dashboard/wizard/server.py:76,234-257; role screen and its copy map atdashboard/mining_dashboard/web/static/wizard/savedrole.mjs:21-38,97; essentials/<details>Advanced</details>split atdashboard/mining_dashboard/web/static/wizard/setup.mjs:257. No Sovereign styling exists anywhere indashboard/mining_dashboard/web/static/wizard/*(checkedwizard.css, all.mjs) and no Sovereign work has merged (gh pr list --search sovereign→ empty, no CHANGELOG entries).root_cause: not a defect — this is unstarted, correctly-scoped design work. The issue itself states the dependency: "Build on #2512, #2514," both still OPEN (theme tokens/shared controls, and the settings-preview/review pattern this wizard's essentials/advanced sections would reuse). Implementing #2543 before either lands means re-deriving the same tokens/controls twice.
fix_shape: none needed now — smallest correct action is sequencing, not code. When #2512/#2514 land, apply their tokens/controls to the existing wizard templates/JS in place (
wizard.html,setup.mjs,savedrole.mjs,wizard.css) without touchingserver.py's auth/session/stage logic — the issue explicitly asks to keep "existing server stages and reload behavior."evidence_tier: file:line, direct read of current head; no CHANGELOG/PR history contradicts. Under tier-follows-the-path, no tier evidence is owed at this stage because no code change is proposed; the eventual restyle PR touches only wizard presentation (not build/compose/config-rendering/control-plane/deploy/merge-mining/Tor/miners/os), so it will need only the wizard's ordinary UI tests, not tier4-e2e/tier4-kvm.
rulings_needed:
duplicates_or_blockers: blocked by #2512 (theme tokens/shared controls) and #2514 (settings review pattern), both open. No duplicate issue found.
ready: no — a worker cannot implement this yet; #2512/#2514 aren't merged, so there's no design system to restyle onto.
Triage recommendation: CONFIRM-sovereign-ui, no runner action — issue #2543 already carries milestone "Sovereign UI — post-2.0" and its body already states "After 2.0.0 GA; not a GA release blocker." It depends on two still-open siblings in the same milestone (#2512, #2514) and touches nothing security-, data-loss- or Tari-fork-related that would justify pulling it into 2.0.0. (Correction from the original draft: the milestone is already set, so there is nothing to "move" — per this repo's own triage-sweep rule, a milestone is only ever added when an issue has none.)
Verify against the code before relying on this; it was written by an investigator, not the implementer.
pithead-developer commentedon Oct 21, 2026
Blocked on #2512. Blocked on pithead#2512; pithead#2543 also requires pithead#2514, and both shared UI prerequisites remain open. The latest trusted parent ruling requires the lean UI built on the v2.1.0 configuration model, so implementation can resume after those prerequisites land under that scope. Reconnaissance is complete; no source changes, PR, or tests were made.
The runner resumes this issue when that one closes.
1 remaining item
pithead-developer commentedon Oct 21, 2026
Blocked (operator, 2026-10-21): this screen binds to configuration, so it waits for the lean UI spec (#3566) and for the v2.1.0 configuration model (#3557, the profile, defaults table and key diet). Unblocks when both close.
pithead-developer commentedon Oct 21, 2026
Rescoped to the lean UI spec #3566 (operator, 2026-10-21): Becomes the setup wizard: three questions (Monero wallet, Tari wallet optional, profile), the consents that stay, a hand-off that shows the generated login once and offers the backup. Absorbs #2544 (disk selection and erase review) and #2545 (restore, failed setup, one-time hand-off). Appliance adds role, disk, restore and the saved-role screen; DIY asks first whether to continue in the browser or the CLI, and both ask the same questions behind the same one-time token. The questions, the DIY choice and the CLI/browser parity test are specified in the setup issue under #3557; this issue builds the screens. Needs the configuration model (#3557) first.
pithead-developer commentedon Oct 21, 2026
Blocked on #3557. The accepted lean UI spec in #3566 and the latest rescope on this issue require the implemented configuration model before the setup screens bind to its profiles, defaults and three-question CLI/browser contract. #2512 closed by folding its work into #2513; that closure does not deliver the configuration prerequisite.
Reviewed the replacement scope and confirmed #3557 remains open. No source changes, PR or tests were made. The configuration-model child implementations must land and #3557 must close with the shared setup contract and proof before this wizard work can resume. The #3430 update-dialog defect remains separate from this wizard scope under its existing deferral.
pithead-developer commentedon Oct 21, 2026
Blocked on #3557. Blocked on pithead#3557: the accepted lean UI spec requires its profiles, defaults and shared three-question setup contract before implementing #2543. Confirmed the replacement scope and posted the blocker explanation on #2543; configuration-model implementations and closure of #3557 will unblock it. No source changes or tests were made.
The runner resumes this issue when that one closes.