interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

fix(native-v2): refuse PASS when language toolchains are missing

merged 6f603089c431b4fc #34 · opened 2026-10-28 14:42 UTC · closed 2026-10-28 15:22 UTC · merged 2026-10-28 15:22 UTC

Imported from GitHub aien-dev/omega-bridge#34, by drakestapleton

Base 2efdd48cd0c7c232064d5870e77660a5a75966e1 · Head 8c2753081cc3c34831f539013f09e68851f5fd6b

Merged on GitHub as 0c4cb9ff980af278890b231b994eaede4dc7621c; reachable from main 0138839cc3e7aef1c77230505f757372b8ae6ad5 (observed 2026-11-18T16:39:54Z)

drakestapleton wrote on 2026-10-28 14:42 UTC

Evidence first

Based on main 2efdd48cd0c7c232064d5870e77660a5a75966e1 after merged #15, #32, #33 and #35. Current repair head: 8c2753081cc3c34831f539013f09e68851f5fd6b.

Main was merged non-destructively into this draft branch after #32, #33 and #35. Parent history and all main changes are preserved; the diff against current main is still exactly the same guard plus regression test. Host tests were repeated after each integration. Independent re-review found no interference with #32's private-symbol checks or failure accounting; #33 and #35 leave the v2 runner byte-identical to #32. Independent #35 composition review also found no blocking issues.

MEASURED on Linux x86_64, compiler-free host control flow only:

python3 tests/native/v2/test_verdict.py
sh -n tests/native/v2/run.sh
python3 -m py_compile tests/native/v2/test_verdict.py

All five tests pass after the change; shell syntax and Python compilation exit 0. Before the change, the same test fails in the six missing-toolchain subcases. The baseline's actual terminal shell suffix prints NATIVE-V2 PASS (not run: zig) and exits 0. The test exercises that real suffix, not a duplicate implementation.

Independent read-only review found no blocking issues and independently reran the host tests and syntax check. Additional whitespace-only, tab-only, unprefixed missing-tool, and multiple-failure accounting states produced expected refusal outcomes.

Minimal change

  • One terminal guard: nonempty notrun prints NATIVE-V2 NOT_RUN and exits 1.
  • Existing FAIL branch stays first. Complete success output/exit status is unchanged.
  • Regression coverage: each recorded optional-toolchain label, multiple missing tools, success, failure, and failure precedence when tools are also missing.
  • No runtime/generator/ABI/compiler pin changes. Existing historical receipts are untouched.

The v1 runner already refuses a missing-toolchain qualification. This aligns the newly merged v2 runner's terminal verdict without weakening any gate.

Scope, ownership and limits

Scope claim: https://github.com/aien-dev/omega-bridge/pull/15#issuecomment-6471988566 . Open work including #24, #32, #33 and #35 was checked; none contains this verdict correction. Existing ABI and consumer owners keep their scopes.

NOT_RUN: full native-v2/compiler/caller suites. This executor is x86_64; the pinned compiler and native ABI require Linux AArch64. These host tests deliberately do not exercise upstream toolchain detection/accounting, native code or device paths. They do not contradict the reported all-toolchain host passes on #15's integration head.

Draft, not merge-ready: these connector-created commits are unsigned and have no DCO Signed-off-by certification. No signing/trust configuration was changed and no certification is implied. CI status must be read for this exact head; CodeQL success is analysis, not functional native qualification.

No GPU, services, deployment, PR/main merge, settings or trust changes requested or performed.

Fetch it

A git bundle of the pull request's head, 4713 bytes.

curl -fsSL https://interplane.io/drakestapleton/omega-bridge/patches/6f603089c431b4fc.bundle -o 6f603089c431b4fc.bundle
git fetch 6f603089c431b4fc.bundle refs/pull/34/head

Raw bundle · 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-bridge
34
8c2753081cc3c34831f539013f09e68851f5fd6b
{"kind":"github-import","owner":"aien-dev","repo":"omega-bridge","number":34,"url":"https://github.com/aien-dev/omega-bridge/pull/34","export_sha256":"4437ac3fc1482693a79ee39d37851494fabbe28ae00418da79120f49debe1d7b","imported_utc":"2026-11-18T16:39:54Z"}

Changes

diff --git a/tests/native/v2/run.sh b/tests/native/v2/run.sh
index 4b7a2f0..db27b9c 100755
--- a/tests/native/v2/run.sh
+++ b/tests/native/v2/run.sh
@@ -332,4 +332,5 @@ if [ "${1:-}" = measure ]; then
 fi
 for l in $notrun; do echo "NOT_RUN $l caller: toolchain not installed"; done
 if [ "$fails" -ne 0 ]; then echo "NATIVE-V2 FAIL $fails"; exit 1; fi
+if [ -n "$notrun" ]; then echo "NATIVE-V2 NOT_RUN (not run:$notrun)"; exit 1; fi
 echo "NATIVE-V2 PASS (not run:${notrun:- none})"
diff --git a/tests/native/v2/test_verdict.py b/tests/native/v2/test_verdict.py
new file mode 100644
index 0000000..1f479bd
--- /dev/null
+++ b/tests/native/v2/test_verdict.py
@@ -0,0 +1,70 @@
+#!/usr/bin/env python3
+"""Exercise the real runner's terminal verdict, without an Omega compiler.
+
+Only the final shell decision is executed. These are host control-flow tests,
+not native caller execution or ABI-v2 qualification.
+"""
+
+import pathlib
+import subprocess
+import unittest
+
+
+class VerdictTests(unittest.TestCase):
+    @classmethod
+    def setUpClass(cls):
+        runner = pathlib.Path(__file__).with_name("run.sh").read_text()
+        marker = "for l in $notrun;"
+        if runner.count(marker) != 1:
+            raise AssertionError("cannot identify the runner's terminal verdict uniquely")
+        cls.verdict = marker + runner.split(marker, 1)[1]
+
+    def run_verdict(self, fails, notrun):
+        return subprocess.run(
+            ["sh", "-eu", "-c", 'fails=$1; notrun=$2\n' + self.verdict,
+             "native-v2-verdict", str(fails), notrun],
+            text=True, capture_output=True, check=False,
+        )
+
+    def test_complete_success(self):
+        result = self.run_verdict(0, "")
+        self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
+        self.assertEqual(result.stdout, "NATIVE-V2 PASS (not run: none)\n")
+        self.assertEqual(result.stderr, "")
+
+    def test_each_missing_toolchain_is_not_run(self):
+        for language in ("c++", "python", "rust", "zig", "go"):
+            with self.subTest(language=language):
+                result = self.run_verdict(0, " " + language)
+                self.assertEqual(result.returncode, 1, result.stdout + result.stderr)
+                self.assertIn("NOT_RUN " + language + " caller: toolchain not installed\n",
+                              result.stdout)
+                self.assertIn("NATIVE-V2 NOT_RUN (not run: " + language + ")\n",
+                              result.stdout)
+                self.assertNotIn("NATIVE-V2 PASS", result.stdout)
+                self.assertEqual(result.stderr, "")
+
+    def test_multiple_missing_toolchains_are_not_run(self):
+        result = self.run_verdict(0, " zig go")
+        self.assertEqual(result.returncode, 1, result.stdout + result.stderr)
+        self.assertIn("NOT_RUN zig caller: toolchain not installed\n", result.stdout)
+        self.assertIn("NOT_RUN go caller: toolchain not installed\n", result.stdout)
+        self.assertIn("NATIVE-V2 NOT_RUN (not run: zig go)\n", result.stdout)
+        self.assertNotIn("NATIVE-V2 PASS", result.stdout)
+
+    def test_failure_remains_failure(self):
+        result = self.run_verdict(1, "")
+        self.assertEqual(result.returncode, 1, result.stdout + result.stderr)
+        self.assertEqual(result.stdout, "NATIVE-V2 FAIL 1\n")
+
+    def test_failure_takes_precedence_over_not_run(self):
+        result = self.run_verdict(1, " zig")
+        self.assertEqual(result.returncode, 1, result.stdout + result.stderr)
+        self.assertIn("NOT_RUN zig caller: toolchain not installed\n", result.stdout)
+        self.assertIn("NATIVE-V2 FAIL 1\n", result.stdout)
+        self.assertNotIn("NATIVE-V2 PASS", result.stdout)
+        self.assertNotIn("NATIVE-V2 NOT_RUN", result.stdout)
+
+
+if __name__ == "__main__":
+    unittest.main(verbosity=2)