Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/benchmarks-mv/blob/main/native/queueflow/heldout.sh # benchmarks-mv Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `benchmarks-mv / native / queueflow / heldout.sh` 39 lines ยท 2778 bytes Raw Blame History 1 #!/bin/sh 2 # SPDX-License-Identifier: Apache-2.0 3 # Copyright 2026 Drake Stapleton (AIEN / aien-dev) 4 # 5 # heldout.sh OMC WINDOWS_ROOT KANBAN_DB CONTROL_SQL OUT_DIR 6 # The held-out evaluation of PREREG.md: exports T1 (cutoff 2026-11-01T00:00:00Z) and T2 read-only, 7 # compiles flow.om and kflow.om with the omc named in omc.pin (else exit 2), runs them, 8 # and writes the raw outputs plus the Wolfram call for oracle.wl on the held-out T1 trace. 9 # Ratios and threshold decisions are evaluated in Wolfram from these files (evidence/wolfram/). 10 set -eu 11 omc=${1:?omc}; wroot=${2:?windows root}; kdb=${3:?kanban.db}; csql=${4:?control board.sql}; out=${5:?out dir} 12 here=$(cd "$(dirname "$0")" && pwd) 13 read -r pin pinrev < "$here/omc.pin" 14 got=$(sha256sum "$omc" | cut -c1-64) 15 [ "$got" = "$pin" ] || { echo "heldout: omc sha256 $got is not the pin $pin" >&2; exit 2; } 16 mkdir -p "$out/bin" "$out/trace" "$out/control" 17 "$omc" < "$here/flow.om" > "$out/bin/flow.new" || { echo "heldout: flow.om refused" >&2; exit 1; } 18 mv "$out/bin/flow.new" "$out/bin/flow"; chmod +x "$out/bin/flow" 19 "$omc" < "$here/kflow.om" > "$out/bin/kflow.new" || { echo "heldout: kflow.om refused" >&2; exit 1; } 20 mv "$out/bin/kflow.new" "$out/bin/kflow"; chmod +x "$out/bin/kflow" 21 sha256sum "$out/bin/flow" "$out/bin/kflow" "$here/flow.om" "$here/kflow.om" "$here/oracle.wl" "$here/PREREG.md" > "$out/IDENTITY.txt" 22 echo "omc $got" >> "$out/IDENTITY.txt" 23 cut=`1793491200` 24 sh "$here/export-windows.sh" "$wroot" "$cut" "$out/trace" > "$out/export-windows.log" 2>&1 25 d0=$(cat "$out/trace/windows-heldout.tsv.d0") 26 "$out/bin/flow" "$out/trace/windows-heldout.tsv" "$d0" > "$out/flow-heldout.out"; echo "rc $?" >> "$out/flow-heldout.out" 27 "$out/bin/flow" "$out/trace/windows-dev.tsv" 0 > "$out/flow-dev.out"; echo "rc $?" >> "$out/flow-dev.out" 28 sh "$here/mkcall.sh" "$out/oracle-heldout.call.wl" "$out/trace/windows-heldout.tsv:$d0" > /dev/null 29 sh "$here/export-kanban.sh" "$kdb" "$out/trace" > "$out/export-kanban.log" 30 tx=$(sed -n 's/^export_utc_epoch //p' "$out/trace/kanban-export.txt") 31 "$out/bin/kflow" "$out/trace/kanban-tasks.tsv" "$out/trace/kanban-runs.tsv" "$out/trace/kanban-events.tsv" "$tx" 12 > "$out/kflow-heldout.out"; echo "rc $?" >> "$out/kflow-heldout.out" 32 # control: the DRA-185 qualification board, restored into a scratch database 33 db="$out/control/board.db" 34 [ -f "$db" ] && mv "$db" "$out/control/board.db.old" 35 sqlite3 "$db" < "$csql" 36 sh "$here/export-kanban.sh" "$db" "$out/control" > "$out/control/export.log" 37 ctx=$(cut -f2 "$out/control/kanban-events.tsv" | sort -n | tail -n 1) 38 "$out/bin/kflow" "$out/control/kanban-tasks.tsv" "$out/control/kanban-runs.tsv" "$out/control/kanban-events.tsv" "$ctx" 12 > "$out/kflow-control.out"; echo "rc $?" >> "$out/kflow-control.out" 39 echo "heldout: done; outputs in $out"