rehearsal: the guest image joins the eval gate — a nix/guest dialect break parks pre-spend, not at first build #1190

Closed
opened 2026-09-03 15:27:47 +00:00 by ben · 2 comments
Owner

The gap (bit on 2026-09-03)

#1159 landed services.netbird.clients into nix/guest/configuration.nix — an option that does not exist on the repo flake's nixos-24.11 pin — and the guest image silently stopped EVALUATING. Nothing red for ~19 hours: the eval gate (rehearsal-cycle.sh's pre-spend park) keys on the internal/clan + internal/provision trees and runs the seedcommunity eval smokes; nix/guest/ + flake.nix are flake outputs OUTSIDE its scope. The break surfaced only when stage-vm-guest-slot.sh tried to BUILD the image (fixed in eef024dc).

The ask

The guest flake output joins the eval gate's offline scope:

  • a guest eval smoke — nix eval .#packages.x86_64-linux.guest-image.drvPath (eval only, no build; seconds warm) red = gate red, park pre-spend, same shape as the seedcommunity smokes;
  • the gate's staleness KEY grows nix/guest/ + flake.nix + flake.lock (a green must not be cached across a guest-config change — the cannot-fail rule: key over the inputs the check reads);
  • offline test: a config writing a nonexistent option (a fixture module) makes the smoke red BY NAME; the healthy config greens; the key changes when nix/guest changes.

Host-side only (the gate runs on the executor, which carries nix) — a swarm worker can land the wiring + offline tests; the live proof is the next drive's gate line.

Origin: #1186's close, phase-7 first-drive arc.

## The gap (bit on 2026-09-03) #1159 landed `services.netbird.clients` into `nix/guest/configuration.nix` — an option that does not exist on the repo flake's nixos-24.11 pin — and the guest image silently stopped EVALUATING. Nothing red for ~19 hours: the eval gate (`rehearsal-cycle.sh`'s pre-spend park) keys on the `internal/clan` + `internal/provision` trees and runs the seedcommunity eval smokes; `nix/guest/` + `flake.nix` are flake outputs OUTSIDE its scope. The break surfaced only when `stage-vm-guest-slot.sh` tried to BUILD the image (fixed in `eef024dc`). ## The ask The guest flake output joins the eval gate's offline scope: - a guest eval smoke — `nix eval .#packages.x86_64-linux.guest-image.drvPath` (eval only, no build; seconds warm) red = gate red, park pre-spend, same shape as the seedcommunity smokes; - the gate's staleness KEY grows `nix/guest/` + `flake.nix` + `flake.lock` (a green must not be cached across a guest-config change — the cannot-fail rule: key over the inputs the check reads); - offline test: a config writing a nonexistent option (a fixture module) makes the smoke red BY NAME; the healthy config greens; the key changes when nix/guest changes. Host-side only (the gate runs on the executor, which carries nix) — a swarm worker can land the wiring + offline tests; the live proof is the next drive's gate line. Origin: #1186's close, phase-7 first-drive arc.

swarm-claim host=matou-dev-server-01 run=17201
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=17201 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1190 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1190,
  "status": "success",
  "commits": [
    "a360300a8f21c63f047b17cb89ed896185549282"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/clan/guestimage_eval_test.go",
    "scripts/rehearsal-cycle.sh",
    "scripts/tests/rehearsal-eval-gate-key-test.sh"
  ],
  "tests": [
    {
      "command": "IDSS_EVAL_SMOKE=1 go test ./internal/clan/ -run TestGuestImage_EvalSmoke -count=1",
      "exit_code": 0
    },
    {
      "command": "bash scripts/tests/rehearsal-eval-gate-key-test.sh",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "bash -n scripts/rehearsal-cycle.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "guest flake output joins the eval gate's offline scope (a guest eval smoke, eval only, red = gate red, park pre-spend, same shape as the seedcommunity smokes)": "internal/clan/guestimage_eval_test.go TestGuestImage_EvalSmoke evals .#packages.x86_64-linux.guest-image.drvPath (eval only, no build) and joins the EvalSmoke suite the gate runs via -run 'EvalSmoke'; passed green with a store .drv (37s warm)",
    "the gate's staleness KEY grows nix/guest/ + flake.nix + flake.lock (a green must not be cached across a guest-config change)": "scripts/rehearsal-cycle.sh eval-gate-key sentinel block grows the key to git rev-parse HEAD:internal/clan HEAD:internal/provision HEAD:nix/guest HEAD:flake.nix HEAD:flake.lock",
    "offline test: a config writing a nonexistent option (a fixture module) makes the smoke red BY NAME": "guestimage_eval_test.go negative half extends the guest config with services.netbird.clients and requires eval to fail naming it + 'does not exist' — proven red-by-name locally",
    "offline test: the healthy config greens": "TestGuestImage_EvalSmoke positive half greens with a /nix/store/*.drv",
    "offline test: the key changes when nix/guest changes": "scripts/tests/rehearsal-eval-gate-key-test.sh (8 checks) proves the key moves on a nix/guest/flake.nix/flake.lock edit, stays selective, and the pre-#1190 scope would NOT have moved — PASS 8/8"
  },
  "summary": "The guest flake output joins the rehearsal eval gate: a guest eval smoke (positive + negative red-by-name) plus a key grown over nix/guest/+flake.nix+flake.lock so a nix/guest dialect break parks pre-spend.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1190 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1190, "status": "success", "commits": [ "a360300a8f21c63f047b17cb89ed896185549282" ], "changed_files": [ "STATUS.md", "internal/clan/guestimage_eval_test.go", "scripts/rehearsal-cycle.sh", "scripts/tests/rehearsal-eval-gate-key-test.sh" ], "tests": [ { "command": "IDSS_EVAL_SMOKE=1 go test ./internal/clan/ -run TestGuestImage_EvalSmoke -count=1", "exit_code": 0 }, { "command": "bash scripts/tests/rehearsal-eval-gate-key-test.sh", "exit_code": 0 }, { "command": "go vet ./internal/clan/", "exit_code": 0 }, { "command": "bash -n scripts/rehearsal-cycle.sh", "exit_code": 0 } ], "criteria": { "guest flake output joins the eval gate's offline scope (a guest eval smoke, eval only, red = gate red, park pre-spend, same shape as the seedcommunity smokes)": "internal/clan/guestimage_eval_test.go TestGuestImage_EvalSmoke evals .#packages.x86_64-linux.guest-image.drvPath (eval only, no build) and joins the EvalSmoke suite the gate runs via -run 'EvalSmoke'; passed green with a store .drv (37s warm)", "the gate's staleness KEY grows nix/guest/ + flake.nix + flake.lock (a green must not be cached across a guest-config change)": "scripts/rehearsal-cycle.sh eval-gate-key sentinel block grows the key to git rev-parse HEAD:internal/clan HEAD:internal/provision HEAD:nix/guest HEAD:flake.nix HEAD:flake.lock", "offline test: a config writing a nonexistent option (a fixture module) makes the smoke red BY NAME": "guestimage_eval_test.go negative half extends the guest config with services.netbird.clients and requires eval to fail naming it + 'does not exist' — proven red-by-name locally", "offline test: the healthy config greens": "TestGuestImage_EvalSmoke positive half greens with a /nix/store/*.drv", "offline test: the key changes when nix/guest changes": "scripts/tests/rehearsal-eval-gate-key-test.sh (8 checks) proves the key moves on a nix/guest/flake.nix/flake.lock edit, stays selective, and the pre-#1190 scope would NOT have moved — PASS 8/8" }, "summary": "The guest flake output joins the rehearsal eval gate: a guest eval smoke (positive + negative red-by-name) plus a key grown over nix/guest/+flake.nix+flake.lock so a nix/guest dialect break parks pre-spend.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1190
No description provided.