|
| 1 | +# Auto-generated by: contractile gen-just |
| 2 | +# Source directory: contractiles |
| 3 | +# Re-generate with: contractile gen-just --dir contractiles |
| 4 | +# |
| 5 | +# SPDX-License-Identifier: PMPL-1.0-or-later |
| 6 | + |
| 7 | +# === DUST (Recovery & Rollback) === |
| 8 | +# Source: Dustfile.a2ml |
| 9 | + |
| 10 | +# List available dust recovery actions |
| 11 | +dust-status: |
| 12 | + @echo ' dust-source-rollback: Revert all source changes to last commit [rollback]' |
| 13 | + |
| 14 | +# Revert all source changes to last commit |
| 15 | +dust-source-rollback: |
| 16 | + @echo 'Executing rollback for source-rollback' |
| 17 | + git checkout HEAD -- . |
| 18 | + |
| 19 | + |
| 20 | +# === INTEND (Declared Future Intent) === |
| 21 | +# Source: Intentfile.a2ml |
| 22 | + |
| 23 | +# Display declared future intents |
| 24 | +intend-list: |
| 25 | + @echo '=== Declared Intent ===' |
| 26 | + @echo '' |
| 27 | + @echo 'Features:' |
| 28 | + @echo '' |
| 29 | + @echo 'Quality:' |
| 30 | + |
| 31 | + |
| 32 | +# === MUST (Physical State Checks) === |
| 33 | +# Source: Mustfile.a2ml |
| 34 | + |
| 35 | +# Run all must checks |
| 36 | +must-check: must-license-present must-readme-present must-spdx-headers must-no-banned-files |
| 37 | + @echo 'All must checks passed' |
| 38 | + |
| 39 | +# LICENSE file must exist |
| 40 | +must-license-present: |
| 41 | + test -f LICENSE |
| 42 | + |
| 43 | +# README must exist |
| 44 | +must-readme-present: |
| 45 | + test -f README.adoc || test -f README.md |
| 46 | + |
| 47 | +# Source files should have SPDX license headers |
| 48 | +must-spdx-headers: |
| 49 | + find . -name '*.rs' -o -name '*.res' -o -name '*.gleam' | head -20 | xargs -r grep -L 'SPDX-License-Identifier' | wc -l | grep -q '^0$' |
| 50 | + |
| 51 | +# No Dockerfiles or Makefiles |
| 52 | +must-no-banned-files: |
| 53 | + test ! -f Dockerfile && test ! -f Makefile |
| 54 | + |
| 55 | + |
| 56 | +# === TRUST (Integrity & Provenance Verification) === |
| 57 | +# Source: Trustfile.a2ml |
| 58 | + |
| 59 | +# Run all trust verifications |
| 60 | +trust-verify: trust-license-content trust-no-secrets-committed trust-container-images-pinned |
| 61 | + @echo 'All trust verifications passed' |
| 62 | + |
| 63 | +# LICENSE contains expected SPDX identifier |
| 64 | +trust-license-content: |
| 65 | + grep -q 'SPDX\|License\|MIT\|Apache\|PMPL\|MPL' LICENSE |
| 66 | + |
| 67 | +# No .env or credential files in repo |
| 68 | +trust-no-secrets-committed: |
| 69 | + test ! -f .env && test ! -f credentials.json && test ! -f .env.local |
| 70 | + |
| 71 | +# Containerfile base images use pinned digests |
| 72 | +trust-container-images-pinned: |
| 73 | + test ! -f Containerfile || grep -q '@sha256:' Containerfile |
| 74 | + |
| 75 | + |
0 commit comments