From c134e7935a2fa9e1ff40b8ca1a371f5388b1ca21 Mon Sep 17 00:00:00 2001 From: aien-spark Date: Wed, 4 Nov 2026 22:11:23 -0600 Subject: [PATCH] omega-harness: x86 native execution mode (omega-bridge#60, merged 4ad48c45) Signed-off-by: Drake Stapleton --- skills/omega-harness/SKILL.md | 1 + 1 file changed, 1 insertion(+) diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md index 6c22895..d797417 100644 --- a/skills/omega-harness/SKILL.md +++ b/skills/omega-harness/SKILL.md @@ -331,6 +331,7 @@ fi The tool prefixes only compiler input with `target x86linux`; source snapshots and `src=` identities retain original bytes. X86 export slots are six bytes, not AArch64's four-byte branches. The pinned private ABI uses negative frame slots, R12 for the caller frame anchor, R14 for the runtime table, R15 for the actual stack floor, and ESI/table slot 2 for nonlocal traps. Advanced host helpers refuse bare units; legacy read/write remain permitted. The adapter does not support CET shadow-stack enforcement. Run `python3 tests/native/x86/test_build_failures.py [EMPTY_OUTPUT]` with the cross-toolchain, guest Python and `QEMU_X86_64` environment documented in that bridge revision's `docs/NATIVE-ABI.md`. Its strict positive suite executes all six actual language callers (Rust 2021/2024), pointer statuses 32, signal reentry 33, stale identities, private symbols/TLS, traps, fixed-stack-floor and boundary/API mutants. A mismatched candidate must refuse before creating a fresh output directory and preserve existing output bytes. Failed Zig/Go and missing-toolchain controls must refuse aggregate PASS (#34). `tests/native/x86/prepare.py` records exact guest-Python package custody. **QEMU oracle preflight (MERGED 2026-11-05 as [omega-bridge#57](https://github.com/aien-dev/omega-bridge/pull/57), squash commit `8c4abda27b6c5d88c87b80d824528ac7883fdcc5`):** Ubuntu's `/usr/bin/qemu-x86_64` 8.2.2 (sha256 `120db995…`) fails 4 callers at bridge main `7af4d11`: c, go, rust and rust-2024, giving 312 PASS and 4 FAIL. The same main passes 316/316 under the receipt's QEMU 10.0.14, binary sha256 `fd7ae7768c1d698d387893688d28abde90512f1f445d171a1389110eb7c237ee`. 8.2.2 has two defects. It crashes internally reading `/proc/self/maps` (MAPERR addr 0x20). It also enters signal handlers with RSP+8 misaligned by 8, so the `movaps` stack stores in `omega2_vlen` fault inside the C caller's reentry handler. Before blaming the bridge for an x86 caller crash, check the emulator: set `QEMU_X86_64` to a 10.0.14 build per `docs/NATIVE-ABI.md`. Since bridge `8c4abda2`, the suite prints the QEMU path, sha256 and version, then runs `tests/native/x86/qemu_probe.c` (`maps`, `sigframe`). A failing mode prints `NOT_RUN QEMU-ORACLE-UNUSABLE `, and the run ends `NATIVE-X86 NOT_RUN` with exit 1 before any caller runs. That is a refusal of the emulator, not a bridge FAIL. Never weaken a caller to fit an old QEMU. The preflight was exercised on the PR head; it has not been re-run at merge commit `8c4abda2`. + **Native execution mode (MERGED 2026-11-05 as [omega-bridge#60](https://github.com/aien-dev/omega-bridge/pull/60), squash commit `4ad48c456de95cacd6250295ce9a092537fc9643`):** `OMEGA_NATIVE_X86_EXEC=native` runs every x86 target program directly on an x86-64 host CPU instead of under `QEMU_X86_64`. `qemu` is the default and keeps its output unchanged. Native mode refuses a non-x86-64 host, and any other mode value is refused before a caller is built. It prints CPU model, hypervisor flag, kernel and `systemd-detect-virt`. The pinned AArch64 compilers need binfmt `qemu-aarch64` on that host. The suite never prints PHYSICAL; bridge `docs/NATIVE-X86-PHYSICAL.md` is the runbook and receipt format, and labels a receipt PHYSICAL only for `virtualization=none` with the hypervisor flag clear. EXERCISED on a VM only: GitHub runner (Xeon Platinum 8573C, `virtualization=microsoft`, run 41965785820) at bridge `95d7e0b6`: 319 PASS, 0 FAIL, `NATIVE PASS`; controls PASS; wrong-pin and mutated-compiler controls exit 1. That is VIRTUAL, not PHYSICAL. Physical native x86 remains **NOT_RUN**. **Historical EXERCISED, EMULATED only:** at bridge `81c7ec3d95469b8ae60b3cf6797068decc1900de`, with its old candidate pin `1f0fdef06574ffec782c164941114edcf51f36f9f9cd1e79bc0452dbcebb3322`, the aggregate command exited 0 under unpatched QEMU 10.0.14, source archive sha256 `c7230968906fdb5540d803e2af1f515e77590a414f2a4dbd3ec9ada3c47083d0`. Those command/runtime/tool/source receipts remain immutable in `evidence/native-x86/`; they do not qualify the refreshed pin. QEMU 8.2.2 produced signal and `/proc/self/maps` failures; the same callers passed with the newer oracle, without weakening them. Physical native x86 and GPU execution are **NOT_RUN**. These were unmerged drafts when recorded; the later merges are not deployment, Alpha or hardware qualification. **Historical EXERCISED, EMULATED only (2026-10-28):** at bridge `29087763accea55666ac7a4c14ecb37cef1c2be8` with candidate `f7752bc5c800e85c2393a08153786d0a6bc4516c9cea955fe27624228d6d1409`, the aggregate command exited 0, including both mismatched-pin controls; receipts remain in `evidence/native-x86-f7752bc5/`. The compiler's own full differential at `efd15c234afc584e1e67492e736cbb42806c2a7d` is FAIL (14,930 PASS, 60 FAIL, 10 NOT_RUN, 216 EXCLUDED). Never transplant those totals onto the repaired source. **Historical EXERCISED, EMULATED only (2026-10-28):** at bridge `1109b46a19c98c650488d36b465d969de65e3d61` with candidate `badedbb0…08be`, the aggregate command exited 0 (294 PASS lines, 0 FAIL), including both mismatched-pin controls; the previous candidate `f7752bc5` refused with exit 1 before creating OUTDIR. Receipts: `evidence/native-x86-badedbb0/`. The compiler's full differential at `3e66b674` was FAIL (14,936 PASS, 54 FAIL, 10 NOT_RUN, 216 EXCLUDED; omega-mv#923 `d5b445b7`). Those totals do not describe the newer candidate.