deploy-takeover: kexec installer for node-req-0003 built from source, SIGKILLed at 20m #1040

Closed
opened 2026-08-30 17:17:27 +00:00 by matou-build-agent · 1 comment

The failure

deploy-takeover — the last leg of 27. Every other leg is green; this drive got the whole member-device journey (mint → device-create → agent-install → decline-resume → join → approve → assess → select-files) and died composing the takeover image.

artifacts/verdict.json:

"verdict": "red",
"firstRedLeg": "deploy-takeover",
"legs": { "total": 27, "green": 26, "red": 1, "skip": 0 },
"commit": "cd56dbb8fcef0868823d60db373be98d049fc38a"

artifacts/legs.json — the red leg's .error (leg ran 1,323,221 ms ≈ 22 min):

deploy failed (rescue): clan: config_eval on node-req-0003: the takeover's kexec
installer image for node-req-0003 is STILL BUILDING after 20m0s — bounded and red
LOUD (nothing erased) rather than burn the deploy budget behind a silent build. A
cold nix store with no substituter serving the static closure builds it from
source; warm the store or carry the closure (#1016).: nix build of the kexec
installer tarball for node-req-0003 exited 137:

The build log carried inside that error says "cold" without ambiguity:

these 303 derivations will be built:
...
building '/nix/store/skwkccmsp98nkmrhxn7krhxm93ig2909-nixos-system-nixos-installer-kexec-26.05pre-git.drv'...
building '/nix/store/rrgv68gq21j1as7rjp0ck773w8lk9ywn-squashfs.img.drv'...
building '/nix/store/bbs7skyc1l14wv6nr9lkn6q9r179j8lz-initrd.drv'...

Same fault from the box itself, logs/gateway-journal.txt:1878:

Aug 30 17:09:45 idss-gateway-rehearsal-e-59d7 idss-control-plane-start[3278]:
time=2026-08-30T17:09:45.555Z level=WARN msg="provision deploy failed"
component=control-plane device=node-req-0003 error="clan: config_eval on node-req-0003: ..."

The build ran on the gateway (flake dir /tmp/idss-installer-node-req-0003-3845982400), got past substitution into a full from-source NixOS installer compose — initrd and squashfs — and was SIGKILLed (exit 137) by the drive's own 20-minute bound.

Not the known frontier

The known frontier is pairing-never-flips (the own-VPS carrier issue). It does not apply here: pair is green, join and approve are green, verdict.json records "skip": 0, and legs.json carries no skip reasons at all — no leg on this drive was skipped for any cause. This drive advanced past the frontier and hit a new red.

What is absent: the ADR 0133 Tier-3 seed left no trace

HEAD cd56dbb — "the Tier-3 installer-base seed is no longer SILENT, so the next drive can tell a cold takeover from a silent-success seed" — is exactly the commit this drive ran (verdict.json.commit). Its whole purpose was to let this drive distinguish the two cases. It cannot, because there is no seed line of any kind, success or failure:

  • logs/founding-state.log lists every founding seed/supply row and none is the installer closure:
"stage": "seed",   "message": "community flake seeded — flake.nix and the gateway machine config are in the config repo"
"stage": "seed",   "message": "compiled brand artifacts landed in the config repo — the gateway builds wearing your look"
"stage": "seed",   "message": "community header recorded in the config repo — the gateway builds knowing your name"
"stage": "seed",   "message": "community logo landed in the config repo — the sign-in wears your mark"
"stage": "supply", "message": "seeding the fleet software onto the rented server over SSH"
"stage": "supply", "message": "fleet software seeded onto the rented server — the control plane and dashboard are at their unit paths"
  • grep for installer-base|installer_base|closure|substituter|nixos-images|tier.?3|0133|#1016|nix copy across all of logs/ and artifacts/journey.json returns nothing but "the droplet's resolver is warm" (unrelated) and the failure text itself.

Founding ran fresh on this drive — logs/founding-state.log has "gateway deploy complete — the control plane is live" at 2026-08-30T16:46:17.656012862Z — so the seed had its chance during this run and produced no record.

Corroboration: CPU-bound local build, not a network stall

logs/gateway-do-forensics.txt, hypervisor-side inbound Mbps:

2026-08-30T16:52:00Z  24.670727551270996
2026-08-30T16:58:00Z  19.444926260981912
2026-08-30T17:00:00Z  0.0032651177083333335
2026-08-30T17:08:00Z  0.00320505503875969

Substitution from cache.nixos.org finished around 16:58; the final ~12 minutes moved no bytes — the box was building locally on s-2vcpu-4gb until the bound fired at 17:09:45. logs/gateway-stall.txt shows the box was not starved (Mem: 3921 total / 3313 free, 78G 8.9G 65G 12% /, load 0.28) — 137 is the harness's bound, not an OOM kill.

Nothing was erased — the bound kept its promise

logs/device-stall.txt shows node-req-0003 still on its original image, never kexec'd:

/dev/vda1        77G  2.0G   75G   3% /
1083       1 Ss    8296       43:25 do_poll.constprop.0  sshd: /usr/sbin/sshd -D [listener]
9028       1 Ssl  66688       24:38 futex_wait_queue  /usr/bin/netbird service run ...

systemctl --failed is empty on both boxes (logs/gateway-units.txt, logs/device-units.txt). No unit broke; this is deploy-budget exhaustion.

Suspected layer

Product — the ADR 0133 Tier-3 carry-the-closure path — presenting with an infra-shaped symptom. The ruling already exists (#1016 ruled carry-the-closure; b5552e4/e765e18 amended ADR 0133 so the payload carries kexec-installer-base and founding seeds it into the GATEWAY's store so the on-box compose runs warm). On this drive it did not take effect, and the loud marker added by cd56dbb to prove which way it went is missing. Absence of that row points at the seed path never running during rented founding, rather than running and seeding a closure the takeover doesn't hit — the latter would still have logged.

What plugging it needs

  1. Verify the payload at host.json.payloadMode = /home/swarm/swarm/rehearsal-payload actually contains the kexec-installer-base closure, and that the rented-founding supply stage copies it into the gateway store. Today that stage logs only "fleet software seeded onto the rented server".
  2. Make the cd56dbb loud row unconditional: if the seed is skipped because the closure is absent from the payload, that must be a row in founding-state.log. Silence cost this drive 22 minutes and left the cold/warm question to inference — which is precisely what cd56dbb set out to prevent.
  3. Check closure identity, not just presence. The takeover evaluates github:nix-community/nixos-images/f6714acc84ce92df7286c89a571ad1e946057a5b against node-specific config (ssh-root-provision.conf.drv, users-groups.json.drv are in the build list), so a base closure that doesn't cover the node-specific tail still leaves derivations to build. If that tail is irreducible, 20m is the wrong bound for a 2 vCPU gateway and the number needs a ruling of its own.

Secondary, harness layer: the healer never ran on this red

logs/healer-claude.err:

/home/swarm/swarm/Matou/idss/.sandcastle/rehearsal-report.sh: line 257: /usr/bin/timeout: Argument list too long

artifacts/journey.json's .fault is 149,066 bytes — the entire nix build log — and is passed as an argv. healer-claude.out is 1 byte. Any red whose fault text is a large build log silently loses its healer pass; the fault should go via a file or stdin.

Live box

No live-box access section was appended to this task, so I diagnosed from the harvested logs alone. The gateway was still answering at harvest time — logs/gateway-do-forensics.txt: tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did, droplet 596380781 status: active — but with no access line given I did not attempt to reach either box.

Other absences (non-causal)

  • logs/droplet-journal.txt named in the brief does not exist; this two-box drive harvested logs/gateway-journal.txt and logs/device-journal.txt instead.
  • host.json records "qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT" and every logs/guest-*.log reads no SSH hostfwd in ... idss-guest.service — the guest was never created, so there is nothing to ask. Expected for a rented-droplet drive; unrelated to the red.
  • logs/helper.log is full of GLX is not present / Exiting GPU process Electron noise — headless rendering, not the failure.

drive 20260830T162742Z red at deploy-takeover: deploy failed (rescue): clan: config_eval on node-req-0003: the takeover's kexec installer image for node-req-0003 is STILL BUILDING after 20m0s — bounded and red LOUD (nothing erased) rather than b
evidence: /home/swarm/swarm/Matou/idss/test-results/drive-device/20260830T162742Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure `deploy-takeover` — the last leg of 27. Every other leg is green; this drive got the whole member-device journey (mint → device-create → agent-install → decline-resume → join → approve → assess → select-files) and died composing the takeover image. `artifacts/verdict.json`: ``` "verdict": "red", "firstRedLeg": "deploy-takeover", "legs": { "total": 27, "green": 26, "red": 1, "skip": 0 }, "commit": "cd56dbb8fcef0868823d60db373be98d049fc38a" ``` `artifacts/legs.json` — the red leg's `.error` (leg ran 1,323,221 ms ≈ 22 min): ``` deploy failed (rescue): clan: config_eval on node-req-0003: the takeover's kexec installer image for node-req-0003 is STILL BUILDING after 20m0s — bounded and red LOUD (nothing erased) rather than burn the deploy budget behind a silent build. A cold nix store with no substituter serving the static closure builds it from source; warm the store or carry the closure (#1016).: nix build of the kexec installer tarball for node-req-0003 exited 137: ``` The build log carried inside that error says "cold" without ambiguity: ``` these 303 derivations will be built: ... building '/nix/store/skwkccmsp98nkmrhxn7krhxm93ig2909-nixos-system-nixos-installer-kexec-26.05pre-git.drv'... building '/nix/store/rrgv68gq21j1as7rjp0ck773w8lk9ywn-squashfs.img.drv'... building '/nix/store/bbs7skyc1l14wv6nr9lkn6q9r179j8lz-initrd.drv'... ``` Same fault from the box itself, `logs/gateway-journal.txt:1878`: ``` Aug 30 17:09:45 idss-gateway-rehearsal-e-59d7 idss-control-plane-start[3278]: time=2026-08-30T17:09:45.555Z level=WARN msg="provision deploy failed" component=control-plane device=node-req-0003 error="clan: config_eval on node-req-0003: ..." ``` The build ran on the gateway (flake dir `/tmp/idss-installer-node-req-0003-3845982400`), got past substitution into a full from-source NixOS installer compose — initrd and squashfs — and was SIGKILLed (exit 137) by the drive's own 20-minute bound. ## Not the known frontier The known frontier is pairing-never-flips (the own-VPS carrier issue). It does not apply here: `pair` is green, `join` and `approve` are green, `verdict.json` records `"skip": 0`, and **`legs.json` carries no skip reasons at all** — no leg on this drive was skipped for any cause. This drive advanced past the frontier and hit a new red. ## What is absent: the ADR 0133 Tier-3 seed left no trace HEAD `cd56dbb` — *"the Tier-3 installer-base seed is no longer SILENT, so the next drive can tell a cold takeover from a silent-success seed"* — is exactly the commit this drive ran (`verdict.json.commit`). Its whole purpose was to let this drive distinguish the two cases. It cannot, because there is **no seed line of any kind**, success or failure: - `logs/founding-state.log` lists every founding seed/supply row and none is the installer closure: ``` "stage": "seed", "message": "community flake seeded — flake.nix and the gateway machine config are in the config repo" "stage": "seed", "message": "compiled brand artifacts landed in the config repo — the gateway builds wearing your look" "stage": "seed", "message": "community header recorded in the config repo — the gateway builds knowing your name" "stage": "seed", "message": "community logo landed in the config repo — the sign-in wears your mark" "stage": "supply", "message": "seeding the fleet software onto the rented server over SSH" "stage": "supply", "message": "fleet software seeded onto the rented server — the control plane and dashboard are at their unit paths" ``` - grep for `installer-base|installer_base|closure|substituter|nixos-images|tier.?3|0133|#1016|nix copy` across all of `logs/` and `artifacts/journey.json` returns nothing but `"the droplet's resolver is warm"` (unrelated) and the failure text itself. Founding ran fresh on this drive — `logs/founding-state.log` has `"gateway deploy complete — the control plane is live"` at `2026-08-30T16:46:17.656012862Z` — so the seed had its chance during this run and produced no record. ## Corroboration: CPU-bound local build, not a network stall `logs/gateway-do-forensics.txt`, hypervisor-side inbound Mbps: ``` 2026-08-30T16:52:00Z 24.670727551270996 2026-08-30T16:58:00Z 19.444926260981912 2026-08-30T17:00:00Z 0.0032651177083333335 2026-08-30T17:08:00Z 0.00320505503875969 ``` Substitution from cache.nixos.org finished around 16:58; the final ~12 minutes moved no bytes — the box was building locally on `s-2vcpu-4gb` until the bound fired at 17:09:45. `logs/gateway-stall.txt` shows the box was not starved (`Mem: 3921 total / 3313 free`, `78G 8.9G 65G 12% /`, load 0.28) — 137 is the harness's bound, not an OOM kill. ## Nothing was erased — the bound kept its promise `logs/device-stall.txt` shows node-req-0003 still on its original image, never kexec'd: ``` /dev/vda1 77G 2.0G 75G 3% / 1083 1 Ss 8296 43:25 do_poll.constprop.0 sshd: /usr/sbin/sshd -D [listener] 9028 1 Ssl 66688 24:38 futex_wait_queue /usr/bin/netbird service run ... ``` `systemctl --failed` is empty on both boxes (`logs/gateway-units.txt`, `logs/device-units.txt`). No unit broke; this is deploy-budget exhaustion. ## Suspected layer **Product — the ADR 0133 Tier-3 carry-the-closure path — presenting with an infra-shaped symptom.** The ruling already exists (#1016 ruled carry-the-closure; b5552e4/e765e18 amended ADR 0133 so the payload carries `kexec-installer-base` and founding seeds it into the GATEWAY's store so the on-box compose runs warm). On this drive it did not take effect, and the loud marker added by `cd56dbb` to prove which way it went is missing. Absence of that row points at the seed path never running during rented founding, rather than running and seeding a closure the takeover doesn't hit — the latter would still have logged. ## What plugging it needs 1. Verify the payload at `host.json.payloadMode` = `/home/swarm/swarm/rehearsal-payload` actually contains the `kexec-installer-base` closure, and that the rented-founding supply stage copies it into the gateway store. Today that stage logs only `"fleet software seeded onto the rented server"`. 2. Make the `cd56dbb` loud row **unconditional**: if the seed is skipped because the closure is absent from the payload, that must be a row in `founding-state.log`. Silence cost this drive 22 minutes and left the cold/warm question to inference — which is precisely what `cd56dbb` set out to prevent. 3. Check closure *identity*, not just presence. The takeover evaluates `github:nix-community/nixos-images/f6714acc84ce92df7286c89a571ad1e946057a5b` against node-specific config (`ssh-root-provision.conf.drv`, `users-groups.json.drv` are in the build list), so a base closure that doesn't cover the node-specific tail still leaves derivations to build. If that tail is irreducible, 20m is the wrong bound for a 2 vCPU gateway and the number needs a ruling of its own. ## Secondary, harness layer: the healer never ran on this red `logs/healer-claude.err`: ``` /home/swarm/swarm/Matou/idss/.sandcastle/rehearsal-report.sh: line 257: /usr/bin/timeout: Argument list too long ``` `artifacts/journey.json`'s `.fault` is 149,066 bytes — the entire nix build log — and is passed as an argv. `healer-claude.out` is 1 byte. Any red whose fault text is a large build log silently loses its healer pass; the fault should go via a file or stdin. ## Live box **No live-box access section was appended to this task**, so I diagnosed from the harvested logs alone. The gateway was still answering at harvest time — `logs/gateway-do-forensics.txt`: `tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did`, droplet `596380781` `status: active` — but with no access line given I did not attempt to reach either box. ## Other absences (non-causal) - `logs/droplet-journal.txt` named in the brief does not exist; this two-box drive harvested `logs/gateway-journal.txt` and `logs/device-journal.txt` instead. - `host.json` records `"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"` and every `logs/guest-*.log` reads `no SSH hostfwd in ... idss-guest.service — the guest was never created, so there is nothing to ask`. Expected for a rented-droplet drive; unrelated to the red. - `logs/helper.log` is full of `GLX is not present` / `Exiting GPU process` Electron noise — headless rendering, not the failure. drive `20260830T162742Z` red at `deploy-takeover`: `deploy failed (rescue): clan: config_eval on node-req-0003: the takeover's kexec installer image for node-req-0003 is STILL BUILDING after 20m0s — bounded and red LOUD (nothing erased) rather than b` evidence: `/home/swarm/swarm/Matou/idss/test-results/drive-device/20260830T162742Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 800a2936720b -->
Owner

Duplicate of the cold-store cause already fixed under #1037 + #1038 — closing so the standing drive re-fires.

Timeline that makes this red a ghost:

  • Drive 20260830T162742Z's supply leg ran at ~16:29Z and found the payload's installer-base-cache/ slot empty (best-effort seed skipped, by design), so deploy-takeover composed cold into the #1016 20-minute ceiling — the exact #1037 signature.
  • The warm cache finished staging into /home/swarm/swarm/rehearsal-payload/ at ~16:31Z (1,358 store paths + installer-base.toplevel marker, built from e765e18e — the flake pin is unchanged since, so the cache is current).
  • The durable wiring landed and closed as #1038 (ff2f04ea): assemble-payload.sh builds the base by default and rehearsal-cycle.sh stages/refreshes staleness-keyed on the marker vs nix eval …kexec-installer-base.outPath.

The next drive's supply leg does the first genuinely warm seed. If THAT run still builds from source at deploy-takeover, that's a new defect (marker/outPath mismatch or seed failure — now loud per cd56dbb8) and deserves a fresh ticket with the seed lines attached, not this one reopened.

Duplicate of the cold-store cause already fixed under #1037 + #1038 — closing so the standing drive re-fires. Timeline that makes this red a ghost: - Drive `20260830T162742Z`'s `supply` leg ran at ~16:29Z and found the payload's `installer-base-cache/` slot **empty** (best-effort seed skipped, by design), so `deploy-takeover` composed cold into the #1016 20-minute ceiling — the exact #1037 signature. - The warm cache finished staging into `/home/swarm/swarm/rehearsal-payload/` at ~16:31Z (1,358 store paths + `installer-base.toplevel` marker, built from `e765e18e` — the flake pin is unchanged since, so the cache is current). - The durable wiring landed and closed as #1038 (`ff2f04ea`): `assemble-payload.sh` builds the base by default and `rehearsal-cycle.sh` stages/refreshes staleness-keyed on the marker vs `nix eval …kexec-installer-base.outPath`. The next drive's `supply` leg does the first genuinely warm seed. If THAT run still builds from source at `deploy-takeover`, that's a new defect (marker/outPath mismatch or seed failure — now loud per `cd56dbb8`) and deserves a fresh ticket with the seed lines attached, not this one reopened.
ben closed this issue 2026-08-30 17:18:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1040
No description provided.