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 / README.md

63 lines · 6310 bytes Raw Blame History Rendered
1# Native-v2 compiler-profile repair
2
3EXERCISED: 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.
4
5## Root cause and history boundary
6
7This is a compiler-feature pairing mismatch, not a typed-views regression. `history-boundaries.json` records the actual runner blob at every boundary:
8
9- Audit bridge `2954d46866f9867dea6d62853f68273773f01805` and the parent of `7ffd79d` use blob `644d2017588b6cacecf7f8dcd1df756f3e9bcef3`: neither the hoist gate nor section 11/hscan-off exists.
10- `7ffd79d45a7f9294c4b316e47f4deea93958c487` (#24) introduces the decoded x20..x26 hoist requirement. A non-hoisting compiler becomes red here.
11- `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.
12- Main `3d01b49`, #71 `758d74aa`, and #73 `79e8c36` all have runner blob `ec7aca4826001c2f0e53fa0717f0f9024ad13b8d`. Neither typed-views PR changed this gate.
13
14The 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.
15
16`compiler-probes.json` and `.log` isolate the compiler features on the actual hoist, hfile and parenthesized-geteuid fixtures:
17
18| omega-mv source | Compiler sha256 | Hoist writes x20..x26 | hfile / parenthesized geteuid |
19|---|---|---|---|
20| perf/omc-loop-checks `25e264c68504077fdb07c5943df3249bfccba90c` | c4380d3c174966b9ee244f7614b680ef6a2bd7e1e55a8ad0624029bd8e685014 | yes | error 9 / error 9 |
21| hoist/865-main `7286d61d23c2b92ef6606c6b66072335e6a09813` | 078200466af2dc0452da7793b186d91bc9539f0cf5fafa15bcdb2a48e3bedef7 | yes | error 9 / error 9 |
22| #1008 `2992a68b7a3bc1fa8b322924c3b3e786bebc9ee4` | c000ec029fb85847084a82e345cb7b384cc678a735ed37e9fcbc0f557534b911 | no | compile 0 / compile 0 |
23
24Main'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.
25
26## Implemented repair
27
28The gate now requires and digest-checks two explicit roles before replacing its output directory:
29
30- `OMEGA_NATIVE_OMC2`: 7286d61d / 07820046 above, all ordinary ABI/hoist units.
31- `OMEGA_NATIVE_HOST_OMC2`: 2992a68b / c000ec02 above, section 11's actual host units and scanner fixtures.
32
33The `--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).
34
35## Reproduction and actual commands
36
37All binary execution, compiler bootstraps, tests, callers and mutants were inside this wrapper:
38
39```
40bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 COMMAND
41```
42
43The 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.
44
45The complete fixed runner used:
46
47```
48PATH="$HOME/.cargo/bin:$HOME/.local/opt/zig-linux-aarch64-0.13.0:$HOME/.local/opt/go-1.27.3/bin:$PATH" \
49OMEGA_NATIVE_OMC="$HOME/work/cudastack/lanes/bh-tools/omc-native" \
50OMEGA_NATIVE_OMC2=/tmp/bridge-v2-profile/omega-hoist-original/seed/out/omc \
51OMEGA_NATIVE_HOST_OMC2=/tmp/bridge-v2-profile/omega-host/seed/out/omc \
52bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 sh tests/native/v2/run.sh
53```
54
55rc 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.
56
57## Combined upstream candidate
58
59A 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.
60
61Instead, 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.
62
63Paths 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.