drive-device deploy-takeover reds on a proof that cannot exist — journalctl -b on the box the takeover just erased #1110
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1110
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
20260901T064809Z(targetdevice) red at legdeploy-takeoverafter 948s:The erase did run. The assertion that judged it is unsatisfiable by construction.
The defective assertion
app/tests/e2e/journey.device.spec.ts:737-748relays, to the taken-over device via the gateway:and reds when the count is
< 1(line 744-748).-bscopes to the current boot. The current boot of a taken-over device is the post-reboot NixOS system, on a diskdiskorepartitioned minutes earlier. Two independent reasons it can never carry the word:kexec,disko,install,reboot—internal/clan/clan.go:678-682) run inside the kexec installer, whose journal lives in RAM and dies at the reboot; the pre-kexec journal lived on the root filesystem disko then erased.Evidence from this run's harvest (
logs/device-journal.txt, 163 KB):grep -c "Linux version"= 1;grep -c "^Sep 01 07:"= 0; every line isSep 01 08:03:40or later.grep -ci takeover= 0;grep -ciE "kexec|disko"= 0.The takeover in fact landed
logs/device-do-forensics.txt— droplet596832228was rented from image24.04 (LTS) x64.logs/device-journal.txt:2— it now bootsinit=/nix/store/c82q0vs84sgbk7j2d8sqbxhnzm1iq9bc-nixos-system-node-req-0003-26.11.20260612.173d0ad/init, hostnamenode-req-0003: the clan node's own system, which an un-erased Ubuntu box cannot boot.waitForDeviceNixOS(journey.device.spec.ts:733), so/etc/NIXOSwas genuinely present before line 737 ran.logs/gateway-journal.txt08:00:26Z— the control plane's own takeover record fornode-req-0003(the #1013 kexec-phase reap, then the #1068 re-point; the box booted NixOS at08:03:40).logs/gateway-journal.txt08:05:22Z—service health probe … service=files node=node-req-0003 attempt=1 verdict=healthy.Every other leg was green (26/27,
artifacts/legs.json).Suspected layer
Drive/test assertion only. No product defect is visible on this path — the deploy, the takeover, the join, the seed and the files placement all completed. The leg burned 15.8 minutes of a paid drive to red on a check that could not pass.
What plugging it needs
Decide where the takeover's proof actually lives, then make the replacement red-first provable — otherwise it becomes another assertion that cannot fail (ADR 0100).
internal/provision/deploy.go:60definesStepTakeover = "takeover", anddashboard/src/components/provisioning/DeployScreen.vue:42-52renders every step in the LOGGED drill-in ([data-field="deploy-log-drillin"]) as[data-field="<step.id>"][data-status="<status>"]. Asserting[data-field="takeover"]reacheddata-status="done"reads the authoritative record, needs no SSH, and reds honestly when the takeover is skipped or fails. Must be checked first: whetherDeployScreenis still mounted once P4-S5[data-field="active"]is visible (waitForDeployActive,app/tests/e2e/fixtures/provision.ts:280). If it is not, read the row before/while waiting for active, or take the same fact off the fleet wire the wait already probes (GET <portalAddress>/api/v1/fleet).tune2fs -l $(findmnt -no SOURCE /)— first confirme2fsprogsis on the installed system's PATH over the relay), or the disko partition layout against the stock DO Ubuntu one (this box mounts/from/dev/vda3,logs/device-stall.txt)./proc/cmdlinenamingnixos-system-node-req-<id>. This run's box shows exactly that, and it is strictly stronger than the/etc/NIXOSalready asserted at line 733 — it proves the box runs this clan node's system. It does not, on its own, prove erasure.Related — the same misconception, mirrored, in the rented drive
app/tests/e2e/fixtures/rentedPrefix.ts:459-471is the negative twin: the VMModedeployleg assertsjournalctl -b --no-pager | grep -c -E "kexec|disko"equals"0"to prove no takeover ran. On the current boot of any box that has not rebooted since its phases, that count is0whether or not a takeover ran — so that check can never fail either. Worth fixing in the same pass, from the same root cause.drive
20260901T064809Zred atdeploy-takeover:the device journal carries no takeover phases — the erase did not run on the boxevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260901T064809Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=elitebook-distributed-server-03 run=15727
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1110 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
envelope
close-report for #1110 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope