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.
Dependencies
No dependencies set.
Reference
Matou/idss#1070
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
20260831T113210Z(targetdevice, commit03fb43cf), 26/27 legs green, red atdeploy-takeoverafter 1311431 ms (21m51s):artifacts/verdict.json—firstRedLeg: deploy-takeover;artifacts/legs.json:27. The message is wrong about the box: node-req-0003 did come back, re-imaged and healthy. What never came back is the address. This is#1069— predicted in code byinternal/provision/takeover.go:165-172— now proven on a paid drive.What actually happened
#1068's re-point held. This is the first drive to get past the kexec.
logs/gateway-journal.txt:1943— 12:51:44, the #1013 liveness reap fires on the dead pre-kexec targetroot@100.86.205.31(internal/clan/enrollment.go:2103).logs/gateway-journal.txt:1919-1932— 12:49:20/12:49:21, a new mesh peerttaf2k67Kmp3jclpgNu8XaMcOB9+rWEqMXZThVLfL1g=logs in tonetbird-mgmtand connects (configure WireGuard endpoint to: 10.126.0.5:51820). That is the kexec installer rejoining, exactly as#1068designed.repointToRejoinedInstaller(internal/clan/enrollment.go:866) resolved it and re-pointedsnap.Target.logs/gateway-do-forensics.txtgateway outbound 14.0 → 11.3 → 10.9 → 10.4 Mbps across 12:52–12:58, matched bylogs/device-do-forensics.txtdevice inbound 8.9 → 22.6 → 22.5 → 21.8 → 21.8 Mbps across 12:50–13:00, collapsing to 0.39 at 13:02. That is the disko/install closure copy, start to finish.verifyat all proves every install phase completed.Advance(internal/clan/enrollment.go:429-435) only entersStageVerifywheninstall()returns without settingFailure/Blocked; the fault text isblockedRemedyInstruction(FullInstall)(internal/clan/enrollment.go:1565-1567), reachable from exactly one place —verify's concession atinternal/clan/enrollment.go:1418. So kexec · disko · install · reboot all landed.logs/device-do-forensics.txt:3 packets transmitted, 3 received, 0% packet lossandtcp/22: a FRESH connect succeeded — the box answers. Every device harvest nonetheless failsroot@168.144.163.41: Permission denied (publickey,password,keyboard-interactive)(logs/device-journal.txt,device-units.txt,device-stall.txt,device-caddy.txt). That denial is the success signal: the installed NixOS bakes only the control plane's deploy key into root trust (internal/provision/takeover.go:186-200), so the drive host's own key is correctly refused. Pre-takeover Ubuntu accepted it.FsEUbDj/EJCpTtIv8gWVknA0G7ERuZkoNoGMU5Ejhn4=disconnects at 12:49:03 (gateway-journal.txt:1912) and then sends unanswered offers (serial: 5348c39386) every ~30s straight through 13:02:35 — it never returns. No third peer ever logs in:ttaf2k67…(12:49:21) is the last mesh login in the entire journal.So
verifyranclan machines update --target-host root@<installer IP2>(internal/clan/enrollment.go:1293-1296) against an address that died with the installer, spent its reconnect budget (defaultReconnectWindow,enrollment.go:159), and conceded the resumable block atenrollment.go:1418at 13:01:14 (gateway-journal.txt:1988).Suspected layer
Not a bug in
#1068's fix — that worked. The layer is member node composition: an installed member renders no netbird module at all.internal/clan/member_attach.go:33—baseMemberModules = []string{"networking.nix", "disko.nix", PlatformFileName, AccessFileName}; the netbird client and the mesh self-admit oneshot are gateway-only (internal/clan/netbird.go, wired fromvmguest.go).internal/provision/takeover.go:165-172already records this as code-proven.Two addresses go stale at the same instant, not one:
snap.Target— the installer IP2 the #1068 re-point left behind; kills the takeover's ownverify(this red).d.MeshAddress— the landing IP1 the front door's member-device files route still points at (deploy.go).Secondary honesty defect (same root, worth naming)
The fault the operator sees is actively misleading and self-perpetuating:
recovery.mode: "resume"with "wait for the reboot to finish, then re-drive to verify" (trace resource2a0a85da5b29f7a4a4bd98e0df5affd35c31403d.json). The reboot has finished; a re-drive resumes into the identical dead address and burns another droplet plus ~22 minutes. Until the ruling below lands, this red should not present as a resumable block.What plugging it needs
A mesh-admission ruling on how an installed member device rejoins the community mesh — a member self-admit module plus a key-mint mechanism. The only obvious candidate (a standing node-scoped key persisted into the config repo) is the same security-posture widening that
#1068's option B was rejected on: a one-way door under ADR 0174, validatable only by a live drive past the kexec.#1069was already re-scoped and routedready-for-humanon this exact basis in102beb16; this drive supplies the live evidence that was missing.Block the device drive on this. It is now deterministic: every re-drive gets through the kexec (thanks to #1057/#1068), re-images the droplet, and then reds identically at
verifyfor the ~22 minutes it takes to spend the reconnect budget.Evidence absent from this run
No
droplet-journal.txt(the run carrieslogs/gateway-journal.txtplus alogs/device-journal.txtthat is only the SSH-denial stub — the installed device could not be harvested, by design, see point 5).logs/founding-state.logcovers the gateway founding only, not the device takeover.logs/state-logs.logrecordsENOENTonstanding-rented/state/logs. The enrollment's own phase events ("kexec complete — the installer rejoined the mesh at …",enrollment.go:880) are emitted to the event channel, not the journal, and the Playwright trace never fetched the takeover log stream — so the re-point is established from the mesh login, the transfer profile, and the state machine's own reachability ofverify, all cited above, rather than from a direct log line.drive
20260831T113210Zred atdeploy-takeover:deploy failed (resume): the takeover of node-req-0003 stopped: the node has not come back yet — wait for the reboot to finish, then re-drive to verifyevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260831T113210Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedRuled by agent under ADR 0174 — veto anytime
This ticket is the live proof of #1069, and it carried one landable two-way part (the honesty defect it names). Both are now handled; closing.
What this ticket established (proof captured)
The drive's forensics confirm #1069's code-proven premise on a paid drive: #1068's re-point held (first drive past the kexec), the install LANDED (reaching
verifyproves kexec·disko·install·reboot all completed), and the installed member is off the mesh (renders no netbird module → rejoins at no address; box answers a fresh ssh connect but correctly refuses the drive host's key; no third mesh peer ever logs in). This evidence is mirrored onto #1069, which holds theready-for-humanone-way mesh-admission ruling that actually plugs the gap.Two-way honesty fix — LANDED (
46bd4a7a)The secondary defect this ticket named: the red presented as a misleading resumable
recovery.mode: "resume"/ "wait for the reboot to finish, then re-drive to verify" — but the reboot has finished and a re-drive resumes into the same dead address for the identical red (~22m + a droplet).deployTakeover(member-device-only — gateway founding usesinternal/foundingwith its own resumable handling) now re-classifies aStageVerifyblock to a NON-resumable rescue-mode fault that names the member mesh-admission ruling (#1069) it waits on, and persists no resumable snapshot. It reverts when #1069 lands a member self-admit + key-mint.TestDeploy_AMemberOffMeshVerifyBlockIsNotResumable(internal/provision/takeover_test.go) + newclantesting.FakeConfig.VerifyBlockslever. Proven red before the fix (the block presentedMode:resumewith the verbatim misleading remedy), green after.go test ./internal/provision ./internal/clan+go build ./...+go vet+gofmtgreen.STATUS.mdupdated in the same commit.Device drive re-pointed (so this close doesn't re-open the burn)
#854 was blocked by this proof ticket; it is now blocked by #1069 (the real one-way-door blocker) and the stale #1070 edge removed. #854's only open blocker is now #1069, so closing #1070 does not un-gate the deterministic re-drive burn.
Why this is a two-way door
A revertible, member-only recovery re-classification proven at the offline provision seam; no trust surface touched (an off-mesh member still fails loud). The one-way mesh-admission ruling stays on #1069. Not on the one-way-door list.
Closing as done — proof captured (mirrored to #1069), honesty fix landed and tested, device drive re-pointed.
Ruled by Ben (via session, 2026-08-31) — option (A): the installed member device carries the installer's mesh identity across the install
Ruling. An installed member device rejoins the community mesh as the same peer the kexec installer already is — no third admission, no standing key, no secret in the config repo. The installer's netbird identity (its WireGuard key + config, the peer
netbird-mgmtalready admitted at IP2 under #1068) is copied onto the freshly-disko'd disk beforeinstall, and the installed member's configuration carries the same netbird client module the gateway has, so on reboot the box comes up on the same wt0 address the post-kexec phases were re-pointed to.verifythen reaches it, and that address is what the front door routes files to.Why A, not B/C. (C) — a standing node-scoped key persisted into the replicated config — is the posture widening #1068's option B was rejected on (ADR 0126: no secret in the config repo). (B) — a third single-use mint dropped on disk — works but yields a third address and a third admission per takeover for no gain. (A) reuses an admission the plane has already granted for exactly this node-, adds no secret anywhere it wasn't already (the installer's state dir is on the box's own disk, same as the gateway's), and is a two-way door: it's one file copy between two phases that already exist.
Scope for the worker:
internal/clan/member_attach.gobaseMemberModules): add a member netbird client module rendered with the SAME shape/name as the gateway's peer —services.netbird.clients.mesh = { port = 51820; interface = "wt0"; hardened = false; environment.NB_MANAGEMENT_URL = <the community management URL the installer used, InstallerMesh.ManagementURL>; }— so the state dir (/var/lib/netbird-mesh) and socket match the installer's (post-#1057renderInstallerMesh). No setup key, no self-admit oneshot on the member: the identity arrives with the state dir. Render-gated on a mesh-addressed takeover, the same predicate as the installer image.enrollment.install(internal/clan/enrollment.go:780), between thediskoandinstallphases (the takeover already drivesclan machines install --phases <ph>one phase at a time,enrollment.go:1624): over the re-pointed installer target,mkdir -p /mnt/var/lib && cp -a /var/lib/netbird-mesh /mnt/var/lib/netbird-mesh(mode-preserving; the dir is root-only). Record it inDonePhases/snapshot so a resume never re-copies over an installed system. Fail LOUD if the source dir is absent (an installer that never rejoined has nothing to carry — that is a #1057-class fault, not a silent cold member).reboot, resolve the peer by its node group exactly as #1068 does (repointToRejoinedInstaller/ResolveInstallerAddress) and persist it toDevice.MeshAddress, sodeploy.go's member files route (files.<apex>→<mesh-ip>:80) stops pointing at the dead landing IP1 — this closes #1069's real half.verifycannot reach the box, the fault must not present asrecovery.mode: "resume"with "wait for the reboot" — a resume into a dead address burns 22 min and a droplet. With (A) landed the case should not recur; keep the concession text truthful either way.member_attachrender test proves the member config carriesservices.netbird.clients.mesh(and NO setup key / self-admit), an enrollment test proves the carry-over step runs once between disko and install with the right paths and is skipped on resume, and the ADR 0209 amendment records this ruling (installed member = installer's peer; #1069's "third address" note closes).verifygreen, thenfiles-door/oidc-login(never yet run) get their first shot.Re-labelling
ready-for-session→ready-for-agent; #854 stays parked on this ticket until it lands.