Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
fix(bench): preserve compiler refusal status in inference-cost driver
mergedbe9b7644918f47cc #910 · opened 2026-10-28 02:11 UTC · closed 2026-10-28 02:18 UTC · merged 2026-10-28 02:18 UTC
Imported from GitHub aien-dev/omega-mv#910, by drakestapleton
Base a877dd17f638e6a729fd425b505964ff3253c0f8 · Head 77338bf5272eac3bef3f2f96bd033f99a136e2d3
Merged on GitHub as 988a558a873f550494c18ac63d7b8604a15e117b; reachable from main c7acd2607139eedfabeac16b6042cefe8ede431f (observed 2026-11-18T16:35:44Z)
drakestapleton wrote on 2026-10-28 02:11 UTC
Evidence first
Draft follow-up to #908, based on main a877dd17f638e6a729fd425b505964ff3253c0f8. Native Omega/full make test-inference-cost remain NOT_RUN: review host is Linux x86_64 and the pinned compiler is Linux AArch64.
The exact production evaluate_task shell function was independently exercised with deterministic compiler stubs. These test shell orchestration, not Omega semantics, inference cost or hardware.
Case
Base observed (compile rc, verified, executed marker)
Patched observed
Compiler exit 7, empty output
0, 1, 0
7, 0, 0
Compiler exit 7, executable output
0, 1, 1
7, 0, 0
Compiler exit 0, valid behavior
0, 1, 1
0, 1, 1
Compiler exit 0, wrong behavior
0, 0, 1
0, 0, 1
Baseline regression exits 1; patched regression exits 0. A separate reviewer reproduced both and found no blocking defect in the minimal repair. Shell syntax and git diff --check pass.
Crumb tool built from unchanged crumb.lock pin d0f0b95d344b4c6628c3d868346932fd247ce168: baseline and patched crumb verify . both report OK: 165 crumbs current. crumb compile . rewrote only root and benchmark crumbs. This is the existing pinned host verifier, not a new runtime/dependency or an operator qualification.
Published candidate: 77338bf5272eac3bef3f2f96bd033f99a136e2d3, tree b0a7af35cc05bb432754d934bd16a98e50fbe8a7 (byte-identical to the locally reviewed and tested tree).
Change
The negated conditional made $? zero inside its failure branch. Preserve the pipeline status with a normal if ...; then comp_rc=0; else comp_rc=$?; fi. Failed compiler output is no longer executed or marked verified.
Only driver status capture, the required contributor attribution, and generated crumbs change. Compiler pin/source, scorer, task fixtures, gates, security settings and historical evidence are unchanged. No hardware/model endpoint, merge, deployment or qualification action.
Separate scorer validation, tokenizer-policy/gate reconciliation, and real model usage/timing remain outside this narrow repair. Synthetic replay counts remain synthetic.
Reproduction
Save the following independent host probe outside the repository as test-driver-status.sh, then run:
git show a877dd17f638e6a729fd425b505964ff3253c0f8:bench/inference_cost/driver.sh > /tmp/driver-before-908-fix.sh
bash test-driver-status.sh /tmp/driver-before-908-fix.sh # expected exit 1
bash test-driver-status.sh bench/inference_cost/driver.sh # expected exit 0
for file in /tmp/driver-before-908-fix.sh bench/inference_cost/driver.sh test-driver-status.sh; do bash -n "$file"; done
git diff --check
#!/usr/bin/env bash
# Host-only regression probe of the exact production shell function.
# Stub compiler outcomes exercise orchestration, not Omega compilation or execution.
set -euo pipefail
driver=${1:?driver.sh path required}
scratch=$(mktemp -d)
trap 'rm -rf "$scratch"' EXIT
TASKS_DIR="$scratch/tasks"
BUILD_DIR="$scratch/build"
mkdir -p "$TASKS_DIR/task01" "$BUILD_DIR"
printf 'candidate\n' > "$scratch/candidate.om"
printf 'check\n' > "$TASKS_DIR/task01/check.om"
export MARKER="$scratch/executed"
now_ms() { date +%s%3N; }
source <(sed -n '/^evaluate_task() {$/,/^}$/p' "$driver")
failures=0
check_case() {
local label=$1 expected_rc=$2 expected_verified=$3 expected_marker=$4
local result task attempt first rc verified ms p c total
rm -f "$MARKER"
result=$(evaluate_task task01 "$scratch/candidate.om" 1 1 10 5)
read -r task attempt first rc verified ms p c total <<< "$result"
local marker=0
if [[ -e "$MARKER" ]]; then marker=1; fi
printf '%s: record="%s" executed=%s expected_rc=%s expected_verified=%s expected_executed=%s\n' "$label" "$result" "$marker" "$expected_rc" "$expected_verified" "$expected_marker"
if [[ "$rc" != "$expected_rc" || "$verified" != "$expected_verified" || "$marker" != "$expected_marker" ]]; then
failures=1
fi
}
OMC="$scratch/compiler"
cat > "$OMC" <<'EOF'
#!/usr/bin/env bash
cat >/dev/null
exit 7
EOF
chmod +x "$OMC"
check_case failed_empty_output 7 0 0
cat > "$OMC" <<'EOF'
#!/usr/bin/env bash
cat >/dev/null
printf '#!/usr/bin/env bash\ntouch "$MARKER"\nexit 0\n'
exit 7
EOF
check_case failed_executable_output 7 0 0
cat > "$OMC" <<'EOF'
#!/usr/bin/env bash
cat >/dev/null
printf '#!/usr/bin/env bash\ntouch "$MARKER"\nexit 0\n'
exit 0
EOF
check_case successful_valid_output 0 1 1
cat > "$OMC" <<'EOF'
#!/usr/bin/env bash
cat >/dev/null
printf '#!/usr/bin/env bash\ntouch "$MARKER"\nexit 1\n'
exit 0
EOF
check_case successful_wrong_behavior 0 0 1
if [[ "$failures" = 0 ]]; then printf 'PASS shell compile-status regressions\n'; else printf 'FAIL shell compile-status regressions\n'; fi
exit "$failures"
</details>
Driver SHA-256: base 7c349b487593e9be20845d37a8e2e94c1a08705937c75c9c708e0f67ccbf0993; patched 561c78f734e116b80a4538bec056a2fbe128c7c357b0d337c8e2d84edc676986. Probe SHA-256 62fdf96a4009d4037edaaf4b8bac5020e61f4369c9a951d68b79aea0f1640ca0.
Prepared with Codex at Drake's request. Draft only: native rejected-source control and independent maintainer review remain required before acceptance.
Apply it
git checkout -b patch-be9b7644918f47cca877dd17f638e6a729fd425b505964ff3253c0f8
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/be9b7644918f47cc.patch | git am