image-boot: a timed-out SSH dial escapes waitForSSHCommand's retry loop on attempt one #930
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.
Dependencies
No dependencies set.
Reference
Matou/idss#930
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?
No live box was offered
No live-box section was appended to this task, so there is no access line and no read-only limit to obey — I dialed nothing. Everything below is read from the harvested run directory alone. Both droplets are recorded
activeat harvest time, so the boxes were very likely still up; I did not ask them.This is not the KNOWN frontier
The pairing/own-VPS-carrier frontier is not what red this run, and this drive's own records name no skip reason at all — there are no skips to name one:
artifacts/verdict.jsonartifacts/legs.jsoncarries five records and not one"status": "skip". The frontier was never reached:artifacts/journey.jsonis— no founding rows, no fault. The drive died upstream of the pair step. This is an earlier, different red.
The failing leg is image-boot, not standing
verdict.jsonnames"firstRedLeg": "standing", butstandingis the umbrella leg for the whole spec (journey.device.spec.ts:272, "drives the #183 device-add journey on the standing rented community") and it carries the inner leg's error verbatim. The arithmetic inlegs.jsonproves the nesting — the inner legs sum to the umbrella:So the leg that actually broke is
image-boot:The app was not the thing failing. The page snapshot in
error-context.mdat the instant of the throw shows it mid-step, not errored:The defect
Playwright embedded the fixture source as it stood at drive time (
error-context.md, "Test source").waitForSSHCommandexists precisely to absorb a not-yet-reachable fresh box — its own comment cites GOTCHAS #2 and #691, "a fresh boot can still refuse the very first connection for several seconds after the rent API call returns" — but it awaits the dial with no catch:The two dial outcomes are asymmetric. A refused dial reaches the close handler and resolves 255, so the loop retries it:
A timed-out dial takes the SIGKILL path and rejects, escaping the loop. The caret in
error-context.mdpoints at exactly that line:The leg's own clock is the proof that it never made a second attempt: 10129 ms — one 10000 ms
perAttemptMsplus spawn overhead.And a later attempt would have gotten an answer. The gateway was ~1 second old when probed (
logs/gateway-do-forensics.txt):DO finished creating at 06:37:20;
image-bootran ~06:37:21 → ~06:37:31 (verdict.jsonendedAtis06:37:31.326Z) and killed its only dial. Fourteen seconds later the box answered:Corroborating that sshd came up inside that gap: the gateway evidence harvest at the same moment got an authentication refusal, not a transport one —
root@134.199.165.253: Permission denied (publickey,keyboard-interactive)ingateway-journal.txt. Only a listening, running sshd emits that. The 10 s hang was the pre-sshd window (SYNs dropped, so the dial blocks rather than failing fast), and it closed seconds after the harness gave up.Suspected layer
Harness, and only the harness —
app/tests/e2e/fixtures/droplet.ts. Not product (the app was at 2% of "Connect to the rented server over SSH", still working, andfounding-state.logshows a coherent draft through"step": "created"). Not infra (the gateway was created on schedule, 34 s, and answered).What plugging it needs
Confirm the in-run heal landed.
logs/healer-claude.outrecords"action":"healed", commit2e038b6e85d25a90060e1b267db4c76406a34ef4, teaching the loop to catch a rejected dial and retry to the budget, rethrow on a never-reachable box, and raise the #885 missing-identity refusal up front so the new catch cannot swallow it (+3 seam tests;vitest run tests/e2e/fixtures/droplet.test.ts17 pass, and 1 fails with this drive's exact message when the fix is stashed). The drive ran atf618a6ce. I could not verify that commit is onmain— the check was not permitted in this session. If it is onmain, this red needs no further product or harness code; if it is not, land it.Plug the evidence gap this red exposed (independently actionable, and the healer's own filed residual). All four gateway-side captures are one line —
— in
gateway-journal.txt,gateway-units.txt,gateway-stall.txt,gateway-caddy.txt, while the same verb against the device box harvested 133 KB ofdevice-journal.txtplusdevice-stall.txtanddevice-units.txt. The parenthetical is falsified by the run's own forensics (tcp/22 answered a fresh connect at 06:37:34). The shell harvest inscripts/lib/rehearsal-droplet.shdials with no-i, riding the executor's ambient key, which a broker-rented gateway can never accept — it trusts only the app's rent-operator key (#885, GOTCHAS #101;#744scrubbed the golden snapshot'sauthorized_keysset that used to make the ambient fallback work by accident). Thread a per-box identity throughoc_droplet_evidence, derived fromOC_STANDING_DIR(never re-spelled — see healer5c8f4c6e) and loud when the key is absent rather than silently ambient, mirroringidentityArgsatdroplet.ts:36-46. Without it, this red had to be inferred from timestamps instead of read off the box.Absent from this run (explained, not defects)
logs/droplet-journal.txtdoes not exist. On a device-target drive that capture is split into thegateway-*/device-*labelled files present here.state/in the run dir is empty — the drive red before any deploy, so no clan-config flake was captured.logs/state-logs.logseparately recordsENOENT ... test-results/standing-rented/state/logs.logs/broker-journal.txtis an off-meshdev@100.98.48.68: Permission denied (publickey)— by design on this executor, and the verdict does not depend on it (ADR 0208, #681).logs/guest-*.logandlogs/qemu.logare empty by construction.artifacts/host.jsonshowsqemu: exit ENOENT: spawn qemu-system-x86_64 ENOENT, andguest-failed-units.logsays "the guest was never created, so there is nothing to ask". This drive used real droplets, not a guest VM.logs/helper.logis only Electron GLX/EGL noise on a headless host — not load-bearing.drive
20260828T063513Zred atimage-boot:ssh root@134.199.165.253 timed out after 10000ms: systemctl is-active idss-agentevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260828T063513Zon 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=13097
(automated multi-host claim — lowest live claim id works this ticket)
Closing as a duplicate of #929, in #929's favour (ADR 0174 — veto anytime).
Same drive
20260828T063513Z, same defect (a timed-out first SSH dial escapingwaitForSSHCommand's retry loop). The signatures differ only becausestandingwraps the inner leg:25304f657c24is the wrapper,a25a6c0aae50isimage-bootitself. #929 was filed first and carries the same diagnosis and the #691 / DDR 0192 lineage.This is the FIFTH wrapped-leg duplicate pair today — #885/#886, #904/#905, #921/#922, #923/#924, and now #929/#930. Each one costs a worker slot, a blocker edge and a manual close. The cause is constant: a red inside a wrapped leg is filed once per leg key, so
standingand the leg it wraps each mint a ticket for one fault.This is distinct from the exit-3 phantom #918 fixed and from #919's reproducibility guard — it needs its own dedupe, keying on the INNER leg rather than the wrapper (or matching an open ticket carrying the same drive stamp before filing a second). Recording it here rather than filing a sixth ticket overnight; worth arming when someone picks up the reporter work.
close-report for #930 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope