gunk-dev/the-valley

ida-1ec03b1-path-scoped-verification-policy.md

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