remove-device waits for the Active screen a removal never reaches — a SUCCESSFUL removal (fleet already gateway-only, nodes:[]) burns the full 1200s and reds #1136
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#1136
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 run this sits at the very end of
Drive
20260902T002219Zreached 29/30 green and, for the first time in the arc,remove-devicegot PAST the ⚠ LOSES gate (#1134 landed — the review named Files & documents and the destructive confirm was honest). The removal itself then succeeded: the empty-selection deploy ran, the device offboarded, and the fleet returned to gateway-only.The leg red anyway, after burning the full 1200s ceiling:
Note the wire state in the failure message:
"nodes": []. The removal had completed — the fleet is already gateway-only — while the leg was still waiting for a screen that was never going to appear.Diagnosis — a removal never lands on Active
remove-deviceends with:waitForDeployActivepolls for[data-field="active"](fixtures/provision.ts:280-347). That field lives only inActiveScreen.vue. But a removal does not route there —SetupSurface.runRemoval(dashboard/src/components/provisioning/SetupSurface.vue:399-415):A reachable removal emits
removedand the surface closes back to the fleet list — a removed device is not an active one, soActiveScreen(and its[data-field="active"]) is correctly never shown.waitForDeployActivetherefore had no terminal success state to reach and sat out the whole budget on a removal that had already succeeded.The product is correct on every count: the review warned (LOSES), the confirm was deliberate (remove-and-deploy), the deploy ran, the device offboarded, the fleet is gateway-only. Only the leg watched for the wrong screen — the deploy-shaped success signal on a removal-shaped act.
Fix (landed)
New
waitForDeployDone(fixtures/provision.ts): same fault-frame vigilance aswaitForDeployActive(adeploy-failureorsetup-errorframe is a real red, surfaced with its verbatim reason — ADR 0027/0100), but it resolves on any terminal REMOVAL state: the drill-in having closed back to the fleet list (the reachable success), theremoved-not-erasedacknowledge note (#1114's unreachable path), or an Active screen (kept as a safety net, never reached today).remove-devicecalls it instead ofwaitForDeployActive;assertFleetGatewayOnlyon the next line remains the POSITIVE proof the removal took.waitForDeployActiveis unchanged — deploy legs still require Active, which is right for them.eslint + vue-tsc clean;
app/tests/e2e/fixtures252/252.Filed and fixed in one motion by the watching session under ADR 0174 — harness-only, read straight off the run (the
"nodes": []in the failure message is the tell that the removal had already completed).Where this leaves #854
remove-devicewas the last leg with a defect. With this, the only leg never yet run isreap. The next drive should takeremove-devicegreen and runreapfor the first time — and ifreapholds, the phase-5 device journey is complete end to end.Closing as a duplicate of the healer fix
2cef224d(waitForRemovalSettled), which landed on main while this was being written — same diagnosis, and its version is the better one.Both saw the same thing:
waitForDeployActivepolls[data-field="active"], and a removal never routes toActiveScreen—SetupSurface.runRemovalemitsremovedand closes the drill-in back to the fleet list (or holds onremoved-not-erasedfor an unreachable box, #1114). So a SUCCESSFUL removal (fleet already"nodes":[]) burned the full 1200s.2cef224dis better than thewaitForDeployDoneI had staged: it factors the decision into a purereadRemovalVerdict(unit-testable in isolation), returns a typedRemovalVerdict, keys the handed-back success on a realprovisioning-setup-drill-inmarker rather than the deploy bar's absence, and drives the unreachable path'sacknowledge-removededge through the surface. My local commit is dropped in favour of it.No action needed.
remove-devicewas the last leg with a defect; the next drive should take it green and runreapfor the first time.