activation: deploy's SSH host-key mismatch renders as journey-fault, not deploy-failed #700
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.
Reference
Matou/idss#700
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 failed
activationreds after burning its full 900s ceiling (artifacts/legs.json):All 16 preceding legs are green, including
pairanddeploy— this is not the known own-VPS-carrier pairing frontier (that names pairing itself never flipping; here pairing succeeds and the box even gets approved past the spec gate).The actual fault (present, just invisible to the wait)
logs/founding-state.log(and the screenshot's yaml snapshot inartifacts/journey.rented-rented-gate-014d4--on-a-broker-rented-droplet/error-context.md) show the backend did fault, right afterdeploybegan:The screenshot confirms this rendered on screen, with a Retry / "Switch the Access option" pair of buttons — i.e. the UI did show a fault banner, but not one of the three statuses the leg watches for.
Root cause, two layers
Product bug (classification):
app/src/components/founding/FoundingStandupRented.vuerendersstandup.faultasdata-status="journey-fault"(lines 31-34), documented explicitly as covering the pre-deploy legs ("connect refused / point / seed / supply / configure / pair"). But this fault fired atstep: "deploying", stage: "control-plane"— after pairing, once the screen should have handed off toFoundingDeployOutcome(deploy-live/deploy-failed/finish-fault). Worse, that child is gatedv-if="!standup?.fault"(line 61) — so oncejourney-faultis set,deploy-failedcan structurally never render. The activation leg's own locator (journey.rented.spec.ts:573) only watcheshand-off/finish-fault/deploy-failed, neverjourney-fault, so it waits out the entire 900s ceiling instead of failing on the real, already-known error.Underlying infra fact the classification bug is masking: the rented VMMode path's own comments (
internal/founding/rentedpath.go:34,265) assert "no reboot — the box keeps the host key connect learned", i.e.RotateHostKeyis deliberately skipped for rented (unlike own-VPS after a takeover). That invariant was violated in this run: the SSH host key the control-plane probe met differs from the oneconnectpinned intostate/own-vps/known_hosts, right afterenroll-activatelogged "the overwritten host came back a clan member" — wording that implies the box went away and came back.docs/GOTCHAS.md#47 documents exactly this hazard class (gateway imagedisko.nixdrifting frominternal/clan/nodeconfig.go'sDiskoLayout, so a VMModeclan updatedisturbs the already-installed disk on activation — worst case the box never returns; this run's milder case would be a reboot that regenerates/etc/sshhost keys). Note theimage-bootleg's disko label check passed, so if #47 is the cause it's a subtler layout drift than bare label presence catches, not a missing partition.Live droplet
ssh -o StrictHostKeyChecking=accept-new -o BatchMode=yes -o ConnectTimeout=8 root@170.64.134.129→Connection timed out, matching the harvestedlogs/droplet-journal.txt/droplet-units.txt/droplet-caddy.txt(all: "ssh: connect ... Connection timed out"). The box is unreachable for both the original harvest and this live check — falling back entirely to the app-side artifacts above; no unit/journal/disk evidence could be pulled live.What plugging it needs
journey.rented.spec.ts's activation-leg locator to also match[data-status="journey-fault"](or readstandup.faultdirectly via the existingreadFaulthelper) so a deploy-stage fault fails in seconds with its real message instead of a 15-minute timeout.step:"deploying"fault should route throughFoundingDeployOutcome'sdeploy-failedsurface instead of (or in addition to) the pre-deployjourney-faultbanner — currently the banner's own doc comment says it's scoped to legs before deploy, but the fault plumbing doesn't enforce that scope.enroll-activate(contradicting rentedpath.go's no-reboot assumption) and, if so, wheither fix the cause (checknix/gateway-image/disko.nixagainstDiskoLayoutper GOTCHAS #47) or add a rented-path host-key re-learn step analogous toRotateHostKey, rather than treating a real key change as an unrecoverable MITM refusal.drive
20260823T092947Zred atactivation:expect(locator).toBeVisible() failed Locator: locator('[data-status="hand-off"]').or(locator('[data-status="finish-fault"]')).or(locator('[data-status="deploy-failed"]')).first() Expected: visible Timevidence:
test-results/…/20260823T092947Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)swarm-claim host=matou-dev-server-01 run=9235
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Item 2 asked whether a
step:"deploying"fault should route throughFoundingDeployOutcome'sdeploy-failedsurface. Ruling: yes — a control-plane probe error at the deploy stage is classified as aDeployFailedoutcome with per-mode recovery, not a pre-deployjourney-fault.Why this is a two-way door: it is a revertible classification change in
runDeploy(internal/founding/deploy.go), it is provable by an existing-style Go seam test (TestDeploy_ProbeTransportErrorSurfacesAsDeployFailedNotJourneyFault, red before / green after), and it is not a security-posture widening — the changed host key is surfaced honestly (the rawREMOTE HOST IDENTIFICATION HAS CHANGEDerror rides the failure's downloadableTail, #546), never auto-accepted. It only moves the SAME fault from a banner that offered Retry/switch-access to the recovery surface that offers resume/reinstall/rescue-boot + download-log + switch-access, matching the documentedfailJourneycontract ("a proper clan deploy failure never lands here — runDeploy records its own per-mode recovery").What proves it: the new seam test, plus the full
internal/founding+internal/clansuites,vue-tsc, andeslintall clean.The infra root cause (item 3 — did the box reboot, contradicting
rentedpath.go's no-reboot assumption; disko drift per GOTCHAS #47 vs a host-key re-learn) is split off to #701 asready-for-human: it needs a live droplet and a one-way-door host-key-accept decision, both outside a sandbox agent's reach.close-report for #700 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
clan machines update, and the droplet never comes back — reboot-vs-no-reboot contradiction (follow-on to #700) #702clan machines update, and the droplet never comes back — reboot-vs-no-reboot contradiction (follow-on to #700) #702_acme-challengedelegation never written — TLS door dead #922