omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / evidence / CAND3-AUDIT-20261006 / runners / cand3_compare.sh
| 1 | #!/usr/bin/env bash |
| 2 | # Cross-root equality: every required artifact must have the same digest in both roots' digests.txt. |
| 3 | # Usage: cand3_compare.sh <evidence dir A> <evidence dir B> (e.g. CAND3-BUILD-A CAND3-BUILD-B) |
| 4 | set -u |
| 5 | A=$1/digests.txt; B=$2/digests.txt |
| 6 | for f in "$A" "$B"; do [ -s "$f" ] || { echo "FAIL missing or empty $f"; exit 2; }; done |
| 7 | if [ "$(wc -l < "$A")" = 18 ] && [ "$(wc -l < "$B")" = 18 ] && cmp -s "$A" "$B"; then |
| 8 | echo "PASS cross-root: all 18 required artifacts identical from both roots"; exit 0 |
| 9 | fi |
| 10 | echo "FAIL cross-root:"; diff "$A" "$B"; exit 1 |