enroll-configure: own-VPS droplet never came back over SSH after reboot (known frontier) #412
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#412
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 went red
journey.droplet.spec.ts:113— droplet journey — the #183 rehearsal drive — failed theenroll-configureleg:The UI's own fault frame (page snapshot + screenshot,
test-failed-1.png) shows the real reason underneath that generic timeout:state/founding-state.jsoncarries the full app-side event trail for theown-vpscarrier and confirms this is a post-reboot SSH reachability failure, not a config/build error — every step up to and including the reboot itself succeeded:then, at stage
enroll-activate:with
"fault_resumable": true.logs/droplet-journal.txtcorroborates the same connectivity failure from the harness's own post-run evidence-gather step, which also could not reach the box:That note explains why
artifacts/legs.json([]) andartifacts/journey.json({"rows": null, "fault": null}) are both empty here: those files are populated by the droplet-side evidence gather, which never got in over SSH either. Allguest-*.logfiles are likewise empty or record local command failures (Failed to connect to bus: No medium found, file-not-found) — expected, since there was never a reachable guest to query. Nothing here points at a harness bug in log collection; it's a consistent single root cause (the droplet not answering SSH) surfacing the same way in every artifact that depends on reaching it.Suspected layer
Infra, specifically the
own-vpscarrier's post-nixos-anywhere-reboot handshake: the real DigitalOcean droplet at 170.64.133.244 did not accept SSH connections again within the 1200s (20-minute) leg budget afternixos-anywherekexec'd, partitioned, installed, and rebooted it. This is the documented known frontier for this carrier — recent history on this repo shows the team actively working this exact seam (#407 "widen the droplet enroll-configure ceiling to 20m (ceilings, not expectations)", #410 "own-VPS enroll-configure deploys over the operator's ambient key, not the guest-trust identity"). The failure signature matches: aConnection timed out(not an auth/key rejection) waiting on port 22 post-reboot, i.e. the node simply hasn't finished coming back — the reachability "pairing" between the operator and the freshly re-installed node never flips within budget. The product's own fault classification agrees:fault_resumable: trueand a "wait for the reboot to finish, then re-drive to verify" remedy, meaning the seam itself considers this a transient/retryable infra condition rather than a defect to fix in the enroll-activate code path.What plugging it needs
No code defect is implicated by this run's evidence — everything up to and including the reboot succeeded, and the failure is a real network-level SSH timeout against a real droplet after reboot, already tracked by the #407/#410 line of work on this carrier. If this keeps reproducing even after the #407 ceiling widen, the next lever is on the infra side: check the droplet's actual boot/network-up time post-
nixos-anywherereboot (is 20m still not enough for this droplet size/region?), or whether DigitalOcean's own network initialization on this droplet is slower than the carrier assumes. No human ruling is needed to re-drive; the fault frame's own "Retry the connection" is the sanctioned next step per DDR 0131's resumable/manual split.drive
20260810T190054Zred atwizard:ssh: connect to host N.N.N.N port N: Connection timed outevidence:
test-results/…/20260810T190054Z/on matou-workstation (legs.json, droplet-journal.txt, trace)RULED (Ben, 2026-08-10 ~20:15Z) — evidence run with a kept droplet; NOT a transient
Live probes taken during this red (comment thread, 19:21–19:23Z) showed ICMP dead as well as SSH 10–15 min post-reboot: the box had no L3 presence at all. One transient SSH timeout would not silence ping — "wait longer / re-fire" is not supported by the evidence. Disposition (a) and (b) from the bounce comment are rejected.
The two code items THIS ticket now asks for (both small, both swarm-actionable):
scripts/lib/rehearsal-droplet.sh: whenREHEARSAL_KEEP_RED_DROPLET=1is in the environment, the red-path teardown still offboards the subdomain but skips the droplet destroy, printing the droplet name/id/IP loudly in the run log. (The env is already exported on the workstation; it becomes live the moment this lands.) The next red then leaves its droplet for a human DO-console inspection — grub prompt vs kernel panic vs login banner decides between the bootloader / networkd / kernel branches.internal/fleetwire/carrier.goconnectScript:dns=is read from/etc/resolv.conf, which on Ubuntu is systemd-resolved's stub, so the installed gateway getsdns = [ "127.0.0.53" ](visible in this run's capturedmachines/gateway/networking.nix). Read the real upstreams (resolvectl statusor/run/systemd/resolve/resolv.conf), fail loud if none found. Add/extend the carrier facts test.GREEN for this ticket = both landed with tests; the console inspection and the real reachability fix are the follow-up once the kept droplet gives us the boot evidence.
Course-correction from live probes taken DURING this red (manual session, before teardown): this is not a transient slow-boot — do not just re-drive.
Probe timeline: 19:21:52–19:23:22Z (≈10 min after the fault frame, ≈15+ after
reboot complete): six probes,nc -zw5 <ip> 22timed out ANDping -c1100% loss every time. No ICMP = no L3 presence at all — a healthy NixOS answers ping (firewallallowPingdefaults true). The box either never booted the installed system or booted with no usable network config. A re-drive without new evidence reds identically.Eliminated already (from the run's captured flake + carrier code):
fleetwire/carrier.goreads the default-route interface's MAC (connectScript), and facter confirms the box's two NICs; the pinned MAC is the public one.efiInstallAsRemovable) — DO's BIOS boot is nominally covered.networking.nixmatch what the carrier read off the live box.Still open (needs the console to decide): bootloader never landing (GRUB devices/embed on
/dev/vda) vs. thewan0rename/networkd config not applying on first boot vs. kernel/initrd issue. The one witness — the droplet's boot console — is destroyed by teardown every time.Concrete work for this ticket (swarm-actionable):
scripts/lib/rehearsal-droplet.sh: honour aREHEARSAL_KEEP_RED_DROPLET=1env — on red, skip the destroy (still offboard the name), print the droplet id/IP loudly. One evidence run with it set, then a human eyeballs the DO web console: grub prompt / panic / login banner tells us which branch above is real.connectScriptscrapesdns=from/etc/resolv.conf, baking Ubuntu's systemd-resolved stub127.0.0.53into the installed system (visible in this run'snetworking.nix) — read the real upstreams (resolvectlor/run/systemd/resolve/resolv.conf) with a loud fallback. Broken DNS isn't what killed reachability, but it's guaranteed to bite the moment the box does come back (ACME, broker, everything).DDR 0131's "resumable, retry" classification is right for the OPERATOR's UI; for the harness, retry-without-evidence is just a paid repeat of the same red.
Blocked on a disposition ruling — no code defect to plug.
I worked this as a Sandcastle iteration and confirmed the issue's own diagnosis against the code: this is not an implementable code slice.
What the evidence shows (no defect):
kexec → disko → install → rebootsucceeded (state/founding-state.json). The red is a real network-level SSH timeout — the live droplet170.64.133.244did not answer port 22 again within the#407-widened 20m (1200s)enroll-configurebudget, sowaitForLegtimed out with the row stillabsent(journey.droplet.spec.ts:158).internal/clan/enrollment.go:695-716), and the fault frame carriesfault_resumable: true. Waiting the full budget is the intended behaviour for a resumable/transient condition (the node might still come back mid-budget), not a harness bug.legs.json/journey.jsonand blankguest-*.logare all downstream of the same single root cause (droplet unreachable), as the issue notes — no log-collection defect.This is the documented known-frontier transient for the own-VPS carrier, already worked by
#407(ceiling → 20m) and#410(ambient key). This run is the first recurrence at absent after#407— a single transient SSH timeout, exactly what the resumable-block design anticipates.Why this needs a human ruling (asked once via ask-human, 20-min wait, no reply):
No autonomous code lever is defensible:
#378drive re-fires as the retry per the resumable/manual split (DDR 0131). No code change. (My recommendation — one transient timeout is not yet evidence 20m is systematically insufficient.)enroll-configureceiling further — the leg budget must cover BOTH the uncached first gateway closure build AND the post-reboot reachability wait, so 20m may be systematically tight. Widening without that evidence would violate the repo's own "Budgets are CEILINGS… tighten from evidence" principle (#407), so it needs a human call on the number.#378, not this bug report.Routing to
ready-for-humanfor that disposition ruling. The ask-human thread stays open, so a late reply resumes it.Landed both swarm items from Ben's 2026-08-10 ruling in
101fb4e(onorigin/main):1. Keep-on-red evidence flag —
scripts/lib/rehearsal-droplet.sh: whenREHEARSAL_KEEP_RED_DROPLET=1and the drive went RED,oc_droplet_teardownstill offboards the subdomain but SKIPS the droplet destroy, loudly printing the kept droplet's name/id/IP for a DO-console inspection. The droplet id (doctl--format ID,Name,PublicIPv4col 1) is now captured at create;drive_rc(default RED, so a pre-drive banner-wait die keeps too) is wired fromscripts/smoke-private-path.shinto teardown. A GREEN drive always destroys; the 6h TTL remains the failsafe.2. DNS stub scrape fix —
internal/fleetwire/carrier.goconnectScript:dns=was read from/etc/resolv.conf, systemd-resolved's loopback stub (127.0.0.53) on Ubuntu — the source of this run'sdns = [ "127.0.0.53" ]in the capturedmachines/gateway/networking.nix. It now reads the real upstreams from/run/systemd/resolve/resolv.confwhen present, drops any 127.* line either source carries, andparseCarrierFactsmakes an upstream resolver LOAD-BEARING so a stub-only box fails loud at connect ("upstream DNS resolver") rather than shipping a dead resolver.Tests:
internal/fleetwire/carrier_test.gogains a stub-DNS-is-error case + a connectScript-reads-real-upstreams guard (fleetwire suite green)..sandcastle/tests/rehearsal-droplet-test.shgrows cases 5–7 (id capture; keep-on-red RED offboards-but-holds + prints name/id/ip; keep-on-red is RED-only) — 7/7 pass.GREEN for this ticket = both landed with tests. NOT closed here as a fix of the reachability itself: per the ruling (ICMP was dead too, not a transient), the console inspection and the real post-reboot reachability fix are the follow-up once a kept droplet gives the boot evidence.