`attest run` (`attest/check.go`) builds each check with `nix build --no-link`, so the outputs the worker builds before approval have no garbage-collector root. On a host that collects garbage daily, the next collection deletes them, whatever their age. Approval reuses the worker's evidence without rebuilding. So nothing keeps the outputs alive between the worker's build and the change landing: converge rebuilds them, and a binary cache that serves the host's store can't serve them.
The worker pass also has no time limit. `valley-worker.service` is a oneshot with no `TimeoutStartSec` or `RuntimeMaxSec`, and attest's `nix build` runs with no deadline. So one multi-hour build delays evidence for every other ready change in the same pass.
Fixed when:
- **GC roots:** the worker roots each check output it built under its own state directory, for example `<state>/roots/<tree>/<check>`, and prunes a root once its change lands or is withdrawn, or after a bounded age.
- **Deadlines:** a pass's builds have a deadline that a deployment can set, so a long build fails its check, with evidence that says so, rather than stalling the pass.
Comments
contributor2026-11-03 13:26 UTCedited2026-11-04 00:26 UTC by contributor
Scope, 2026-11-03: this knot now covers GC roots only. The operator approved keeping check outputs on hosts (a downstream project's check audit found 11 of mpun's 18 checks rebuilt unchanged derivations: 1248 s of 2467 s). The deadline half moved to its own bug under oc-0e703d0.
contributor2026-11-03 16:58 UTC
Change valley:the-valley/tvunppqwwqpmtovvuzmpluqmkpuwvsvr landed: v3 as cc72d5a3fbc93ca7d264f3af5304c3cde45a0b80.
Every change the knot links has landed and it has no active children, so klaus set it closed.