enroll-configure red: own-VPS gateway seed sets no nixpkgs.hostPlatform — the node's config cannot evaluate #399
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#399
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
Drive
20260810T154053Z(built atf989696, so #398's vars fix was in): the own-VPS journey again went red at enroll-configure, but one sub-step further than #398 — vars now generate, and the stand-up faults at the eval preflight:founding: the server stand-up did not complete (status "blocked"): the node's config does not evaluate.Diagnosis (reproduced by hand)
Running the exact preflight against the run's captured flake (
state/clan-config):The local-guest path never hits this because its VM template sets the platform (
internal/clan/vmguest.go:31:nixpkgs.hostPlatform = "x86_64-linux";). The own-VPS carrier's seeded gateway (machines/gateway/{configuration,disko,networking,acme-dns,front-door}.nix) sets no hostPlatform anywhere — the droplet path doesn't use the vmguest template and nothing else supplies it.Fix
The own-VPS gateway seed must set
nixpkgs.hostPlatform(x86_64-linux for DO droplets; derive from the target's arch if the carrier already probes it — keep it honest rather than hardcoding if the probe exists). Mirror the vmguest precedent. A seam test asserting the seeded gateway evaluates (nix eval …toplevel.drvPathon a freshly-seeded flake) would have caught this before a paid drive and covers the whole class.drive
20260810T154053Zred atwizard:drive red at wizard — the wizard died before any leg ranevidence:
test-results/…/20260810T154053Z/on matou-workstation (legs.json, droplet-journal.txt, trace); captured flake in…/state/clan-configrehearsal drive red at wizardto enroll-configure red: own-VPS gateway seed sets no nixpkgs.hostPlatform — the node's config cannot evaluateFixed in
eabd46b(on origin/main).Root cause: the own-VPS FullInstall bakes
networking.nix/disko.nixand NO guest baseline, sonixpkgs.hostPlatformwas set nowhere — the VM path only escapes this becausevmguest.gosets it in the guest baseline. The eval preflight faulted "Neither nixpkgs.hostPlatform nor the legacy option nixpkgs.system has been set".Fix (mirrors the vmguest precedent): the clan seam now bakes a
platform.nix(nixpkgs.hostPlatform) for every full install, added tobaseMachineModulessoAttachGatewayimports it into the gateway'sconfiguration.nixduring the configure stage — ahead of the preflight eval. The platform is derived from the connect probe's arch-os (installOwnVPS->EnrollRequest.Platform->carrierHostPlatform), honest per ADR 0100: an incomplete probe falls back to the DO dropletx86_64-linuxrather than fabricating one.Seam tests covering the class: full-install enroll asserts a baked hostPlatform + honours a probed
aarch64-linux;carrierHostPlatformunit-tests the probe->double derivation and its empty-probe guard; the own-VPS integration test assertsreq.Platform == x86_64-linux. Frontier moves past enroll-configure toward supply/pair.