enroll-configure red: eval preflight drops the nix error, leaves only a generic remedy #590
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#590
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 reds on leg enroll-configure during the own-VPS stand-up, at the eval preflight gate — after
connect,point, andseedall went green.artifacts/legs.json:logs/founding-state.log/state/founding-state.json(the standup event trail):The Playwright fault frame (
error-context.md) shows the operator the exact same generic sentence — no attribute name, no assertion name, nonix evaloutput at all.What the live droplet shows
170.64.187.97 is still reachable and is a stock, unmodified Ubuntu cloud-init box — no NixOS, nothing beyond sshd:
logs/droplet-journal.txtends at cloud-init's own "Finished... Startup finished" and the harness's SSH login — nixos-anywhere never kexec'd or touched the box. This corroborates that the failure is a localnix evalpreflight (clan#nixosConfigurations.gateway...drvPathevaluated against the harness's own repo checkout, perinternal/clan/adapter.go'sevalReadiness) that failed before any remote work began — the droplet has no more evidence to give.Suspected layer: product (Go), not the droplet/infra, not the known own-VPS carrier frontier
This is not the known own-VPS "pairing never flips" DNS-carrier frontier (that skip fires at the
point/DNS-pairing leg; herepointandseedare green and the red is later, atenroll-configure's eval gate).Reading
internal/clan/enrollment.go'spreflight()(~L526-557) againstinternal/clan/adapter.go'sevalReadiness()(~L496-540):evalReadinessrunsnix eval ...drvPath, classifies a non-zero exit viaclassify(), and correctly populatesReadiness.Detailwith the real excerpt (detail := excerpt(res.Output); if f != nil && f.Detail != "" { detail = f.Detail }) — the actual attribute/assertion text IS captured here.But
preflight()throws that excerpt away:r.Detailis read nowhere — not intos.Remedy, not into the emittedEvent.Message(which carries onlyr.Kind, i.e.config_eval), ands.Failureis leftnil(contrast the identity-missing branch a few lines above, which DOES sets.Failure).preflightInstruction(kind)(L1297-1303) is a static per-kind string — forconfig_evalit is always literally "the node's config does not evaluate — fix it so the node evaluates, then re-drive", regardless of what actually failed to evaluate.Every OTHER failing stage in this same file routes through
failureEventMessage(f)(L1313+), which explicitly appends the Detail excerpt to the Summary "so the activity log itself says why (#183 Phase A: the operator saw only the bare... Summary, with the cause absent... ADR 0126 live-drive fix)" — see call sites at enrollment.go:284, 605, 613, 617, 675, 691, 698, 947, 952.preflight()is the one path that was never wired through that helper, so the exact #183/ADR-0126 opacity bug that helper exists to fix is still live on the eval-preflight branch.Net effect: whatever nix attribute/assertion in
machines/gateway/*.nix(rendered fresh this drive —da418abbake takeover-ready config,8ca231battach front-door,5a7aacdattach acme-dns,59a087fcompose gateway dir, all committed instate/clan-config) actually fails to evaluate is unrecoverable from any artifact this drive produces —helper.logis empty,legs.json/founding-state.logcarry only the generic remedy, and the app UI shows the same generic sentence. There is no rawnix evalstderr anywhere to inspect.What plugging it needs
In
internal/clan/enrollment.gopreflight(): builds.Failurefrom theReadiness(kind + detail) the same way the identity-missing branch does, and route the emittedEvent.MessagethroughfailureEventMessage()(or equivalent) sor.Detail— the realnix evalexcerpt — reaches the activity log, the terminal fault string (blockDetail), and ultimately the Playwright fault frame. That fix alone won't tell us what's wrong with the gateway config, but it will surface it on the very next red instead of hiding it forever behindpreflightInstruction's static text — which is what makes this run itself undiagnosable beyond "eval fails, cause unknown".drive
20260815T114326Zred atenroll-configure:journey leg "enroll-configure" went red: founding: the server stand-up did not complete (status "blocked"): the node's config does not evaluate — fix it so the node evaluates, then re-driveevidence:
test-results/…/20260815T114326Z/on matou-workstation (legs.json, droplet-journal.txt, trace)swarm-claim host=matou-dev-server-01 run=6930
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #590 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
6254418is not reachable from origin/main (not landed on main)envelope
close-report for #590 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope