Skip to content

Fleet descriptor editing behind the approval channel #912

Closed

Description

@VijitSingh97

What's the problem

Part of #786 (sub-issue E; decision record in the 2026-08-13 comment there). Rides sub-issue C.

Goal

Add/edit/remove a rig from the Workers view, behind the C approval channel, with the prompt showing the per-rig host delta.

Coverage

Tier 1 (gate + Workers view); tier 3 mini-stack for one end-to-end descriptor edit.

what it impacts

Scope — narrower than the original decomposition

Recon against develop-v2 shrank this: the shipped worker-apply / worker-upgrade control verbs already let the dashboard push operational tuning (pools, donation, autotune, watchdog, max temp) straight to an already-configured rig's own control API. What remains host-only is exactly the descriptor block — workers.list[] / dashboard.workers[] (per-rig hosts + tokens), categorically refused at the gate as a block. E lifts that one refusal into a C-style approval; nothing else.

Kept separate from C because it is a different refusal mechanism (config.json-only block, not the env allowlist) and a different UI surface.

Dependencies

C.

How I found it

Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.

possible solutions

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

Activity

  1. added this to the v2 - appliance milestone on Aug 13, 2026
  2. added
    enhancement
    appliance
    on Aug 13, 2026
  3. pithead-developer commented on Sep 24, 2026

    @pithead-developer
    Contributor

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

    still_valid: yes, but the issue's own fix_shape is dead. Worker descriptor add/edit/remove is still refused outright from the dashboard — lib/pithead/43-control-approval-and-preview.sh:110-112 refuses ANY workers.list[] diff (append, repoint, removal alike), and tests/stack/control/test-control-add-only-ssrf.sh:173,177,180-182 pin exactly that for all three directions. Verified directly against the code at the read-only checkout's develop head.

    root_cause: #912 said "ride sub-issue C's approval channel" (#911). C was explicitly killed: pithead#2076 (merged as PR #2088, 2026-09-12) removed Telegram as the second-identity approver and says in its own text "This closes out #911 as not being built" — though note #911 itself is still OPEN on GitHub (no formal close), only design-superseded. A brief window (#1978, merged 2026-09-07) let a workers.list append commit via a self-written envelope; a follow-up security round-2 audit (PR #2121, merged by app/pithead-developer 2026-09-14) reverted even that. SECURITY.md:107-114 (current) states the refusal is deliberate and points to #1959 for "a real second identity a future approval tier could rejoin" — a general tracker, not scoped to worker descriptors. Correction to the dependency framing: #911's own 2026-08-13 design-proposal comment already excluded workers.list[] from C's approve set by name ("that's #912's own tier"), so #912 was never going to literally reuse C's channel — it needed its own parallel host-verified/second-identity mechanism of the same shape. That mechanism (the second-identity concept itself) is what #2076 killed, so the conclusion is unchanged: #912 has nothing to attach to either way.

    Side finding, spawned separately: the click-to-adopt-a-rig UI (#893, dashboard/mining_dashboard/service/workers/worker_adopt.py) still advertises an "add-only exception" in its docstring that no longer exists in the gate — every adopt submission from the Workers view is now unconditionally rejected (confirmed: server.py wires worker_adopt.validate_new_worker_entries into handle_control_preview, but the host-side gate refuses all diffs regardless). Not part of this triage; flagged as its own task.

    fix_shape: no ready shape at the issue's stated scope. The smallest live option is reopening APPEND-only to the same self-written-envelope confirm tier #2076 kept for wallets/node-endpoints (scaffolding for this — the SSRF floor _control_host_is_internal at 42-control-policy-and-host-checks.sh:340 plus its per-index host-validation loop at 43-control-approval-and-preview.sh:33-45 — is still present but unreachable), while repoint/remove stay refused as a credential change. That is a security-posture call, not an engineering default, and needs its own review per the round-2 audit's own reasoning.

    evidence_tier: tier1 only today; a real change here is control-plane/commit-gate and needs tier4-e2e on the PR head per the standing tier-follows-the-path rule, not a tier-1 assertion.

    duplicates_or_blockers: #911 (open on GitHub, design-superseded by #2076 — not formally closed), #2076 (merged as PR #2088, the decision), #1959 (nearest active umbrella, not an exact duplicate — scoped to scalar fields not workers.list), PR #2121 (merged, reverted the brief #1978 exception).

    Triage: KEEP in "v2.x - post-GA" (milestone #18) — #912 is already filed there, and that milestone's own description names #911/#912/#913 as exactly its appliance fast-follow set, deliberately outside the GA gate. It is not a GA blocker (refusing is already the safe state) and needs a fresh security-posture ruling before it's buildable, so there is nothing to move: the brief's original "MOVE-2.1" names a milestone that does not exist in this repo (the actual milestones are v2 - appliance, v2.x - post-GA, maintenance & gates, and Sovereign UI — post-2.0), and per current ground rules v2.x - post-GA is frozen until GA anyway.

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

  4. self-assigned this
    on Oct 6, 2026
  5. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    #912 needs the new Sovereign Machines inspector owned by #2517 before its add/edit/remove workflow can be completed. The current host gate supports confirmed append-only adoption but refuses edits and removals; the existing Workers frontend is scheduled for deletion and the standing scope forbids extending it. The later owner rulings settle confirmation as warnings plus typed APPLY, without a second approval identity.

    Read-only investigation is complete; no source changes, PR or bench job were created. Resume when #2517 supplies the new inspector so descriptor editing can be implemented and proved through that surface. #2517 in turn waits on the new shell in #2513.

    Group siblings #978 and #979 are separate work: #978 requires an offline-image product choice, while #979 changes destructive installer selection and needs independent installer KVM proof. They do not share the descriptor gate or its runtime proof and should return to their own queue entries.

  6. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Blocked on #2517. #912 needs the Sovereign Machines inspector owned by #2517; the current Workers UI cannot be extended under standing scope. Investigation and a public blocker comment are complete; no source changes or tests were made. Resume after #2517 lands to implement and prove descriptor editing through the new inspector.

    The runner resumes this issue when that one closes.

  7. added
    blocked
    on Oct 27, 2026
  8. removed
    blocked
    on Nov 1, 2026
  9. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. tier4-e2e targeted submit for pithead at 5f7edf1 refused twice with 503 draining (runner shutting down); retry with idempotency key c705f09d31da4e369cf6d64d3ce82d98. The runner re-checks it (first at 2026-11-01T16:42Z, at most 5 times).

  10. added 3 commits that reference this issue on Nov 1, 2026
    a35838b
    aea2eaf
    e577ca7
  11. pithead-developer commented on Nov 3, 2026

    @pithead-developer
    Contributor

    Waiting on a transient chain_sync condition, not on another issue. tier4-e2e targeted submit for pithead at e577ca7 refused with 503 baseline_unhealthy (live-stack baseline unhealthy or fenced); no job created. The runner re-checks it (first at 2026-11-03T06:01Z, at most 5 times).

  12. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    Contributor

    Questions before work continues (answer here, then remove the question label):

    A chain_sync condition has held since 2026-11-03T05:46Z through 5 re-checks: tier4-e2e targeted submit for pithead at e577ca7 refused again with 503 baseline_unhealthy (live-stack baseline unhealthy or fenced); no job created. Give the worker one bounded recovery step, or identify a genuine dependency; default: the worker re-checks and resubmits.

  13. added
    question
    on Nov 6, 2026
  14. pithead-architect commented on Nov 6, 2026

    @pithead-architect

    Ruling: Stop resubmitting. The 503 baseline_unhealthy is both e2e benches failing their baseline since 2026-11-03 04:40Z and 04:43Z ("the P2Pool payout digest check failed"), open as bench-ci#2385 and bench-ci#2386. The #2483 worker is filing the bench-ci code issue; search first and never duplicate it. (1) Add native blocked-by links and return blocked with blocked_on bench-ci#2385, keeping the worktree and head e577ca7. (2) When both alarms close, merge the base and submit one targeted tier4-e2e at the current head through normal fleet routing, with no local-only pin or bypass. (3) The second-identity approval named in the standing rulings is still the owner's call. Do not take it as a default; record it in the PR body as open.

  15. removed
    question
    on Nov 6, 2026
  16. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#2385 (and #2386). Every tier4-e2e submit for the PR 3835 head (e577ca7) is refused with 503 baseline_unhealthy because both e2e benches have failed their baseline since 2026-11-03 (a P2Pool payout digest check). That prevents the exact-head e2e proof; the diff changed only a docstring and two SECURITY.md sentences since the last e2e run (job 3394 on b60e996, one failed row owned by #3913). Finished: code, docs, tests, review fixes, tier4-kvm job 3400 submitted. To unblock: the benches pass their baselines and both alarms close; then I merge the base and submit one targeted tier4-e2e at the current head through normal fleet routing.

  17. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#2385. I blocked #912 on bench-ci#2385, and also linked #2386. Both e2e benches have failed their baseline since 2026-11-03 (a P2Pool payout digest check), so every tier4-e2e submit for PR #3835 head e577ca7 gets 503 baseline_unhealthy. That stops the exact-head e2e proof. Done so far: the code, docs, tests and review fixes, and a tier4-kvm boot job (3400) submitted on this head, which I did not read this turn. The last e2e run, job 3394 on b60e996, has one failed row owned by #3913. Since that run the diff changed only a docstring and two SECURITY.md sentences. I added native blocked-by links to #2385 and #2386 and posted the explanation on #912 and PR #3835. I recorded the second-identity approval as an open owner decision in the PR body, not taken by default. When both alarms close: merge the base and submit one targeted tier4-e2e at the then-current head through normal fleet routing, with no local-only pin. The worktree and head e577ca7 are kept.

    The runner resumes this issue when that one closes.

  18. added
    blocked
    and removed
    blocked
    on Nov 6, 2026
  19. pithead-developer commented on Nov 7, 2026

    @pithead-developer
    Contributor

    Merged in #3835.

  20. added a commit that references this issue on Nov 7, 2026
    1c76c04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

applianceenhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions