join: the published curl | sh -s -- doorway can't answer its own consent prompt #938
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#938
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?
What red'd
artifacts/verdict.json:Everything through leg 5 (
decline-resume) is green.joinis the only red, at 40 289 ms.This is NOT the known frontier
The brief names the KNOWN frontier as "pairing never flips — the own-VPS carrier issue named in legs.json's skip reasons." That is not this red.
artifacts/legs.jsoncarries no skip reasons at all ("skip": 0), and thepairleg is green:The drive got past pairing, past
deploy,activation,founded,mint,device-create,agent-installand the honesty legdecline-resume, and died on the real join. Fresh red; needs plugging.The failure
artifacts/join-transcript.txt, in full:The agent draws the mode prompt, prints its
>cursor, and in the same breath reports EOF on the read. Exit 1. The harness's leg-6 fail-fast branch (tests/e2e/journey.device.spec.ts:539, the branch #936 /a4dfba7added, source quoted verbatim inartifacts/journey.device-.../error-context.md:174) caught it:The controlled comparison that names the defect
This run contains the same consent walk driven two ways, six minutes apart, on the same box, through the same PTY helper and the same
fullInstallConsentAnswers()answer script.Leg 5
decline-resume— GREEN. It invokes the binary directly (spec lines 459-464):artifacts/decline-transcript.txtshows the keystrokes landing:Leg 6
join— RED. It runs the dashboard's published doorway byte-for-byte (artifacts/install-command.txt):The only variable between green and red is the
curl … | sh -s --wrapper. Under it the shell's stdin is the curl pipe, so the interactive join inherits fd 0 pointing at a pipe curl has already closed: the read returns EOF the instant the prompt is drawn — which is precisely the agent's own words,join: terminal closed before a mode was chosen. Nothing the harness types can reach it; the1and theWIPEgo to a stdin the agent is not reading.logs/device-journal.txtcorroborates the shape and rules out a slow-prompt / timeout story. Session 16 is the join PTY (12:11:20 → 12:11:59, ≈ the leg's 40 289 ms):The installer spends 12:11:21 → 12:11:56 laying down the agent and netbird, then hands off to the interactive join, which dies ~3 s later. Not a stall — an immediate EOF. Note also that the journal carries no
mode was chosen,did not reach PendingorHow should this machineline: the doorway's failure never reaches journald, so the PTY transcript is its only record. The gateway journal likewise shows no connection request in that window — the agent never got far enough to send one.Suspected layer
Product — the install doorway, not the harness. The string in
install-command.txtis what the dashboard hands a real community member to paste (logs/gateway-journal.txt:1728:install doorway wired: /get serves the pinned agent from the gateway's seeded cache (ADR 0054)). Any human pasting it gets the mode prompt and thenterminal closed before a mode was chosen, exit 1 — the doorway cannot answer its own consent question.The harness is behaving correctly. Leg 6 exists precisely to run the doorway verbatim, and #936's new
session.settled()fail-fast branch is what turned a silent 600 s stall into this legible transcript. Read against the spec comment at lines 524-530 (the oldpeek()read/var/log/idss-agent-enroll.log, a path nothing writes), this red is newly legible, not newly broken — the same defect very likely produced the previous run's frontier timeout.What plugging it needs
/get, reattach the controlling terminal before the interactive join —exec idss-agent join "$CODE" < /dev/tty(or0</dev/tty) — so the consent prompts read the terminal rather than the exhausted curl pipe.idss-agent joinfinds stdin is not a TTY, open/dev/ttyfor the consent prompts instead of reading fd 0; if/dev/ttycannot be opened (a genuinely non-interactive pipe), exit with an actionable message naming the fix, notterminal closed before a mode was chosen.sh -s --and asserts the mode choice is answerable, so this cannot reach the drive again.Cheap confirmation before coding — the device box was still up and answering at harvest (
logs/device-do-forensics.txt:tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did,status: active, ping 0% loss): fetch the script and look at the invocation, e.g.curl -sSf https://rehearsal-c.idss.nz/get | tail -30, and grep it for</dev/tty.What's absent
activeand reachable at 12:12:16Z perlogs/device-do-forensics.txt; I did not touch it, and I read nothing outside the run directory.logs/broker-journal.txtis an expected harvest failure:dev@100.98.48.68: Permission denied (publickey)… "a drive on an off-mesh host harvests nothing by design and the drive's verdict does not depend on it (#681)".artifacts/journey.jsonstops at 23 rows: legs 7 onward —approve,assess,select-files,deploy-takeover— never ran. This drive says nothing about them.logs/device-caddy.txtis-- No entries --,logs/device-units.txtshows an emptysystemctl --failed, and noidss-agentprocess survives inlogs/device-stall.txt— all correct for a box that never passed the consent prompt, and none of them evidence of a second fault.drive
20260828T111510Zred atjoin:the join one-liner exited 1 before reaching the waiting-on-operator frontier --- transcript --- Warning: Permanently added '170.64.151.24' (ED25519) to the list of known hosts. idss: fetching this comevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260828T111510Zon 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=13222
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #938 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
envelope
close-report for #938 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
/dev/ttyis sudo's inner pty fed by the dead curl pipe, the install is parked by SIGTTIN #2038