refused-artifact: a land refusal never says refused on the wire, so the panel draws the ROLLING-OUT screen over a rollout that already ended (U3x has never rendered live) #1659

Closed
opened 2026-09-20 09:39:26 +00:00 by matou-build-agent · 1 comment

The failure

Drive 20260920T083206Z went red at refused-artifact: the leg waited the full 18-minute rollout budget on the U3x refusal screen ([data-status="refused"]) while the Updates surface showed rolling-out ([data-field="stage-land"]) — artifacts/legs.json, artifacts/verdict.json (firstRedLeg: refused-artifact, commit 12adef99). The gate is app/tests/e2e/journey.updates.spec.ts:429.

The evidence

The refusal itself ran correctly on the box. logs/guest-system-journal.log:3317 records update scheduler started … interval=5m0s at 09:10:12; the first tick lands at 09:15:12 and guest-system-journal.log shows one ssh to the node at 09:15:13 (the seed stage) and then no control-plane line at all until harvest at 09:29:48 — exactly what a land refusal looks like, because nothing is deployed and internal/update/rollout.go:362 logs nothing on the refusal path. It recorded the refusal, retained the view and returned nil error, as designed.

The defect is that the retained view never says refused on the wire:

  • internal/update/rolloutview.go:54-62 (at the drive's commit) carried Fault, Refusal *Refusal and RefusedAt — the evidence — but no Refused bool, while the rollback twin at line 65 has carried RolledBack bool \json:"rolled_back,omitempty"`` all along.
  • internal/controlapi/updates.go:135-142 writes that struct verbatim (writeJSON(w, log, http.StatusOK, view)); dashboard/src/lib/api/updatesClient.ts:112 only camelizes keys (wire.ts camelize renames, derives nothing). So refused never reaches the panel.
  • The panel branches on exactly that flag: dashboard/src/components/provisioning/UpdatesSurface.vue:45 picks RefusedScreen on rollout.refused; line 65 falls through to RollingOutScreen when it is falsy; RefusedScreen.vue:201 computes isList = !props.view?.refused.
  • dashboard/src/lib/rollout.ts:126 has documented refused?: boolean as the seam's field since DDR 0250. The seam never sent it.

So a refused release fell through every terminal branch and the surface kept drawing the still-rolling-out screen — with the land row the refusal stopped at rendered current (composeStages, internal/update/rolloutview.go:212), which is the stage-land marker the leg reported seeing. U3x has never rendered live; this drive is the first thing to have driven it. The offline component tests could not catch it: their refusedView() fake hand-sets refused: true (dashboard/src/lib/rollout.ts:305), so the fake and the seam disagreed.

The layer

The seam's wire contract — internal/update/rolloutview.go. Not the harness, not the panel: both sides already contract on refused.

The fix

Add RolloutView.Refused bool \json:"refused,omitempty"`and set it besideRefusalincomposeRollout`.

Proposed ruling (Ruled by the healer under ADR 0174 — veto anytime)

Two-way door, and a mechanical repair rather than a design decision. It changes no screen copy, no route shape, no default, no secrets shape and no security posture — the U3x frame, its wording and its acts already exist and are already wired; the view simply never said the word both sides were already contracting on (dashboard/src/lib/rollout.ts:126 documents refused?: boolean as the seam's field; internal/update/rolloutview.go already carries the RolledBack bool twin for U4x). It makes the code do what it already meant. Revertible by deleting the ten added lines in internal/update/rolloutview.go — a pure field addition with omitempty, so every non-refused run marshals byte-identically to before (pinned by TestRolloutState_AppliedCarriesNoRefusedFlag). Proven here by TestRolloutState_RefusedIsOnTheWireForU3x in internal/update/rolloutview_test.go, which drives a real land refusal over a tampered control-panel artifact and asserts against the MARSHALLED JSON rather than the Go struct, because the flag is a wire fact. Built on the workstation (never the drive host) and closed through the close-report gate — the same gate a swarm worker passes.

drive 20260920T083206Z red at refused-artifact (sig b46830aa93ad) — self-fixed on the fast lane, commit 840e8bfbf637130b1308475ab2d25a49236356ed; checks: Targeted: go test ./internal/update/ -run 'TestRolloutState_RefusedIsOnTheWireForU3x|TestRolloutState_AppliedCarriesNoRefusedFlag' — RED first against the unfixed view, the absence proven by the compiler itself (internal/update/rolloutview_test.go:289:8: v.Refused undefined (type update.RolloutView has no field or method Refused), build failed); GREEN after: 2 passed, the first reading refused: true out of the marshalled JSON beside its refusal evidence, the second proving an applied run still omits the key. Package tests: go test ./internal/update/ ./internal/controlapi/ — both ok (0.015s / 0.839s). go vet ./internal/update/ ./internal/controlapi/ — clean. gofmt -l internal/update/ — clean. Panel side unchanged but re-run to prove no drift the other way: pnpm --filter dashboard exec vitest run tests/unit/updatesRefused.test.ts tests/unit/rollout.test.ts tests/unit/updatesLive.test.ts — 3 files, 44 passed (44). No box query and no door-leg re-prove: no artifacts/live-box.json was handed over (the guest was torn down; logs/guest-failed-units.log recorded 0 failed units and NRestarts=2 with Result=success), and this is not a roles-proof door leg.. evidence: /home/swarm/swarm/Matou/idss/test-results/private-path/20260920T083206Z on matou-workstation.

## The failure Drive `20260920T083206Z` went red at `refused-artifact`: the leg waited the full 18-minute rollout budget on the U3x refusal screen (`[data-status="refused"]`) while the Updates surface showed `rolling-out` (`[data-field="stage-land"]`) — `artifacts/legs.json`, `artifacts/verdict.json` (`firstRedLeg: refused-artifact`, commit `12adef99`). The gate is `app/tests/e2e/journey.updates.spec.ts:429`. ## The evidence The refusal itself ran correctly on the box. `logs/guest-system-journal.log:3317` records `update scheduler started … interval=5m0s` at `09:10:12`; the first tick lands at `09:15:12` and `guest-system-journal.log` shows one ssh to the node at `09:15:13` (the seed stage) and then **no control-plane line at all** until harvest at `09:29:48` — exactly what a land refusal looks like, because nothing is deployed and `internal/update/rollout.go:362` logs nothing on the refusal path. It recorded the refusal, retained the view and returned nil error, as designed. The defect is that the retained view never says *refused* on the wire: - `internal/update/rolloutview.go:54-62` (at the drive's commit) carried `Fault`, `Refusal *Refusal` and `RefusedAt` — the evidence — but **no `Refused bool`**, while the rollback twin at line 65 has carried `RolledBack bool \`json:"rolled_back,omitempty"\`` all along. - `internal/controlapi/updates.go:135-142` writes that struct verbatim (`writeJSON(w, log, http.StatusOK, view)`); `dashboard/src/lib/api/updatesClient.ts:112` only camelizes keys (`wire.ts` `camelize` renames, derives nothing). So `refused` never reaches the panel. - The panel branches on exactly that flag: `dashboard/src/components/provisioning/UpdatesSurface.vue:45` picks `RefusedScreen` on `rollout.refused`; line 65 falls through to `RollingOutScreen` when it is falsy; `RefusedScreen.vue:201` computes `isList = !props.view?.refused`. - `dashboard/src/lib/rollout.ts:126` has documented `refused?: boolean` as the seam's field since DDR 0250. The seam never sent it. So a refused release fell through every terminal branch and the surface kept drawing the still-rolling-out screen — with the land row the refusal stopped at rendered `current` (`composeStages`, `internal/update/rolloutview.go:212`), which is the `stage-land` marker the leg reported seeing. **U3x has never rendered live**; this drive is the first thing to have driven it. The offline component tests could not catch it: their `refusedView()` fake hand-sets `refused: true` (`dashboard/src/lib/rollout.ts:305`), so the fake and the seam disagreed. ## The layer The seam's wire contract — `internal/update/rolloutview.go`. Not the harness, not the panel: both sides already contract on `refused`. ## The fix Add `RolloutView.Refused bool \`json:"refused,omitempty"\`` and set it beside `Refusal` in `composeRollout`. ## Proposed ruling (Ruled by the healer under ADR 0174 — veto anytime) Two-way door, and a mechanical repair rather than a design decision. It changes no screen copy, no route shape, no default, no secrets shape and no security posture — the U3x frame, its wording and its acts already exist and are already wired; the view simply never said the word both sides were already contracting on (`dashboard/src/lib/rollout.ts:126` documents `refused?: boolean` as the seam's field; `internal/update/rolloutview.go` already carries the `RolledBack bool` twin for U4x). It makes the code do what it already meant. Revertible by deleting the ten added lines in `internal/update/rolloutview.go` — a pure field addition with `omitempty`, so every non-refused run marshals byte-identically to before (pinned by `TestRolloutState_AppliedCarriesNoRefusedFlag`). Proven here by `TestRolloutState_RefusedIsOnTheWireForU3x` in `internal/update/rolloutview_test.go`, which drives a real land refusal over a tampered control-panel artifact and asserts against the MARSHALLED JSON rather than the Go struct, because the flag is a wire fact. Built on the workstation (never the drive host) and closed through the close-report gate — the same gate a swarm worker passes. drive `20260920T083206Z` red at `refused-artifact` (sig b46830aa93ad) — self-fixed on the fast lane, commit `840e8bfbf637130b1308475ab2d25a49236356ed`; checks: Targeted: `go test ./internal/update/ -run 'TestRolloutState_RefusedIsOnTheWireForU3x|TestRolloutState_AppliedCarriesNoRefusedFlag'` — RED first against the unfixed view, the absence proven by the compiler itself (`internal/update/rolloutview_test.go:289:8: v.Refused undefined (type update.RolloutView has no field or method Refused)`, build failed); GREEN after: 2 passed, the first reading `refused: true` out of the marshalled JSON beside its `refusal` evidence, the second proving an applied run still omits the key. Package tests: `go test ./internal/update/ ./internal/controlapi/` — both ok (0.015s / 0.839s). `go vet ./internal/update/ ./internal/controlapi/` — clean. `gofmt -l internal/update/` — clean. Panel side unchanged but re-run to prove no drift the other way: `pnpm --filter dashboard exec vitest run tests/unit/updatesRefused.test.ts tests/unit/rollout.test.ts tests/unit/updatesLive.test.ts` — 3 files, 44 passed (44). No box query and no door-leg re-prove: no `artifacts/live-box.json` was handed over (the guest was torn down; `logs/guest-failed-units.log` recorded 0 failed units and `NRestarts=2` with `Result=success`), and this is not a roles-proof door leg.. evidence: `/home/swarm/swarm/Matou/idss/test-results/private-path/20260920T083206Z` on matou-workstation. <!-- rehearsal-sig: b46830aa93ad -->
Author
Member

close-report for #1659 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1659,
  "status": "success",
  "commits": [
    "840e8bfbf637130b1308475ab2d25a49236356ed"
  ],
  "changed_files": [
    "internal/update/rolloutview.go",
    "internal/update/rolloutview_test.go"
  ],
  "tests": [
    {
      "command": "Targeted: `go test ./internal/update/ -run 'TestRolloutState_RefusedIsOnTheWireForU3x|TestRolloutState_AppliedCarriesNoRefusedFlag'` — RED first against the unfixed view, the absence proven by the compiler itself (`internal/update/rolloutview_test.go:289:8: v.Refused undefined (type update.RolloutView has no field or method Refused)`, build failed); GREEN after: 2 passed, the first reading `refused: true` out of the marshalled JSON beside its `refusal` evidence, the second proving an applied run still omits the key. Package tests: `go test ./internal/update/ ./internal/controlapi/` — both ok (0.015s / 0.839s). `go vet ./internal/update/ ./internal/controlapi/` — clean. `gofmt -l internal/update/` — clean. Panel side unchanged but re-run to prove no drift the other way: `pnpm --filter dashboard exec vitest run tests/unit/updatesRefused.test.ts tests/unit/rollout.test.ts tests/unit/updatesLive.test.ts` — 3 files, 44 passed (44). No box query and no door-leg re-prove: no `artifacts/live-box.json` was handed over (the guest was torn down; `logs/guest-failed-units.log` recorded 0 failed units and `NRestarts=2` with `Result=success`), and this is not a roles-proof door leg.",
      "exit_code": 0
    }
  ],
  "criteria": {
    "the red leg is now green": "healed on the fast lane, commit 840e8bfbf637130b1308475ab2d25a49236356ed"
  },
  "summary": "A land refusal carried its evidence (`refusal`/`refused_at`) but no `refused` flag on the wire, so the panel's U3x branch never fired and it kept drawing RollingOutScreen over an ended rollout; added `RolloutView.Refused` and set it beside `Refusal` in `composeRollout`.",
  "blockers": []
}
**close-report** for #1659 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1659, "status": "success", "commits": [ "840e8bfbf637130b1308475ab2d25a49236356ed" ], "changed_files": [ "internal/update/rolloutview.go", "internal/update/rolloutview_test.go" ], "tests": [ { "command": "Targeted: `go test ./internal/update/ -run 'TestRolloutState_RefusedIsOnTheWireForU3x|TestRolloutState_AppliedCarriesNoRefusedFlag'` — RED first against the unfixed view, the absence proven by the compiler itself (`internal/update/rolloutview_test.go:289:8: v.Refused undefined (type update.RolloutView has no field or method Refused)`, build failed); GREEN after: 2 passed, the first reading `refused: true` out of the marshalled JSON beside its `refusal` evidence, the second proving an applied run still omits the key. Package tests: `go test ./internal/update/ ./internal/controlapi/` — both ok (0.015s / 0.839s). `go vet ./internal/update/ ./internal/controlapi/` — clean. `gofmt -l internal/update/` — clean. Panel side unchanged but re-run to prove no drift the other way: `pnpm --filter dashboard exec vitest run tests/unit/updatesRefused.test.ts tests/unit/rollout.test.ts tests/unit/updatesLive.test.ts` — 3 files, 44 passed (44). No box query and no door-leg re-prove: no `artifacts/live-box.json` was handed over (the guest was torn down; `logs/guest-failed-units.log` recorded 0 failed units and `NRestarts=2` with `Result=success`), and this is not a roles-proof door leg.", "exit_code": 0 } ], "criteria": { "the red leg is now green": "healed on the fast lane, commit 840e8bfbf637130b1308475ab2d25a49236356ed" }, "summary": "A land refusal carried its evidence (`refusal`/`refused_at`) but no `refused` flag on the wire, so the panel's U3x branch never fired and it kept drawing RollingOutScreen over an ended rollout; added `RolloutView.Refused` and set it beside `Refusal` in `composeRollout`.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1659
No description provided.