supply: the 2.6GB vm-guest.tar cannot ride the executor uplink per-drive — bake it into the gateway snapshot (#1048 pattern), seed short-circuits on a sha marker #1191
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#1191
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
The drive never reached device-add. It died founding the standing rented community, on the
supplyleg — the fleet-software seed onto the rented gateway.verdict.jsonnames"firstRedLeg": "standing", butstandingis the umbrella leg and carries the identical fault text; the leg that actually went red issupply.It is not a hang. The gateway was healthy and the transfer was moving the whole time — it simply could not finish a ~392 MB payload inside a 420 s wall-clock budget.
Evidence
artifacts/legs.json— the two red rows, same fault, no skip rows anywhere in the file:artifacts/verdict.json:"legs": { "total": 9, "green": 7, "red": 2, "skip": 0 }— zero skips, so this red is not one this drive's own skip reasons name.The page at the moment of death (
artifacts/journey.device-.../error-context.md) — still on the first seed step, no fault frame rendered, the product never declared anything wrong:The box was fine.
logs/gateway-do-forensics.txt:And it was idle, not working —
logs/gateway-stall.txt, taken at 15:43:20, seven minutes into the seed:No nix process is running, no nix-daemon activity, no temproots — nothing is building. The one busy thing on the box is a single inbound SFTP stream from the drive host:
…and
logs/gateway-stall.txt's process list shows what is receiving it:1156 1155 Ss 4484 06:17 .../libexec/sftp-server, a plain SFTP subsystem alive for the whole leg.What landed is the smoking gun —
logs/gateway-journal.txt:2019-2024:A 392 MB
vm-guest.tar, still suffixed.staging(i.e. incomplete) with an mtime in the harvest minute. 395 MB received over 270 s ≈ 1.4 MB/s; the file was pushed from 15:37 and had not closed out by 15:43:20. The 420 s budget expired mid-upload.This drive has no VM guest to serve.
artifacts/host.json:logs/guest-failed-units.log:no SSH hostfwd in ~/.config/systemd/user/idss-guest.service — the guest was never created, so there is nothing to ask.logs/guest-journal.log:-- No entries --.So the payload the seed spent its entire budget pushing to a rented DigitalOcean gateway is the vm-mode guest image, on a run with no qemu and no guest.
Suspected layer — harness (the rehearsal rig's payload/budget contract)
HEAD is
eef024dc, two commits after4ff70f1b"rehearsal: the standing payload gets the vm-guest slot — stage-vm-guest-slot.sh, presence-keyed in the cycle" ande7dccf9d"the vm-mode payload gate never asked for vm-guest.tar". Presence-keying is exactly the shape that produces this:vm-guest.tarexists in/home/swarm/swarm/rehearsal-payload, so it is staged onto every target, vm-mode or not. The standing payload grew by ~392 MB; thesupplyleg's 420 s budget did not, and at WAN speed to syd1 that payload alone needs ≥ 4–5 minutes of the 7 available before the seed proper can start.Not product: the app rendered no fault frame and no
deploy-failed— it was faithfully copying bytes and would have finished. Not infra: the droplet was active, reachable, idle, 69 G free, onecreateaction and no DO-side power_cycle/resize (gateway-do-forensics.txt).What plugging it needs
stage-vm-guest-slot.shshould stagevm-guest.taronly when the drive is actually in vm-mode —host.jsonalready recordsqemu: ENOENTfor this executor. A rented-gateway device drive should never carry it.supplybudget past ~900 s, compress/dedupe the tar, or stage it from a syd1-local cache instead of from the operator's laptop.supplya liveness watchdog rather than a flat wall clock.waitForLegthrewbudget of 420s elapsed at "supply"with no— last activity:suffix (snap.detailwas empty) while 392 MB was demonstrably landing. A bytes-or-mtime progress check would tell "stalled" apart from "slow", and the 9% bar would stop lying about a transfer that was 100% underway.Absent / misleading evidence in this run dir
tcp/22: a FRESH connect succeeded— so a live look would have been possible had access been given.)logs/droplet-journal.txtunder that name. The droplet's journal islogs/gateway-journal.txt(4746 lines, present, and the source of the.staginglisting above).logs/device-*.txtfiles are not evidence about this run. All readssh: connect to host 170.64.159.106 port 22: Connection timed out, anddevice-do-forensics.txtconcludesno droplet at 170.64.159.106 in this account — it is already gone. The drive faulted atsupply, four legs before any device is created, so 170.64.159.106 is stale carry-over from a prior standing-rented run. The device harvester should no-op when no device leg ran, rather than emit five timeout files that read like a second failure.logs/helper.logis 0 bytes;logs/healer-claude.erris empty andhealer-claude.outis onlyAPI Error: 529 Overloaded— the in-run healer never got a turn, so there is no healer narrative for this red.logs/state-logs.log:ERROR: no state logs directory at .../test-results/standing-rented/state/logs.logs/broker-journal.txt:dev@100.98.48.68: Permission denied (publickey)— off-mesh, harvests nothing by design (ADR 0208, #681); the verdict does not depend on it.logs/gateway-units.txtshowscloud-final.service loaded failed, fromgateway-journal.txt:58—OSError: [Errno 30] Read-only file system: '/etc/udev/rules.d/70-persistent-net.rules', cloud-init trying to write udev rules on a read-only NixOS/etc. The agent came up regardless (idss-agent[706]: "join socket listening" ... path=/run/idss/agent.sock, 15:35:41), so this did not cause the red, but it is a standing image/cloud-init mismatch worth its own ticket.On the KNOWN frontier
The drive's stated known-red — pairing never flipping, the own-VPS carrier issue — is not what stopped this run, and
legs.jsonnames no skip reasons at all ("skip": 0). The journey died atsupply, well before any pairing or device work could be attempted, on a distinct and newly-introduced defect.drive
20260903T153215Zred atstanding:journey leg "supply" went red: budget of 420s elapsed at "supply"evidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260903T153215Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedRuled by session under ADR 0174 — veto anytime. The evidence here is first-rate; the load-bearing conclusion is inverted, and the remedy list needs a correction before a worker picks this up.
Correction 1 — the rented gateway DOES need the bundle (do NOT implement remedy 1)
This drive ran
rehearsal-target: device-vm(mode=vm end to end — the executor exports it, the carrier renteds-4vcpu-8gb, the kvm-probe ran). The topology: the VM guest is created ON THE MEMBER DEVICE from the bundle the device downloads FROM THE GATEWAY's/get?artifact=vm-guest(task 2 of #1153,install.GuestCacheSource). The gateway holding the bundle is the whole contract — the PREVIOUS drive (20260903T144614Z) redded atagent-installprecisely because the gateway had nothing to serve (#1186).host.json'sqemu: ENOENTdescribes the EXECUTOR's PATH (where no guest ever runs in a device drive) — it says nothing about the fleet. Keying the seed off "vm-mode only" is fine and harmless (a full-mode drive needn't carry it), but skipping it for THIS drive would re-introduce #1186's red verbatim.Correction 2 — the tar is 2.6 GB, not ~400 MB
The 392 MB
.stagingfile is the PARTIAL at budget death.$IDSS_PAYLOAD_DIR/vm-guest.taris 2,597,109,760 bytes (staged 15:26Z). At the observed ~1.4 MB/s the full push costs ~50 minutes PER RE-FOUND — so remedy 2's "raise the budget past 900s" cannot cover it either, and raising it to ~1h would be the #1113 inverse error (blessing a broken architecture with a wider tolerance).The fix (adopting remedy 2's last clause — "stage from a syd1-local cache" — via the repo's own pattern)
Bake it, exactly as #1048 baked the installer-base closure:
scripts/gateway-image/build.sh's DO build droplet builds the bundle itself (reusingscripts/stage-vm-guest-slot.sh— the one home of the member list; extendscripts/tests/vm-guest-slot-test.shto pin the build.sh call site) and stagesvm-guest.tarat the served path (/var/lib/idss/agent-cache/x86_64/vm-guest.tar) with a sha256 marker beside it. DO-local pipes; nothing big ever leaves the executor.seedGuestPayloadshort-circuits on the marker — the installer-base seed's no-op shape: remote marker sha == local tar sha → "baked, seed no-op"; absent or MISMATCHED → today's scp fallback (correct for hand-driven hosts). The check must CAN-FIRE: never "marker exists" alone — a stale bake must not masquerade as current.Remedy 3 (the liveness detail — "budget elapsed" with no last-activity while 392 MB demonstrably landed) and the device-harvester residue (five stale timeout files when no device leg ran) are both real and adopted — filed separately so this ticket stays single-purpose.
The healer never got a turn on this red (
healer-claude.out: API 529) — this ruling stands in for the narrative it would have written.supply: 420s budget dies mid-push of a 392 MB vm-guest.tar the rented gateway never needsto supply: the 2.6GB vm-guest.tar cannot ride the executor uplink per-drive — bake it into the gateway snapshot (#1048 pattern), seed short-circuits on a sha markerswarm-claim host=elitebook-distributed-server-03 run=17205
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1191 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
vm-guest.tarrather than being handed 263 MB of it at founding (ADR 0272) #1770