engine-adapters: Supply.Missing drove nix copy --dry-run, a flag the real nix does not have (and a flake-ref eval trap) — fixed under #175 #190

Closed
opened 2026-07-30 17:26:09 +00:00 by ben · 1 comment
Owner

Parent / precedent

Surfaced by the #175 family-1 smoke on the golden clan-lab (2026-07-30): the seed leg's Missing errored config_eval before ever reaching the target. Filed per the #184/#185 split precedent; fixed in the same session under #175.

The defect (two-fold, lab-probed)

  1. nix copy --dry-run — --dry-run is not a nix copy flag at the pinned nix. It never ran.
  2. Even the shape was a trap: nix copy … path:<flake> treats the flake ref as an installable and evaluates the flake's default package (the golden clan flake has none → the config_eval). nix flake archive --dry-run cannot help either: it refuses the unlocked root flake ("cannot compute store path for unlocked input").

The seam double happily accepted the fictional flag — which is why #164's contract tests stayed green.

The fix

Missing is now two honest invocations: a LOCAL nix flake archive --json names the eval closure (root + every input, recursively), then nix path-info --json --store ssh-ng://<target> <paths…> reports which of those the node's store lacks (null entries, exit 0 — lab-probed). The double is now faithful to both real forms. Seed (nix flake archive --to ssh-ng://) was always correct and is untouched. Lab-proven by #175's seed leg.

## Parent / precedent Surfaced by the **#175 family-1 smoke** on the golden clan-lab (2026-07-30): the seed leg's `Missing` errored `config_eval` before ever reaching the target. Filed per the #184/#185 split precedent; **fixed in the same session** under #175. ## The defect (two-fold, lab-probed) 1. `nix copy --dry-run` — **`--dry-run` is not a `nix copy` flag** at the pinned nix. It never ran. 2. Even the shape was a trap: `nix copy … path:<flake>` treats the flake ref as an installable and **evaluates the flake's default package** (the golden clan flake has none → the config_eval). `nix flake archive --dry-run` cannot help either: it refuses the unlocked root flake ("cannot compute store path for unlocked input"). The seam double happily accepted the fictional flag — which is why #164's contract tests stayed green. ## The fix `Missing` is now two honest invocations: a LOCAL `nix flake archive --json` names the eval closure (root + every input, recursively), then `nix path-info --json --store ssh-ng://<target> <paths…>` reports which of those the node's store lacks (**null entries**, exit 0 — lab-probed). The double is now faithful to both real forms. `Seed` (`nix flake archive --to ssh-ng://`) was always correct and is untouched. Lab-proven by #175's seed leg.
Author
Owner

Fixed in 1344f52 (with 4394d55 for the shared CLI plumbing), lab-proven by the #175 smoke's passing run (2026-07-30): Missing is now LOCAL nix flake archive --json + nix path-info --json --store ssh-ng://<target> (nulls = missing); Seed untouched. Evidence: #175's verdicts + docs/spike-findings/smoke-clan-175.md.

Fixed in `1344f52` (with `4394d55` for the shared CLI plumbing), lab-proven by the #175 smoke's passing run (2026-07-30): `Missing` is now LOCAL `nix flake archive --json` + `nix path-info --json --store ssh-ng://<target>` (nulls = missing); `Seed` untouched. Evidence: #175's verdicts + `docs/spike-findings/smoke-clan-175.md`.
ben closed this issue 2026-07-30 17:45:22 +00:00
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#190
No description provided.