deploy-takeover: kexec installer built from source on gateway, SIGKILLed at 20m bound #1037
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#1037
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?
What failed
artifacts/verdict.json— 27 legs, 26 green, 1 red, 0 skips:The journey ran the whole member-device arc —
device-create,agent-install,decline-resume,join,approve,assess,select-filesall green — and died on the last leg,deploy-takeover, after 1 303 464 ms (21m43s).This is not the KNOWN frontier. The brief names pairing-never-flips (the own-VPS carrier issue) as the standing red. In this drive
pairis green ({"leg":"pair","status":"green","ms":130}) andlegs.jsoncarries no skip reasons at all — no leg in this run declares anything out of scope. The frontier has moved one leg past pairing, to the takeover deploy.The evidence
artifacts/legs.json/artifacts/journey.json(.fault), and the same string inlogs/gateway-journal.txt:1990:The build log carried in that error shows the gateway store was cold for the installer closure:
and was fetching a fresh static toolchain + kernel from upstream to do it:
That is a full compose from source — exactly the shape ADR 0133 Tier 3 was amended to prevent. The verdict's own
commitise765e18, whose message reads "the payload carries the kexec-installer-base closure and founding seeds it into the GATEWAY's store, so the member-device takeover's on-box installer compose runs warm". The drive ran that commit and the compose was still cold.Corroborating:
logs/founding-state.logrecords every founding stage and contains no installer-base seeding step. Its only closure transfer is the gateway system itself —— and greps for
installer-base,kexec,0133,1036,substituter,warmacrossfounding-state.log,gateway-journal.txtandbroker-journal.txtreturn nothing but an unrelated resolver line. The seed either never ran or never logged.A second hazard, visible in the same build log, would defeat the seed even once it does run — the generated on-box flake has no lockfile, so its nixpkgs is resolved fresh at eval time:
Every input is Added, i.e. resolved from scratch. A carried closure built against any other revs would hash to different store paths and be silently ignored — the store would be "warm" and the compose would still rebuild 303 derivations.
Exit 137 is the bound, not an OOM
logs/gateway-journal.txthas nooom-kill, noKilled process, and nosystemd-oomdkill — only the startup notesystemd-oomd[2319]: No swap; memory pressure usage will be degraded(line 854).logs/gateway-stall.txtat 16:02:13 shows the box healthy with the build already gone:Mem: 3921 total / 3316 free,load average: 2.74, 5.14, 3.61, disk8.9G/78G, and no nix build or nix-daemon process left in the process dump. So the 137 is the product's own 20m SIGKILL firing as designed. The bound behaved correctly; what it bounded is the defect.The target box is untouched, as the "nothing erased" promise says:
logs/device-units.txtshowsnode-req-0003still the stock Ubuntu droplet —LISTEN 0 4096 0.0.0.0:22 users:(("sshd",pid=1082,fd=3)), no NixOS units,systemctl --failedempty — andlogs/device-stall.txtshows/dev/vda1 77G 2.0G 75G 3% /with an empty=== nix-daemon journal ===section. Nothing was half-taken-over.Suspected layer
Product, at the gateway control plane's takeover path. Not infra: the gateway reached
cache.nixos.orgfine, had 65 GB free and 3.3 GB RAM available, and no unit failed. Not harness: the drive drove all 27 legs, captured the fault, and the 20m bound is the product's own guard. The defect is that the ADR 0133 Tier 3 warm-store guarantee is not in force at the commit that claims it.What plugging it needs
founding-state.loghas no stage for it. Either the seeding step is not wired into the founding sequence the rehearsal exercises, or it runs unlogged — which for a step whose whole job is to prevent a 20-minute silent build is itself the bug. It needs a stage row naming the store path it copied and its size.flake.lock(or--override-input) into/tmp/idss-installer-<node>-*fixingnixos-imagesand both nixpkgs to the exact revs the carriedkexec-installer-basewas built from. Without this the seed is a coin-flip against whatevernixos-26.05andnixpkgs-unstableresolve to on the day.Absent / not consulted
artifacts/droplet-ip.txt→168.144.172.10, gateway; device at209.38.16.24), so a live check of the gateway's/nix/storefor the seeded base would settle finding (1) outright and is the first thing to do if a box is still reachable.logs/droplet-journal.txtdoes not exist. This drive splits it intologs/gateway-journal.txt(492 KB) andlogs/device-journal.txt(171 KB); both were read.logs/healer-claude.errshows the auto-healer never ran for this red:/home/swarm/swarm/Matou/idss/.sandcastle/rehearsal-report.sh: line 257: /usr/bin/timeout: Argument list too long. The fault string is ~146 KB (the entire nix build log) and the report script passes it as an argv. That is a separate harness defect worth its own ticket: it silences the healer on precisely the failure class that produces large build logs.reporter-claude.erris empty andhealer-claude.outis 1 byte.drive
20260830T152228Zred atdeploy-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 bevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260830T152228Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=matou-dev-server-01 run=14623
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1037 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope