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