interplane.Get Omega
Read in your language

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

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/).
10set -eu
11omc=${1:?omc}; wroot=${2:?windows root}; kdb=${3:?kanban.db}; csql=${4:?control board.sql}; out=${5:?out dir}
12here=$(cd "$(dirname "$0")" && pwd)
13read -r pin pinrev < "$here/omc.pin"
14got=$(sha256sum "$omc" | cut -c1-64)
15[ "$got" = "$pin" ] || { echo "heldout: omc sha256 $got is not the pin $pin" >&2; exit 2; }
16mkdir -p "$out/bin" "$out/trace" "$out/control"
17"$omc" < "$here/flow.om" > "$out/bin/flow.new" || { echo "heldout: flow.om refused" >&2; exit 1; }
18mv "$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; }
20mv "$out/bin/kflow.new" "$out/bin/kflow"; chmod +x "$out/bin/kflow"
21sha256sum "$out/bin/flow" "$out/bin/kflow" "$here/flow.om" "$here/kflow.om" "$here/oracle.wl" "$here/PREREG.md" > "$out/IDENTITY.txt"
22echo "omc $got" >> "$out/IDENTITY.txt"
23cut=1793491200
24sh "$here/export-windows.sh" "$wroot" "$cut" "$out/trace" > "$out/export-windows.log" 2>&1
25d0=$(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"
28sh "$here/mkcall.sh" "$out/oracle-heldout.call.wl" "$out/trace/windows-heldout.tsv:$d0" > /dev/null
29sh "$here/export-kanban.sh" "$kdb" "$out/trace" > "$out/export-kanban.log"
30tx=$(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
33db="$out/control/board.db"
34[ -f "$db" ] && mv "$db" "$out/control/board.db.old"
35sqlite3 "$db" < "$csql"
36sh "$here/export-kanban.sh" "$db" "$out/control" > "$out/control/export.log"
37ctx=$(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"
39echo "heldout: done; outputs in $out"