connect-dial-in: the S4d dial-in door never opens the enroll-relay forward #1629
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#1629
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 dies at its third leg,
connect-dial-in(S4d, the self-hosted "machine at your place" dial-in door). The box installs the agent fine, butidss-agent enroll <code>on the box cannot find the SSH-forwarded enroll relay socket, because the app never opened the forward.artifacts/legs.json— the only red, no skips:artifacts/verdict.json:"firstRedLeg": "connect-dial-in","legs": {"total": 3, "green": 2, "red": 1, "skip": 0}, commit6bfde109.This is not the KNOWN frontier.
legs.jsoncarries zero skip entries, so nothing in this drive's own skip reasons names an own-VPS carrier issue, and the red is two stages earlier than pairing — the box never got as far as redeeming, let alone flipping a pair. The frontier named in the brief is not what stopped this run.Evidence from the live box (134.199.174.116, still up; ssh answered)
The socket the agent dials was never bound, and the only thing in
/run/idssis the agent's own listener:So
/run/idsswas created byidss-agentitself at 13:45:03.551 — matching its journal,journalctl -u idss-agent:The agent then failed at 13:45:34.671 — 31 seconds later. The forwarder is documented to supervise with a 2s backoff (
internal/fleetwire/relay.go:Backoff … default 2s,ExitOnForwardFailure=yes), so a running supervisor would have produced ~15 SSH auth attempts in that window.journalctl -u sshover13:44:55 → 13:45:40shows no such cadence — only the harness's own sessions (13:44:57, 13:44:59, 13:45:04, 13:45:08, then a steady ~10s harvest poll at 13:45:19 / :30 / :41 / :53).sshd -Tconfirms the box would have allowed it (allowstreamlocalforwarding yes), and no bind error appears anywhere in the boot journal (journalctl -b -p warningis clean of ssh entries). The forward was never attempted.Helper end was up:
enroll-relay-serve.sockexists at the run-dir root (srw------- swarm swarm, Sep 19 13:44), i.e.IDSS_ENROLL_RELAY_SERVE_SOCKETwas served asapp/tests/e2e/fixtures/launch.ts:89,106intends.The defect (product)
internal/founding/connectcheck.go:225gates the forward on an address argument:But the app's S4d door never sends one.
app/src/components/founding/FoundingConnectDevice.vue:501:and the client (
app/src/lib/founding.ts:1630, 2096) is declaredofferDialIn(device?: string)and wires onlythis.call('offer-dial-in', { device })— whileinternal/founding/stdio.go:433-441decodes anAddressfield that is therefore always"". The self-hosted journey has no address surface at all to fill it from (s4AccessSelfHostedinapp/tests/e2e/fixtures/wizard.ts:547clicks the option and Continue — nothing typed).The other two
ensureRelaycall sites cannot cover S4d either:internal/founding/manualpath.go:167,244run at BeginStandup, andinternal/founding/selfhostedcarrier.go:107(ObservePairing) returns early unlessst.Step == StandupInstallMachine. Atconnect-dial-inno stand-up exists yet —logs/founding-state.logshows"founded": false, draft"step": "review", and nostandupkey at all (grep count 0). So the S4d dial-in door is the only hook, and it is the one that is gated shut.Note the box address itself was available the whole time:
app/helper/cmd/helper/wiring_prod.go:733wiresfounding.WithSelfHostedBoxAddress(os.Getenv("OC_E2E_DROPLET_IP")), whichlaunch.tspasses through via...process.env.ensureRelay(selfhostedcarrier.go:31) needs onlyrelayCarrier != nil && selfHostedBoxIP != ""— both true. Nothing was missing except the call.What plugging it needs
In
OfferDialIn, move the gate off "an address was typed" and onto "a box address is known": callo.ensureRelay(ctx)unconditionally, keepingensureRelayTo(ctx, address)for the case where the operator did supply one.ensureRelayalready no-ops honestly on an unwired carrier or emptyselfHostedBoxIP(ADR 0100 — no fake bridge), so this changes nothing on any non-drive path, and it matches ADR 0174's ruling that the wired box address is the provenance. Extendinternal/founding/connectcheck_test.go/selfhostedcarrier_test.gowith the case the drive just hit: self-hosted dial-in door opened at S4d with no address argument but a wired box address → the carrier'sOpenis called once.The alternative — threading the address through
offerDialIn— is a bigger ask and would need a design ruling, since self-hosted deliberately has no address field on S4d.What is absent from this run directory
Expected, given the drive died at leg 3 of ~15, but stated so the gaps are not read as signal:
logs/droplet-caddy.txtandlogs/droplet-keri.txtare-- No entries --/ "could not be found" (no gateway was ever built —ss -tlnpon the box shows only sshd:22 and systemd-resolved); everylogs/guest-*.logis a 129-byte stub andlogs/qemu.logrecords no qemu (this rail is a droplet, not a VM);logs/state-logs.logreports nostate/logsdir;logs/clan-config-snapshot.logsays "a drive that never built one".logs/broker-journal.txtfailed to harvest (dev@100.98.48.68: Permission denied (publickey)) — off the admin mesh by design, ADR 0208/#681, and the verdict does not depend on it.artifacts/journey.jsonwas written and agrees withlegs.jsonrow-for-row.drive
20260919T134346Zred atconnect-dial-in:the dial-in terminal join exited 1 --- transcript --- Warning: Permanently added '134.199.174.116' (ED25519) to the list of known hosts. time=2026-09-19T13:45:34.671Z level=ERROR msg="enroll did not cevidence:
/home/swarm/session-runner/idss/test-results/drive-idip/20260919T134346Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedTaking this by hand (Ben's session, 2026-09-19 14:30Z) — it blocks the debug IDIP drive for #1522/#1531 and no worker has claimed it in 35 minutes.
ready-for-agentdropped so the swarm does not double-land it. Fix as the ticket names it:OfferDialIncallsensureRelaywhenever a box address is wired, test-first.Fixed in
4091563e, as the ticket named it.OfferDialInnow callsensureRelaywhen no address is supplied, so the door opens the forward to the wired box address (WithSelfHostedBoxAddress); an unwired carrier or an empty address still opens nothing (ADR 0100), and a second offer opens no second forward.Red first:
TestSelfHostedRelay_DialInDoorOpensTheForwardWithNoAddressArgumentfailed0 opens, want 1before the change; its honest twin…OpensNothingWithoutAWiredBoxAddresspasses on both sides.go test ./internal/founding/... ./app/helper/...green,go vetclean. GOTCHAS #271 records the shape (a hook gated on an argument no caller sends).Live-unproven until the re-fire passes
connect-dial-in— that fire is starting now on elitebook-03 (debug, ADR 0221); I will note the result here.