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 / AT1 / 20261010T123939Z-ff81466-clock-shift / hidden_run.sh

44 lines · 3695 bytes Raw Blame History
1#!/bin/sh
2# Agent 0 (session 85679b2b), AT-1 G8 follow-up items 2 and 4: run Agent 4's revealed 27-case withheld set.
3# sh hidden_run.sh <clone-root at ff81466> <hidden-dir (.case files only)> <out-dir>
4# Mirrors integration/run.sh sections 3-4 for the provenance file, then the evaluator's own run.sh
5# with the two integration shims (public corpus, then the hidden set). POSIX sh; Linux and macOS.
6# AT1_CLOCK_WRAP (optional): command prefix for the qualification step only, e.g.
7# AT1_CLOCK_WRAP='faketime 2028-10-10T12:00:00' (item 4 shifted-clock control).
8# The provenance and toolchain queries stay on the real clock: `rustc --version` deadlocks under libfaketime.
9set -eu
10ROOT=$(cd "$1" && pwd -P); HID=$(cd "$2" && pwd -P); OUT=$3
11mkdir -p "$OUT"; OUT=$(cd "$OUT" && pwd -P)
12AT1=$ROOT/research/atemporal/at1; INT=$AT1/integration
13HEAD=$(git -C "$ROOT" rev-parse HEAD)
14CLEAN=YES; [ -n "$(git -C "$ROOT" status --porcelain)" ] && CLEAN=NO
15if command -v sha256sum > /dev/null 2>&1; then SHATOOL="sha256sum"; else SHATOOL="shasum -a 256"; fi
16sha() { $SHATOOL "$1" | cut -c1-64; }
17LOCK="$INT/contract.lock"; lock() { sed -n "s/^$1 //p" "$LOCK" | head -1; }
18CONTRACT_COMMIT=$(lock contract_commit)
19MODEL="$AT1/model/build/at1-model"; ORACLE="$AT1/oracle/target/at1-oracle"; EVAL="$AT1/evaluator/build/at1-eval"
20CCBIN=${CC:-cc}; CC_V=$($CCBIN --version 2>&1 | head -1); RUSTC_V=$(rustc --version 2>&1)
21HOSTN=$(cat /etc/hostname 2>/dev/null || uname -n)
22OSDESC=$(uname -srm); command -v sw_vers > /dev/null 2>&1 && OSDESC="$(sw_vers -productName) $(sw_vers -productVersion) $(uname -m)"
23MCFLAGS=$(sed -n 's/^CFLAGS = //p' "$AT1/model/Makefile" | head -1)
24OFLAGS=$(sed -n 's/^FLAGS="\(.*\)"$/\1/p' "$AT1/oracle/build.sh" | head -1)
25ptext() { printf '%s' "$1" | tr -cd ' -~' | tr -s ' ' | sed 's/^ //; s/ $//' | cut -c1-200 | sed 's/ $//'; }
26ENGINE_SHA=$(sha "$MODEL"); ORACLE_SHA=$(sha "$ORACLE")
27BCC=$(ptext "$CC_V (engine); $RUSTC_V (oracle)"); BFL=$(ptext "engine: $MCFLAGS -lm; oracle: rustc $OFLAGS"); HOSTT=$(ptext "$HOSTN $OSDESC")
28PROV="$OUT/provenance.static"
29{ echo "source_repo aien-dev/omega"; echo "source_commit $HEAD"; echo "source_tree_clean $CLEAN"; echo "contract_commit $CONTRACT_COMMIT"
30 echo "engine_sha256 $ENGINE_SHA"; echo "oracle_repo aien-dev/omega"; echo "oracle_commit $HEAD"; echo "oracle_sha256 $ORACLE_SHA"
31 echo "build_cc $BCC"; echo "build_flags $BFL"; echo "host $HOSTT"; } > "$PROV"
32{ echo "date_utc $(date -u +%Y-%m-%dT%H:%M:%SZ)"; echo "uname $(uname -srm)"; echo "host $HOSTN"; echo "os $OSDESC"
33 echo "cc ($CCBIN) $CC_V"; echo "make $(make --version 2>&1 | head -1)"; echo "sh $(ls -l /bin/sh 2>&1)"; echo "sha tool $SHATOOL"
34 echo "git $(git --version)"; [ -n "${AT1_CLOCK_WRAP:-}" ] && echo "clock_wrap $AT1_CLOCK_WRAP"; echo "--- rustc -vV"; rustc -vV 2>&1; } > "$OUT/toolchain.txt"
35{ echo "$ENGINE_SHA at1-model"; echo "$ORACLE_SHA at1-oracle"; echo "$(sha "$EVAL") at1-eval"; } > "$OUT/binaries.sha256"
36( cd "$HID" && ls *.case | LC_ALL=C sort | while read -r f; do printf '%s %s\n' "$(sha "$f")" "$f"; done ) > "$OUT/HIDDEN_MANIFEST.txt"
37echo "commitment $($SHATOOL "$OUT/HIDDEN_MANIFEST.txt" | cut -c1-64)" > "$OUT/HIDDEN_COMMITMENT_RECOMPUTED.txt"
38cat "$OUT/HIDDEN_COMMITMENT_RECOMPUTED.txt"
39export AT1_MODEL_BIN="$MODEL" AT1_ORACLE_BIN="$ORACLE" AT1_PROV_STATIC="$PROV" AT1_COMP_DIR="$OUT/components"
40cd "$AT1/evaluator"
41rc=0
42${AT1_CLOCK_WRAP:-} sh run.sh "sh $INT/engine_shim.sh {case} {out}" "sh $INT/oracle_shim.sh {case} {out}" cases "$OUT/qualify" "$HID" > "$OUT/run.console.log" 2>&1 || rc=$?
43echo "$rc" > "$OUT/run.exit"
44echo "evaluator run.sh rc=$rc (omega $HEAD, host $HOSTN${AT1_CLOCK_WRAP:+, clock wrap: $AT1_CLOCK_WRAP})"