deploy-takeover: the takeover's first phase (kexec) destroys the mesh address it deploys over, so every phase after it reconnects to a dead wt0 and burns the 20-minute ceiling #1011
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#1011
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
20260830T014530Z(targetdevice), red atdeploy-takeoverafter 1 313 161 ms; 26 of 27 legs green (artifacts/legs.json,artifacts/verdict.json). Surfaced fault:Signature
800a2936720b. This is the third red on this signature; the two prior heals (0915977aentry-module compose order,ccee5984control-planeHOME) fixed different faults on the same leg. The remedy sentence is again aseveredRemedy(internal/clan/enrollment.go:1746-1752) that misdescribes what happened.What actually happened
The takeover targets the device's mesh address and its first install phase destroys that address.
logs/gateway-journal.txt:1874-1875— 02:02:51, netbirdconn.go:410: configure WireGuard endpoint to: 170.64.146.21:51820, thenwg_watcher.go:92: WireGuard watcher started.provision.runTakeoversetsreq.Target = clan.SSHTarget("root@" + d.MeshAddress)—internal/provision/takeover.go:157-158, thewt0fact (internal/fleetstate/fleetstate.go:137-141), per the comment's ADR 0209 §3 / 0210 cite atinternal/provision/takeover.go:143-149anddocs/adr/0209-device-add-landing-goes-live-mesh-fact-fleet-admission.md:24-27.PhaseKexecruns and kills the mesh.installPhaseOrderiskexec, disko, install, reboot(internal/clan/enrollment.go:291), each its ownclan machines install --phases <phase>.logs/gateway-journal.txt:1885— 02:05:21wg_watcher.go:129: WireGuard watcher stopped.logs/device-journal.txt:2— 02:05:23 the box bootsinit=/nix/store/…-nixos-system-nixos-installer-kexec-25.05pre-git/init. The installer image carries no netbird, sowt0and the device's100.xaddress are gone.logs/device-journal.txtrecords zero occurrences of the gateway's IP170.64.168.190and exactly oneAccepted publickeyafter the kexec —logs/device-journal.txt:1166, 02:26:08, from179.65.135.113, the drive host's own forensics collector. Everything between 02:05:30 and 02:26:08 is internet scanner noise (2.57.122.168,92.118.39.71). The gateway made no attempt: toroot@100.xthe packets have no route now that the peer is down.logs/gateway-journal.txt:1930(02:12:50) and:1980(02:22:50) —state_dump.go:79: Dump stat: Status: Connecting, SentOffer: 19 … 33, RemoteAnswer: 0.logs/device-stall.txt=== diskshows onlytmpfs 2.0G 18M 1.9G 1% /— no/mnt, no/dev/vdamount.diskonever executed; the device is stranded in the ephemeral installer with its old disk untouched.logs/gateway-journal.txt:1992— 02:24:40level=WARN msg="provision deploy failed" device=node-req-0003. That is 02:04:40 +defaultPhaseTimeout = 20 * time.Minute(internal/clan/enrollment.go:68) — the kexec phase's own invocation, killed while waiting for a host that can never answer on that address. The timeout-kill classifiesFailInterrupted, whichinternal/clan/enrollment.go:765-770turns intoseveredRemedy— hence the "cut off mid-run" wording for a connection that was never re-attempted.Corroboration that the transfer was not the deploy: gateway outbound stays at ~0.05 Mbps through 02:06–02:12 (
logs/gateway-do-forensics.txt, outbound series) while the device's inbound runs ~7 Mbps (logs/device-do-forensics.txt, inbound series) — the device was fetching from the public internet, not receiving a store copy from the gateway.Why #996's preflight does not catch this
internal/clan/enrollment.go:735-750runs the reachability preflight onlyif e.a.reachPreflight && s.Target != "" && len(s.DonePhases) == 0— i.e. before the first phase, when the mesh is still up. It passes, correctly. The address dies during phase 1.internal/clan/adapter.go:110-118documents the preflight as the cure for "a gateway with no mesh peer"; this is the adjacent and distinct case — a mesh peer that existed and was destroyed by the takeover itself.Suspected layer
internal/provision(target selection) plusinternal/clan(phase-loop reconnect), with an ADR 0209 ruling behind it. Not the app, not the wireframe, not the harness.What plugging it needs
This needs a design ruling first — ADR 0209 §3 explicitly rules the
wt0address as the takeover deploy target, and that ruling is what the kexec invalidates. The options:wt0for the pre-takeover work (the mesh is the honest address for a landed device) and reconnect the destructive phases on the address that survives a re-image — the probe's capturedNetworkFacts.Addressalready rides into the request (internal/provision/takeover.go:155,clanFactsat:278-285). Open question the ruling must settle:clanFactsis documented as "zero for a LAN/DHCP host", so a DHCP device has no such fact to fall back to.wt0survives the kexec. A nix/image change to the kexec bundle; also lets the existing single-target contract stand.severedRemedy"re-drive to resume" — a re-drive over the same dead address cannot resume. Extend the#996preflight (or an equivalent per-phase probe) to the reconnect between phases.A seam test is reachable for whichever shape is chosen:
internal/clanalready injectssshRun/reachabledoubles and scripts the CLI, so a test can drive kexec-succeeds-then-target-goes-dark and assert the classification and the target actually used;internal/provision/takeover_test.gocan lock the per-phase target selection.Cost of leaving it: the drive re-fires straight into this every tick — a fresh community stood up and a whole run spent to rediscover it, with the takeover ceiling alone burning 20 minutes of paid droplet each time.
drive
20260830T014530Zred atdeploy-takeover:deploy failed (resume): the takeover of node-req-0003 stopped: the takeover was cut off mid-run — re-drive it to resume where it stopped, never re-running completed disk workevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260830T014530Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedRULED B by Ben (2026-08-30) — ADR 0209 amended (
3699e016): the kexec installer bundles the mesh client + a fresh single-use MeshMinter setup key (samenode-<requestID>identity) and rejoins the plane at installer boot, so the single-targetwt0contract survives the whole takeover. Option A (per-phase public-address split) recorded rejected — NAT'd member devices have no reachable public address by design.Sliced and armed:
Closing this ticket in the slices' favour; #854's block moved to #1012.