From 7bf3e4fb2c26370060e67a66b6aeb5714d69e97b Mon Sep 17 00:00:00 2001 From: Hermes desk Date: Mon, 19 Oct 2026 14:59:26 -0500 Subject: [PATCH 1/3] tests/gates: restore the hosted jobs phase 3 removed without a gate (checker2, exp445-tools, omegese-oracle, gpu-engine, reservoir) --- tests/gates/omega-checker2.gate | 25 +++++++++++++++++++++++++ tests/gates/omega-exp445-tools.gate | 25 +++++++++++++++++++++++++ tests/gates/omega-gpu-engine.gate | 25 +++++++++++++++++++++++++ tests/gates/omega-omegese-oracle.gate | 25 +++++++++++++++++++++++++ tests/gates/omega-reservoir.gate | 25 +++++++++++++++++++++++++ tests/gates/run.sh | 19 +++++++++++++++++++ 6 files changed, 144 insertions(+) create mode 100644 tests/gates/omega-checker2.gate create mode 100644 tests/gates/omega-exp445-tools.gate create mode 100644 tests/gates/omega-gpu-engine.gate create mode 100644 tests/gates/omega-omegese-oracle.gate create mode 100644 tests/gates/omega-reservoir.gate diff --git a/tests/gates/omega-checker2.gate b/tests/gates/omega-checker2.gate new file mode 100644 index 000000000..a9d7281a6 --- /dev/null +++ b/tests/gates/omega-checker2.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-checker2.gate +# Restored: hosted host-suites.yml checker2: test-checker2 (independent checker2, LRAT gate, receipts, mutants; hosted 20 min). The hosted job was removed in phase 3 (#564) without a gate; same command here. +gate: OMEGA-CHECKER2 +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - docs/ + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["checker2"] +expects: + exit: 0 + verdict: PASS +timeout: 20m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-exp445-tools.gate b/tests/gates/omega-exp445-tools.gate new file mode 100644 index 000000000..4df69dad6 --- /dev/null +++ b/tests/gates/omega-exp445-tools.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-exp445-tools.gate +# Restored: hosted host-suites.yml exp445-tools: test-omega-emit test-exp445 (stage-2 tools, fake server; needs jq curl flock). The hosted job was removed in phase 3 (#564) without a gate; same command here. +gate: OMEGA-EXP445-TOOLS +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - docs/ + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["exp445-tools"] +expects: + exit: 0 + verdict: PASS +timeout: 20m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-gpu-engine.gate b/tests/gates/omega-gpu-engine.gate new file mode 100644 index 000000000..20cc8f357 --- /dev/null +++ b/tests/gates/omega-gpu-engine.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-gpu-engine.gate +# Restored: hosted host-suites-2.yml gpu-engine: GPU engine core on the fake backend, freestanding link and codegen, engine mutants, session over OmegaGpuPlatform, Linux reference platform (host, no device). The hosted job was removed in phase 3 (#564) without a gate; same command here. +gate: OMEGA-GPU-ENGINE +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - docs/ + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["gpu-engine"] +expects: + exit: 0 + verdict: PASS +timeout: 20m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-omegese-oracle.gate b/tests/gates/omega-omegese-oracle.gate new file mode 100644 index 000000000..64301b1be --- /dev/null +++ b/tests/gates/omega-omegese-oracle.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-omegese-oracle.gate +# Restored: hosted host-suites.yml omegese-oracle: test-omegese (Omegese oracle self-tests, -O2 then ASan and UBSan; hosted 30 min). The hosted job was removed in phase 3 (#564) without a gate; same command here. +gate: OMEGA-OMEGESE-ORACLE +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - docs/ + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["omegese-oracle"] +expects: + exit: 0 + verdict: PASS +timeout: 30m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/omega-reservoir.gate b/tests/gates/omega-reservoir.gate new file mode 100644 index 000000000..4ca631283 --- /dev/null +++ b/tests/gates/omega-reservoir.gate @@ -0,0 +1,25 @@ +# tests/gates/omega-reservoir.gate +# Restored: hosted reservoir.yml reservoir-gates: test-reservoir (omega#440 Gate 1, Gate 2 reader and config; CPU only). The hosted job was removed in phase 3 (#564) without a gate; same command here. +gate: OMEGA-RESERVOIR +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/ + - docs/ + - physics.lock + - tests/gates/ +run: + exec: tests/gates/run.sh + args: ["reservoir"] +expects: + exit: 0 + verdict: PASS +timeout: 15m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/run.sh b/tests/gates/run.sh index 6c5c918d5..ea02cce65 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -114,6 +114,25 @@ case "$step" in one-layer-acceptance) make $NOPHYS test-one-layer-acceptance ;; physics0) make $NOPHYS physics0-test ;; chip-tool-selftests) for t in test-m19r-qualify test-gate14-combine test-window-lane-guard test-unwritten-trap-host test-ldst-host; do make $NOPHYS $t; done ;; + # Restored: hosted jobs that phase 3 (#564) removed without a gate. Same commands as the removed jobs. + checker2) make $NOPHYS test-checker2 ;; # host-suites.yml checker2 + exp445-tools) command -v jq && command -v curl && command -v flock; make $NOPHYS test-omega-emit test-exp445 ;; # host-suites.yml exp445-tools + omegese-oracle) make $NOPHYS test-omegese ;; # host-suites.yml omegese-oracle + gpu-engine) # host-suites-2.yml gpu-engine + make $NOPHYS test-gpu-engine-compile test-gpu-engine + make $NOPHYS test-gpu-engine-freestanding + make $NOPHYS test-codegen-freestanding + make $NOPHYS test-gpu-engine-mutants + make $NOPHYS build/test_omega_gpu_session_platform test-gpu-session-mutants && ./build/test_omega_gpu_session_platform + physics_pin; make test-gpu-session-platform + ;; + reservoir) # reservoir.yml reservoir-gates + set -o pipefail; mkdir -p build + make $NOPHYS test-reservoir | tee build/res.log + test "$(grep -cE '^test_reservoir: [0-9]+ checks, 0 failed' build/res.log)" -eq 2 + test "$(grep -cE '^test_res_mat: [0-9]+ checks, 0 failed' build/res.log)" -eq 2 + grep -q 'Gate 2 config unchanged' build/res.log + ;; # host-suites-2.yml visor) aienos_pin; make $NOPHYS test-visor ;; turing) make $NOPHYS test-turing; make $NOPHYS test-turing-exp001-a test-turing-exp001-coders; make $NOPHYS test-turing-verify-indep; make $NOPHYS test-turing-qcont test-turing-qrecord ;; From c721305d3cbf98cfa7d6013e853f51974dbd5f7e Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Mon, 19 Oct 2026 17:11:44 -0500 Subject: [PATCH 2/3] tools/exp445: driver scripts find the build under OUT_DIR run.sh, score.sh and measure.sh read the binaries from a fixed build/ (build/omega_emit/x445, build/omegese/omegese, build/compiler/oscc). Since omega#511 every gate step builds in its own OUT_DIR (build/step-), so the restored exp445-tools step failed: "build/omega_emit/x445: No such file or directory", make test-exp445 Error 127. They now use ${OUT_DIR:-build} (relative to the repository root, or absolute), the same rule as the Makefile. Default behaviour is unchanged. Spark, nice 19 at load 40-50: tests/gates/run.sh exp445-tools before rc=2 (12 FAIL lines), after rc=0, test-exp445: PASS, 0 FAIL lines. --- tools/exp445/measure.sh | 10 ++++++---- tools/exp445/run.sh | 6 ++++-- tools/exp445/score.sh | 4 +++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/tools/exp445/measure.sh b/tools/exp445/measure.sh index dd2d2f23a..bbf68374b 100755 --- a/tools/exp445/measure.sh +++ b/tools/exp445/measure.sh @@ -8,9 +8,11 @@ set -euo pipefail HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ROOT="$(cd "$HERE/../.." && pwd)" +# Build outputs follow OUT_DIR like the Makefile (omega#511: every gate step builds in its own dir). +BLD="${OUT_DIR:-build}"; case "$BLD" in /*) ;; *) BLD="$ROOT/$BLD" ;; esac [ $# -eq 3 ] || { echo "usage: measure.sh " >&2; exit 2; } BASE="${1%/}" MODEL="$2" CASES="$3" -make -s -C "$ROOT" PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 omega-emit build/compiler/oscc >&2 +make -s -C "$ROOT" PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 omega-emit "${OUT_DIR:-build}/compiler/oscc" >&2 T="$(mktemp -d "${TMPDIR:-/tmp}/exp445-measure.XXXXXXXX")"; trap 'rm -rf "$T"' EXIT ptoks() { # ptoks : prompt tokens of one user message holding the file jq -n -c --arg m "$MODEL" --rawfile c "$1" '{model: $m, messages: [{role: "user", content: $c}], max_tokens: 1, temperature: 0}' | @@ -20,8 +22,8 @@ ptoks() { # ptoks : prompt tokens of one user message holding the file echo "# task text bytes structured (tokens; empty-message baseline $base subtracted)" for c in "$CASES"/*/; do id="$(basename "$c")" - "$ROOT/build/compiler/oscc" "$c/hidden/reference.osc" "$T/$id" > /dev/null - "$ROOT/build/omega_emit/x445" tohex "$T/$id.ir" > "$T/$id.hex" - "$ROOT/build/omega_emit/omega_emit" lift "$T/$id.ir" > "$T/$id.json" + "$BLD/compiler/oscc" "$c/hidden/reference.osc" "$T/$id" > /dev/null + "$BLD/omega_emit/x445" tohex "$T/$id.ir" > "$T/$id.hex" + "$BLD/omega_emit/omega_emit" lift "$T/$id.ir" > "$T/$id.json" echo "$id $(( $(ptoks "$c/hidden/reference.osc") - base )) $(( $(ptoks "$T/$id.hex") - base )) $(( $(ptoks "$T/$id.json") - base ))" done diff --git a/tools/exp445/run.sh b/tools/exp445/run.sh index b0c194bc2..2d00f737c 100755 --- a/tools/exp445/run.sh +++ b/tools/exp445/run.sh @@ -38,6 +38,8 @@ set -euo pipefail HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ROOT="$(cd "$HERE/../.." && pwd)" +# Build outputs follow OUT_DIR like the Makefile (omega#511: every gate step builds in its own dir). +BLD="${OUT_DIR:-build}"; case "$BLD" in /*) ;; *) BLD="$ROOT/$BLD" ;; esac die() { echo "run.sh: $*" >&2; exit 2; } PARAMS="${EXP445_PARAMS:-$HERE/PARAMS}" [ -f "$PARAMS" ] || die "no PARAMS file $PARAMS" @@ -103,10 +105,10 @@ if [ "$HELD" = 1 ]; then case "$SERVER" in PLACEHOLDER*) die "config $CONFIG server is still a placeholder in PARAMS: held-out generation waits for the commit that freezes it (protocol 13.3)" ;; esac [ "$MODE" = "$(kv heldout_prompt_mode)" ] || die "a held-out run uses the $(kv heldout_prompt_mode) prompt mode (protocol 13.4), not $MODE" fi -B="$ROOT/build/omega_emit" +B="$BLD/omega_emit" make -s -C "$ROOT" PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 omega-emit >&2 case ",$ARMS," in *,omegese,*) make -s -C "$ROOT" PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 omegese >&2 ;; esac -X="$B/x445" EMIT="$B/omega_emit" G="$ROOT/build/omegese/omegese" +X="$B/x445" EMIT="$B/omega_emit" G="$BLD/omegese/omegese" weights_ok "$OUT" "$WLIST" "$FMODEL" || die "$OUT/weights.check + server.json missing or not all OK: run tools/exp445/check_weights.sh $CONFIG $OUT first (protocol section 9)" # G0 (13.4): a PASS for this configuration, server and PARAMS, re-derived from its raw responses diff --git a/tools/exp445/score.sh b/tools/exp445/score.sh index 8d9c7cf37..25a1ae328 100755 --- a/tools/exp445/score.sh +++ b/tools/exp445/score.sh @@ -42,6 +42,8 @@ set -euo pipefail HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ROOT="$(cd "$HERE/../.." && pwd)" +# Build outputs follow OUT_DIR like the Makefile (omega#511: every gate step builds in its own dir). +BLD="${OUT_DIR:-build}"; case "$BLD" in /*) ;; *) BLD="$ROOT/$BLD" ;; esac die() { echo "score.sh: $*" >&2; exit 2; } TEST="${EXP445_TEST:-0}" PARAMS="$HERE/PARAMS" @@ -64,7 +66,7 @@ NAMED="$(awk -F= '$1 ~ /^config\.[A-Za-z0-9]+\.model$/ { split($1, p, "."); prin AVAIL=""; for c in ${NAMED//,/ }; do [ -n "$(kv "config.$c.unavailable")" ] || AVAIL="$AVAIL${AVAIL:+,}$c"; done [ -n "$CONFIGS" ] || CONFIGS="$AVAIL" for c in ${CONFIGS//,/ }; do un="$(kv "config.$c.unavailable")"; [ -z "$un" ] || die "config $c is unavailable: $un"; done -B="$ROOT/build/omega_emit" X="$ROOT/build/omega_emit/x445" EMIT="$ROOT/build/omega_emit/omega_emit" G="$ROOT/build/omegese/omegese" +B="$BLD/omega_emit" X="$BLD/omega_emit/x445" EMIT="$BLD/omega_emit/omega_emit" G="$BLD/omegese/omegese" make -s -C "$ROOT" PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 omega-emit omegese >&2 . "$HERE/reader.sh" OUT="${runs[0]}/../score-$(date -u +%Y%m%dT%H%M%SZ)-$$" From 67868991678bab3619c04e751a0dbc9a1f134fce Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Mon, 19 Oct 2026 17:11:54 -0500 Subject: [PATCH 3/3] crumb: recompile with the pinned tool --- .crumb | 20 ++++++++++---------- tests/.crumb | 10 +++++----- tools/.crumb | 8 ++++---- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.crumb b/.crumb index d121d2dad..c071983ac 100644 --- a/.crumb +++ b/.crumb @@ -83,27 +83,27 @@ "purpose": "Directory src. Purpose not yet described by a human." }, { - "digest": "4eb9d4d76234448c0ed691f0aeb9c90d785f8a47b1b1291d728bbe3e1509dc10", - "last_commit": "88e24bdd", + "digest": "dfb942f427f8e18da9b68194cc7b25adec2ea3001cbb8b927381d362e9ad81a0", + "last_commit": "7bf3e4fb", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { - "digest": "566a123ba248da906e3c42430b73decd7c3ec030a4fd26c909d265aa9bf67db9", - "last_commit": "88e24bdd", + "digest": "f18caed9831e9be017a7b3fcfe5d873809b15f5cad8aee5bcd3b96543bd60258", + "last_commit": "c721305d", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:e1a8c008214ad5dbc33a3e184d7e882dc56d1d50f9bd14c58f8773992961557e", - "compiled_at": "2026-10-18T21:10:38Z", + "children_root": "sha256:a3c1bc310b6ac0dd8e7c3f8aa454a676468f71ee424f1c9291ac23607718323d", + "compiled_at": "2026-10-19T22:11:49Z", "compiler": "crumb-compile/1", - "digest": "sha256:be7220db494238bb4c33023d1df17286c35f947336bee5fc2e0405c136ec3e73", + "digest": "sha256:3d539f8e669c9cc4612447e1095e8914e55447f31991a58362bc630110c60d2f", "evidence_files": 11127, "evidence_root": "sha256:4528085ec1661c442b64fb5dc8def65067ea2620ff88e42bcf52d58b7642ea6e", - "files": 14100, - "generated_at_commit": "f4a9849fb127f8d2d664dfc56890752ad180c507", - "source_tree": "sha256:21f93defce6c9ba159a4bd31083db787e156dfaa4afb80c3427cf88f732f8258" + "files": 14105, + "generated_at_commit": "c721305d3cbf98cfa7d6013e853f51974dbd5f7e", + "source_tree": "sha256:d5b148089215b6f073bf9967e0c760d52c55cb15bddfc7ceaf33f9b42bed1445" }, "owner_lane": "", "provenance": { diff --git a/tests/.crumb b/tests/.crumb index bd5535a8b..8ba710315 100644 --- a/tests/.crumb +++ b/tests/.crumb @@ -296,14 +296,14 @@ } ], "children_root": "sha256:ddc3618190458bc5073e3bee67ffccc68a2ee9f065f2cb0d86545386a29fddf8", - "compiled_at": "2026-10-16T19:04:20Z", + "compiled_at": "2026-10-19T22:11:49Z", "compiler": "crumb-compile/1", - "digest": "sha256:4eb9d4d76234448c0ed691f0aeb9c90d785f8a47b1b1291d728bbe3e1509dc10", + "digest": "sha256:dfb942f427f8e18da9b68194cc7b25adec2ea3001cbb8b927381d362e9ad81a0", "evidence_files": 16, "evidence_root": "sha256:96d08097822ad95f4e562c19e0ba5df5a035774c48632f1832912c40a27bd27a", - "files": 1270, - "generated_at_commit": "88e24bdd57b27817d030d0ad95f62c3f3eacf426", - "source_tree": "sha256:e6c4f0021d383ba2e59da0d85d06a0b98170f6d188289c891b5745200548e6fc" + "files": 1275, + "generated_at_commit": "c721305d3cbf98cfa7d6013e853f51974dbd5f7e", + "source_tree": "sha256:0fd93af756d82b35ed44480cca36dfd66d9366188149015493d32f61e8a998a0" }, "owner_lane": "", "provenance": { diff --git a/tools/.crumb b/tools/.crumb index 8cf70bcac..4de9d39d2 100644 --- a/tools/.crumb +++ b/tools/.crumb @@ -62,14 +62,14 @@ } ], "children_root": "sha256:e1f826c2beb8604bb0dcba49575f7c6b48cf5488c40b616b212fda2ed70c62ee", - "compiled_at": "2026-10-16T19:04:20Z", + "compiled_at": "2026-10-19T22:11:49Z", "compiler": "crumb-compile/1", - "digest": "sha256:566a123ba248da906e3c42430b73decd7c3ec030a4fd26c909d265aa9bf67db9", + "digest": "sha256:f18caed9831e9be017a7b3fcfe5d873809b15f5cad8aee5bcd3b96543bd60258", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 284, - "generated_at_commit": "88e24bdd57b27817d030d0ad95f62c3f3eacf426", - "source_tree": "sha256:eee0218ae5c8d003fa0a585291551799e81e6c329a7f5db1295e771a75aee167" + "generated_at_commit": "c721305d3cbf98cfa7d6013e853f51974dbd5f7e", + "source_tree": "sha256:01549367dc014beea9993c8153082cd4c28412298cb277fc1feff97e253cac62" }, "owner_lane": "", "provenance": {