| 1 | // Carry case 1. The floor pins `exact` on the guarded class, so the class |
| 2 | // resolves to `exact`. The template adds nothing, and the project adds a path |
| 3 | // to the class and leaves its carry alone. The same project writing |
| 4 | // `exact: false` is rejected/project-drops-floor-exact.cue. |
| 5 | // |
| 6 | // Each case here is the three layers composed in one document, as |
| 7 | // schema/verification.cue composes them. cue-vet vets each one and checks |
| 8 | // the mode the class resolves to. |
| 9 | package verification |
| 10 | |
| 11 | floor: { |
| 12 | checks: "c-build": {runner: "nix", attribute: "c-build"} |
| 13 | classes: guarded: { |
| 14 | paths: "keys/**": true |
| 15 | requires: "c-build": true |
| 16 | carry: exact: true |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | templates: plain: {} |
| 21 | type: "plain" |
| 22 | |
| 23 | project: classes: guarded: paths: "grants/**": true |