Skip to content

Sovereign: make installer disk selection and erase review unambiguous #2544

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 installer storage its own clear stage, with exact disk identity and retained/deleted data before destructive work.

  • Work type: Existing installer redesign.
  • Design references: 11 setup storage (existing Sovereign mockups attached below; sample data, not runtime evidence).
  • Inventory coverage: W3; W8 storage consequences.

Existing Sovereign mockups

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

11 · Setup storage

Sovereign — Setup storage

Complete 36-image gallery · Parent: #2478

what it impacts

Dependencies and boundaries

Build on #2543.

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

Use fake-device/installer tests for device changes, existing install, keep/data/all and cancelled confirmation; no real disk writes are authorized by this UI task. 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 selected disk identity, size and relevant installation state; selection/review must refer to the same actual device.
  • Explain existing keep/data/all choices accurately: reset configuration may delete settings and wallets while retaining chains; wipe-all removes both.
  • Preserve keep-installation, preserved-chain and nondestructive RigForge USB options where supported.
  • Require the existing host-backed final destructive confirmation; changing the disk or mode invalidates the reviewed choice.
  • Keep restore and failed-install recovery routes visible and ensure no destructive write occurs merely from browsing or selecting a card.

possible solutions

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

Activity

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

    @pithead-developer
    Contributor

    Investigation brief (operator pre-read, 2026-09-23)

    Most acceptance criteria in #2544 are already satisfied by the current installer wizard code, not open work:

    • Disk identity: name, size, model and serial number are all shown in the disk <option> label, not truncated (stages.mjs:49-53).
    • Consequence text is restated in full below the picker, red when destructive (stages.mjs:64-84).
    • Keep/fresh-start/wipe-everything are explained accurately, keep is the default (stages.mjs:68-73).
    • Type-the-disk-name final gate exists client- and host-side (wizard.mjs:220-221,284-285; wizard/server.py:380-388; wizard_install.py:7-13).
    • USB (rig, nondestructive) and restore-from-backup routes remain visible and reachable pre-erase (setup.mjs:113-116; formparts.mjs).

    One real, narrow gap remains: onWipe (setup.mjs:129, formparts.mjs:63 — the latter serves the restore-at-setup flow's disk picker too, same InstallSection component) does not clear confirm when the operator switches the wipe-mode radio (keep → data → all). Because the disk selection itself is unchanged, the stale confirm text still equals chosen and the host's only check (confirm === disk name, wizard_install.py:12, shared by all three server.py call sites at lines 343/424/475) still passes — so an operator can type the disk name while "Keep everything" is selected, then switch to "Wipe everything" and submit without re-typing anything. This is exactly the "changing... mode invalidates the reviewed choice" acceptance criterion, and it is not currently enforced. (Changing the disk is safe today: onPick doesn't reset confirm either, but the resulting mismatch — old confirm text vs. new chosen — is caught by the same check, so only the mode axis is unguarded.)

    Fix is a two-line change: add confirm: "" to both onWipe setState calls (setup.mjs:129, formparts.mjs:63), matching the existing pattern already used in wizard.mjs:160 for the usb→disk role switch. No backend change needed.

    Rulings needed: (1) is this the full scope intended for #2544, or should disk-change also explicitly reset confirm for defense-in-depth (recommend: no, already safe); (2) should the host independently re-validate wipe-mode hasn't changed post-confirm (recommend: no, client fix is sufficient).

    Evidence tier: tier4-e2e — this is deploy/install-flow control-plane code (tier-follows-the-path), and the issue's own Verification section already calls for fake-device installer tests covering keep/data/all and cancelled confirmation.

    Triage: the issue is already milestoned "Sovereign UI — post-2.0" (verified) and that milestone is frozen until 2.0.0 GA per standing ruling — no change recommended. The remaining gap is a real but low-severity UX nit on a post-GA-only surface, not a reason to pull forward into GA scope.

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

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

  5. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Rescoped to the lean UI spec #3566 (operator, 2026-10-21): Folded into #2543 (setup wizard). Installer disk selection and the erase review stay unambiguous and appliance only, with their typed confirmation unchanged. It is one wizard step, not a separate screen set.

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

    applianceblockeddashboardenhancementsetup

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions