gunk-dev/the-valley

ida-a9e274c-mandated-checks-come-from-the-instance.md

source68d12192bbd3main's published tip history
2.2 KiB · Rendered
1---
2type: idea
3id: ida-a9e274c
4status: exploring
5title: "Use valley-controlled implementations for mandatory checks"
6created: 2026-08-02
7source: design conversation, 2026-08-02
8---
9
10# Use valley-controlled implementations for mandatory checks
11
12When a valley requires a check, the valley must control which implementation and toolchain satisfy
13that requirement. The project supplies the tree to be checked. A matching check name in the
14project's flake is not enough.
15
16Otherwise two projects could define different behavior under the same required name, or a proposed
17change could replace the check with one that always succeeds.
18
19## Distribution
20
21A flake input can distribute a reusable check. The project instantiates it over its source tree,
22while the supplying flake pins the toolchain. An entry point taking a system and source tree keeps
23consumers from supplying a different package set.
24
25Projects remain free to add checks of their own.
26[[dcr-f41f718]](../decisions/dcr-f41f718-declared-verification-policy.md) determines which
27requirements are mandatory and which are selected by the project.
28
29## Governing revision
30
31Distributing the check through a project input does not by itself enforce the current valley
32requirement. A project can retain an old input revision.
33
34The integration path must resolve the mandatory implementation from the valley's governing source,
35as required by
36[[dcr-439b771]](../decisions/dcr-439b771-integration-occ-over-content-addressed-evidence.md).
37[[bd-eaefe82]](../bugs/bd-eaefe82-check-definitions-come-from-the-branch.md) tracks the
38implementation risk of trusting definitions from the submitted branch.
39
40Updating one supplied check can reduce drift across projects, but the system still needs to
41establish which revision the evidence used.
42
43## Consequences
44
45The check's source and dependencies must be available wherever verification runs. Reusing the
46valley's flake can make the valley repository a build dependency for its projects.
47
48A flake is the current distribution mechanism.
49[[ida-b9f646c]](ida-b9f646c-nix-backend-not-substrate.md) requires the check contract to remain
50expressible with other runners. [[ida-1ec03b1]](ida-1ec03b1-path-scoped-verification-policy.md)
51describes path-based selection and reuse of the knowledge lint.