gunk-dev/the-valley
the-valley:oc-deeb48eoutcomedone

A moved landing evaluates its required checks together

State
done
Created
2026-10-31 by contributor
Changes
  • valley:the-valley/nwowtyspqtmkrxlktwkkzyvoznsqvlnk

Body

When the target has moved, integration computes each required pure check's inputs over the candidate landing. Today integrator/evidence.go:closures launches one attest inputs process per check; attest/inputs.go:cmdInputs exports the tree and calls evalClosure separately. The build path already has evalClosures in attest/check.go, which evaluates the requested derivations together.

Implement one shared evaluation for the normal successful moved-tree path, using the existing evaluation machinery. Export the candidate tree once per batch. Preserve the same derivation and input digests, per-check error isolation, policy, signer rules, and transfer decisions. An unchanged tree retains its current no-reevaluation path.

Acceptance:
- A real-Nix fixture with several required checks gives the same per-check digests as separate evaluation, with one normal batch evaluation and no builds.
- Missing checks, thrown evaluation errors, uncaught Nix errors, aliases and duplicate attributes cannot silently produce coverage or hide another check's result.
- Integration still transfers the checks whose inputs match and marks exactly the invalidated checks stale when main moves.
- The integrator strictly validates batch output and preserves existing CLI compatibility where feasible. Error-path fallback may use individual evaluations; it must be explicit and tested.
- Record before/after wall time and evaluator invocation count on the same revision and workload. Do not sum per-check timings that include the same shared evaluation.
- Run the affected modules' complete Go suites, real-Nix attest tests with ATTEST_NIX_TESTS=require, and the required project checks, including integrator-e2e and attest-e2e. Run expensive checks sequentially within the guest's capacity.
- Deliver one reviewable valley change linked to this knot. No approval, main push, or deployment by the agent.

Scope excludes persistent evaluation caching, scheduler changes, evidence-format changes, weaker checks, and changes to the parked cache outcome oc-90b6f14. Research base: origin/main 9b67d021e86f2e0251d092fbb7a8b923e694eca9. Relevant tests: attest/run_test.go, nix/checks/attest-e2e.sh, integrator/e2e/run.sh and its Nix stand-in.

Comments

  1. contributor2026-10-31 18:05 UTC
    Initial local baseline, 2026-10-31, before implementation:
    - Revision: 9b67d021e86f2e0251d092fbb7a8b923e694eca9.
    - Nix: 2.34.9. Installed attest: /nix/store/vv1024a2dmnclfy8bdwqzj6400in670w-valley-attest/bin/attest.
    - Ran attest inputs against that revision with 1, 4 and 8 pure checks, one sample per set, on the coordinator guest. The sets were prefixes of: attest-unit, integrator-unit, delta-unit, note-unit, change-unit, knot-unit, sigverify-unit, identity-unit.
    - Elapsed: 1 check 0.710 s; 4 checks 1.867 s; 8 checks 3.478 s. Every invocation exited 0 and returned one digest record per requested check. This command requested evaluation only, no check builds.
    - Raw commands, outputs and timings are saved at session-20261031-1741-78ca0541/workspace/baseline-inputs.json.
    
    These are exploratory local samples, not production integration latency, a cold-cache benchmark, or a measured speedup. Evaluator invocation count still needs instrumenting. The implementation must rerun a controlled before/after workload with repeated samples and real Nix. The richer implementation brief is session-20261031-1741-78ca0541/workspace/batch-integration-evaluation.txt.
  2. contributor2026-10-31 21:27 UTC
    Implementation dispatched after read-only critic review: run 20261031-2126-8fd35731, change nwowtyspqtmkrxlktwkkzyvoznsqvlnk. The brief fixes the existing line protocol, strict stdout-only parsing, complete per-check accounting, zero calls for zero pure checks, and no repeated outer call for a one-check failure. Individual fallback preserves independent successes. The potentially slower failed-batch path must be measured and reported, not hidden by the successful-path result.
    
    Counted pre-change baseline over eight pure checks in the same source, using real Nix 2.34.9 and a forwarding call logger: three warm measured samples after one warmup. The actual old collector shape used eight attest processes and eight evaluations every time; median elapsed 3.965 seconds. A single old multi-input invocation still used eight evaluations; median elapsed 3.626 seconds. All samples succeeded. These are local evaluation measurements, not production delivery latency. Raw commands, outputs and counts are in the session workspace's baseline-inputs-counted.json.
  3. contributor2026-11-01 15:48 UTC
    Change valley:the-valley/nwowtyspqtmkrxlktwkkzyvoznsqvlnk landed: v2 as 223a2a63a778345636f5e5ad5afd45e74e29b3ba.
    
    Every change the knot links has landed and it has no active children, so klaus set it done.