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

68 lines · 9611 bytes Raw Blame History Rendered
1# Native union merge qualification
2
3IMPLEMENTED and EXERCISED on AArch64 Linux; x86 results are EMULATED. No GPU/driver/device was opened. Physical x86, chip qualification, merge-to-main and deployment are NOT_RUN.
4
5History: merge commit `6afaec6d618920a54e25a0194a75484f13bf22aa` combines #73 `79e8c3613a6f6f9e8eaaa9c013fc25bcb39e0538` and #75 `6a8f0090913283125f14871272f03d144a102d02`. The exercised native fix is `a215e62` (close the additional float-profile branch in the combined rmode parser). Portable sources were unchanged across both revisions; all source pairs are recorded in portable-hashes.json.
6
7The first native run exposed an automatic-merge missing `end` (omc line 693 error 15). The follow-up closes that branch. Initial reruns also exposed receipt setup errors (unexpanded tilde in QEMU argument, missing cross-toolchain fields, cross CC leaking into A64 jobs, reused nonempty output directories); corrected environments and fresh output paths were used below. None were suppressed in test code. Historical receipts are untouched.
8
9## Admission and scope
10
11Every listed command is prefixed by `bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10`. Builds use `GOMAXPROCS=3 GOFLAGS=-p=3`, and the make invocation has `-j3`. The complete command, cwd, relevant environment, rc and final line are in commands.json. HOME is normalized to `~` in all committed receipts. Other shell environment variables were inherited, not an env-i audit.
12
13The portable no-op proof is source identity, expressly accepted by Main: every bridge input read by both consumer units.sh scripts is identical to #73. The original unmodified consumer commands were nevertheless run and refused at their older converter pins (rc3); no gate was changed and no generation PASS is claimed for those commands. See portable-proof.md and portable-hashes.json.
14
15The #330 four-target command passed using this merged bridge. All portable suites and all exercised native profile/negative-control suites passed, except the known full-V2 failure. The old six-unit command forms and newer nine-unit API/f32 form are both exercised. The current API form supersedes the historical eight-unit form by adding attention/private f32; its full final line is preserved rather than pretending the old historical script was unchanged.
16
17Full V2 and a fresh #72 checkout both returned rc1, final `NATIVE-V2 FAIL 1`, with exactly the same sole failure:
18
19```
20FAIL hoist writes 0 of x20..x26 and 3 of d8..d15: OMEGA_NATIVE_OMC2 does not hoist (omega-mv perf/omc-loop-checks)
21```
22
23This uses #72's hosted OMC2 b8f8 profile; the newer hoist compiler is not silently substituted. Public pure float refusal remains exit110. Float suites actually ran C/Python/Rust/Zig/Go (no per-language NOT_RUN), despite their generic final-line wording. x86 controls include the known-bad QEMU oracle refusal.
24
25## Proof table
26
27The command column below omits only the common sandbox prefix. Full logs are adjacent.
28
29| Case | Command | rc | Final line |
30|---|---|---:|---|
31| native-build-controls-profile | `sh tests/native/test_build_failures.sh` | 0 | `PASS native callers: Zig and Go built and executed; no missing languages` |
32| native-kinds-profile | `sh tests/native/kinds.sh` | 0 | `NATIVE-KINDS PASS` |
33| baseline-device-free | `sh tools/test.sh` | 0 | `ALL SUITES RC=0` |
34| seeded-device-free | `python3 tests/seeded.py` | 0 | `SEEDED CONVERTER differential C/Python/native/x86 and pin/arithmetic/ABI controls PASS; device NOT_RUN` |
35| views-device-free | `python3 tests/seeded_views.py` | 0 | `SEEDED-VIEWS PASS` |
36| next-device-free | `python3 tests/seeded_next.py` | 0 | `SEEDED-NEXT PASS` |
37| freest-device-free | `python3 tests/freest.py` | 0 | `PASS direct structural converter refusals independently of frontend, including recursive call graph` |
38| native-x86-device-free | `sh tests/native/x86/run.sh /tmp/bridge-pin-proof/third-native-x86` | 0 | `NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN)` |
39| native-x86-controls-device-free | `python3 tests/native/x86/test_build_failures.py` | 0 | `NATIVE-X86 CONTROLS PASS (EMULATED; native x86 NOT_RUN)` |
40| float-sqrt-final | `python3 tests/seeded_float.py` | 0 | `PASS seeded binary32/binary64 byte differential (native/C/x86, 132 constants vs exact oracle, one-ulp mutant detected); baseline/Python/f64-array/converter refusals` |
41| native-float-e5-mixed-final | `python3 tests/native/float.py` | 0 | `NATIVE-FLOAT PASS (see per-language NOT_RUN lines)` |
42| native-float-next-mixed-final | `python3 tests/native/float.py` | 0 | `NATIVE-FLOAT PASS (see per-language NOT_RUN lines)` |
43| freest-x86 | `env CC=x86_64-linux-gnu-gcc 'FREEST_RUNNER=~/.local/opt/qemu-oracle-10.0.14/build/qemu-x86_64 -L /usr/x86_64-linux-gnu' python3 tests/freest.py` | 0 | `PASS direct structural converter refusals independently of frontend, including recursive call graph` |
44| runtime-nul-final | `python3 tests/seeded_runtime_views.py` | 0 | `SEEDED-RUNTIME-VIEWS PASS` |
45| om1 | `python3 tests/native/test_freestanding.py` | 0 | `PASS source-swap control refuses original non-pure snapshot; reread mutant admits mismatched source/code and is caught` |
46| f32-a64-compiled14 | `python3 tests/native/test_freestanding_f32.py --out /tmp/bridge-pin-proof/third-freestanding-f32-a64-compiled14` | 0 | `PASS FP32 bare ELF: no undefined symbols, interpreter, TLS or libc; raw hosted bytes identical; three source and two generator mutants caught; 14 compiled public float interfaces and scanner-only host helper refused110` |
47| f32-x86-compiled14 | `python3 tests/native/test_freestanding_f32.py --target x86linux --out /tmp/bridge-pin-proof/third-freestanding-f32-x86-compiled14` | 0 | `PASS FP32 bare ELF: no undefined symbols, interpreter, TLS or libc; raw hosted bytes identical; three source and two generator mutants caught; 14 compiled public float interfaces and scanner-only host helper refused110` |
48| nine-a64 | `python3 tests/native/test_freestanding_aggregate.py --regalloc ~/work/cudastack/lanes/RegAllocOm --core ~/work/cudastack/lanes/CoreUtilOm --target aarch64linux --api ~/work/cudastack/lanes/ApiPlanOm --out /tmp/bridge-pin-proof/third-freestanding-nine-a64` | 0 | `PASS whole policy/mm/attention without libc: views/rem/private f32/f64, RNE conversion/Newton outputs, bad span untouched; four source mutants caught` |
49| nine-x86 | `python3 tests/native/test_freestanding_aggregate.py --regalloc ~/work/cudastack/lanes/RegAllocOm --core ~/work/cudastack/lanes/CoreUtilOm --target x86linux --api ~/work/cudastack/lanes/ApiPlanOm --out /tmp/bridge-pin-proof/freestanding-nine-x86` | 0 | `PASS whole policy/mm/attention without libc: views/rem/private f32/f64, RNE conversion/Newton outputs, bad span untouched; four source mutants caught` |
50| om2 | `python3 tests/native/test_freestanding_om2.py` | 0 | `PASS FP32 bare ELF: no undefined symbols, interpreter, TLS or libc; raw hosted bytes identical; three source and two generator mutants caught; 14 compiled public float interfaces and scanner-only host helper refused110` |
51| v2 | `sh tests/native/v2/run.sh` | 1 | `NATIVE-V2 FAIL 1` |
52| device | `python3 tests/native/x86/device.py /tmp/bridge-pin-proof/f32-native-device-compiled14` | 0 | `NATIVE-X86-DEVICE EMULATED PASS shared fixtures, 15 word controls, 5 ABI1 controls, 3-unit context ABI, 12 mutants; native/driver/chip NOT_RUN` |
53| v2-baseline72 | `sh tests/native/v2/run.sh` | 1 | `NATIVE-V2 FAIL 1` |
54| pathlen | `python3 tests/native/test_freestanding_pathlen.py` | 0 | `PASS freestanding pathlen differential A64+x86 mutants=7 checks=33158` |
55| integ-noop | `sh om/units.sh --check` | 3 | `NOT_RUN: toc.om is not the pinned converter` |
56| 323-noop | `sh om/units.sh --check` | 3 | `NOT_RUN: toc.om is not the pinned converter` |
57| 330-freestanding | `make -j3 test-leftovers gpu-engine-freestanding test-gpu-engine-freestanding test-codegen-freestanding` | 0 | `PASS: freestanding codegen contract (14 fixtures, 0 failing checks)` |
58| six-a64 | `python3 tests/native/test_freestanding_aggregate.py --regalloc ~/work/cudastack/lanes/RegAllocOm --core ~/work/cudastack/lanes/CoreUtilOm --target aarch64linux --out /tmp/bridge-pin-proof/freestanding-six-a64` | 0 | `PASS allocator, IR, liveness, graph, private f64, padded NOP and CUBIN refusal; bad span untouched; wrong-result control exits 90` |
59| six-x86 | `python3 tests/native/test_freestanding_aggregate.py --regalloc ~/work/cudastack/lanes/RegAllocOm --core ~/work/cudastack/lanes/CoreUtilOm --target x86linux --out /tmp/bridge-pin-proof/freestanding-six-x86` | 0 | `PASS allocator, IR, liveness, graph, private f64, padded NOP and CUBIN refusal; bad span untouched; wrong-result control exits 90` |
60
61## Conflict resolution
62
63- Native generator: retain #71 float admission and keyword f64; retain #72/#75 host-word size, explicit mapping-context SHA pins, and zero-initialized span storage. Combine mode admission with all branches closed.
64- Native wrapper: retain FLOAT_PIN and X86_HOST_PIN, the float-specific AArch64 restriction, and hosted x86 support. No compiler fingerprint changed.
65- ABI documentation: preserve public float signatures, pure freestanding OM2/private-float/borrowed-byte contracts, mapping-context section, and hosted typed runtime extents as distinct profiles.
66- Refresh affected root/docs/src crumbs. No other source behavior is changed outside the union.
67
68No new language/compiler/ownership/profile contract was added beyond #71/#73/#72/#75. Their existing omega-harness guide requests (#181 and #194) remain applicable; no guide pin is promoted by this integration.