| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-1ec03b1 |
| 4 | status: exploring |
| 5 | title: "Determine required checks from the paths a change actually modifies" |
| 6 | created: 2026-07-06 |
| 7 | source: conversation, 2026-07-06 |
| 8 | --- |
| 9 | |
| 10 | # Determine required checks from the paths a change actually modifies |
| 11 | |
| 12 | The integrator determines required checks from the actual tree diff and the governing policy. A |
| 13 | contributor's description of the change does not determine which checks apply. |
| 14 | |
| 15 | Policy assigns checks to classes of paths. A knowledge-only change needs graph validation and prose |
| 16 | formatting. A code change needs the checks required for that code. A change touching both requires |
| 17 | the union. |
| 18 | |
| 19 | This permits a code change and the completion of its outcome node to land together. Keeping the |
| 20 | graph in the repository gives both the same integration protection and backup path, while allowing |
| 21 | documentation-only work to use cheaper checks. |
| 22 | |
| 23 | [[dcr-f41f718]](../decisions/dcr-f41f718-declared-verification-policy.md) defines the CUE policy |
| 24 | schema and how valley and project requirements compose. A change signature is required structurally, |
| 25 | independently of path classification. |
| 26 | |
| 27 | ## Knowledge checks |
| 28 | |
| 29 | The knowledge lint is one pure derivation. It can run locally, supply evidence for integration, and |
| 30 | later be rerun by an independent verifier. [.the-valley/README.md](../README.md) lists its checks. |
| 31 | |
| 32 | This matters to the scheduler proposal in [[ida-3145b7a]](ida-3145b7a-demand-pressure.md): updating |
| 33 | a node must be inexpensive enough for the graph to remain useful during ongoing work. |
| 34 | |
| 35 | ## Prose formatting |
| 36 | |
| 37 | Markdown paragraphs are hard-wrapped at 100 characters by a deterministic formatter. The check |
| 38 | passes when formatting the tree produces no change. |
| 39 | |
| 40 | This format keeps raw files readable in a terminal and makes the formatting requirement mechanically |
| 41 | checkable. Reflow can enlarge a diff after a small edit, so `valley review` uses word-level |
| 42 | highlighting to help review prose changes. |