The integrator finds `valley` on its PATH and runs `valley checks --schema --instance --project <from> <to>` in a checkout of the target tip. It parses the report (`parseDerived`), and composes the policy a second time for the catalogue and digest (`integrator/policy.go`). Its package depends on the `valley` script at run time (`nix/packages.nix`).
Outcome: the integrator reads one composed model per pass, through `composed.ReadUnpinned`, and runs `derive.Derive` on it in-process. It keeps its own resolution of the policy sources, and its zero-paths guard: zero changed paths are believed only when `git diff-tree --quiet` agrees. It maps `derive.Result`'s unclassified paths and requirements into its explanations and carry decisions as the report's `unclassified` class did. It drops the `valley` lookup, field and wiring, and the `valley` runtime dependency, and keeps `cue`.
The Go deriver corrects three edges where the Bash deriver is wrong (`derive/agree_test.go` `TestKnownDivergences`): a path containing a newline, a top-level class requiring an undefined check, and a class named `unclassified`. The integrator takes Go's answer. Approve, still on the Bash deriver until it runs in Go, can disagree on those edges. The integrator is authoritative, so a disagreement can only make approve build more checks than needed, or fewer, which the integrator then holds until the evidence exists.
Done when the integrator runs no `valley` process, `integrator/policy_test.go` keeps its behavioural assertions with failures injected at the Go boundary, and the integrator end-to-end checks pass.
Comments
contributor2026-11-09 19:22 UTC
Change valley:the-valley/ptzokwluxmqtovvwqzywvlnovzmyonsl landed: v1 as 795c933f9c5e47f730ab7ee6713fa780965807b0.
Every change the knot links has landed and it has no active children, so klaus set it done.