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 / CAND1-QUIET-AUDIT-20261005 / runners / window.sh
| 1 | #!/bin/bash |
| 2 | # CAND-1 quiet-window gates: R11 living, R15 silicon acceptance campaign, attention timing (ABAB-free: CAND-1 only, 3 runs). |
| 3 | # Runs under one quietlock hold (Drake's 2026-10-05 campaign prompt = approval). Never killed, never wrapped in timeout. |
| 4 | set -u |
| 5 | CODE_SHA=cb06d081901c03063945a99ffed1c58d33397e9c; PHYS_SHA=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf |
| 6 | W=$HOME/workspace/overnight-1005; O=$W/wt-CAND1-omega-chip; P=$W/wt-CAND1-physics-chip |
| 7 | OUT=${OUT:?}; mkdir -p "$OUT"; cd "$O" || exit 2 |
| 8 | export PHYSICS_DIR=$P AIENOS_R7_DIR=$W/wt-CAND1-aienos |
| 9 | snap() { local d=$1/machine-$2; mkdir -p "$d"; date -u +%FT%TZ > "$d/time.txt" |
| 10 | nvidia-smi > "$d/nvidia-smi.txt" 2>&1 |
| 11 | nvidia-smi --query-gpu=name,driver_version,pci.bus_id,uuid,temperature.gpu,utilization.gpu,clocks.sm,power.draw --format=csv > "$d/gpu-identity.csv" 2>&1 |
| 12 | nvidia-smi --query-compute-apps=pid,process_name,used_memory --format=csv > "$d/gpu-processes.csv" 2>&1 |
| 13 | ps -eo pid,user,pcpu,pmem,etime,args --sort=-pcpu | head -40 | cut -c1-200 > "$d/top-cpu.txt" |
| 14 | cat /proc/loadavg > "$d/loadavg.txt"; uname -a > "$d/uname.txt"; cat /etc/machine-id > "$d/machine-id.txt" |
| 15 | pgrep -c qemu > "$d/qemu-count.txt"; pgrep -c -f 'cargo|rustc|cc1|clangd' > "$d/build-proc-count.txt" |
| 16 | cat ~/workspace/.spark-quiet > "$d/quiet-flag.txt" 2>&1 |
| 17 | { echo "omega $(git -C "$O" rev-parse HEAD) dirty=[$(git -C "$O" status --porcelain --untracked-files=no | head -3 | tr '\n' ' ')]"; |
| 18 | echo "physics $(git -C "$P" rev-parse HEAD)"; echo "physics.lock $(head -1 "$O/physics.lock")"; } > "$d/heads.txt" |
| 19 | dmesg 2>/dev/null | grep -ci xid > "$d/xid-count.txt" || true; } |
| 20 | guard() { [ "$(git -C "$P" rev-parse HEAD)" = "$PHYS_SHA" ] || { echo "physics HEAD wrong"; exit 2; } |
| 21 | [ -z "$(git -C "$O" status --porcelain --untracked-files=no)" ] || { echo "omega dirty"; exit 2; } |
| 22 | git -C "$O" diff --quiet $CODE_SHA HEAD -- . ":(exclude)spec/r16-orchestrator-retirement-map.md" ":(glob,exclude)**/.crumb" ":(exclude).crumb" || { echo "omega code != CAND-1"; exit 2; }; } |
| 23 | step() { local g=$1; shift; local d=$OUT/$g; mkdir -p "$d"; snap "$d" before; echo "$*" > "$d/command.txt" |
| 24 | local s=$(date -u +%s); date -u +%FT%TZ > "$d/start.txt" |
| 25 | "$@" > "$d/stdout.log" 2> "$d/stderr.log" < /dev/null; local rc=$? |
| 26 | date -u +%FT%TZ > "$d/end.txt"; echo $rc > "$d/exit.txt"; echo $(( $(date -u +%s) - s )) > "$d/seconds.txt"; snap "$d" after |
| 27 | echo "$g rc=$rc secs=$(cat "$d/seconds.txt")" | tee -a "$OUT/SUMMARY.txt"; } |
| 28 | guard; snap "$OUT/00-identity" start |
| 29 | sha256sum build/rx_r11_aien_test build/rx_r15_perf_silicon build/rx_r15_perf_silicon_nodigest build/r15_reduce build/gpu_attention_test > "$OUT/00-identity/executables.sha256" |
| 30 | sleep 60 # let the 1-minute load average settle after the builds |
| 31 | step R11-living ./build/rx_r11_aien_test |
| 32 | step R15-silicon tools/r15_qualify.sh silicon |
| 33 | ls -td evidence/R15/raw/*-$(git rev-parse HEAD | cut -c1-12)-silicon | head -1 > "$OUT/R15-silicon/run-dir.txt" |
| 34 | for i in 1 2 3; do step ATTN-timing-$i ./build/gpu_attention_test --timing --out "$OUT/ATTN-timing-$i/timing.json"; done |
| 35 | guard; snap "$OUT/99-identity" end; echo "window done" >> "$OUT/SUMMARY.txt" |