| 1 | # What is tested, and where each test's logic lives. |
| 2 | # |
| 3 | # One file per subject, each returning the checks for it. A check's shell |
| 4 | # body is never here: it is a script under checks/, and a check definition |
| 5 | # is only what builds it, what it is given, and why it exists. |
| 6 | # |
| 7 | # hosts.nix the eval-only host declarations the module checks share |
| 8 | # host-module.nix module-eval — what the NixOS module renders from a |
| 9 | # declaration, and what it must refuse |
| 10 | # schema.nix cue-vet, attest-schema, identity-schema — the schemas |
| 11 | # against the examples they accept and the ones they |
| 12 | # must reject |
| 13 | # knowledge.nix knowledge-lint and its consumer and rejection forms, |
| 14 | # prose-format — the graph and the prose |
| 15 | # attest.nix attest-conformance, attest-e2e — the written form as a |
| 16 | # fixed contract, and the helper driven end to end |
| 17 | # integrator.nix integrator-unit, integrator-e2e — the verdict rules, |
| 18 | # and the controller over real repositories |
| 19 | # hooks.nix mirror-e2e, bus-e2e, protect-e2e, init-e2e — the hooks |
| 20 | # the module renders, run against real git, and the init |
| 21 | # script that wires them |
| 22 | # identity.nix identity-e2e — the registry compiler over a real |
| 23 | # instance repository, against the hand-written |
| 24 | # artifacts it replaces |
| 25 | # cli.nix valley-cli, review-notes, policy-deriver, |
| 26 | # valley-request — bin/valley |
| 27 | # |
| 28 | # Fixtures live with the thing they are fixtures of: host declarations, |
| 29 | # attestations, events, graphs and policies under examples/, attestation |
| 30 | # vectors under attest/, the integrator's scenarios under integrator/e2e/. |
| 31 | { |
| 32 | pkgs, |
| 33 | lib, |
| 34 | self, |
| 35 | system, |
| 36 | packages, |
| 37 | }: |
| 38 | let |
| 39 | hosts = import ./checks/hosts.nix { |
| 40 | inherit |
| 41 | pkgs |
| 42 | lib |
| 43 | self |
| 44 | system |
| 45 | ; |
| 46 | }; |
| 47 | args = { |
| 48 | inherit |
| 49 | pkgs |
| 50 | lib |
| 51 | self |
| 52 | system |
| 53 | packages |
| 54 | hosts |
| 55 | ; |
| 56 | }; |
| 57 | in |
| 58 | import ./checks/host-module.nix args |
| 59 | // import ./checks/schema.nix args |
| 60 | // import ./checks/knowledge.nix args |
| 61 | // import ./checks/attest.nix args |
| 62 | // import ./checks/integrator.nix args |
| 63 | // import ./checks/hooks.nix args |
| 64 | // import ./checks/identity.nix args |
| 65 | // import ./checks/cli.nix args |