interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / evidence / CAND3-AUDIT-20261006 / runners / cand3_compare.sh

10 lines · 571 bytes Raw Blame History
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)
4set -u
5A=$1/digests.txt; B=$2/digests.txt
6for f in "$A" "$B"; do [ -s "$f" ] || { echo "FAIL missing or empty $f"; exit 2; }; done
7if [ "$(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
9fi
10echo "FAIL cross-root:"; diff "$A" "$B"; exit 1