device drive: a drive that reds after approve orphans its landed node in the standing fleet — the droplet is reaped, the placed node is not #1044
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#1044
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
journey.device.spec.ts'safterAlldestroys the member droplet on every drive (the standing-drive rule) but never removes the node that drive landed in the standing community's fleet. Any drive that reds after theapproveleg therefore leaves a placed member node whose box no longer exists inrehearsal-e's fleet, permanently. Only the happy-pathremove-deviceleg (leg 13) takes it back out.This is what produced the stray that caused drive
20260830T172147Z's red, and drive20260830T172147Zhas just done it again — it red atassess(after approve), sonode-req-0005is now a second orphan.Evidence
GET /api/v1/fleet@17:23:17.171 (run20260830T172147Z, tracereport/data/a464f2da….zip, resource970e1f28….json) — at the standing baseline the fleet already carriednode-req-0003,role: "helper",provisioned: true, beside the gateway.GET /api/v1/enroll/codes(resource46639e20….json) —SENF-BNR4-9394-Z6BP-V8TKconsumed16:47:07, i.e. req-0003 belongs to a drive ~36 min before this one.artifacts/device-do-forensics.txtshows only the current box (droplet 596387857, created 17:22:15); no droplet backs node-req-0003.GET /api/v1/fleet@17:24:14 (resource896d7acb….json) — this drive'snode-req-0005placed,provisioned: false. The drive then red atassess(artifacts/legs.json), so leg 13 never ran andafterAllreaped its droplet.app/tests/e2e/journey.device.spec.ts:221-247—afterAllrunsdeclineOwnPending(pending strip) andrunDeviceTeardown(the droplet). Neither touches the fleet.app/tests/e2e/journey.device.spec.ts:762-767— the only removal is inside leg 13, unreachable on a red.Suspected layer
The drive harness's teardown contract (
app/tests/e2e/journey.device.spec.ts), not the product.enroll's admission placingnode-<requestID>at landing (ADR 0209 §4) is correct; nothing revokes it when the drive dies mid-journey.Why this now matters more, not less
Commit
b96e3987fixed the racing standing baseline, soassertFleetGatewayOnlywill from the next drive on actually see these orphans and try to walk each one off through a real remove-and-deploy — against nodes whose hosts are gone. Two are waiting. Note also that the walk-off callsopenDeviceSetup(strayId)(journey.device.spec.ts:869), which for a provisioned stray can never findset-up-<id>and burns its full 60sDRILL_IN_TIMEOUT_MS(fixtures/deviceProvision.ts:66-74) before falling back to thechange-node-click — 60s of dead time per stray.What plugging it needs
afterAll's best-effort cleanup to remove the node this drive landed (deviceId, when set) through the same LOSES removal path leg 13 uses — guarded and non-fatal, likedeclineOwnPending, so teardown can never mask a leg's real fault.assertFleetGatewayOnly's walk-off the right control directly (change-node-for a provisioned stray) instead of paying the 60sopenDeviceSetupmiss.node-req-0003,node-req-0005) from the standing community's fleet, or let the repaired baseline walk them off once step 2 is settled.drive
20260830T172147Zred atassess:device node-req-0003's row offers no "set up" control — a connected, not-yet-provisioned device must (dashboard/src/lib/fleet.ts nodeSurfaceRoute) expect(locator).toBeVisible() failed Locator: locatevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260830T172147Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=matou-dev-server-01 run=14673
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Step 2 ("decide and encode what removal means for a node whose host is already destroyed; a remove-and-deploy against a dead box may not converge") is the ruling this ticket needs. Here it is.
Ruling:
afterAllreaps the member droplet FIRST, then walks the landed node off; the removal runs against a host that is already gone, and that is not just tolerable but required by the UI's own shape.Why this ordering, not remove-before-reap:
remove-deviceis only offered on two provisioning views: S1x (Assess — nothing available / out-of-reach) and the Active view. A fresh drill-in from a fleet row (set-up-<id>orchange-node-<id>) lands on the plain assess/change setup view, which carries no remove control. The only fresh drill-in that reaches a remove control is one whose assess/change-setup re-reads the node out-of-reach → routes to S1x →remove-device.assessand a provisioned one'schangeSetupboth re-read out-of-reach → S1x →remove-device→ the deliberateremove-and-deploy.remove-and-deployis a gateway-side empty-selection deploy that returns the fleet to gateway-only (SetupSurfacerunRemoval→ the seam'sremoveDevice, which revokes the grant and re-renders the front door). It never reaches the member box, so it converges even though the box is gone. That answers the "may not converge" worry: the removal is a gateway operation, not a member one.This is the same posture the standing baseline's
assertFleetGatewayOnlywalk-off already relies on (it runs at the next drive's leg 1, when the orphan's box is long dead) — so the two paths are now consistent.Why this is a two-way door: it is entirely test-harness code (
app/tests/e2e/journey.device.spec.ts+fixtures/deviceProvision.ts), revertible by a later commit; it is not on the one-way-door list (no credentials, no security widening, no member-facing trust accept, no data destruction, no spend). What proves it: the next device drive'safterAllclears the node it landed, and its leg-1 baseline walks off the two waiting orphans (node-req-0003,node-req-0005) without burning the 60sset-up-miss — a red there refutes the ruling and reverts it.Steps 1, 3, 4 are shipped alongside:
afterAllnow removesdeviceId(when set) through the shape-correct removal, guarded/non-fatal likedeclineOwnPending.afterAllcleanup) drill a provisioned stray throughchange-node-<id>directly (strayDrillInFromAction+openNodeSurface), never the 60sset-up-<id>miss. Proven offline indeviceProvision.test.ts.close-report for #1044 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
standingreds forever #1114RemoveNodeleavesmachines/<node>/files.nixin the config repo, so a re-used node id re-adopts a removed device's placement and S2 loses itstoggle-filesrow #1217