pre-legs: drive host holds no SSH private key — every droplet dial is publickey-denied #1422
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#1422
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
20260912T053407Z(--target droplet) went red atpre-legs— before the journey opened. The droplet was rented fine; nothing on the drive host could then log into it. Every dial answeredPermission denied (publickey), and the drive died insideoc_droplet_create's SSH-banner wait. So there is noartifacts/verdict.json, noartifacts/journey.json, no playwright report, andstate/is empty.This is NOT the known pairing frontier.
legs.jsoncarries no skip reasons at all — only the reporter's synthesized fallback marker. The own-VPS carrier issue sits downstream of a leg this drive never reached, so it cannot be what is red here.The live box refused me too — and not because it is dark.
ssh root@170.64.176.63 'systemctl --failed'→Permission denied (publickey).This is not #414's no-sshd hardening: a fresh TCP connect to170.64.176.63:22succeeds right now and sshd answers asOpenSSH_9.6p1 Ubuntu-3ubuntu13.16. The refusal is authentication, not absence. Everything below is therefore from the harvested logs plus checks on the drive host itself.The evidence
The only leg record is the fallback string — it names nothing:
The box was never dark.
logs/droplet-do-forensics.txt:One
createaction and nothing else — no power-cycle, no resize, no migration. DO's own side is clean.Every droplet-side harvest got the same single line.
logs/droplet-journal.txt, and identicallydroplet-units.txt,droplet-caddy.txt,droplet-keri.txt,droplet-stall.txt:Root cause, verified on the drive host just now: there is no private key to offer.
ssh -vshows every candidate identity missing and the client running out of methods before it ever authenticates:~/.sshholds onlyauthorized_keys,known_hosts,known_hosts.old— no private key, noconfig.find /home/swarm -name 'id_*' -o -name '*.pem'returns nothing, andSSH_AUTH_SOCKis unset, so there is no agent either. The droplet path mints no per-run identity (that belongs to the rented path) — it relies entirely on the operator's ambient key being authorised into root byclan-lab create. This host has the private half of none of them, so no droplet drive on this host can reach its own box: wizard, takeover, evidence harvest and cert harvest all dial the same way and all fail the same way.Suspected layer
Infra / host credential state, outside this checkout. The operator SSH identity is missing on the drive host. Two real harness defects sit beside it and made this red near-illegible, but neither caused it — both verified live against HEAD
b983114e:scripts/lib/rehearsal-droplet.sh:545-547— the banner probe swallows ssh's stderr, so the cause is discarded and the ceiling misattributes it:The box did present its banner and did answer — flatly contradicted by the run's own
tcp/22: a FRESH connect succeeded. An auth refusal is an identity fault; it will never clear by waiting, so burning the 300s ceiling on it is wrong. The sibling member-device wait at:1575-1578has the identical swallow..sandcastle/rehearsal-report.sh:543— the pre-legs synthesis greps the log tail forError|error|FAIL|timed out. Replayed against this run's logs it matches nothing (grepexit 1), which is whylegs.jsongot the useless fallback even though all fivedroplet-*.txtfiles held the cause verbatim.Permission deniedis outside the pattern.A healer ran on this drive and claims a fix for (1) in commit
5057a6ea. That commit does not exist in this checkout (git cat-file -t→could not get object info; HEAD is4c79ddcd..b983114e) and:546still reads2>/dev/null. Treat (1) as live. That healer also could not finish —logs/healer-claude.outshows Claude auth refused on this same host, the same class of missing host credential, so one fix may clear both.What plugging it needs
scripts/changes for this; secrets and infra state are not agent-fixable.2>&1 >/dev/null), classifyPermission denied (publickey)as an identity fault that fails fast instead of waiting out the ceiling, and carry ssh's line verbatim into the die message. Widen therehearsal-report.sh:543pattern (add[Pp]ermission denied, case-insensitivefail) so a pre-legs red keys on its real cause.599832331/clan-lab-rehearsal-970590aa(syd1,s-2vcpu-4gb) was deliberately kept on red and is still up and billing — nodestroyin the action list. Confirm the hourlyscripts/clan-lab-reap.shtakes it.What's absent
artifacts/verdict.json,artifacts/journey.json, any playwright report, and all droplet-side content — the fivedroplet-*.txtfiles exist but hold only the refusal line.state/is empty. Present and useful:legs.json(marker only),droplet-do-forensics.txt,healer-claude.out,claude-env.txt.drive
20260912T053407Zred atpre-legs:red before legs.json was writtenevidence:
/home/swarm/session-runner/idss/test-results/drive-droplet/20260912T053407Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedSession ruling under ADR 0174 — veto anytime. Worked as one
ready-for-sessionticket on matou-workstation.What landed (two-way, product-owned) — commit
75ef28eeThe drive's near-illegibility is fixed at the source. The banner wait now tells an auth refusal apart from a boot race:
oc_ssh_banner_wait <ip> <timeout> <what>inscripts/lib/rehearsal-droplet.sh, used by BOTH the droplet (:545) and member-device (:1575) banner waits. It keeps ssh's stderr (out="$(ssh … 2>&1 >/dev/null)", never the old2>/dev/nullswallow), and onPermission deniedfails fast on the first probe — carrying ssh's own line into thedie_hostmessage as an IDENTITY fault, with the remedy (place the operator's key on the drive host / ssh-agent, then re-drive) — instead of retrying the 300s ceiling and then mislabelling it "never presented its banner". Only connect-refused / timed-out waits out the ceiling.scripts/tests/droplet-banner-wait-test.sh— an auth refusal dies on the FIRST probe (never the ceiling) carrying ssh's line + "identity fault" and never "never presented its banner"; a connection-refused with a 0s ceiling still times out with the banner message; a slow-booting box that answers on the 2nd probe succeeds. Reverting the lib made the suite red (function undefined + the fast-fail assertion); restoring it greens. Adjacentdroplet-evidence-order,device-evidence-order,rehearsal-{device,rented,vm-mode}-targetsuites all green;bash -nclean. GOTCHAS #228 records the hazard.Reporter-side half → follow-up #1426 (not landed here)
The other agent-actionable item — widening the reporter's pre-legs synthesis grep so
Permission deniedkeys the leg on its real cause — lives in.sandcastle/rehearsal-report.sh, aMatou/dev-factory-vendored file. The pre-push drift gate refuses a direct edit; it must land upstream + be re-vendored, and the factory has drifted several unrelated commits ahead of the pin, so I kept it out of this commit and filed #1426 with the exact patch + done-when. Ruled by agent under ADR 0174 — veto anytime.Housekeeping — confirmed, no action needed
The kept-red droplet
599832331/clan-lab-rehearsal-970590aa(syd1, s-2vcpu-4gb) is stillactive, but it carries the standardclan-lab-expires-1789212858tag — expiry 2026-09-12 11:34:18Z. The proven hourly reaper (scripts/clan-lab-reap.sh, cron17 * * * *, 10/10 tests) takes it at 12:17Z. Per the codebase's own rule ("a wedged drive dies by reap, never by hand"), I did not hand-destroy it. No leak.Why human
The RED itself is a one-way door (ADR 0174 §3 — personal credentials / infra state), so this ticket is being relabelled
ready-for-human, not closed:Confirmed live during this session:
doctl compute droplet get 599832331succeeds (DO token IS present on the host), butssh root@170.64.176.63is stillPermission denied (publickey)and a fresh TCP connect to:22answers asOpenSSH_9.6p1— i.e. the box is up; only the SSH identity is missing.Advances #1422.
Session check 2026-09-14 (Ben's sitting) — the host attribution in this ticket is wrong, and the key is NOT missing on either swarm host.
Verified from the laptop, read-only:
matou-workstation(dev@134.199.154.244) has noswarmuser at all (sudo: unknown user swarm); its runner isdev, whose~/.ssh/id_ed25519(MD56a:22:c4:db:…) is registered on the DO account asmatou-workstation(id 58380188). Its sandcastle container runs asagentwith no.ssh— a session that ranfind /home/swarm …from inside it would find nothing because the directory does not exist there.elitebook-03(swarm@100.98.240.186) — the host that actually holds/home/swarm/session-runner/idss— has~/.ssh/id_ed25519since 2026-08-22 (MD537:61:c4:51:…), registered aselitebook-03(id 58688162). Its droplet drives dial fine:20260912T045221Z26/27 green,20260912T144514Z20/21,20260912T160919Z19/20 (reds elsewhere —config_eval … the node was excluded, and the co-host leg's fleet-row click, being fixed now).bens-mac-04(mac-local), is off the network right now (no route), so it could not be checked — if drive20260912T053407Zran there, that is where aswarmuser with no key would be.So the human step is: on
bens-mac-04, as the user that runs its session-runner,ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ed25519 && doctl compute ssh-key import bens-mac-04 --public-key-file ~/.ssh/id_ed25519.pub— IF that host drove20260912T053407Z. The drive's run dir is not on the workstation or elitebook (find … -name '*20260912T053407Z*'empty on both). Leavingready-for-humanuntil the mac is reachable and its run dir confirms it.Closed 2026-10-21 (Ben's stale sweep): Ben's 2026-09-14 session check found the premise wrong — the host attribution was mistaken and the SSH key is present and registered on both swarm hosts; droplet drives dial fine.