interplane.Get Omega
Read in your language

omega-bridge

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

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / evidence / native-v2-compiler-profile

8e1d524 Record seed-only reconstruction of retained device compiler Drake Stapleton committed 2026-11-06
..
README.md6310
bootstrap-hoist.log342
bootstrap-host.log342
bootstrap-pins.json650
combined-v2.log6813
compiler-probes.json2650
compiler-probes.log2272
device-source-rebuild.txt1207
history-boundaries.json1416
negative-controls.json663
split-v2.log6931

README.md

Native-v2 compiler-profile repair

EXERCISED: the complete changed bridge runner exits 0 with NATIVE-V2 PASS (not run: none) (split-v2.log). The hscan-off mutant is caught. No bridge generator or production compiler pin changed. No hardware qualification, merge, installation, or deployment is claimed.

Root cause and history boundary

This is a compiler-feature pairing mismatch, not a typed-views regression. history-boundaries.json records the actual runner blob at every boundary:

  • Audit bridge 2954d46866f9867dea6d62853f68273773f01805 and the parent of 7ffd79d use blob 644d2017588b6cacecf7f8dcd1df756f3e9bcef3: neither the hoist gate nor section 11/hscan-off exists.
  • 7ffd79d45a7f9294c4b316e47f4deea93958c487 (#24) introduces the decoded x20..x26 hoist requirement. A non-hoisting compiler becomes red here.
  • d11246116c38bbe0e72a92ed6c13dafa46eb187d (#54) introduces section 11's host fixtures and hscan-off. A hoist-only compiler becomes red here because function-mode host words compile with error 9.
  • Main 3d01b49, #71 758d74aa, and #73 79e8c36 all have runner blob ec7aca4826001c2f0e53fa0717f0f9024ad13b8d. Neither typed-views PR changed this gate.

The old 2954d46 audit PASS with /tmp/sweep/L7/omc-13ce therefore did not exercise section 11 (or the later hoist assertion). Likewise the old freestanding receipt does not establish current-suite qualification. Historical receipts are unchanged.

compiler-probes.json and .log isolate the compiler features on the actual hoist, hfile and parenthesized-geteuid fixtures:

omega-mv sourceCompiler sha256Hoist writes x20..x26hfile / parenthesized geteuid
perf/omc-loop-checks 25e264c68504077fdb07c5943df3249bfccba90cc4380d3c174966b9ee244f7614b680ef6a2bd7e1e55a8ad0624029bd8e685014yeserror 9 / error 9
hoist/865-main 7286d61d23c2b92ef6606c6b66072335e6a09813078200466af2dc0452da7793b186d91bc9539f0cf5fafa15bcdb2a48e3bedef7yeserror 9 / error 9
#1008 2992a68b7a3bc1fa8b322924c3b3e786bebc9ee4c000ec029fb85847084a82e345cb7b384cc678a735ed37e9fcbc0f557534b911nocompile 0 / compile 0

Main's original #73 observations were not rerun merely to confirm them. They align with these source/fixture probes: c000ec02 gives the hoist-only FAIL 1; 13ce76c2 gives the six host failures. The latter's hscan-off exit 2 is secondary, not a scanner bypass: compiler error 9 prevents creation of host/paren.in, so the mutant never receives its framed input. With a host-capable compiler, the unmutated generator refuses that frame with 110 and the scan-disabled mutant accepts it with 0, as the unchanged assertion requires.

Implemented repair

The gate now requires and digest-checks two explicit roles before replacing its output directory:

  • OMEGA_NATIVE_OMC2: 7286d61d / 07820046 above, all ordinary ABI/hoist units.
  • OMEGA_NATIVE_HOST_OMC2: 2992a68b / c000ec02 above, section 11's actual host units and scanner fixtures.

The --host inertness control still compiles host-free units with the same hoist compiler on both sides and compares all nine files. Each actual host unit carries the host compiler's digest in its identity. There is no fallback, skipped assertion, changed refusal status, or weakened hoist requirement. Missing host configuration and swapped role pins are refused (negative-controls.json: exits 2, 1, 1).

Reproduction and actual commands

All binary execution, compiler bootstraps, tests, callers and mutants were inside this wrapper:

bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 COMMAND

The two exact source checkouts each ran sh seed/omega-from-seed.sh; rc 0, final RC=0, with hashes matching the committed binary (bootstrap-hoist.log, bootstrap-host.log, bootstrap-pins.json). The hoist checkout used a git archive of the pinned seed ladder/source; the host checkout used a detached worktree. No downloaded compiler was trusted instead of rebuilding it.

The complete fixed runner used:

PATH="$HOME/.cargo/bin:$HOME/.local/opt/zig-linux-aarch64-0.13.0:$HOME/.local/opt/go-1.27.3/bin:$PATH" \
OMEGA_NATIVE_OMC="$HOME/work/cudastack/lanes/bh-tools/omc-native" \
OMEGA_NATIVE_OMC2=/tmp/bridge-v2-profile/omega-hoist-original/seed/out/omc \
OMEGA_NATIVE_HOST_OMC2=/tmp/bridge-v2-profile/omega-host/seed/out/omc \
bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 sh tests/native/v2/run.sh

rc 0; final NATIVE-V2 PASS (not run: none). Generator compiler sha256: 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61. Exercised runner sha256: 86f8db9b06beb74b544444ee5eb0e59a0103d78e1df8c1cf25de7fa22f7fd627; base bridge 758d74aadf465ed5d4b3c80d798615c8ed4e18f8. Qualification was performed before the evidence/docs commit; exact source is identified by the runner digest, not claimed to be a clean historical commit.

Combined upstream candidate

A full local source merge of 7286d61d and 2992a68b merges seed/omc/omc.om cleanly but fails the seed0 path: om4 error 14 at function 513 (xe, line 17014), against its unchanged 512-function capacity; the complete merged source contains 525 functions. It also has unrelated pin/generated-file conflicts. No capacity or gate was raised to hide that failure.

Instead, the exact 21-line hostval feature from #1008 commit dbc72448cd20798595bccfdab9f3c81e8fe6ee45, with its existing spec and host cases/mutants, was ported onto 7286d61d. The combined compiler is c6a9c71f3a00cbe5d3aa53a79b7540492efee6180d45aee40ebfc4762628cac0. It builds from seed0 and passes the unmodified 758d74aa runner with only OMEGA_NATIVE_OMC2 set to it (combined-v2.log, rc 0, final NATIVE-V2 PASS (not run: none), hscan-off caught). That run evaluates the original script body directly with its original path as $0; no assertion was edited. The separate omega-mv draft carries its seed/hoist/host qualification. The bridge gate does not adopt that unmerged compiler as a trusted pin.

Paths in captured logs replace the home-directory prefix with ~; contents otherwise retain observed output. The three pin-refusal controls intentionally fail before running the suite. No CUDApp full suite, accelerator backend, GPU, or deployment was exercised by this lane.