gunk-dev/the-valley

policy.cue

source2dbaec32c6e9main's published tip history
26.3 KiB
1// the-valley's project layer: what this one project declares above the
2// floor. The floor is the owning valley's policy/instance; this
3// layer binds the-valley alone, and a project can only add to its own
4// layer (dcr-f41f718).
5package verification
6
7import (
8 "list"
9 "strings"
10)
11
12project: {
13 // the-valley takes no knowledge lint of its own tree. The docs
14 // template's lint checks a knowledge graph kept in the source, and
15 // the-valley's source holds none: its plan graph is project storage, at
16 // refs/the-valley/knots, and the push hook holds it to the knot
17 // module's rules. The nodes under archive/.the-valley/ are history that
18 // never changes, so linting them against today's schema protects
19 // nothing. The lint itself stays covered: the knowledge-lint class
20 // below requires its consumer and rejection checks.
21
22 // Every check below is the flake check of the same name in
23 // nix/checks.nix, built for the runner's own system. own-policy holds
24 // this list to that: a name here that the flake does not define fails
25 // it.
26 let ownChecks = [
27 "valleyhook-unit",
28 "protect-e2e",
29 "knots-e2e",
30 "note-unit",
31 "exactjson-unit",
32 "change-unit",
33 "knot-unit",
34 "knot-agree",
35 "delta-unit",
36 "derive-unit",
37 "review-unit",
38 "attest-unit",
39 "attest-conformance",
40 "attest-e2e",
41 "identity-unit",
42 "identity-e2e",
43 "integrator-unit",
44 "integrator-e2e",
45 "restack-unit",
46 "restack-e2e",
47 "signers-e2e",
48 "sigverify-unit",
49 "sigverify-e2e",
50 "web-unit",
51 "web-server-unit",
52 "web-reader-state-crash",
53 "web-reader-browser-e2e",
54 "web-receiver-unit",
55 "readaccess-unit",
56 "rebase-unit",
57 "valley-go-unit",
58 "valley-cli",
59 "review-notes",
60 "valley-request",
61 "valley-status",
62 "valley-ready",
63 "valley-changes",
64 "valley-knot",
65 "valley-plan",
66 "valley-darwin-eval",
67 "selfupdate-unit",
68 "valley-self-update",
69 "policy-deriver",
70 "own-policy",
71 "module-eval",
72 "cue-vet",
73 "attest-schema",
74 "identity-schema",
75 "knowledge-lint-consumer",
76 "knowledge-lint-rejects",
77 "init-e2e",
78 "mirror-e2e",
79 "bus-e2e",
80 "ssh-e2e",
81 "publish-e2e",
82 "worker-e2e",
83 "telemetry-unit",
84 "telemetry-e2e",
85 "restack-host-e2e",
86 "web-publisher-e2e",
87 "web-image",
88 "web-push-e2e",
89 ]
90 for n in ownChecks {
91 checks: (n): {
92 runner: "nix"
93 attribute: n
94 }
95 }
96
97 // The integrator's scenarios take about a minute, and ssh-e2e,
98 // publish-e2e, worker-e2e, telemetry-e2e, restack-host-e2e and
99 // web-publisher-e2e boot
100 // NixOS machines. web-reader-browser-e2e boots no machine, but its
101 // closure holds Chromium, and it runs a browser in about 2 GiB.
102 // Every other check here takes seconds once its packages are built.
103 checks: "integrator-e2e": cost: "slow"
104 checks: "ssh-e2e": cost: "slow"
105 checks: "publish-e2e": cost: "slow"
106 checks: "worker-e2e": cost: "slow"
107 checks: "telemetry-e2e": cost: "slow"
108 checks: "restack-host-e2e": cost: "slow"
109 checks: "web-publisher-e2e": cost: "slow"
110 checks: "web-reader-browser-e2e": cost: "slow"
111
112 // Each class below is one part of the tree and the checks that read it.
113 // A path in two classes requires both sets. A Go module's unit check is
114 // its package built again with its tests, which runs `go test`. The
115 // package itself runs no tests (nix/packages.nix).
116
117 // The pre-receive hook and the git user's login shell. protect-e2e
118 // pushes to bare repositories wired with the hook a host renders,
119 // valley-ready pushes change records through that hook, and knots-e2e
120 // pushes the plan graph through it.
121 classes: valleyhook: {
122 paths: "valleyhook/**": true
123 requires: "valleyhook-unit": true
124 requires: "protect-e2e": true
125 requires: "valley-ready": true
126 requires: "knots-e2e": true
127 }
128
129 // The change record, which the hook guards, the CLI's Go verbs and the
130 // rebase engine write, and the integrator and the review module read.
131 // Each reads a record through it, so a change to it requires their tests
132 // as well as its own.
133 classes: change: {
134 paths: "change/**": true
135 requires: "change-unit": true
136 requires: "review-unit": true
137 requires: "valleyhook-unit": true
138 requires: "protect-e2e": true
139 requires: "rebase-unit": true
140 requires: "valley-go-unit": true
141 requires: "valley-ready": true
142 requires: "valley-changes": true
143 requires: "integrator-unit": true
144 requires: "integrator-e2e": true
145 }
146
147 // The plan graph's module, which the CLI's Go verbs write the graph
148 // with and the hook validates it with. knot-agree holds its validator
149 // to the node schema and the knowledge lint, valley-knot and
150 // valley-plan drive the verbs that use it, and knots-e2e pushes
151 // through the hook. The web export reads names and knot IDs by its
152 // rules, and the web server reads a claim's age by them, so
153 // web-unit and web-server-unit are here too.
154 classes: knot: {
155 paths: "knot/**": true
156 requires: "knot-unit": true
157 requires: "knot-agree": true
158 requires: "valley-go-unit": true
159 requires: "valley-knot": true
160 requires: "valley-plan": true
161 requires: "valleyhook-unit": true
162 requires: "knots-e2e": true
163 requires: "web-unit": true
164 requires: "web-server-unit": true
165 }
166
167 // valley-delta-v1, which the CLI's Go verbs compare a version with its
168 // approved version through, and which the review module recomputes a
169 // review's binding with. delta-unit holds it to its conformance vectors,
170 // valley-go-unit builds the verbs with it, valley-ready and review-notes
171 // drive review over the comparison, and review-unit binds reviews with
172 // its bounded reading.
173 classes: delta: {
174 paths: "delta/**": true
175 requires: "delta-unit": true
176 requires: "valley-go-unit": true
177 requires: "valley-ready": true
178 requires: "review-notes": true
179 requires: "review-unit": true
180 }
181
182 // Review records: the record, its binding to the version it judged, and
183 // its append-only history. review-unit runs its tests against real git.
184 classes: review: {
185 paths: "review/**": true
186 requires: "review-unit": true
187 }
188
189 // The deriver of required checks, and the composed-policy reader it reads
190 // the whole policy through. derive-unit holds the deriver to bin/valley's,
191 // and valley-go-unit builds the verb that prints its answer with both.
192 classes: derive: {
193 paths: "derive/**": true
194 paths: "composed/**": true
195 requires: "derive-unit": true
196 requires: "valley-go-unit": true
197 }
198
199 // The note envelope. The hook and attest both read notes through it,
200 // the identity compiler reads its approval files back with it, and the
201 // web export's manifest is a note, which the web server builds with,
202 // so a change to it requires their tests as well as its own.
203 classes: note: {
204 paths: "note/**": true
205 requires: "note-unit": true
206 requires: "valleyhook-unit": true
207 requires: "protect-e2e": true
208 requires: "attest-unit": true
209 requires: "attest-e2e": true
210 requires: "identity-unit": true
211 requires: "web-unit": true
212 requires: "web-server-unit": true
213 }
214
215 // The attestation helper, and the conformance vectors under
216 // attest/conformance/ that hold its written form fixed. restack-e2e
217 // signs the changes' evidence with attest run.
218 classes: attest: {
219 paths: "attest/**": true
220 requires: "attest-unit": true
221 requires: "attest-conformance": true
222 requires: "attest-e2e": true
223 requires: "restack-e2e": true
224 }
225
226 // The strict JSON reader. The hook reads its push policy with it, the
227 // identity compiler its registry, read access a policy/read, and the
228 // web export, publisher, server and receiver what they are sent, so a
229 // change to it requires their unit tests as well as its own.
230 classes: exactjson: {
231 paths: "exactjson/**": true
232 requires: "exactjson-unit": true
233 requires: "valleyhook-unit": true
234 requires: "identity-unit": true
235 requires: "readaccess-unit": true
236 requires: "web-unit": true
237 requires: "web-server-unit": true
238 requires: "web-receiver-unit": true
239 }
240
241 // The identity registry compiler, and the registries it is driven over.
242 classes: identity: {
243 paths: "identity/**": true
244 paths: "examples/identity/**": true
245 requires: "identity-unit": true
246 requires: "identity-e2e": true
247 }
248
249 // Telemetry: the records, streams and command grammar of telemetry/, the
250 // collector built from it, and the host module's half in
251 // nix/telemetry.nix. The git user's shell parses the command with it,
252 // attest, the worker and the integrator write its streams, and the CLI
253 // reads and reports with it, so a change to it requires their unit
254 // tests as well as its own. telemetry-e2e drives all of it on a NixOS
255 // machine. module-eval evaluates the module in nix/telemetry.nix, so the
256 // module-eval class requires it for that file. It runs none of the
257 // collector's code, so a change under telemetry/ does not require it.
258 classes: telemetry: {
259 paths: "telemetry/**": true
260 paths: "nix/telemetry.nix": true
261 requires: "telemetry-unit": true
262 requires: "telemetry-e2e": true
263 requires: "valleyhook-unit": true
264 requires: "attest-unit": true
265 requires: "valley-go-unit": true
266 requires: "integrator-unit": true
267 }
268
269 // The producers and the CLI that record and send telemetry: attest's
270 // progress, the worker's and the workstation's records, and approve,
271 // which runs them. telemetry-e2e observes each over ssh.
272 classes: "telemetry-producers": {
273 paths: "attest/progress.go": true
274 paths: "status/telemetry.go": true
275 paths: "status/workertelemetry.go": true
276 paths: "bin/valley": true
277 requires: "telemetry-e2e": true
278 }
279
280 // The check worker's own code: its pass and its records in status/, the
281 // wake directory it claims, and attest's run, which runs each check a
282 // pass builds, signs and stores the evidence, and reports its progress.
283 // worker-e2e runs those passes on a NixOS machine. The rest of status/
284 // and attest/ serves other commands too, and their classes require
285 // their own checks.
286 classes: worker: {
287 paths: "status/worker.go": true
288 paths: "status/workertelemetry.go": true
289 paths: "status/wake.go": true
290 paths: "attest/run.go": true
291 paths: "attest/check.go": true
292 paths: "attest/progress.go": true
293 requires: "worker-e2e": true
294 }
295
296 // The integrator, the end-to-end scenarios under integrator/e2e/, and the
297 // verification schema, which the integrator composes every policy under
298 // and both checks read. restack-e2e runs the real integrator too: it
299 // lands one change and rejects another.
300 classes: integrator: {
301 paths: "integrator/**": true
302 paths: "composed/**": true
303 paths: "schema/verification.cue": true
304 requires: "integrator-unit": true
305 requires: "integrator-e2e": true
306 requires: "restack-e2e": true
307 }
308
309 // The security-key signature verifier.
310 classes: sigverify: {
311 paths: "sigverify/**": true
312 requires: "sigverify-unit": true
313 requires: "sigverify-e2e": true
314 }
315
316 // The web UI's module: the export contract, its shared fixture, the
317 // publisher, the server and its browser state, and the receiver. The
318 // publisher's tests also read each project's policy/read and the
319 // instance's registry under the read and identity schemas.
320 // web-push-e2e runs the three programs as they ship, and
321 // web-reader-state-crash kills valley-web inside its browser state's
322 // transactions. Changes require all five checks.
323 classes: web: {
324 paths: "web/**": true
325 paths: "schema/read.cue": true
326 paths: "schema/identity.cue": true
327 requires: "web-unit": true
328 requires: "web-server-unit": true
329 requires: "web-reader-state-crash": true
330 requires: "web-receiver-unit": true
331 requires: "web-push-e2e": true
332 }
333
334 // What a browser engine runs or is served by on a reader page:
335 // web-reader-browser-e2e runs the packaged valley-web under headless
336 // Chromium. So it is required for the reader script and pages, the
337 // layout and the stylesheet whose hash every policy carries, the
338 // rendering and its policies, the dispatch and headers in server.go,
339 // the reader handlers, the command that sets up the browser state, the
340 // check's own test, and the packaging that builds the binary and its
341 // assets. Its definition is its own class's, check-<name> below. The
342 // publisher, package export, archives and the projection of the graph
343 // are not here: a change to them alone needs no browser.
344 classes: "reader-browser": {
345 paths: "web/server/assets/reader.js": true
346 paths: "web/server/assets/style.css": true
347 paths: "web/server/templates/redeem.tmpl": true
348 paths: "web/server/templates/logout.tmpl": true
349 paths: "web/server/templates/layout.tmpl": true
350 paths: "web/server/render.go": true
351 paths: "web/server/server.go": true
352 paths: "web/server/reader.go": true
353 paths: "web/cmd/valley-web/main.go": true
354 paths: "web/cmd/valley-web/browser_test.go": true
355 paths: "nix/packages.nix": true
356 requires: "web-reader-browser-e2e": true
357 }
358
359 // The real publisher's output that web-server-unit serves:
360 // nix/checks/web-published.sh runs the publisher and the CLI as they
361 // ship, and the server's tests read what it writes.
362 classes: "web-published": {
363 paths: "nix/checks/web-published.sh": true
364 requires: "web-server-unit": true
365 }
366
367 // Read access: the two consents a reader needs, the evaluator that
368 // intersects them, and the coverage report. readaccess-unit reads both
369 // schemas, so a change to either requires it, and the web publisher
370 // reads its consents through the module, so web-unit runs too.
371 classes: readaccess: {
372 paths: "readaccess/**": true
373 paths: "schema/read.cue": true
374 paths: "schema/identity.cue": true
375 requires: "readaccess-unit": true
376 requires: "web-unit": true
377 }
378
379 // The valley CLI: the script, its Go verbs (status/), the rebase engine
380 // they rebase and read landings with (rebase/), and its completions.
381 // valley-ready drives ready, withdraw, rebase and the verbs that take a
382 // change's handle, valley-changes drives changes and pending,
383 // valley-plan drives plan against the golden files under
384 // status/testdata/plan/, and valley-self-update drives --version and
385 // self-update. derive-unit holds the script's deriver to the Go one.
386 // The web publisher reads the valley through plan, pending and knot
387 // show, and its tests in web-unit run the CLI itself, as web-push-e2e
388 // runs the CLI's package.
389 classes: cli: {
390 paths: "bin/valley": true
391 paths: "status/**": true
392 paths: "rebase/**": true
393 paths: "completions/**": true
394 requires: "valley-go-unit": true
395 requires: "valley-cli": true
396 requires: "review-notes": true
397 requires: "valley-request": true
398 requires: "valley-status": true
399 requires: "valley-ready": true
400 requires: "valley-changes": true
401 requires: "valley-knot": true
402 requires: "valley-plan": true
403 requires: "valley-self-update": true
404 requires: "policy-deriver": true
405 requires: "derive-unit": true
406 requires: "web-unit": true
407 requires: "web-push-e2e": true
408 requires: "integrator-e2e": true
409 }
410
411 // The push path as it ships: web-push-e2e runs the publisher, the
412 // receiver, valley-web and the CLI as nix/packages.nix builds and wraps
413 // them, and exports its host declaration under schema/valley.cue. The
414 // web and cli classes require it for the code it runs.
415 classes: "web-push": {
416 paths: "nix/packages.nix": true
417 paths: "schema/valley.cue": true
418 requires: "web-push-e2e": true
419 }
420
421 // Self-update: its module (selfupdate/), the policy the package ships
422 // for its smoke test, and the home-manager module that runs it on a
423 // timer. valley-go-unit builds the verb with the module, and
424 // valley-self-update drives the verb through the package and holds the
425 // units the home-manager module renders.
426 classes: selfupdate: {
427 paths: "selfupdate/**": true
428 paths: "examples/policy/smoke/**": true
429 paths: "nix/home-module.nix": true
430 requires: "selfupdate-unit": true
431 requires: "valley-go-unit": true
432 requires: "valley-self-update": true
433 }
434
435 // The rebase engine, with its own tests over real repositories. The
436 // verbs that run it are the cli class's, so its paths are there too.
437 classes: rebase: {
438 paths: "rebase/**": true
439 requires: "rebase-unit": true
440 }
441
442 // The restacker, with its unit tests and its planner end to end. It
443 // reads origin through the rebase engine and the policy through the
444 // composed-policy reader it shares with the integrator, so a change to
445 // either requires its checks too.
446 classes: restack: {
447 paths: "restack/**": true
448 paths: "composed/**": true
449 paths: "rebase/**": true
450 requires: "restack-unit": true
451 requires: "restack-e2e": true
452 }
453
454 // What a client verifies an integrator's transfer statement with: the
455 // host's publisher and the default name it publishes, the unit that
456 // runs it, the client's reading of the signers, the instance discovery
457 // it reads them through, and the snapshot that asks for them.
458 // signers-e2e drives them together over the real integrator.
459 classes: signers: {
460 paths: "integrator/signers.go": true
461 paths: "integrator/main.go": true
462 paths: "nix/valley-host.nix": true
463 paths: "status/signers.go": true
464 paths: "status/list.go": true
465 paths: "rebase/snapshot.go": true
466 requires: "signers-e2e": true
467 }
468
469 // The web publisher's module, which runs the publisher on a timer in a
470 // sandbox of its own. web-publisher-e2e runs the unit it renders in a
471 // NixOS machine. module-eval, in the module-eval class, holds what it
472 // renders.
473 classes: "web-publisher": {
474 paths: "nix/web-publisher.nix": true
475 requires: "web-publisher-e2e": true
476 }
477
478 // The verification policy: this layer, the pointer to the owning
479 // valley, the schema a policy is written in, and the example policies
480 // the derivers and cue-vet read.
481 classes: policy: {
482 paths: "policy/**": true
483 paths: "schema/verification.cue": true
484 paths: "examples/policy/**": true
485 requires: "policy-deriver": true
486 requires: "derive-unit": true
487 requires: "cue-vet": true
488 requires: "own-policy": true
489 }
490
491 // What module-eval evaluates: the NixOS modules, the host declarations
492 // it renders and the files they are exported from, and the wiring that
493 // hands them to the check. Nothing else changes its derivation. An edit
494 // to another check's script or definition, to the packages, or to a
495 // program's code leaves it unchanged, so those paths are not here. That
496 // holds for nix/checks/ in general: each file there is its own check's,
497 // by the per-check classes below, and module-eval's own files are
498 // nix/checks/module-eval.sh, nix/checks/host-module.nix and
499 // nix/checks/hosts.nix.
500 classes: "module-eval": {
501 paths: "nix/valley-host.nix": true
502 paths: "nix/telemetry.nix": true
503 paths: "nix/web-publisher.nix": true
504 paths: "nix/web-receiver.nix": true
505 paths: "nix/checks.nix": true
506 paths: "nix/checks/hosts.nix": true
507 paths: "nix/checks/host-module.nix": true
508 paths: "schema/valley.cue": true
509 paths: "flake.nix": true
510 paths: "flake.lock": true
511 paths: "examples/host.cue": true
512 paths: "examples/hosts/protected.cue": true
513 paths: "examples/hosts/no-backup.cue": true
514 paths: "examples/hosts/bus.cue": true
515 paths: "examples/hosts/mirrors.cue": true
516 requires: "module-eval": true
517 }
518
519 // The flake, the NixOS module, the packages and the check definitions,
520 // and the host declarations the module checks are evaluated over.
521 // own-policy is here because renaming or removing a flake check would
522 // leave this layer naming a check that no longer exists. A change to
523 // flake.nix or flake.lock requires these and module-eval, which boots
524 // no machine, so a nixpkgs bump boots none.
525 classes: nix: {
526 paths: "nix/**": true
527 paths: "flake.nix": true
528 paths: "flake.lock": true
529 paths: "examples/host.cue": true
530 paths: "examples/hosts/**": true
531 requires: "valley-darwin-eval": true
532 requires: "cue-vet": true
533 requires: "own-policy": true
534 }
535
536 // The schemas, and the example events, attestations and registries they
537 // are vetted against.
538 classes: schema: {
539 paths: "schema/**": true
540 paths: "examples/events/**": true
541 paths: "examples/attestations/**": true
542 paths: "examples/identity/**": true
543 requires: "cue-vet": true
544 requires: "attest-schema": true
545 requires: "identity-schema": true
546 }
547
548 // The knowledge lint itself: its program, the node schema it holds a
549 // graph to, and the example graphs it must accept and reject. The plan
550 // graph's validator is held to the same two by knot-agree.
551 classes: "knowledge-lint": {
552 paths: "nix/knowledge-lint.*": true
553 paths: "schema/node.cue": true
554 paths: "examples/graphs/**": true
555 requires: "knowledge-lint-consumer": true
556 requires: "knowledge-lint-rejects": true
557 requires: "knot-agree": true
558 }
559
560 // The NixOS module and what its end-to-end checks run. The hook checks
561 // follow the scripts out of the hosts in nix/checks/hosts.nix, which
562 // are made of the three declarations named here; ssh-e2e, publish-e2e,
563 // worker-e2e and restack-host-e2e run the module in NixOS machines.
564 classes: "host-module": {
565 paths: "nix/valley-host.nix": true
566 paths: "nix/checks/hosts.nix": true
567 paths: "examples/hosts/protected.cue": true
568 paths: "examples/hosts/bus.cue": true
569 paths: "examples/hosts/mirrors.cue": true
570 requires: "init-e2e": true
571 requires: "mirror-e2e": true
572 requires: "bus-e2e": true
573 requires: "protect-e2e": true
574 requires: "knots-e2e": true
575 requires: "identity-e2e": true
576 requires: "ssh-e2e": true
577 requires: "publish-e2e": true
578 requires: "worker-e2e": true
579 requires: "restack-host-e2e": true
580 requires: "valley-changes": true
581 }
582
583 // A check's own files require that check: its script,
584 // nix/checks/<name>.sh, and its definition, nix/checks/<name>.nix,
585 // where it has a file of its own. One class per check, named
586 // check-<name>. prose-format is the floor's check, but its script is
587 // here. own-policy fails if a script under nix/checks/ requires no
588 // check.
589 for n in list.Concat([ownChecks, ["prose-format"]]) {
590 classes: ("check-\(n)"): {
591 paths: ("nix/checks/\(n).sh"): true
592 paths: ("nix/checks/\(n).nix"): true
593 requires: (n): true
594 }
595 }
596
597 // The other files under nix/checks/, and the checks that read each: the
598 // definitions of a subject's checks, and the helpers and rejection lists
599 // a check is given. cli.nix, which defines every check of bin/valley,
600 // is left to the nix class, as is nix/checks.nix, which wires them all.
601 let checkFiles = {
602 "attest.nix": ["attest-unit", "attest-conformance", "attest-e2e"]
603 "telemetry.nix": ["telemetry-unit", "telemetry-e2e"]
604 "delta.nix": ["delta-unit"]
605 "derive.nix": ["derive-unit"]
606 "review.nix": ["review-unit"]
607 "identity.nix": ["identity-unit", "identity-e2e"]
608 "integrator.nix": ["integrator-unit", "integrator-e2e"]
609 "signers.nix": ["signers-e2e"]
610 "sigverify.nix": ["sigverify-unit", "sigverify-e2e"]
611 "web.nix": ["web-unit", "web-server-unit", "web-reader-state-crash", "web-receiver-unit", "web-image", "readaccess-unit"]
612 "schema.nix": ["cue-vet", "attest-schema", "identity-schema"]
613 "knowledge.nix": ["knowledge-lint-consumer", "knowledge-lint-rejects", "prose-format"]
614 "hooks.nix": ["valleyhook-unit", "change-unit", "mirror-e2e", "protect-e2e", "init-e2e", "bus-e2e"]
615 "host-module.nix": ["module-eval"]
616 "fail-nth.sh": ["policy-deriver", "valley-request"]
617 "review-notes-editor.sh": ["review-notes"]
618 "cue-vet-rejected.txt": ["cue-vet"]
619 "identity-rejected.txt": ["identity-schema"]
620 "knowledge-lint-rejected.txt": ["knowledge-lint-rejects"]
621 }
622 for f, ns in checkFiles {
623 classes: ("check-file-\(strings.Replace(f, ".", "-", -1))"): {
624 paths: ("nix/checks/\(f)"): true
625 requires: {for n in ns {(n): true}}
626 }
627 }
628
629 // How far an approval carries across a rebase (#Carry in
630 // schema/verification.cue). Every path not named here is same-paths.
631 //
632 // The hook, the integrator, the signature verifier and the identity
633 // compiler enforce who may do what. An approval of a change to one of
634 // them carries only while no landing has touched the same classes:
635 // same-class. The identity compiler's class is its code and the schema
636 // it holds a registry to. It requires nothing, because the identity and
637 // schema classes already require the checks of its paths.
638 classes: valleyhook: carry: "same-class": true
639 classes: integrator: carry: "same-class": true
640 classes: sigverify: carry: "same-class": true
641 classes: "identity-compiler": {
642 paths: "identity/**": true
643 paths: "schema/identity.cue": true
644 carry: "same-class": true
645 }
646
647 // The policy decides what every change requires, so an approval of a
648 // change to it carries across no landing at all: exact. That is this
649 // layer, the pointer to the owning valley, and the schema a policy is
650 // written in. The example policies are fixtures and stay same-paths. Like
651 // identity-compiler, this class requires nothing: the policy class
652 // requires the checks of its paths.
653 //
654 // This tree holds no registry, grant or secret data of its own. The
655 // registries, grants and keys under examples/ and attest/conformance/
656 // are test fixtures, and the instance's registry is in its instance
657 // repository. So nothing else here is exact.
658 classes: "policy-authority": {
659 paths: "policy/**": true
660 paths: "schema/verification.cue": true
661 carry: exact: true
662 }
663
664 // The restacker's cap is the schema's default of 64 automatic versions
665 // per change.
666}
667
668// What no class above covers falls to the floor's `unclassified` rule and
669// requires prose-format alone. That is the research artefacts under research/,
670// the GitHub mirror's workflow under .github/, and editor settings: files
671// no program here reads.