| 1 | // Approval case 1. The floor requires a hardware key, so the composed policy |
| 2 | // does. The project adds a path to the floor's class and leaves the |
| 3 | // requirement alone. The same project writing `hardware: false` is |
| 4 | // rejected/project-drops-floor-hardware.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 | // what the composed policy says about hardware keys. |
| 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 | } |
| 17 | approval: hardware: true |
| 18 | } |
| 19 | |
| 20 | templates: plain: {} |
| 21 | type: "plain" |
| 22 | |
| 23 | project: classes: guarded: paths: "grants/**": true |