interplane.Get Omega
Read in your language

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

fix(bench): preserve compiler refusal status in inference-cost driver

merged be9b7644918f47cc #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.

CaseBase observed (compile rc, verified, executed marker)Patched observed
Compiler exit 7, empty output0, 1, 07, 0, 0
Compiler exit 7, executable output0, 1, 17, 0, 0
Compiler exit 0, valid behavior0, 1, 10, 1, 1
Compiler exit 0, wrong behavior0, 0, 10, 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

<details> <summary>Exact independent shell probe</summary>

#!/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-be9b7644918f47cc a877dd17f638e6a729fd425b505964ff3253c0f8
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/be9b7644918f47cc.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/omega-mv
910
77338bf5272eac3bef3f2f96bd033f99a136e2d3
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":910,"url":"https://github.com/aien-dev/omega-mv/pull/910","export_sha256":"7319147b350ad908bf0b731068ec3be7b8dee848041dc862f71455e8e4680140","imported_utc":"2026-11-18T16:35:44Z"}

Changes

diff --git a/.crumb b/.crumb
index 416e4004f..8d32d6c10 100644
--- a/.crumb
+++ b/.crumb
@@ -42,68 +42,68 @@
       "children": [
         {
           "digest": "9f19f11674ca5dfc3c9c3ae35fe6106557aee9583210da13d257e1b9d88e052c",
-          "last_commit": "d863780eb",
+          "last_commit": "d863780e",
           "name": "calibration",
           "purpose": "Directory calibration. Purpose not yet described by a human."
         },
         {
           "digest": "7f242c21672dd81ae93efce2da308e1e795f9520e3d048eeacf7de64d67a1e2e",
-          "last_commit": "66d44614c",
+          "last_commit": "66d44614",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
         {
           "digest": "536f7b8db9a92a1f586bad4379d47544a30d1b8e83c2d799c18e66cf8660c9ae",
-          "last_commit": "30bb116cc",
+          "last_commit": "30bb116c",
           "name": "doctrine",
           "purpose": "Directory doctrine. Purpose not yet described by a human."
         },
         {
           "digest": "6e737119bc4b637b51248a240004ff9cac0063dbe86fe84e1eba94a91c90b781",
-          "last_commit": "66d44614c",
+          "last_commit": "66d44614",
           "name": "mk",
           "purpose": "Directory mk. Purpose not yet described by a human."
         },
         {
           "digest": "62b92244c52fa8af6f511012dee2967e98dff162cc1d8bf45d0b2f15cb0adc5f",
-          "last_commit": "450bbefd4",
+          "last_commit": "450bbefd",
           "name": "research",
           "purpose": "Directory research. Purpose not yet described by a human."
         },
         {
           "digest": "8bbd5f74b01446007499a9a9be4e9f50f4364af0f578d9cdf26a2afd84e3bb63",
-          "last_commit": "faebae8c1",
+          "last_commit": "faebae8c",
           "name": "spec",
           "purpose": "Directory spec. Purpose not yet described by a human."
         },
         {
           "digest": "f390041dbba29a5707b5652e20e6bffd69e0a1f1ebfc493736ff5266370fa4aa",
-          "last_commit": "82a399b9f",
+          "last_commit": "82a399b9",
           "name": "src",
           "purpose": "Directory src. Purpose not yet described by a human."
         },
         {
           "digest": "c156e096606e53cf4c42fa279d811cc31b95483a576c0e939e49c3b623153649",
-          "last_commit": "f401f2baa",
+          "last_commit": "3f3b6ba7",
           "name": "tests",
           "purpose": "Directory tests. Purpose not yet described by a human."
         },
         {
           "digest": "4e83dea21da137c30076c2dc0ca4f3a488f576f30a94e334558ad5ea523f3a6b",
-          "last_commit": "a50c3bd41",
+          "last_commit": "a50c3bd4",
           "name": "tools",
           "purpose": "Directory tools. Purpose not yet described by a human."
         }
       ],
       "children_root": "sha256:afaccf0d345c5737e003c2c89df2f410a982c4168c6f120123fa98ad26b009fa",
-      "compiled_at": "2026-10-28T01:46:54Z",
+      "compiled_at": "2026-10-28T02:07:42Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:5b4a9a949dd28b140279f71493383d061ec95ec839b36cdb3d0eef720f5fb917",
+      "digest": "sha256:66e802004e1a6a649a02894cb6215089cfc9a3de2a754306331b353415e27f8e",
       "evidence_files": 12477,
       "evidence_root": "sha256:9d96c8c22e5c574c4768d1eadd333b9750f73cd27be276a0f190c876960008a1",
       "files": 17451,
-      "generated_at_commit": "d77442a4d76a8ad0faad64c4ef0971623f265bad",
-      "source_tree": "sha256:0b41aa4781d372d825c3a10fde28b10bab620aade15c883d3d5ed0050a52c12a"
+      "generated_at_commit": "a877dd17f638e6a729fd425b505964ff3253c0f8",
+      "source_tree": "sha256:01ae595a9b2be940d5646629f07461010a1a74ea8bae7316c1039367eb895f38"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index fb8cb6227..4b06ff6d9 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -5,6 +5,7 @@ Every model below did real work. A model is listed only for work it did. The orc
 
 | Model | What it did |
 |---|---|
+| Codex | Inference-cost driver compiler-failure status repair, host-only refusal regression probes and independent review; native Omega execution NOT_RUN |
 | Codex (GPT-6 Astra) | Bounded native peer credentials, multi-descriptor polling, single-iovec sendmsg, socket-option allowlist and host fixtures (#788) |
 | Codex (GPT-6 Astra) | Seeded IR statement/type/scope validation repairs, bootstrap-safe helper splits, and independent C-oracle regression qualification |
 | Codex (GPT-6 Astra) | Strict seeded-Omega HTTP/1.1 server/client with SSE and strict RFC 8259 JSON reader/writer, with oracle parity, seeded fuzz, mutants, fd-leak/timeout and curl SSE demo (#788) |
diff --git a/bench/inference_cost/.crumb b/bench/inference_cost/.crumb
index d59a688a5..6de580698 100644
--- a/bench/inference_cost/.crumb
+++ b/bench/inference_cost/.crumb
@@ -3,14 +3,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-28T01:45:34Z",
+      "compiled_at": "2026-10-28T02:07:42Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:fa4e6dd8cd108942201f96e85517f7e8947a94c319f534d40c2696e529824d1e",
+      "digest": "sha256:05a1cab8bdd433b7dd674e7204ad513cb3ded671713ae9ea3e6724f904c56970",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 143,
-      "generated_at_commit": "66d44614cae41d908ba57c0ae15b16a73a3ef1f8",
-      "source_tree": "sha256:36b70dcaae17a05fecac4f13e740e75f4257ed60482772ca82720a45ae520141"
+      "generated_at_commit": "a877dd17f638e6a729fd425b505964ff3253c0f8",
+      "source_tree": "sha256:b7e801203a75fe38570b8f924e04bd3156595d9f9bb72a1e7465bfc305634016"
     }
   },
   "name": "bench/inference_cost",
diff --git a/bench/inference_cost/driver.sh b/bench/inference_cost/driver.sh
index 2d376c0cc..198e36fb4 100755
--- a/bench/inference_cost/driver.sh
+++ b/bench/inference_cost/driver.sh
@@ -68,7 +68,9 @@ evaluate_task() {
 
     # Compile candidate + check
     local comp_rc=0
-    if ! cat "$candidate_file" "$check_file" | "$OMC" > "$bin_file" 2>/dev/null; then
+    if cat "$candidate_file" "$check_file" | "$OMC" > "$bin_file" 2>/dev/null; then
+        comp_rc=0
+    else
         comp_rc=$?
     fi