Skip to content

Sovereign: build fleet configuration selection, review and progress #2520

Open

Description

@VijitSingh97

What's the problem

An operator with many rigs cannot change the same setting on a chosen set of rigs and see, rig by rig, what will change and what happened. The 2026-09-23 investigation found only a one-rig-at-a-time apply path and no selection, diff, canary or job primitive. This issue originally specified a standalone bulk review screen from the 36-screen Sovereign studies (mockup 22). The lean UI (#3566) has four pages and one Advanced drawer and does not place a bulk-edit flow, so that screen is not built. The need is kept and re-scoped to the selection, review and progress UI behind Machines > Advanced (#2517), driven by the bulk job in #2519.

What it impacts

Operators who run more than a handful of rigs, on the appliance and on DIY with a login. DIY without a login has the editor off and shows no bulk edit (#3566 section J). Touches the Machines page (#2517) and the Advanced drawer (#2513). Single-rig users are unaffected.

How I found it

From the previous body of this issue, the 2026-09-23 investigation brief, the lean roadmap row for #2520 (P4, later, only on demand, Defer), the 2026-10-21 ruling on #2519 (keep explicit targets, version-bound review, bounded dispatch and resumability; wait for the configuration contract in #3557), and the owner rulings of 2026-10-27 (old-dashboard work is adapted to the new UI or closed). #3566 sections A, D, G and J set the page rules. The investigation predates the lean spec and nothing was run for this rewrite. Not confirmed: whether the Machines Advanced list (find, sort, columns) is the selection surface or this needs its own selector.

How important is it

Low and deferred: lean roadmap P4, later, only on demand. It is not needed for the lean cutover or any release gate. It cannot start until #2519 lands, and #2519 waits on #3557. The need is kept so the issue can be picked up when capacity allows.

Acceptance criteria

The job itself (frozen targets, version-bound authorization, revalidation at dispatch, canary then bounded batches, durable state, pause, cancel, scoped retry, redacted audit) is #2519 and is used as is. This issue is the UI.

  • Selection: the operator can select the rigs on the current page or all rigs matching the current find or filter, and the control says which. The selection is frozen into an explicit list of rig identities shown before review; changing a filter afterwards never changes it. A test covers mixed versions and duplicate display names.
  • Edit: only the fields the operator changes are in the patch. Mixed values show as mixed, and unchanged values and per-rig secrets are preserved.
  • Review: in the shared preview-and-confirm dialog, with its typed confirmations unchanged, each rig shows before and after values, eligibility, any exclusion (offline, unmanaged, unsupported) with its reason, and the authorization required. A stale review or a drifted rig returns the operator to review; nothing is silently retargeted.
  • Canary and batches: the operator chooses the canary rig and sees the batch behavior before starting.
  • Progress: pending, running, succeeded, failed and excluded counts sum to the frozen target total. After a reload or navigation the page restores progress from the durable job. Pause stops new dispatch, cancel cancels pending targets, finished changes are said to be not undone, and no rollback is claimed. Retry is offered only for selected eligible failures.
  • Fixture proof: a 100-rig fixture with mixed values, offline exclusions, a stale review and a partial failure can be reviewed by keyboard alone and at 375 px with no horizontal scroll, with WCAG AA contrast in light and dark. Sanitized screenshots are attached to the PR.
  • Placement: the flow lives only behind Machines > Advanced (Sovereign: make the machines view usable for 2, 50 and 100 workers #2517), reached through the Advanced drawer. It adds no page and no counted control outside Advanced, and the v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 control-budget fixture test passes on appliance, DIY with login and DIY without login (no bulk edit when the editor is off).
  • Missing backend capability is stated in the UI; nothing is shown as fabricated live data.
  • Wording is plain sentences, with no raw config keys outside Advanced.
  • The PR updates the Machines section of docs/dashboard.md, replaces tests of any removed control, adds no code comments, does not touch the current dashboard UI, and changes no real miner or node (fake workers only).

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

Make bulk editing understandable before any worker changes, then keep partial outcomes visible.

  • Work type: New UI consuming bulk control contract.
  • Design references: 22 bulk config review/apply (existing Sovereign mockups attached below; sample data, not runtime evidence).
  • Inventory coverage: M7–M9 extension.

Existing Sovereign mockups

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

22 · Bulk configuration review

Sovereign — Bulk configuration review

Complete 36-image gallery · Parent: #2478

what it impacts

Dependencies and boundaries

Build on #2517, #2514, #2519.

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

Demonstrate a 100-worker selection with mixed values, offline exclusions, stale review and partial failure, including keyboard and mobile review. 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

  • Distinguish select this page from all matching workers and display the exact frozen target list; changing filters must not silently expand it.
  • Edit selected fields only, represent mixed values honestly and preserve all other worker-specific settings and secrets.
  • Show per-worker before/after values, eligibility, exclusions and required authorization; stale review or drift returns the operator to review.
  • Let the operator choose the canary and review batch behavior; show pending/running/succeeded/failed/excluded counts that reconcile.
  • Resume from the durable job after navigation/reload; explain pause/cancel semantics and offer scoped retry without claiming unsupported rollback.

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: true — this is a pure greenfield gap, not a regression. No bulk/fleet-config UI or backend job contract exists anywhere in the tree today.

    root_cause: The only existing "apply" surface is dashboard/mining_dashboard/web/config_commit.py:4-16 (approval_envelope), a single-worker payout-suffix typo confirmation, not a batch mechanism. dashboard/mining_dashboard/config/config.py and worker_endpoints.py hold per-worker config plumbing with no selection, diff, job, or canary primitives. A repo grep for bulk/batch job/canary/fleet-select across dashboard/ and lib/ returns nothing on-point (only an unrelated prose hit at dashboard/tests/web/test_worker_config_drift.py:9).

    fix_shape: Not applicable as a small diff — this issue itself calls for new UI plus a new durable, resumable bulk-job backend contract (frozen selection snapshot, mixed-value diff, canary/batch sequencing, pending/succeeded/failed/excluded reconciliation). The issue's own acceptance criteria say to build on #2517 (machines view at 2/50/100 scale), #2514 (restyled preview/approval/apply results) and #2519 (bounded resumable bulk job primitive) — none of which exist yet. Building #2520 first means inventing the #2519 job contract inline.

    evidence_tier: tier-1 code read (file:line above) plus a negative repo-wide grep; no tier4-e2e applies since there is nothing built to exercise yet.

    rulings_needed:

    1. Should Sovereign: add bounded, resumable bulk worker configuration jobs #2519 land before Sovereign: build fleet configuration selection, review and progress #2520 starts, given Sovereign: build fleet configuration selection, review and progress #2520 says "build on Sovereign: add bounded, resumable bulk worker configuration jobs #2519"? Recommend: yes, gate start on Sovereign: add bounded, resumable bulk worker configuration jobs #2519 merge.
    2. Does the milestone freeze mean no code work on Sovereign: build fleet configuration selection, review and progress #2520 until GA, or can spec/design proceed in parallel? Recommend: brief/spec only, no code, per the milestone's own "frozen until GA" description.

    duplicates_or_blockers: Blocked by #2517, #2514, #2519 (all open, same milestone, all unbuilt — stated by the issue itself). Sibling of many design-inventory issues under parent tracker #2478; not a duplicate of any of them.

    Triage recommendation: MOVE-sovereign-ui — already correctly milestoned "Sovereign UI — post-2.0" and explicitly self-declared "not a GA release blocker"; it is not a security/data-loss/Tari-fork/GA-checklist item and depends on three other unbuilt Sovereign issues, so no other triage bucket applies.

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

  3. self-assigned this
    on Oct 6, 2026
  4. added
    operator-action
    on Oct 27, 2026
  5. added
    blocked
    on Oct 27, 2026
  6. removed
    operator-action
    on Oct 27, 2026
  7. pithead-developer commented on Nov 16, 2026

    @pithead-developer
    Contributor

    Blocked on #2519.

    It waits for the bulk job backend in #2519, which waits for #3557.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

blockeddashboardenhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions