the mid-journey landed-node cleanup hangs on a remove-device the change surface never renders — a red drive burns its whole 195m budget, and its droplet's wall-clock, after the verdict is known #1067
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.
Blocks
Reference
Matou/idss#1067
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?
Failure
Drive
20260831T043317Z(device target, commit435ae385) red atdeploy-takeoverat 05:23:58. The drive then spent 3h15m34s inafterAlland only ended at 08:39:32 (artifacts/verdict.jsonendedAt) when Playwright's hook timeout fired.error-context.mdrecords the second error alongside the leg's own:11,700,000 ms is exactly
timeout: 195 * 60_000atapp/playwright.config.ts:66— the hook burned the entire drive ceiling. The gateway was idle throughout:logs/gateway-journal.txtcarries nothing but lease heartbeats and kanidm tombstone purges from 05:23:48 to 08:39, andlogs/gateway-stall.txt(taken 08:39:50) shows load average 0.00 and no nix/ssh work. The 3h15m was spent entirely client-side, waiting.This is not the deploy-takeover defect. That one — the kexec installer's
wt0never returning,logs/gateway-journal.txt:1304-1305— is already fixed at HEAD by082daa34(#1057), which declares the netbird daemon ininternal/clan/netbird.go:653-731and names this same drive. This ticket is the separate fault the same run exposed.Evidence
Parsing
artifacts/journey.device-*/trace.zip(test.trace), the last actions of the run are theafterAlllanded-node cleanup, and the final one never completes:Two defects compose here.
1. The surface the cleanup drills into carries no
remove-devicecontrol.The cleanup drills in via
change-node-<id>on the premise, stated atapp/tests/e2e/journey.device.spec.ts:258-263and again atapp/tests/e2e/fixtures/deviceProvision.ts:141-146, that a provisioned node whose box is gone "re-assesses out-of-reach and the surface routes to the S1x 'nothing available' resting state, which offers remove-device".That premise did not hold.
SetupSurface.vue:204routes on the seam's verdict alone:The
changeSetupre-read did not returnnothing-available— the page snapshot captured at the hang (error-context.md) shows the ordinaryview === 'setup'composite (SetupSurface.vue:65-77:AssessScreen+SelectRoleServicesScreen), reading the device as● active,public connection, reachable from the internet,2 CPUs · 3 GB · 76 GB, with a ROLE combobox, an AVAILABLE list, and aReview impactbutton. One service was still offerable (Backup copies (extra copy — never the sole copy) fits: 1 GB), so the verdict was notnothing-availableand S1x was never reached — even though the box had already been destroyed byrunDeviceTeardown(logs/device-do-forensics.txt: "no droplet at 170.64.206.39 in this account — it is already gone").remove-deviceexists in only two places, neither of them thesetupview:dashboard/src/components/provisioning/AssessNothingAvailableScreen.vue:57(S1x)dashboard/src/components/provisioning/ActiveScreen.vue:181(S5)wired at
SetupSurface.vue:29-34andSetupSurface.vue:57-64. So the click could never resolve.2. The click is unbounded, so "could never resolve" became "burned 195 minutes".
app/tests/e2e/journey.device.spec.ts:896:No timeout.
app/playwright.config.ts:72-94sets neitheractionTimeoutnornavigationTimeoutinuse, so Playwright's default of0(no cap) applies and the only bound is the 195-minute hook timeout at line 66. Every other wait in this cleanup is explicitly bounded (row.waitFor({ timeout: CEILING.assess })atjourney.device.spec.ts:271); this one is not.The cleanup is wrapped in try/catch and declared non-fatal (
journey.device.spec.ts:266-281), so a bounded failure would have cost seconds and logged alanded-node cleanup note. Instead the drive held a paid droplet and the standing gateway for 3h15m past its own verdict, and the same path fires on every mid-journey red afterapprove.Suspected layer
The e2e teardown contract in
app/tests/e2e/journey.device.spec.ts/app/tests/e2e/fixtures/deviceProvision.ts, plus a genuine gap in the provisioning surface: from the change view of a provisioned node, removal is unreachable unless the seam happens to answernothing-available.What plugging it needs
walkOffNode(journey.device.spec.ts:894-899) must carry an explicit ceiling on theremove-deviceclick and onconfirmRemoveDeploy, so a surface that does not offer removal fails fast into the caller's existing catch. This is squarely inside the cleanup's own stated best-effort contract — a teardown that cannot complete must say so in seconds, never consume the drive ceiling. Consider also settingactionTimeoutinapp/playwright.config.tsuseso no other unbounded.click()/.goto()can do this again; if so, pick it against the existing CEILING table rather than a round number.deviceProvision.ts:141-146,journey.device.spec.ts:258-263) is false whenever the re-assess still finds any offerable service.dashboard/src/lib/fleet.ts:172-178already recognises aremove-device-<id>intent that opens the surface straight on the P4-S3x removal confirm (ADR 0210 ruling 5), andSetupSurface.vue:211-217honours it via theremoveprop — but no producer of that intent exists in the repo (grep finds onlyfleet.tsitself), so the cleanup cannot currently reach it from a fleet row. Either give the cleanup a way to raise that intent, or read ADR 0210 on whether the change/assess view should itself carry a removal act.● active/reachable from the internetfrom cached facts and offers services, so the operator's only removal affordance sits behind an S1x verdict that never arrives. Whether removal belongs on the change view is an ADR 0210 call, not a test-harness one.For the drive:
deploy-takeoveritself needs no work —082daa34(#1057) closes it and the next drive re-drives at HEAD.drive
20260831T043317Zred atdeploy-takeover:deploy failed (rescue): clan: target_lost on node-req-0003: the takeover's deploy target root@100.68.233.153 stopped answering during the kexec phase, before any disk work completed — the session waevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260831T043317Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=elitebook-distributed-server-03 run=15055
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Ruling. The removal affordance now also sits on the change composite (P4-S2 in change mode), not only on S1x and the Active view. A provisioned node whose host is gone still re-reads
activefrom cached facts and lands on the change composite whenever any service is still offerable, so the operator's only removal act must not sit behind an S1x "nothing available" verdict that never arrives (defect #3 in this ticket). The change view's Remove device button raises the sameremove-deviceintent and lands on the same P4-S3x LOSES confirm S1x/Active already reach.Why a two-way door. Revertible by a later commit (a single UI addition + one flow-diagram edge + an ADR amendment note); provable at the seam by an existing-shape component test. Not on the ADR 0174 one-way-door list: it touches no credential, widens no security posture, is an operator-facing functional control (not a member-/public-facing trust/brand surface), destroys no data (the affordance only opens the deliberate LOSES review — nothing is removed until the operator confirms there), and is not spend.
What proves it.
dashboard/tests/unit/provisionRemoveDevice.test.ts— the change composite emitsremove-device(and a first-setup device carries none), and the Fleet mount routes the change view's own button to the S3x LOSES confirm in place. All 1281 dashboard unit tests green;vue-tscclean.Also in this ticket (no ruling needed — squarely inside the teardown's stated best-effort contract):
walkOffNode'sremove-deviceclick is now bounded (CEILING.assess), andapp/playwright.config.tsgains a suite-wideactionTimeout: 5mso no other unbounded.click()/.goto()can burn the 195m drive ceiling again.close-report for #1067 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
standingreds forever #1114