fix(native-v2): refuse PASS when language toolchains are missing
merged6f603089c431b4fc #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.
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.