warm arc: enroll's verify still substitutes build-deps from upstream #336

Open
opened 2026-08-08 15:04:12 +00:00 by ben · 3 comments
Owner

ADR 0133's warm payload carries the gateway CLOSURE, and drives 15–20 show the runtime story working (build leg 37–240s warm vs 991–1622s cold). But the enroll leg's verify (clan machines update) was observed substituting BUILD-time dependencies from cache.nixos.org even on a warm store — the carried cache is the runtime closure, not the build closure, so eval/build-dep paths still download.

Consider whether the payload should also carry (or the primer also import) the build-dep closure for the pinned rev, or whether the honest answer is "no — the delta is small and per-release". Measure first: a drive on a store with ONLY the carried closure (no prior builds) would show the real download bill. From the private-path live e2e arc.

ADR 0133's warm payload carries the gateway CLOSURE, and drives 15–20 show the runtime story working (build leg 37–240s warm vs 991–1622s cold). But the enroll leg's verify (`clan machines update`) was observed substituting BUILD-time dependencies from cache.nixos.org even on a warm store — the carried cache is the runtime closure, not the build closure, so eval/build-dep paths still download. Consider whether the payload should also carry (or the primer also import) the build-dep closure for the pinned rev, or whether the honest answer is "no — the delta is small and per-release". Measure first: a drive on a store with ONLY the carried closure (no prior builds) would show the real download bill. From the private-path live e2e arc.
Author
Owner

This was generated by AI during triage.

Triage Notes

What we've established so far:

  • The report itself frames this as a decision, not a spec: "Consider whether the payload should also carry [the build-dep closure]... or whether the honest answer is 'no' — the delta is small and per-release." That's a product/scope call about how far the warm-payload guarantee should reach, not yet a well-defined behavior change.
  • It also asks to "measure first" on a store carrying only the runtime closure with no prior builds — that needs a real machine with a clean/controlled Nix store, the same real-hardware dependency this project already routes to ready-for-human for #183 and #332.
  • Nothing in the codebase currently carries or imports a build-dep closure for enroll's verify leg — this isn't already implemented, and nothing in this repo's rejected-request history resembles it.

What needs deciding:

  • A scope ruling: does the warm-payload guarantee extend to build-time dependencies, or is the remaining download delta accepted as-is? That ruling should be informed by the measurement the report asks for, which needs real-hardware access.

Routing to ready-for-human — needs both a scope ruling and a real-hardware measurement to inform it.

> *This was generated by AI during triage.* ## Triage Notes **What we've established so far:** - The report itself frames this as a decision, not a spec: "Consider whether the payload should also carry [the build-dep closure]... or whether the honest answer is 'no' — the delta is small and per-release." That's a product/scope call about how far the warm-payload guarantee should reach, not yet a well-defined behavior change. - It also asks to "measure first" on a store carrying only the runtime closure with no prior builds — that needs a real machine with a clean/controlled Nix store, the same real-hardware dependency this project already routes to `ready-for-human` for #183 and #332. - Nothing in the codebase currently carries or imports a build-dep closure for enroll's verify leg — this isn't already implemented, and nothing in this repo's rejected-request history resembles it. **What needs deciding:** - A scope ruling: does the warm-payload guarantee extend to build-time dependencies, or is the remaining download delta accepted as-is? That ruling should be informed by the measurement the report asks for, which needs real-hardware access. Routing to `ready-for-human` — needs both a scope ruling and a real-hardware measurement to inform it.
Author
Owner

Ruled by Ben 2026-08-08 (decision sweep): measure first. One drive on a store holding only the carried closure (no prior builds) shows the real build-dep download bill; the carriage decision is made with that number, not before. Needs a real drive (payload + /dev/kvm), so it stays session/slice work → no-triage.

Ruled by Ben 2026-08-08 (decision sweep): **measure first.** One drive on a store holding only the carried closure (no prior builds) shows the real build-dep download bill; the carriage decision is made with that number, not before. Needs a real drive (payload + /dev/kvm), so it stays session/slice work → `no-triage`.
Author
Owner

Cold-store data point from Ben's 2026-08-12 manual trial (true first-run: /nix absent, ~/.cache/nix deleted, app installed Nix itself):

  • Full first-run bill: /nix = 3.7 GiB, 5231 store paths; ~/.cache/nix = 95 MiB (eval/fetcher caches) — this is everything a fresh machine downloads/builds across install → seed → guest deploy, on top of the carried payload (guest image + warm gateway cache were staged locally per ADR 0110/0133).
  • The eval preflight has a hard upstream dependency at first eval: clan select fetching sops-nix from GitHub hit a transient HTTP 503 and red the leg (honest fault frame + retry offered; retry succeeded). A cold first-run currently requires GitHub up at eval time — the flake-input half of what this ticket weighs.

Still owed for the full measurement: separating the flake-input fetch (the ~/.cache/nix 95 MiB + tarball unpacks) from build-dep substitution during enroll/deploy. But the 503 incident is direct evidence for the "carry (or primer-import) the eval closure" side of the ruling.

**Cold-store data point from Ben's 2026-08-12 manual trial** (true first-run: `/nix` absent, `~/.cache/nix` deleted, app installed Nix itself): - Full first-run bill: **/nix = 3.7 GiB, 5231 store paths**; `~/.cache/nix` = 95 MiB (eval/fetcher caches) — this is everything a fresh machine downloads/builds across install → seed → guest deploy, on top of the carried payload (guest image + warm gateway cache were staged locally per ADR 0110/0133). - The eval preflight has a **hard upstream dependency at first eval**: `clan select` fetching `sops-nix` from GitHub hit a transient **HTTP 503** and red the leg (honest fault frame + retry offered; retry succeeded). A cold first-run currently requires GitHub up at eval time — the flake-input half of what this ticket weighs. Still owed for the full measurement: separating the flake-input fetch (the `~/.cache/nix` 95 MiB + tarball unpacks) from build-dep substitution during enroll/deploy. But the 503 incident is direct evidence for the "carry (or primer-import) the eval closure" side of the ruling.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#336
No description provided.