takeover: wire the production kexec-installer image builder (nixos-images input + InstallerImageBuilder + live drive) so #1012's minted key actually rejoins wt0 #1014
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#1014
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?
Parent
Follow-up of #1012 (which landed the offline half: the mint-at-takeover-start
MeshMintercall, theclan.InstallerMeshthread throughEnrollRequest→ the kexec phase,renderInstallerMesh, andinstallArgs(PhaseKexec)passing--kexec <tarball>behind the injectedclan.InstallerImageBuilderport). Completes ADR 0209 amendment (2026-08-30, #1011 ruled B) end-to-end so a live takeover completes overwt0.What to build
Wire the production
clan.InstallerImageBuilderand prove the whole path on a live drive:nixos-images(kexec-installer) flake input (+pnpm/flake lockfile update in the same commit) — the only source ofsystem.build.kexecTarball/ the kexec-installer profile the module composes onto; clan-core does not expose one.InstallerImageBuilder(e.g.internal/clan/installer_image.go) that writesrenderInstallerMesh(...)'s module + a minimal flake to a temp dir outside the replicated config repo (the baked setup key is a secret — ADR 0126),nix builds the kexec tarball, and returns its path. Fail-loud (ADR 0100): a build that produces no tarball reds the kexec phase clean (nothing erased), exactly as#1012's seam already classifies it.clan.WithReachabilityPreflight()(control-plane/cmd/control-plane/main.go), and (belt-and-braces) an eval-smoke that evaluates the built installer config and readspkgs.netbird+ theidss-installer-meshoneshot back (therender/eval-smokehalf of #1012's acceptance the render unit test already covers at the string level).Why a follow-up / needs a lab
The
--kexectarball contract, the netbird-in-installer boot rejoin, and whether a fresh node-scoped setup key brings the device back at the samewt0IP (acceptance #1's "the device reappears at its wt0 address") can only be verified on a real multi-machine clan.lol takeover — spike-shaped, like the original kanidm-netbird spike. #1012 shipped everything provable offline; this is the live half.Acceptance
kexec,disko,install,reboot) overwt0; the device journal shows the installer environment's netbird join (the second, installer-phase peer session fornode-<requestID>).render/eval-smokeevaluates the built kexec installer config and proves it carriespkgs.netbird+ the mesh-rejoin oneshot.Blocked by
None (#1012 landed the seam). Needs a live clan-lab (
clan-labskill).swarm-claim host=elitebook-distributed-server-03 run=14241
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1014 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope