gunk-dev/the-valley

checks.txt

source6bf8ca46b311main's published tip history
3.3 KiB
1usage: valley checks [--schema FILE] [--instance DIR] [--project DIR] [--names [--cost COST] | --json] [<base> [<head>]]
2
3 checks [<base> [<head>]]
4 print the check names the composed verification policy
5 (dcr-f41f718) requires of the change between two
6 commits, which class made each one required, and the
7 change's carry mode: how far an approval of it carries
8 across a rebase, the strictest of exact, same-class and
9 same-paths among the classes it matched. It prints: no
10 check is run, nothing is gated, nothing is written.
11 base defaults to the merge base with main, head to HEAD.
12 by default both layers come from the target's tip
13 (origin/main), never from your checkout: the project's
14 own layer is policy/project there, and the owning valley
15 is named one line at policy/valley there, fetched and
16 read at policy/instance in that repository's integrated
17 tip. a valley's own config repository carries
18 policy/instance and uses it. a target carrying no
19 policy/project is derived under the floor alone; a floor
20 that is not there is refused. this is what the
21 integrator reads, so the answer is the same from any
22 branch, however stale. an option overrides each layer,
23 which is the only way to derive against a layer that
24 does not govern — the worked example under
25 examples/policy/, say:
26 --schema FILE default $VALLEY_VERIFICATION_SCHEMA
27 --instance DIR default the owning valley's floor
28 --project DIR default policy/project at the target
29 naming a layer stops this reading the source it
30 replaced. the schema is the shape a policy is written
31 in rather than a layer, so it ships with this tool: the
32 package sets VALLEY_VERIFICATION_SCHEMA to its own copy.
33 with that unset, as when valley runs outside its
34 package, it is schema/verification.cue in the
35 checkout.
36 a class's globs match bytes, whatever your locale
37 is: `?` is one byte, so `?.md` does not match
38 é.md, whose é is two.
39 after the report, two lines group the required checks
40 by the cost the policy declares, `quick` or `slow`. a
41 slow check takes minutes or needs special hardware. the
42 cost changes nothing required: approving runs every
43 required check whatever its cost, and the integrator
44 requires evidence for every one.
45 --names print only the required check names,
46 one per line
47 --cost COST with --names, only the quick or
48 the slow ones, e.g.
49 `valley checks --names --cost slow`
50 --json print the valley-checks/v1 document
51 instead of the report