omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
GitHub aien-dev/omega-bridge#53 (code only)
Apply it
git checkout -b patch-1fe7f315fadd74b8 ba8a75a6f9538b130383e1eb8ff459f82c589f92 curl -fsSL https://interplane.io/drakestapleton/omega-bridge/patches/1fe7f315fadd74b8.patch | git am
Provenance
github-import 1
aien-dev/omega-bridge
53
b449bef0ced068062dcba422ad7b1201eced3d76
{"kind":"github-import","owner":"aien-dev","repo":"omega-bridge","number":53,"url":"https://github.com/aien-dev/omega-bridge/pull/53","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:01Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/AGENTS.md b/AGENTS.md index 9e1e5cc..1c23113 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -34,9 +34,9 @@ The bootstrap fetches the Omega source commit recorded in `docs/PROVENANCE.md` ( - `OMEGA_SEED`: an already qualified seed compiler; its sha256 must be the pinned one above. - `OMEGA_NATIVE_OMC`: mandatory baseline compiler for building the native generator and compiling AArch64 OM-1 units, sha256 `734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61` (omega-mv PR #696). Do not replace this pin with the x86 compiler. - `OMEGA_NATIVE_OMC2`: compiler for AArch64 OM-2 units; its digest is recorded in their identities. -- `OMEGA_NATIVE_X86_OMC`: separate compiler for both OM-1 and OM-2 units under `tools/native --target x86linux`, sha256 `62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b`. `OMEGA_NATIVE_OMC2` is unused for this target. +- `OMEGA_NATIVE_X86_OMC`: separate compiler for both OM-1 and OM-2 units under `tools/native --target x86linux`, sha256 `be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a` (omega-mv main `seed/out/omc` since #994). `OMEGA_NATIVE_OMC2` is unused for this target. - `CC`: native library C compiler, for example `x86_64-linux-gnu-gcc` with `--target x86linux`; no host-architecture inference changes the requested target. `OMEGA_NATIVE_CFLAGS` supplies extra C flags. -- `QEMU_X86_64`: emulator command for `tests/native/x86/run.sh`. Use the unpatched QEMU 10.0.14 oracle documented in `docs/NATIVE-ABI.md`; integration observed signal and `/proc/self/maps` failures with 8.2.2. This is verification infrastructure, not a production dependency. At the current x86 compiler pin, full-suite, mismatched-pin and failed/missing-toolchain controls passed EMULATED; physical x86 execution remains NOT_RUN. Receipt: `evidence/native-x86-62775d2a.json`; earlier pins' receipts remain in `evidence/native-x86-badedbb0/`, `evidence/native-x86-f7752bc5/` and `evidence/native-x86/`. +- `QEMU_X86_64`: emulator command for `tests/native/x86/run.sh`. Use the unpatched QEMU 10.0.14 oracle documented in `docs/NATIVE-ABI.md`; integration observed signal and `/proc/self/maps` failures with 8.2.2. This is verification infrastructure, not a production dependency. At the current x86 compiler pin, full-suite, mismatched-pin and failed/missing-toolchain controls passed EMULATED; physical x86 execution remains NOT_RUN. Receipt: `evidence/native-x86-be8c5130.json`; earlier pins' receipts remain in `evidence/native-x86-62775d2a.json`, `evidence/native-x86-badedbb0/`, `evidence/native-x86-f7752bc5/` and `evidence/native-x86/`. - `OMEGA_NATIVE_X86_PYTHON`, `OMEGA_NATIVE_X86_SYSROOT`, `OMEGA_NATIVE_X86_LIBPATH`: guest Python executable, loader sysroot and optional guest library path for the x86 emulator suite. The Python must be x86 Linux, not the host interpreter. - `MAXPY`: Python interpreter of a venv with `modular==26.7.0`, used by `conformance/run.sh`. - On a shared build host, prefix the build and test commands with `quiet-build`, as the README does. Without it, run the scripts directly. diff --git a/AUDIT_SCOPE.md b/AUDIT_SCOPE.md index a710c73..8e5b00f 100644 --- a/AUDIT_SCOPE.md +++ b/AUDIT_SCOPE.md @@ -13,7 +13,7 @@ Python, Rust, Zig and Go can call machine code produced by the seeded Omega comp ABI v1 for OM-1 units and ABI v2 for OM-2 units, `docs/NATIVE-ABI.md`). `tools/native --freestanding` emits an AArch64 object for pure integer-scalar OM-1 units with no hosted runtime. `tools/native --target x86linux` emits hosted x86-64 SysV Linux bindings from a separately pinned -x86 compiler; that path is EXERCISED under emulation only (`evidence/native-x86-62775d2a.json`) +x86 compiler; that path is EXERCISED under emulation only (`evidence/native-x86-be8c5130.json`) and native x86-64 execution is NOT_RUN. `src/gpu_adapter.om` is an opt-in GPU adapter that negotiates and admits artifacts; it opens no device and converts no host program. `max-cpu/` runs an Omega kernel as a Modular MAX 26.7.0 CPU custom op (status EXERCISED on a host CPU, draft; diff --git a/README.md b/README.md index fb6be86..751a48d 100644 --- a/README.md +++ b/README.md @@ -74,8 +74,8 @@ QEMU 10.0.14 oracle and guest Python setup documented in QEMU 8.2.2 has observed signal and `/proc/self/maps` limitations for these callers. At the current x86 compiler pin, the full suite plus mismatched-pin and failed/missing-toolchain controls passed EMULATED; see -[the pinned receipts](evidence/native-x86-62775d2a.json). Earlier -pins' receipts remain in `evidence/native-x86-badedbb0/`, `evidence/native-x86-f7752bc5/` and `evidence/native-x86/`. Physical x86 +[the pinned receipts](evidence/native-x86-be8c5130.json). Earlier +pins' receipts remain in `evidence/native-x86-62775d2a.json`, `evidence/native-x86-badedbb0/`, `evidence/native-x86-f7752bc5/` and `evidence/native-x86/`. Physical x86 execution remains NOT_RUN. ## Human-Directed Agentic Engineering diff --git a/docs/NATIVE-ABI.md b/docs/NATIVE-ABI.md index 8c1648e..4fc1327 100644 --- a/docs/NATIVE-ABI.md +++ b/docs/NATIVE-ABI.md @@ -20,10 +20,11 @@ units and supplies their compiler identity, as before. For `--target x86linux`, `OMEGA_NATIVE_X86_OMC` compiles **both** OM-1 and OM-2 units and must have sha256 -`62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b`. +`be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a`, the +committed `seed/out/omc` of omega-mv main +`474197e4fa0207e0e2fb3c0494594a975f5031fa` (last changed by omega-mv #994). Its compiler source sha256 is -`96d51b63c8f451661ac715395078e04f39195e50c9e8fe37746cda121e4d7a1e`, -at omega-mv `7ab5fdd067884fd3044155084b39163da1be5c8a` on pending compiler draft #923. +`d4b4b89d8a58cc90d30d15a525b417e4b31e5bfe5288d21d665f1c7958a330f6`. This is a separate candidate compiler pin, not a replacement for the generator's baseline pin. `OMEGA_NATIVE_OMC2` is not used for this target. Each compiler input is `target x86linux\n` followed by the snapshotted source. The directive @@ -52,11 +53,11 @@ compiler digest refuses before generating or installing outputs. **Evidence boundary:** the x86 integration is IMPLEMENTED and EXERCISED under QEMU 10.0.14, not qualified by the historical AArch64 receipts below. At the current x86 compiler pin, see -[`evidence/native-x86-62775d2a.json`](../evidence/native-x86-62775d2a.json) +[`evidence/native-x86-be8c5130.json`](../evidence/native-x86-be8c5130.json) and its command receipts; earlier pins' receipts remain in -`evidence/native-x86-badedbb0/`, `evidence/native-x86-f7752bc5/` and `evidence/native-x86/`. Native physical x86-64 execution remains **NOT_RUN**. -No GPU execution is part of this target. The compiler dependency is draft PR -#923. The full compiler differential is recorded separately; this bridge +`evidence/native-x86-62775d2a.json`, `evidence/native-x86-badedbb0/`, `evidence/native-x86-f7752bc5/` and `evidence/native-x86/`. Native physical x86-64 execution remains **NOT_RUN**. +No GPU execution is part of this target. The compiler is merged on omega-mv +main. The full compiler differential is recorded separately; this bridge receipt does not qualify the compiler. ### x86 emulator runner and QEMU oracle @@ -121,8 +122,13 @@ existing ABI-v2 pointer/status-32, signal-reentry/status-33, stale-identity and thread controls, private-symbol/TLS isolation, and boundary/API mutants. Added controls cover nested traps, bad-runtime/status-34 recovery, SysV saved-register sentinels, and the fixed owned-stack floor after out-buffer allocation. -All 150 baseline/output comparisons with `0c4cb9ff` passed byte-for-byte, -including unchanged AArch64 freestanding refusals. The receipts retain the +At the 62775d2a pin all 150 baseline/output comparisons with `0c4cb9ff` passed +byte-for-byte, including unchanged AArch64 freestanding refusals. #26 (`f637021`) +then changed AArch64 output on purpose (f32 and ushort array kinds, the Python +header), so the parity baseline is now the generator at `f637021`, the last +accepted AArch64 contract; `src/native.om` is unchanged since. The generator at +`f637021^` still matches `0c4cb9ff` on every pre-#26 fixture and output, so the +chain back to the pre-x86 generator is unbroken. The receipts retain the earlier failing emulator run rather than rewriting it as a pass. ## What Omega produces diff --git a/evidence/native-x86-be8c5130-controls.log b/evidence/native-x86-be8c5130-controls.log new file mode 100644 index 0000000..ad1372e --- /dev/null +++ b/evidence/native-x86-be8c5130-controls.log @@ -0,0 +1,317 @@ +PASS failed-toolchain control ZIG +PASS failed-toolchain control GO +PASS missing Zig and Go refuse aggregate PASS (#34) +PASS Python is ELF64 x86-64, not the host interpreter +PASS generator compiler pin +PASS x86 compiler pin +PASS x86 Python interpreter and ctypes runtime +PASS tools/native built mixed OM-1/OM-2 x86 library and all bindings +PASS x86 floor uses actual usable stack base, independent of out carve +PASS library ELF machine is x86-64 +PASS original source/compiler identity madd +PASS source snapshot excludes target directive madd +PASS compiler bytes reproduce madd +PASS embedded bytes unchanged madd +PASS original source/compiler identity vec +PASS source snapshot excludes target directive vec +PASS compiler bytes reproduce vec +PASS six-byte JMP/NOP entry slots vec +PASS independent x86 instruction oracle vec +PASS embedded bytes unchanged vec +PASS original source/compiler identity lay +PASS source snapshot excludes target directive lay +PASS compiler bytes reproduce lay +PASS six-byte JMP/NOP entry slots lay +PASS independent x86 instruction oracle lay +PASS embedded bytes unchanged lay +PASS original source/compiler identity one +PASS source snapshot excludes target directive one +PASS compiler bytes reproduce one +PASS embedded bytes unchanged one +PASS exact public ABI symbol set +PASS all runtime/code/entry symbols private +PASS no caller hand-declares Omega ABI +PASS target-independent declarations h +PASS target-independent declarations python +PASS target-independent declarations rust +PASS target-independent declarations zig +PASS target-independent declarations go +PASS target-independent declarations api +PASS target-independent declarations apih +PASS target-independent declarations apic +PASS AArch64 byte parity f637021 big.om c +PASS AArch64 byte parity f637021 big.om h +PASS AArch64 byte parity f637021 big.om python +PASS AArch64 byte parity f637021 big.om rust +PASS AArch64 byte parity f637021 big.om zig +PASS AArch64 byte parity f637021 big.om go +PASS AArch64 byte parity f637021 big.om api +PASS AArch64 byte parity f637021 big.om apih +PASS AArch64 byte parity f637021 big.om apic +PASS AArch64 byte parity f637021 big.om freest +PASS AArch64 byte parity f637021 fill.om c +PASS AArch64 byte parity f637021 fill.om h +PASS AArch64 byte parity f637021 fill.om python +PASS AArch64 byte parity f637021 fill.om rust +PASS AArch64 byte parity f637021 fill.om zig +PASS AArch64 byte parity f637021 fill.om go +PASS AArch64 byte parity f637021 fill.om api +PASS AArch64 byte parity f637021 fill.om apih +PASS AArch64 byte parity f637021 fill.om apic +PASS AArch64 byte parity f637021 fill.om freest +PASS AArch64 byte parity f637021 fsum.om c +PASS AArch64 byte parity f637021 fsum.om h +PASS AArch64 byte parity f637021 fsum.om python +PASS AArch64 byte parity f637021 fsum.om rust +PASS AArch64 byte parity f637021 fsum.om zig +PASS AArch64 byte parity f637021 fsum.om go +PASS AArch64 byte parity f637021 fsum.om api +PASS AArch64 byte parity f637021 fsum.om apih +PASS AArch64 byte parity f637021 fsum.om apic +PASS AArch64 byte parity f637021 fsum.om freest +PASS AArch64 byte parity f637021 g1/calc.lowered.om c +PASS AArch64 byte parity f637021 g1/calc.lowered.om h +PASS AArch64 byte parity f637021 g1/calc.lowered.om python +PASS AArch64 byte parity f637021 g1/calc.lowered.om rust +PASS AArch64 byte parity f637021 g1/calc.lowered.om zig +PASS AArch64 byte parity f637021 g1/calc.lowered.om go +PASS AArch64 byte parity f637021 g1/calc.lowered.om api +PASS AArch64 byte parity f637021 g1/calc.lowered.om apih +PASS AArch64 byte parity f637021 g1/calc.lowered.om apic +PASS AArch64 byte parity f637021 g1/calc.lowered.om freest +PASS AArch64 byte parity f637021 g1/calc.om c +PASS AArch64 byte parity f637021 g1/calc.om h +PASS AArch64 byte parity f637021 g1/calc.om python +PASS AArch64 byte parity f637021 g1/calc.om rust +PASS AArch64 byte parity f637021 g1/calc.om zig +PASS AArch64 byte parity f637021 g1/calc.om go +PASS AArch64 byte parity f637021 g1/calc.om api +PASS AArch64 byte parity f637021 g1/calc.om apih +PASS AArch64 byte parity f637021 g1/calc.om apic +PASS AArch64 byte parity f637021 g1/calc.om freest +PASS AArch64 byte parity f637021 halve.om c +PASS AArch64 byte parity f637021 halve.om h +PASS AArch64 byte parity f637021 halve.om python +PASS AArch64 byte parity f637021 halve.om rust +PASS AArch64 byte parity f637021 halve.om zig +PASS AArch64 byte parity f637021 halve.om go +PASS AArch64 byte parity f637021 halve.om api +PASS AArch64 byte parity f637021 halve.om apih +PASS AArch64 byte parity f637021 halve.om apic +PASS AArch64 byte parity f637021 halve.om freest +PASS AArch64 byte parity f637021 hsum.om c +PASS AArch64 byte parity f637021 hsum.om h +PASS AArch64 byte parity f637021 hsum.om python +PASS AArch64 byte parity f637021 hsum.om rust +PASS AArch64 byte parity f637021 hsum.om zig +PASS AArch64 byte parity f637021 hsum.om go +PASS AArch64 byte parity f637021 hsum.om api +PASS AArch64 byte parity f637021 hsum.om apih +PASS AArch64 byte parity f637021 hsum.om apic +PASS AArch64 byte parity f637021 hsum.om freest +PASS AArch64 byte parity f637021 madd.om c +PASS AArch64 byte parity f637021 madd.om h +PASS AArch64 byte parity f637021 madd.om python +PASS AArch64 byte parity f637021 madd.om rust +PASS AArch64 byte parity f637021 madd.om zig +PASS AArch64 byte parity f637021 madd.om go +PASS AArch64 byte parity f637021 madd.om api +PASS AArch64 byte parity f637021 madd.om apih +PASS AArch64 byte parity f637021 madd.om apic +PASS AArch64 byte parity f637021 madd.om freest +PASS AArch64 byte parity f637021 mix.om c +PASS AArch64 byte parity f637021 mix.om h +PASS AArch64 byte parity f637021 mix.om python +PASS AArch64 byte parity f637021 mix.om rust +PASS AArch64 byte parity f637021 mix.om zig +PASS AArch64 byte parity f637021 mix.om go +PASS AArch64 byte parity f637021 mix.om api +PASS AArch64 byte parity f637021 mix.om apih +PASS AArch64 byte parity f637021 mix.om apic +PASS AArch64 byte parity f637021 mix.om freest +PASS AArch64 byte parity f637021 smadd.om c +PASS AArch64 byte parity f637021 smadd.om h +PASS AArch64 byte parity f637021 smadd.om python +PASS AArch64 byte parity f637021 smadd.om rust +PASS AArch64 byte parity f637021 smadd.om zig +PASS AArch64 byte parity f637021 smadd.om go +PASS AArch64 byte parity f637021 smadd.om api +PASS AArch64 byte parity f637021 smadd.om apih +PASS AArch64 byte parity f637021 smadd.om apic +PASS AArch64 byte parity f637021 smadd.om freest +PASS AArch64 byte parity f637021 spin.om c +PASS AArch64 byte parity f637021 spin.om h +PASS AArch64 byte parity f637021 spin.om python +PASS AArch64 byte parity f637021 spin.om rust +PASS AArch64 byte parity f637021 spin.om zig +PASS AArch64 byte parity f637021 spin.om go +PASS AArch64 byte parity f637021 spin.om api +PASS AArch64 byte parity f637021 spin.om apih +PASS AArch64 byte parity f637021 spin.om apic +PASS AArch64 byte parity f637021 spin.om freest +PASS AArch64 byte parity f637021 v2/lay.om c +PASS AArch64 byte parity f637021 v2/lay.om h +PASS AArch64 byte parity f637021 v2/lay.om python +PASS AArch64 byte parity f637021 v2/lay.om rust +PASS AArch64 byte parity f637021 v2/lay.om zig +PASS AArch64 byte parity f637021 v2/lay.om go +PASS AArch64 byte parity f637021 v2/lay.om api +PASS AArch64 byte parity f637021 v2/lay.om apih +PASS AArch64 byte parity f637021 v2/lay.om apic +PASS AArch64 byte parity f637021 v2/lay.om freest +PASS AArch64 byte parity f637021 v2/one.om c +PASS AArch64 byte parity f637021 v2/one.om h +PASS AArch64 byte parity f637021 v2/one.om python +PASS AArch64 byte parity f637021 v2/one.om rust +PASS AArch64 byte parity f637021 v2/one.om zig +PASS AArch64 byte parity f637021 v2/one.om go +PASS AArch64 byte parity f637021 v2/one.om api +PASS AArch64 byte parity f637021 v2/one.om apih +PASS AArch64 byte parity f637021 v2/one.om apic +PASS AArch64 byte parity f637021 v2/one.om freest +PASS AArch64 byte parity f637021 v2/v1use/bsum.om c +PASS AArch64 byte parity f637021 v2/v1use/bsum.om h +PASS AArch64 byte parity f637021 v2/v1use/bsum.om python +PASS AArch64 byte parity f637021 v2/v1use/bsum.om rust +PASS AArch64 byte parity f637021 v2/v1use/bsum.om zig +PASS AArch64 byte parity f637021 v2/v1use/bsum.om go +PASS AArch64 byte parity f637021 v2/v1use/bsum.om api +PASS AArch64 byte parity f637021 v2/v1use/bsum.om apih +PASS AArch64 byte parity f637021 v2/v1use/bsum.om apic +PASS AArch64 byte parity f637021 v2/v1use/bsum.om freest +PASS AArch64 byte parity f637021 v2/vec.om c +PASS AArch64 byte parity f637021 v2/vec.om h +PASS AArch64 byte parity f637021 v2/vec.om python +PASS AArch64 byte parity f637021 v2/vec.om rust +PASS AArch64 byte parity f637021 v2/vec.om zig +PASS AArch64 byte parity f637021 v2/vec.om go +PASS AArch64 byte parity f637021 v2/vec.om api +PASS AArch64 byte parity f637021 v2/vec.om apih +PASS AArch64 byte parity f637021 v2/vec.om apic +PASS AArch64 byte parity f637021 v2/vec.om freest +PASS AArch64 byte parity f637021 v1-set c +PASS AArch64 byte parity f637021 v1-set h +PASS AArch64 byte parity f637021 v1-set python +PASS AArch64 byte parity f637021 v1-set rust +PASS AArch64 byte parity f637021 v1-set zig +PASS AArch64 byte parity f637021 v1-set go +PASS AArch64 byte parity f637021 v1-set api +PASS AArch64 byte parity f637021 v1-set apih +PASS AArch64 byte parity f637021 v1-set apic +PASS AArch64 byte parity f637021 v1-set freest +PASS AArch64 byte parity f637021 v2-set c +PASS AArch64 byte parity f637021 v2-set h +PASS AArch64 byte parity f637021 v2-set python +PASS AArch64 byte parity f637021 v2-set rust +PASS AArch64 byte parity f637021 v2-set zig +PASS AArch64 byte parity f637021 v2-set go +PASS AArch64 byte parity f637021 v2-set api +PASS AArch64 byte parity f637021 v2-set apih +PASS AArch64 byte parity f637021 v2-set apic +PASS AArch64 byte parity f637021 v2-set freest +PASS c caller built +PASS c caller EMULATED +PASS cpp caller built +PASS cpp caller EMULATED +PASS go caller built +PASS go caller EMULATED +PASS python caller EMULATED +PASS rust caller built +PASS rust caller EMULATED +PASS rust-2024 caller EMULATED +PASS zig caller built +PASS zig caller EMULATED +PASS SysV AMD64 saved-register oracle EMULATED +PASS stale source mutation changes bytes +PASS stale h generated +PASS stale python generated +PASS stale C identity refused +PASS fresh C identity control +PASS stale Python import refused for identity +PASS v1 refusal binding generated h +PASS v1 refusal binding generated python +PASS v1 refusal binding generated rust +PASS v1 refusal binding generated zig +PASS v1 refusal binding generated go +PASS c refuses old v1 symbol +PASS cpp refuses old v1 symbol +PASS go refuses old v1 symbol +PASS python refuses old v1 symbol +PASS rust refuses old v1 symbol +PASS zig refuses old v1 symbol +PASS generator accepts refusal control +PASS generator refuses missing identity +PASS generator refuses short digest +PASS generator refuses nonhex digest +PASS generator refuses invalid unit name +PASS generator refuses repeated unit +PASS generator refuses repeated export +PASS generator refuses diag +PASS generator refuses eight slots +PASS generator refuses unknown layout +PASS generator refuses oversized out +PASS generator refuses uint scalar +PASS generator refuses uint result +PASS generator refuses reserved len name +PASS generator refuses short six-byte entry table +PASS generator refuses unknown c-type layout +PASS generator refuses argument vector [] +PASS generator refuses argument vector ['java', 'x86linux'] +PASS generator refuses argument vector ['c', 'unknown'] +PASS generator refuses argument vector ['c', 'x86linux', 'extra'] +PASS mismatched x86 compiler refuses before creating outputs +PASS mismatched x86 compiler preserves previous outputs +PASS tools/native refusal preserves previous outputs and removes scratch +PASS wrap mutant generated c +PASS wrap mutant generated h +PASS wrap mutant differs +PASS wrap mutant caught by existing boundary oracle +PASS overlap mutant generated c +PASS overlap mutant generated h +PASS overlap mutant differs +PASS overlap mutant caught by existing boundary oracle +PASS outcopy mutant generated c +PASS outcopy mutant generated h +PASS outcopy mutant differs +PASS outcopy mutant caught by existing boundary oracle +PASS private fixture generated madd +PASS separate object private locals madd +PASS private fixture generated smadd +PASS separate object private locals smadd +PASS separate bindings and TLS isolation EMULATED +PASS private fixture generated madd +PASS private fixture generated smadd +PASS global helper mutant rejected at link +PASS prototype-only API has no libc imports +PASS out-of-line API owns abort and definitions +PASS inline API import negative control +PASS out-of-line API EMULATED +PASS out-of-line API trap aborts +PASS apih API mutant generated +PASS prototype-only API mutant caught +PASS api API mutant generated +PASS inline API mutant caught +PASS nested explicit trap uses ESI and runtime table slot 2 +PASS legacy basic write remains permitted in bare code +PASS advanced bare host helper remains compiler refusal 9 +PASS trap control generated c +PASS trap control generated h +PASS trap: status 5, sentinel, saved regs and subsequent call EMULATED +PASS zero-code control generated c +PASS zero-code control generated h +PASS zero-code: status 34, sentinel, saved regs and subsequent call EMULATED +PASS wrong-slot control generated c +PASS wrong-slot control generated h +PASS wrong-slot: status 34, sentinel, saved regs and subsequent call EMULATED +PASS xsave-stack control generated c +PASS xsave control bounds only owned runtime stack +PASS xsave-stack control generated h +PASS xsave-stack: status 6, sentinel, saved regs and subsequent call EMULATED +PASS direct floor oracle generated c +PASS direct floor oracle generated h +PASS direct floor oracle finds one true-floor argument +PASS actual R15 mapping floor with ABI-v2 out buffer EMULATED +PASS carved-top floor mutant rejected without crash EMULATED +NATIVE-X86 NATIVE NOT_RUN (physical x86 execution not requested) +NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN) +NATIVE-X86 CONTROLS PASS (EMULATED; native x86 NOT_RUN) diff --git a/evidence/native-x86-be8c5130.json b/evidence/native-x86-be8c5130.json new file mode 100644 index 0000000..e11e2cc --- /dev/null +++ b/evidence/native-x86-be8c5130.json @@ -0,0 +1,70 @@ +{ + "schema": 1, + "date": "2026-10-31", + "status": "EMULATED_PASS", + "native_x86": "NOT_RUN", + "gpu": "NOT_RUN", + "bridge_commit": "ba8a75a6f9538b130383e1eb8ff459f82c589f92", + "bridge_tree": "ba8a75a plus branch pin/x86-omc-be8c5130 edits; tools_native_sha256 and suite_sha256 identify the files run", + "compiler_commit": "474197e4fa0207e0e2fb3c0494594a975f5031fa", + "compiler_source_sha256": "d4b4b89d8a58cc90d30d15a525b417e4b31e5bfe5288d21d665f1c7958a330f6", + "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a", + "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61", + "tools_native_sha256": "527e233c1dafa755605475015d2164daf58143f0ad73f78b237f5df9a79dc523", + "suite_sha256": "263e7b34a80b698746fe8be9aa024422132d0e0eb0c111a191edee4fe3e2e718", + "controls_sha256": "9b5ff1ced02ae86ab7c61ea8cf64280fd5ff9cd256a1958c309bf17b397856ef", + "qemu_binary_sha256": "fd7ae7768c1d698d387893688d28abde90512f1f445d171a1389110eb7c237ee", + "aarch64_parity_baseline": "f637021f36f0cfff39240a62341a47e442ae05c3", + "commands": [ + { + "command": "sh tools/bootstrap.sh", + "exit": 0 + }, + { + "command": "sh tools/test.sh", + "exit": 0, + "result": "ALL SUITES RC=0" + }, + { + "command": "sh tests/native/x86/run.sh EMPTY_OUTPUT", + "exit": 0, + "result": "311 PASS, 0 FAIL; NATIVE-X86 EMULATED PASS" + }, + { + "command": "python3 tests/native/x86/test_build_failures.py EMPTY_OUTPUT", + "exit": 0, + "result": "314 PASS, 0 FAIL; NATIVE-X86 CONTROLS PASS" + }, + { + "command": "OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh EMPTY_OUTPUT", + "exit": 1, + "result": "negative control: FAIL x86 compiler pin; NATIVE-X86 FAIL x86 compiler pin" + }, + { + "command": "OMEGA_NATIVE_X86_OMC=<be8c5130 omc with one byte appended, sha256 28751fb2...> sh tools/native --target x86linux OUTDIR tests/native/x86/follow.om", + "exit": 1, + "result": "negative control: tools/native refused, x86 omc sha256 differs from pin" + } + ], + "results": [ + "six language callers built and executed", + "wrong compiler pin refused (suite and tools/native, wrong and mutated compiler)", + "actual floor positive and carved-floor mutant controls passed", + "failing Zig and Go toolchains refused aggregate pass", + "missing Zig and Go refused aggregate pass", + "real toolchain positive control passed", + "AArch64 byte parity with generator f637021: 150/150 comparisons passed" + ], + "transcript": { + "path": "evidence/native-x86-be8c5130-controls.log", + "sha256": "353355101aa7cbfe7d7964037e40aff4e457f470f904272f2036b25d3840a079", + "scope": "verdict lines; unchanged raw logs retained locally" + }, + "raw_log_sha256": { + "positive": "f8ce272d0385b0f8989068189d3bc9d046f74c7608593eb517765984c7a61e81", + "controls": "4fab6f70e5a59a08a650e39dab1d1fc6cb75bb9ab157723fc6b42bc01e923f42", + "negative_wrong_pin": "39950f1abe283c0c5e3df3b96c2a2ae03ce2f3f216da5c555f7e59dfe2dcfc2d", + "negative_mutated_compiler": "5a6ee51c48ae3d6848911d8d8bae7aebdf9a50bb6372b7e761f3a00be1fe60d5" + }, + "compiler_full_differential": "pending separate full compiler run; bridge PASS does not qualify the compiler" +} diff --git a/tests/native/x86/suite.py b/tests/native/x86/suite.py index 9f7d11e..a3357c5 100755 --- a/tests/native/x86/suite.py +++ b/tests/native/x86/suite.py @@ -448,7 +448,9 @@ class Suite: def aarch64_parity(self): baseline = self.out / "baseline-native-gen" - source = self.must(["git", "-C", str(ROOT), "show", "0c4cb9ff:src/native.om"]) + # Last accepted AArch64 contract: #26 (f637021) changed AArch64 output on purpose; + # its parent still matches the pre-x86 generator 0c4cb9ff on every earlier fixture. + source = self.must(["git", "-C", str(ROOT), "show", "f637021:src/native.om"]) baseline.write_bytes(self.must([self.omc], data=source)) baseline.chmod(0o755) frames = {} @@ -473,7 +475,7 @@ class Suite: for word in (*OUTPUTS, "freest"): old = self.generate(word, frame, baseline, target=False) new = self.generate(word, frame, target=False) - self.check("AArch64 byte parity 0c4cb9ff " + name + " " + word, + self.check("AArch64 byte parity f637021 " + name + " " + word, old.returncode == new.returncode and old.stdout == new.stdout and old.stderr == new.stderr) def trap_controls(self): diff --git a/tools/native b/tools/native index 654440e..e4bef28 100755 --- a/tools/native +++ b/tools/native @@ -37,7 +37,7 @@ # Freestanding x86 output is not supported and is refused before creating OUTDIR. set -eu PIN=734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 -X86_PIN=62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b +X86_PIN=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a ROOT=$(cd "$(dirname "$0")/.." && pwd) OMC=${OMEGA_NATIVE_OMC:?set OMEGA_NATIVE_OMC to the seeded omc (omega seed/out/omc, sha256 $PIN)} got=$(sha256sum < "$OMC" | cut -d' ' -f1)