supply leg red: guest-trust SSH key never created for own-vps carrier before fleetwire uses it #432
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#432
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?
Failure
The drive got through the entire
own-vpsinstall/enroll sequence — connect, DNS pointing, flake/brand seeding, nixos-anywhere takeover (kexec/disko/install/reboot), and enroll-activate confirming clan membership — then went red on the very next stage, supply ("seed the fleet software onto the server"), and the Playwright wait timed out 600s later because the standup never moved past it.Evidence
logs/founding-state.log(standup.fault, and the lastsupplyevent):artifacts/journey.droplet-.../error-context.md(rendered fault line and the Playwright timeout):Confirmed directly against the run's own state tree — the identity file's parent directory doesn't exist at all:
Compare with sibling per-run trust material that WAS seeded:
Nothing in
founding-state.log's event list — connect/point/seed/enroll-configure/enroll-activate/supply — ever mentions generating or installing a guest-trust keypair; the supply stage's first action is to usestate/guest-trust/id_ed25519againstroot@127.0.0.1(fleetwire tunnelling through the gateway to the guest), and that is the only reference to it anywhere in the run.Absent:
artifacts/legs.jsonis[]andartifacts/journey.jsonis{"rows": null, "fault": null}— the harness's leg/row recording never got populated because founding died before reaching that point. Consistent with the above, not independent evidence.Suspected layer
Product (founding/fleetwire), with a possible harness contribution. The
supplystage's fleetwire step is handed a path (state/guest-trust/id_ed25519) under the run's own state directory that some step is supposed to populate before fleetwire's first SSH call — the same waystate/own-vps/known_hostsandstate/sops/age/keys.txtget pre-seeded. Whichever side owns it (a founding stage that should generate the keypair and push it as an authorized key onto the gateway before invoking fleetwire, or a harness-side state-seeding step analogous to the known_hosts/age-key seeding that simply omits guest-trust for the own-vps carrier), the step is missing outright — not misconfigured, not racing, just never run. This is NOT the known own-vps-pairing frontier ("pairing never flips"):legs.jsonhere is empty, carrying no skip reason, so this is a distinct defect.Two secondary, separate gaps observed in the same run (worth their own tickets, not this one's root cause):
logs/healer-claude.err: the auto-healer crashed on launch (Error: Input must be provided either through stdin or as a prompt argument when using --print, plus six "Wildcard tool name ... not supported in allow rules" warnings against its--allowedToolsconfig) — so no auto-remediation/retry was attempted against this fault.logs/droplet-journal.txt: the post-mortem droplet evidence-gather itself failed — "Host key verification failed" / "REMOTE HOST IDENTIFICATION HAS CHANGED" — because it went through the harness's ambient~/.ssh/known_hosts(stale entry from a prior droplet at the same IP) instead of the run's own freshly-learnedstate/own-vps/known_hosts. That is why everylogs/guest-*.logis empty/failed — not because the guest software didn't run.What plugging it needs
Find wherever the own-vps
supply/fleetwire path is wired up and add (or fix) the step that generates a guest-trust ed25519 keypair into the run's state directory and installs the public half as an authorized key on the gateway, ordered before fleetwire's first "prepare the guest dirs" SSH call — mirroring howeverstate/own-vps/known_hostsandstate/sops/age/keys.txtalready get pre-seeded for this carrier. A regression test should assertstate/guest-trust/id_ed25519exists and is readable before the supply stage's first SSH attempt.drive
20260811T071123Zred atwizard:drive red at wizard — the wizard died before any leg ranevidence:
test-results/…/20260811T071123Z/on matou-workstation (legs.json, droplet-journal.txt, trace)Fixed in
e7a21d7(on origin/main).Root cause: the own-VPS guest-facing family (supply, fleet, enrolment) drives the box over the founding guest-trust identity at the loopback forward, but only the PRIVATE path ever minted that key (
guestTrust.Ensure, baked into the local VM via fw_cfg). The own-VPS carrier never ran that step, sostate/guest-trust/id_ed25519was never created and the installed box never trusted it —supplys firstprepare the guest dirsSSH died on the missing identity file /Permission denied (publickey).Fix (
internal/founding/ownvpspath.go):runOwnVPSJourneynow mints the guest trust (the SAMEguestTrustseam the private path uses — never a second key) BEFORE the FullInstall, and threads its public half into the takeover request'sAuthorizedKeysviaappendGuestTrust, so access.nix bakes it ALONGSIDE the operator's own keys (#414). The private-key file therefore exists on disk before supply's first SSH, and the installed box already trusts it. The guest-trust seam is now a required own-VPS seam (requireOwnVPSSeams->ErrGuestTrustUnavailable), fail-loud before minting anything (ADR 0100).Regression tests (seam):
TestOwnVPS_MintsGuestTrustAndInstallsItOnTheBoxBeforeSupply(asserts the guest trust is minted and its public key is in the FullInstallAuthorizedKeys, alongside the operator key, before supply seeds) andTestOwnVPS_UnwiredGuestTrustFailsLoud. The real file-write behaviour (state/guest-trust/id_ed25519, 0600) is covered by the existinginternal/sshkeytests the production adapter calls.Deferred to their own tickets (the same run's two secondary gaps noted in this issue): the auto-healer crashing on launch (
--printwith no prompt + wildcard--allowedTools), and the post-mortem evidence-gather failing strict host-key checking through ambient~/.ssh/known_hostsinstead of the run's ownstate/own-vps/known_hosts.