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 / M18-UNCACHED / b20ff9e / ab_campaign.sh
| 1 | #!/bin/bash |
| 2 | # M18 cache A/B under a documented host load: 4 alternating batches (baseline main 4cca032, then the fix), |
| 3 | # 5 M18 runs each, same load for both arms. One queued heavy job. Never kills chip processes; the load |
| 4 | # loops are our own sha256sum processes and stop by timeout. |
| 5 | set -u |
| 6 | E=$HOME/workspace/evidence-out/M18-UNCACHED-20261003 |
| 7 | B=$HOME/workspace/hive-worktrees/omega-world-baseline-4cca032 |
| 8 | F=$HOME/workspace/hive-worktrees/omega-m18-uncached |
| 9 | LOOPS=${LOOPS:-16}; SECS=${SECS:-4200} |
| 10 | echo "campaign start $(date -u +%FT%TZ) baseline=$(git -C $B rev-parse --short HEAD) fix=$(git -C $F rev-parse --short HEAD) loops=$LOOPS" >> $E/campaign.txt |
| 11 | uptime >> $E/campaign.txt |
| 12 | $HOME/.claude/jobs/0cb8c31e/tmp/m18_load.sh "$LOOPS" "$SECS" & |
| 13 | LOADPID=$! |
| 14 | sleep 20; uptime >> $E/campaign.txt |
| 15 | for i in 1 2 3 4; do |
| 16 | (cd $B && $E/runjob.sh baseline-m18-L$i 5 --run-m18-gates) > $E/batch-baseline-L$i.out 2>&1 |
| 17 | (cd $F && $E/runjob.sh fix-m18-L$i 5 --run-m18-gates) > $E/batch-fix-L$i.out 2>&1 |
| 18 | uptime >> $E/campaign.txt |
| 19 | done |
| 20 | pkill -f 'sha256sum /dev/zero' 2>/dev/null; wait $LOADPID 2>/dev/null |
| 21 | echo "campaign end $(date -u +%FT%TZ)" >> $E/campaign.txt |
| 22 | for arm in baseline fix; do t=0; f=0; for d in $E/${arm}-m18-L[1-4]; do n=$(wc -l < $d/exit-codes.txt); x=$(grep -vc 'rc=0' $d/exit-codes.txt); t=$((t+n)); f=$((f+x)); done; echo "$arm: $f/$t runs failed; gates: $(grep -h '\[FAIL\]' $E/${arm}-m18-L[1-4]/*.log 2>/dev/null | awk '{print $2}' | sed 's/OMEGA_BW_MATMUL_//' | sort | uniq -c | tr '\n' ';')" | tee -a $E/campaign.txt; done |