enroll-configure: masked_exit misreads sops-install-secrets' ssh-host-key probe as failure #456
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#456
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 #183 rehearsal drive went RED on the
enroll-configureleg after 3 green legs (connect,point,seed), 201934ms in.connect/point/seedall passed cleanly, so pairing/founding/DNS are not implicated — this is not the known own-VPS carrier frontier (legs.jsoncarries no skip entries for this run).artifacts/legs.json:state/founding-state.jsongives the fuller sequence insideenroll-configure: eval preflight passed, machine vars generated, then "install · kexec: kexec complete", "install · disko: disko complete", and only then:So
nixos-anywhereitself exited 0 (kexec and disko both completed) — the harness's ownmasked_exitclassifier is what turned this into a fault, by treating a line in the install log as proof of a hidden failure despite the tool's clean exit.logs/guest-*.logare all empty or connection-refused (guest-journal.log: "-- No entries --";guest-unit.log: "Failed to connect to bus: No medium found"), andlogs/droplet-journal.txtonly contains journal lines from thenixos-installerkexec environment, never from the installedgatewaysystem. That's consistent with the drive dying at/around the install step, before the target ever booted into its final config — there is no evidence of a second, later failure downstream.Suspected layer: harness
logs/healer-claude.out(present in this same run directory) already carries a diagnosis and an applied fix for exactly this signature:That matches the evidence exactly:
sops-install-secretsprobes several possible age-key sources during a fresh install — including deriving a key from the target's ssh host keys — and is expected to fail that probe on a brand-new machine (the host keys don't exist yet) before falling back to/var/lib/sops-nix/key.txt.logSaysFailedininternal/clanwas flagging that benign stderr line as a real failure even thoughclan/nixos-anywhereexited 0, somasked_exitconverted a successful install into a reported fault.The healer's fix commit is
235c30f9ba6133e569b0e30e62500cc87fb2d744, but it does not appear in this repo's currentmainhistory (recent commits areb102fcc,ef08a0a,42c33fb,74947d2,39c5a23— none of them235c30f9). Either that commit lives on an unmerged branch/worktree from the healer's own run, or it hasn't landed yet.What plugging it needs
235c30f9ba6133e569b0e30e62500cc87fb2d744(thelogSaysFailed"cannot read ssh key" exemption ininternal/clan, withTestClassify_SopsInstallSecretsSSHKeyProbeIsNotMasked) is merged into the branch this drive ran against; if not, land/cherry-pick it.enroll-configuregoes green with the fix in place — this run's own evidence (empty guest logs, journal only from the installer stage) can't confirm the gateway would have come up cleanly past this point, only that nothing else failed downstream.drive
20260811T232725Zred atenroll-configure:journey leg "enroll-configure" went red: founding: stand up the server: clan: masked_exit on gateway: clan reported success but the log shows a real failure: [gateway] Cannot read ssh key '/etc/ssh/ss [gateway] Cannot read ssh key '/etc/ssh/ssh_host_H_key': open /etc/ssh/ssh_host_H_key: no such file or directoryevidence:
test-results/…/20260811T232725Z/on matou-workstation (legs.json, droplet-journal.txt, trace)swarm-claim host=matou-dev-server-01 run=4824
(automated multi-host claim — lowest live claim id works this ticket)
Landed as
a2db19eonmain.logSaysFailed(internal/clan/errors.go) now exemptscannot read ssh keybeside the existingfailed to reload/error (ignored)/warning: error:cases — the benign line sops-install-secrets prints when it probes the target's ssh host keys during a fresh install (keys absent on a brand-new machine; it falls back to/var/lib/sops-nix/key.txt). A real failure line elsewhere in the same log still tripsmasked_exit.The healer's
235c30f9fix was NOT in this branch's history — this reimplements the same exemption from the evidence. Pinned byTestClassify_SopsInstallSecretsSSHKeyProbeIsNotMasked(benign probe → success; real failure beside it → masked_exit carrying the real line as proof).go test ./internal/clan/... -run TestClassifygreen; full package green, no regressions.Note item 2 (re-run the #183 rehearsal drive against a fresh droplet to confirm enroll-configure goes green with the fix in place) still needs a human/operator with lab access — this run's own evidence (empty guest logs, journal only from the installer stage) can only confirm nothing failed downstream, not that the gateway would boot clean past this point.