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