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
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1659
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The failure
Drive
20260920T083206Zwent red atrefused-artifact: the leg waited the full 18-minute rollout budget on the U3x refusal screen ([data-status="refused"]) while the Updates surface showedrolling-out([data-field="stage-land"]) —artifacts/legs.json,artifacts/verdict.json(firstRedLeg: refused-artifact, commit12adef99). The gate isapp/tests/e2e/journey.updates.spec.ts:429.The evidence
The refusal itself ran correctly on the box.
logs/guest-system-journal.log:3317recordsupdate scheduler started … interval=5m0sat09:10:12; the first tick lands at09:15:12andguest-system-journal.logshows one ssh to the node at09:15:13(the seed stage) and then no control-plane line at all until harvest at09:29:48— exactly what a land refusal looks like, because nothing is deployed andinternal/update/rollout.go:362logs 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) carriedFault,Refusal *RefusalandRefusedAt— the evidence — but noRefused bool, while the rollback twin at line 65 has carriedRolledBack bool \json:"rolled_back,omitempty"`` all along.internal/controlapi/updates.go:135-142writes that struct verbatim (writeJSON(w, log, http.StatusOK, view));dashboard/src/lib/api/updatesClient.ts:112only camelizes keys (wire.tscamelizerenames, derives nothing). Sorefusednever reaches the panel.dashboard/src/components/provisioning/UpdatesSurface.vue:45picksRefusedScreenonrollout.refused; line 65 falls through toRollingOutScreenwhen it is falsy;RefusedScreen.vue:201computesisList = !props.view?.refused.dashboard/src/lib/rollout.ts:126has documentedrefused?: booleanas 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 thestage-landmarker 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: theirrefusedView()fake hand-setsrefused: 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 onrefused.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:126documentsrefused?: booleanas the seam's field;internal/update/rolloutview.goalready carries theRolledBack booltwin for U4x). It makes the code do what it already meant. Revertible by deleting the ten added lines ininternal/update/rolloutview.go— a pure field addition withomitempty, so every non-refused run marshals byte-identically to before (pinned byTestRolloutState_AppliedCarriesNoRefusedFlag). Proven here byTestRolloutState_RefusedIsOnTheWireForU3xininternal/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
20260920T083206Zred atrefused-artifact(sig b46830aa93ad) — self-fixed on the fast lane, commit840e8bfbf637130b1308475ab2d25a49236356ed; 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 readingrefused: trueout of the marshalled JSON beside itsrefusalevidence, 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: noartifacts/live-box.jsonwas handed over (the guest was torn down;logs/guest-failed-units.logrecorded 0 failed units andNRestarts=2withResult=success), and this is not a roles-proof door leg.. evidence:/home/swarm/swarm/Matou/idss/test-results/private-path/20260920T083206Zon matou-workstation.close-report for #1659 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope