the removal verb seeds the device it removes — an orphan whose box is gone can never be walked off, so leg 1 standing reds forever #1114
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
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1114
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
20260901T085409Z(device target) red at leg 1standing, 19.6s in:(
artifacts/legs.json,artifacts/verdict.json— 1 leg, 0 green;artifacts/journey.device-.../error-context.mdpins the throw atfixtures/provision.ts:302.)This drive's own box was fine.
logs/device-do-forensics.txtrecords dropletclan-lab-rehearsal-c45bb1f5at168.144.168.89active, ping 0% loss, and "tcp/22: a FRESH connect succeeded". The unreachable100.77.28.68is a different, already-destroyed box: the mesh address of orphan nodenode-req-0003left by an earlier drive.The chain
node-req-0003, red before leg 13, and reaped its droplet inafterAll(app/tests/e2e/journey.device.spec.ts:180-186). Its landed-node cleanup (:288-302) is deliberately guarded and non-fatal, so when it failed the node stayed.logs/founding-state.log, seed stage; the app-sidestanding-rented/state/clan-configcopy still holds onlygateway), withdeploy.targetHost = root@100.77.28.68.assertFleetGatewayOnly(journey.device.spec.ts:1001) →walkOffNode(:982) →remove-device→confirmAnyDeploy→POST /api/v1/provision/devices/node-req-0003/remove(internal/controlapi/provision.go:158).Orchestrator.RemoveDevice(internal/provision/deploy.go:227) runs the empty-selection deploy throughdeployServicesOnly(:280), whose node is the device being removed (:281,node := clan.NodeID(d.ID)).internal/provision/deploy.go:352-358→internal/clan/supply.go:46-61), resolving its SSH door from the inventorydeploy.targetHost(internal/clan/supply.go:26-39). The peer is gone →No route to host→ the run carries a failure, soRemoveDeviceoffboards nothing by design (internal/provision/deploy.go:238-240) and the orphan survives to red the next drive identically.Step 3 would fail the same way regardless:
placementApplyNodes(internal/provision/deploy.go:912-919) always includes the device node.Suspected layer
Product —
internal/provision, not the drive harness. The removal verb has exactly one path and it requires reaching the box. The rescue ladder'sremoverung is not an alternative: it explicitly hands off to this same P4-S3x LOSES confirm (internal/rescue/deviceladder.go:339,:547-568).The harness comment claiming otherwise is the stale half:
That premise is false against
deploy.go:281. Three commits have now patched the app side of this walk-off (#1044, #1067, #1112 — the last landed as821d2fbc, this drive's own commit, after20260901T083610Zred at the same leg) without touching the backend precondition that actually blocks it. No further selector/confirm work on leg 1 will help.What plugging it needs
A ruling first, then code — this is
needs-design:deploy.go:222-226insist a deploy-itself failure offboards nothing ("a device half-removed is worse than one left standing"). Both cannot hold for a device that no longer exists — today the fleet wedges permanently instead.placementApplyNodesand letRemoveNode+RevokeGrantrun — the inventory/grant offboard needs no SSH. Note this must still cover the placement case, where the gateway's front-door route drop is reachable but the device's own closure is not.AssessNothingAvailableScreen.vue, wireframedocs/ux/wireframes/p4-provisioning/p4-s1x-assess-nothing-available.html), driving an offboard-only verb that skips the deploy entirely. This wants a flow/wireframe before code.internal/provisionseam test — removal against a device whoseSupply.SeedredsFailConnectivitymust still reachRemoveNode(or fail with an operator-actionable recovery), not the currentclean-retryframe whose detail ("the VM is deleted and recreated") is also wrong for a droplet member device.node-req-0003is live in the standing community's gateway config repo right now. Even with the code fixed, it must be cleared (or the fixed removal driven once) before the next drive can pass leg 1.Not the fault
logs/broker-journal.txt(broker unreachable, off the admin mesh) andlogs/state-logs.log(no state-logs dir) are both by-design harvest gaps on this executor, not contributors.host.jsonreports qemu absent — expected for a droplet drive.drive
20260901T085409Zred atstanding:deploy failed (clean-retry): provision: seed node-req-0003: clan: connectivity on node-req-0003: could not reach the node: ssh: connect to host 100.77.28.68 port 22: No route to host error: failed toevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260901T085409Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedRuled by the session under ADR 0174 — two-way door (a revertible change inside
internal/provision, provable offline and on the next drive). Veto anytime.Excellent report — the chain from
walkOffNodedown tosupply.go:26-39resolvingdeploy.targetHostis exactly right, and identifying it as product, not harness, is the important call. Confirming that reading and ruling the shape.Why this is a real defect, not a rehearsal artifact
Strip away the drive and the scenario is ordinary and unavoidable: a member device dies. A laptop is stolen, a disk fails, a machine is thrown away, someone leaves the rōpū and takes their computer with them. The community opens their fleet, presses Remove — and today the removal verb tries to SSH the machine that no longer exists, fails at seed, and by design offboards nothing.
That leaves a community permanently unable to remove a device they no longer have. The fleet keeps a phantom row; the front door keeps whatever route it had; the operator has no way out of it from the product. That is a community-facing dead end, and it is exactly the class of thing the rehearsal exists to surface before a real community meets it.
The rehearsal's orphan is the same bug wearing drive clothes.
The ruling
Removing a device must not require reaching that device. Removal is a decision made on the community's side about its own fleet; the device is the subject of the removal, not a participant in it.
The removed node is excluded from the seed and apply sets.
deployServicesOnly's empty-selection removal path must not seed the node being removed (deploy.go:352-358→supply.go:46-61), andplacementApplyNodes(:912-919) must not include it. The gateway-side work — rewriting the front door without the route,RemoveNode, revoking the grant — is the removal, and all of it happens where the community's authority actually lives.The device's own teardown is best-effort, and its failure never blocks the removal. If the box IS reachable, wipe/stand it down as today — that is the good path and it should stay. If it is not reachable, the removal still completes.
Say so honestly — this is the part that must not be skipped. When the device could not be reached, the operator is told plainly: the device has been removed from the community, and the machine itself could not be reached, so anything still on it was not erased. In IDSS vocabulary, not an error code. ADR 0100's no-masked-success cuts both ways here: a removal that quietly implies a wipe it never performed would be its own lie, and this one has a real privacy edge — the operator may need to know the data is still out there on a machine they no longer control.
The rescue ladder's
removerung inherits this for free (deviceladder.go:339,:547-568hand off to the same P4-S3x confirm), which is the right shape — one removal verb, not two.Not ruled here (flagging, not deciding)
Whether an unreachable device should also have its grant/credentials revoked more aggressively than a clean removal does — a stolen laptop is a different threat model from a dead disk, and a community may want "remove and treat as compromised". That is a real design question with a UX surface, and it is not in scope for this fix. Removal should not silently make that choice either way. If it deserves a flow, it deserves its own grill.
Acceptance
internal/provisionproving the removal completes with a node whosedeploy.targetHostcannot be dialled — red before the fix.#854's leg 1 walks off orphannode-req-0003(whose box is genuinely gone) and reaches green.Re-labelled
ready-for-agent— the shape is ruled, the implementation is a worker's.Operational note: the orphan is deliberately being left in place as the live test case; it is the only real unreachable-device fixture we have, and the fix should be proven against it rather than against a world wiped clean first.
swarm-claim host=matou-dev-server-01 run=15747
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1114 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
Live acceptance NOT yet met — flagging so this does not read as drive-proven.
Drive
20260901T093209Z(the first afterae94e1e2) did not exercise the fix.internal/provisionmoved, so the standing world went stale and leg 1 took the re-found branch: it tore the whole standing community down and founded a fresh one. Orphannode-req-0003was destroyed along with the old gateway rather than walked off.So this ticket's live criterion — "drive #854's leg 1 walks off orphan
node-req-0003(whose box is genuinely gone) and reaches green" — is still outstanding. What stands today is the offline cover (UnreachableBoxStillOffboardsand siblings), which is real but is not the same evidence.That is an ordinary consequence of the fix touching
internal/provision: any change that forces a re-found also disposes of the fixture it would have been proven against. Not a problem with the fix — worth recording so the gap is visible.How it will actually get proven: the next drive that lands a device and then reds before leg 13 leaves a fresh orphan, and the drive after that walks it off at leg 1. Given the arc's recent shape that will happen on its own before long; if it does not, the honest alternative is a deliberate fixture (approve a device, destroy its droplet out of band, drive) rather than declaring it proven on unit tests.
Re-verify then, and note it here.
netbird upis a no-op on a device already on another mesh and records the foreign address as the mesh fact; a member Files placement writes a kanidm-only files-idp.nix onto the gateway and nothing detaches it — gatew… #2040