gunk-dev/the-valley

bd-eaefe82-check-definitions-come-from-the-branch.md

source29699b69fbf8main's published tip history
2.8 KiB · Rendered
1---
2type: bug
3id: bd-eaefe82
4status: open
5title: "A submitted branch can redefine a required check"
6created: 2026-08-02
7source: design review of dcr-f41f718, 2026-08-02
8---
9
10# A submitted branch can redefine a required check
11
12The integrator reads required check names from governing policy, but evaluates the named derivations
13from the candidate tree. A branch can therefore replace a required check with one that does no
14useful work and truthfully attest that it passed.
15
16This is a live gap between choosing the required checks and controlling what those checks compute.
17[[dcr-f41f718]](../decisions/dcr-f41f718-declared-verification-policy.md) protects the policy
18source; it does not, by itself, protect every implementation named by that policy.
19
20## How it applies to supplied checks
21
22A project may import the valley's check through a flake input, as proposed in
23[[ida-a9e274c]](../ideas/ida-a9e274c-mandated-checks-come-from-the-instance.md). The branch also
24contains the lock file for that input. It could redirect the dependency to a modified
25implementation.
26
27A valley-mandated check must therefore resolve from the valley's own governing source. The desired
28rule is recorded in
29[[dcr-439b771]](../decisions/dcr-439b771-integration-occ-over-content-addressed-evidence.md), but
30the candidate-tree evaluation path still needs to enforce it.
31
32## Check changes must remain possible
33
34The project also needs to add tests, repair broken checks, and demonstrate proposed changes to
35verification code.
36
37Always running only the old definitions would not test the new definitions. A resolution needs to
38distinguish the trusted checks that admit a change from validation of the check changes it proposes.
39
40## Candidate controls
41
42Require human approval for changes to check definitions and their dependencies, including flakes,
43lock files, policy, and helper code. The path-class and approval mechanisms are described in
44[[ida-1ec03b1]](../ideas/ida-1ec03b1-path-scoped-verification-policy.md) and
45[[ida-b7025b5]](../ideas/ida-b7025b5-human-decisions-are-signed-acts.md).
46
47Resolve valley-mandated check implementations independently of the submitted tree. Candidate
48definitions can still be evaluated as proposed work, without replacing the governing test.
49
50A deployment could explicitly accept limited exposure while the mechanism is incomplete. Background
51reexecution alone is insufficient: rerunning the same weakened no-op check may reproduce its passing
52result.
53
54## Completion condition
55
56Resolve and verify the check-source boundary before relying on it to enforce compliance across
57projects or to replace cosmo's existing build gate. Tests must show that a submitted branch cannot
58weaken a mandatory check by changing its definition or input pin, while legitimate check changes
59remain testable.
60
61[integration.md](../../design/integration.md) describes the current enforcement path.