supply: the installer-base-cache seed is still mid-scp when the 600s leg budget expires #1049
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#1049
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
20260830T190217Z(targetdevice, commite54ad748) never reached the device-add journey at all. Itsstandingprecondition — re-founding the rented community the device would join — went red inside its ownsupplyleg, andstandinginherited that fault verbatim:artifacts/verdict.json:{"verdict":"red","firstRedLeg":"standing","legs":{"total":9,"green":7,"red":2,"skip":0}}. Seven legs green throughseed; the run ended19:03:42Z → 19:14:50Z.This is not the drive's known frontier. The known-red the brief names — pairing never flipping over the own-VPS carrier — is a
skip-reason frontier, and thislegs.jsoncarries no skip entries at all (skip: 0). The drive died before the device-add journey started, so nothing here reaches that frontier.The evidence: the leg was not wedged, it was mid-transfer
The supply leg was moving the whole time. It simply cannot fit its ceiling.
The gateway had one long-lived ssh session open from the drive host, still receiving at harvest:
279,336,282 bytes over 473 s of socket-busy time is ~590 KB/s, and
lastrcv:20means data was arriving 20 ms before the sample — the copy was live when the harness gave up.logs/gateway-stall.txtalso shows the sftp back end serving it (1117 1116 Ss ... sftp-server), i.e. anscp/SFTP bulk copy, not a build.Nothing was building on the gateway — so this is wire time, not compute:
What the bytes are: the tier-3 installer-base cache, staged and never landed:
There is no
installer-base-cachebeside it — the staging directory was never renamed to the landed path. Inside it, 877.narinfofiles (logs/gateway-journal.txt:2028-2904) arrived first, timestamped 19:06 → 19:10; then the nar bodies began landing at 19:10:~275 MB on disk — matching the 279 MB counted on the socket. And the single decisive line:
One 246 MB nar, mtime 19:15 while every other listed entry is 19:10–19:11: at the moment the budget expired the copy was still partway through a single quarter-gigabyte store path, and that one file accounts for ~90% of everything transferred.
The UI matched, with no detail to go on:
The failure string carries no
— last activity:suffix, sosnap.detailwas empty (waitForLeg, error-context.md:159-165). A multi-gigabyte copy sat behind one opaque stage row at 9% for the full 600 s.Corroborating, from the DO side (
logs/gateway-do-forensics.txt): inbound 1.09 / 0.85 / 1.22 / 3.26 Mbps across the 19:08–19:14 buckets; droplet596402475active, its only action a cleancreate, RTT 60 ms, 0% loss,tcp/22: a FRESH connect succeeded. No hypervisor event, no packet loss, no reboot — just a slow, healthy, long transfer.The device box was never touched, confirming the drive died in its precondition:
logs/device-do-forensics.txtshows droplet596402330(clan-lab-rehearsal-6aec9f31, stock Ubuntu 24.04) at ~0.0002 Mbps in every bucket;logs/device-units.txtsystemctl --failedis empty with only sshd and resolved listening;logs/founding-state.logstill reads"step": "created".Suspected layer — product, with the harness ceiling as the visible edge
The prior healer's record in this run directory (
logs/healer-claude.out) locates the copy in product code —Supply.seed→seedInstallerBase(internal/fleetwire/supply.go:268), whose stepscp -rs the payload's wholeinstaller-base-cache(supply.go:318) — measures that cache at 2,286,999,872 bytes, and reports that supply was green at ~62 s on the two preceding device drives (20260830T152228Z,20260830T162742Z) whose gateways carried noinstaller-base-cacheat all, the payload cache having been staged at 16:39 between them and this run. I could not re-verify those three claims: this session is sandboxed to the run directory and cannot readinternal/fleetwire/supply.go, the payload, or sibling run directories. They are consistent with everything I did verify from inside the run directory — 877 narinfos, ~275 MB delivered in ~5 minutes of nar transfer, one 246 MB path still in flight,.stagingnever renamed — and 2.2 GB at the measured 590 KB/s is ~65 minutes, so the direction of the finding does not depend on them.So: product ships a multi-gigabyte closure synchronously inside a bounded founding leg with no wall-clock bound of its own, so an optimisation that is contractually allowed to lose instead consumes the whole leg. Infra (a ~5 Mbit/s uplink to syd1) is the aggravating condition, not the defect — at 10× the wire rate this copy would have fitted. Harness owns only the 600 s ceiling that made it visible; widening it is not a fix, since 65 minutes does not fit the enclosing
standingceiling either.What plugging it needs
kexec-tarball/initrd/squashfs.imgintermediates (~1.47 GB of 2.2 GB, nested inside one another, two with emptyReferences) as candidates; that needs confirming against the compose derivation before anything is cut.idss-gateway-d49ece2b7e0c), so it is not paid per founding.9%and the fault carried nosnap.detail; a byte/path counter here would have made this readable without a paid drive.The supply ceiling should then be re-sized from a measured green drive, not widened to fit today's copy.
What is absent
tcp/22: a FRESH connect succeededin both forensics files), so a live probe of the in-flightscpand the staging directory's growth rate is still available to whoever picks this up.logs/droplet-journal.txt. This drive harvests two journals instead —logs/gateway-journal.txtandlogs/device-journal.txt.logs/state-logs.logrecordsENOENT ... test-results/standing-rented/state/logs, so the seed had to be reconstructed entirely from the droplet side.logs/helper.logholds only Electron GPU/GLX noise.logs/broker-journal.txtrecordsPermission denied (publickey)fordev@100.98.48.68, expected off-mesh (ADR 0208, #681) and not load-bearing here.logs/gateway-units.txtshowscloud-final.servicefailed on the gateway; unrelated to this fault and not investigated.drive
20260830T190217Zred atsupply:journey leg "supply" went red: budget of 600s elapsed at "supply"evidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260830T190217Zon 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=14729
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Ruling. Land item 1 (bound the Tier-3 installer-base seed with its own wall-clock deadline) as the backstop this drive needs, defaulting to 300s (half the 600s supply ceiling), tunable via a new
WithSeedTimeoutoption. Items 2 (shrink what's staged — an ADR 0133 tier-3 design ruling) and 3 (bake the closure into the gateway image) are not taken here — they need a design ruling / release-pipeline change beyond this slice.Why it's a two-way door. The bound only enforces a contract ADR 0133 already states: the seed is an optimisation ("every failure degrades to today's behaviour"; "an optimisation that did not fire is not a fact being fabricated"). A timed-out copy is the exact analogue of the already-handled "refused import" — the takeover builds the base from source, backstopped by the #1016 ceiling. Nothing widens; a later commit can re-tune or remove the bound. Not on the one-way-door list (no credential, no security widening, no trust surface, no data destruction, no spend).
What proves it. New offline seam test
TestSupplySeed_InstallerBaseCopyBoundedBySeedDeadline(ablockingRunnerthat never finishes the cache scp) asserts the seed returns nil (never reds supply), the post-copyland/nix copysteps never run, the WARN names the deadline, and the whole seed honours its bound. The four existing installer-base seed tests still green.Note carried forward (issue items 2–4). This bound on its own will silently degrade the seed to from-source on any drive whose wire can't fit the current ~2.2 GB closure inside 300s — that is the documented behaviour, but the real cost lives in shrinking/baking the closure (items 2/3) and in surfacing the copy's byte/path progress (item 4, a harness-side counter). The 300s default is a backstop, not a sizing; re-size it from a measured green drive, per the brief.
close-report for #1049 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
supply#1048supply#1048