agent-install (device-vm): nothing fills the executor payload's vm-guest.tar slot — a VM-mode device drive cannot pass the leg #1186
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.
Blocks
Reference
Matou/idss#1186
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?
The failure
Drive
20260903T144614Z(--target device-vm, sigf719667ae384) drove 21 green legs on a rented droplet and redded atagent-install:Evidence
The gateway was right to 503. The chain, in order:
app/tests/e2e/journey.device.spec.ts:579-595— vm mode HEADs the doorway (guestPayloadProbeCommand,app/tests/e2e/fixtures/deviceAdd.ts:574-576) and reds on any non-200. Correct as written.internal/controlapi/install_doorway.go:133-136—serveGuestPayload503svm_guest_unavailablewhen the source errors (a nil source would 404, so the route IS wired; the fetch failed).internal/install/guestcache.go:58-61— the source opens<agent-cache>/x86_64/vm-guest.tar. That file is not on the gateway.internal/fleetwire/supply.go:334-339—seedGuestPayloadreturns early, logging, when$IDSS_PAYLOAD_DIR/vm-guest.taris absent. Best-effort by design (the installer-base pattern), so thesupplyleg stayed green.artifacts/host.jsonnamespayloadMode: /home/swarm/swarm/rehearsal-payload. Its contents areagent,control-plane,idss-idp,dashboard/,installer-base-cache/,installer-base.toplevel— novm-guest.tar, nonixos-guest.qcow2, no QEMU dist, noPAYLOAD.txt. It was hand-assembled for the droplet/rented/device-full targets and has never carried a VM slot.scripts/rehearsal-cycle.sh:288-329(stage_and_preflight) refreshes control-plane, idss-idp, agent, dashboard, keri-web and the installer-base cache before every drive. It never stages the vm-guest slot.(Operator-side fleetwire logging is absent from the run dir —
logs/helper.logis 0 bytes — but the payload directory is direct evidence, and its mtimes (14:46-14:47, drive fired 14:46:14) confirm it is the payload this drive staged.)Suspected layer
Executor payload staging.
scripts/assemble-payload.sh:263-301already builds thevm-guest.tarslot correctly (it tarsnixos-guest.qcow2+ the relocatable QEMU dist when both are staged, else records PENDING). Task 2 of #1153 landed everywhere it needed to — seed, doorway, cache source. What is missing is the step that puts those two inputs on the executor host and keeps the tar fresh.What to do
Mirror the existing best-effort, staleness-keyed pattern (
installer_base_refresh_cache,scripts/lib/installer-base-staleness-lib.sh, called atrehearsal-cycle.sh:328):scripts/lib/vm-guest-staleness-lib.shthat builds.#packages.x86_64-linux.pinned-qemu(scripts/build-qemu-payload.sh) and.#packages.x86_64-linux.guest-image(scripts/build-guest-image.sh), stages both into$IDSS_PAYLOAD_DIR, and tars thevm_guest_memberslist fromassemble-payload.sh:281into$IDSS_PAYLOAD_DIR/vm-guest.tar— keyed so a current slot is a no-op.stage_and_preflight, for the device target only (adroplet/rented/idipdrive must not grow the cost).Until then the drive parks free at second 0: this heal's gate (
scripts/smoke-private-path.sh, commit2eca397f) refuses a vm-mode device drive whose payload has novm-guest.tar, anddocs/operator-app/rehearsal-drive.mdrecords the manual per-host fill as the interim remedy. A vm-mode device drive cannot reach a greenagent-installuntil the slot is filled — the drive should stay blocked on this issue.Advances #1153 (task 2 / task 9).
drive
20260903T144614Zred atagent-install:the community gateway serves no device VM-guest bundle (/get?artifact=vm-guest exited 22) — a VM-mode Create would fail loud for want of a staged guest image (Task 2 of #1153, ADR 0100): Warning: Peevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260903T144614Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedFilled and staged — closing; the drive re-fires on this close.
Three landings close the residual:
4ff70f1b—scripts/stage-vm-guest-slot.sh+ presence-keyed cycle hook: the standing payload's slot is now the cycle's business (5-check offline suite incl. the member-list drift pin against assemble-payload.sh).eef024dc— staging surfaced that #1159's guest config wroteservices.netbird.clientsagainst the flake's nixos-24.11 pin (option absent — the image stopped EVALUATING; the eval gate's scope never covered nix/guest). The image now speaks the pin'stunnels."wt0"dialect withstateDir netbird-mesh+ anetbird-meshCLI shim, so the land-time join's state/socket/CLI are byte-identical to the deployedclientsdialect and the login survives the firstmachines update.e7dccf9dsecond-0 gate stands as the backstop should the stage ever fail.Staged evidence (elitebook-03, 15:26Z):
vm-guest.tar2,597,109,760 bytes in$IDSS_PAYLOAD_DIR; the built guest toplevel drv4hpbydmh…-nixos-system-idss-guestis byte-identical to the drvPath the fixed config evaluates to (probed against the pin before building). Standing home wiped, so the re-drive RE-FOUNDS andsupplycarries the slot — an adopt would have kept serving the slotless cache.Follow-up (will file): the guest flake output joins the eval gate's offline scope, so a dialect break like #1159's reds free next time.