From 0209817d6c1b9eaf64edce059422344719106791 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Tue, 27 Oct 2026 02:33:10 -0500 Subject: [PATCH] omega-harness: python-gen eighth native caller (pending omega-bridge#30); ggml-omega/bridge lines already on main --- 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 2d1d5ba..6525f1b 100644 --- a/skills/omega-harness/SKILL.md +++ b/skills/omega-harness/SKILL.md @@ -325,6 +325,7 @@ fi - `seed/wasm/gate-irwasm.sh` and the OM-2 `gate.om` suites are merged but not in any `tests/gates/*.gate` manifest at main `19f014f21`, so `tests/gates/run.sh seed` does not cover them (omega-mv #790). Run and report them separately. - A benchmark can need a seekable stdin. A checker replay that seeks back over its input 101 times exits 90 when stdin is a pipe, and the same command exits 0 when stdin is an opened regular file. Supply a file, and do not count the setup-status exit as a control result. - Native callers of compiled Omega units are qualified per language, and only by execution. Since omega-bridge main `adb26cc654656926e76ab1839adae63e92909e88` (PR #18, merged 2026-10-26), `tests/native/run.sh` prints `NATIVE-CALL PASS` only after all seven required callers (`c`, `c-bti`, `cpp`, `python`, `rust`, `zig`, `go`) built and ran. A present toolchain whose build fails prints `NATIVE-CALL FAIL` and a missing toolchain prints `NATIVE-CALL NOT_RUN`; both exit nonzero. Check the refusal paths with `OMEGA_NATIVE_OMC= sh tests/native/test_build_failures.sh`: it injects failing Zig and Go toolchains, hides both for the missing-toolchain control, then requires the real Zig and Go callers to pass. It needs real Zig 0.13.0 and Go binaries (`ZIG`, `GO`) and prints `NOT_RUN` without them. The historical `evidence/native-call-v1/run.log` predates this runner and stays unchanged; do not cite it as a current all-caller PASS. +- Pending, not merged: draft omega-bridge#30 (head `1bb55976`, still open on 2026-11-04) adds an eighth required caller, `python-gen`: the Python `ctypes` module that `src/native.om` writes itself in Python mode (input led by the bytes `\0py\n`), checked by `tests/native/pybind.py`. Until it merges, quote the seven-caller rule above; a Python binding written by hand is not that caller. - Since omega-bridge PR #26 (merged 2026-10-30 as `f637021f36f0cfff39240a62341a47e442ae05c3`) the native call generator also binds `edit`/`view` arrays of `f32` (4-byte, 4-aligned) and `ushort` (2-byte, 2-aligned, e.g. binary16 bits converted inside Omega), besides `ulong`/`uchar`; other array kinds (e.g. `view uint`) are still refused with exit 110 and the previous output left untouched. Check them with `OMEGA_NATIVE_OMC= sh tests/native/kinds.sh` (C caller vs `_Float16`-computed values, six status-32 refusals, an `add -> sub` mutant that must fail; `NATIVE-KINDS PASS` rerun 2026-10-31 at `f637021f`, at bridge main `654305fa` and at bridge main `9532044e`; any other compiler prints `FAIL omc sha256`). The omc pinned by `tools/native` (`734f0a39…`, still the pin at bridge main `9532044e`) rejects functions that return `f32` (error 5); omega-mv omc `2aec185d…` (pin `91c83438`) accepts them (`seed/omc/tests/float/f32_return.om` compiles and exits 0), but bridge units must compile under the pin, so have helpers return `uint` bits and `bitcast` in the caller. First consumer: [aien-dev/ggml-omega](https://github.com/aien-dev/ggml-omega), a llama.cpp backend whose op kernels are Omega units; its per-op `test-backend-ops` table and end-to-end decode are its evidence, not the bridge's. - **x86 native bridge target and compiler refresh (merged 2026-10-29; native x86 NOT_RUN):** omega-bridge [PR #37](https://github.com/aien-dev/omega-bridge/pull/37) (closed unmerged; #40, stacked on it, squash-merged its changes at `ed420fcbffa1ad83db78111deb836dd880ed891e`), commit `1109b46a19c98c650488d36b465d969de65e3d61`, adds explicit `tools/native --target x86linux OUT unit.om...` for hosted SysV AMD64 C/C++/Python/Rust/Zig/Go callers. AArch64 remains the default; all 150 baseline/output comparisons with bridge `0c4cb9ff` passed byte-for-byte. The generator/bootstrap build host is still AArch64; x86 freestanding explicitly refuses. Do not infer the target from the build host. Both compiler baselines remain mandatory: `OMEGA_NATIVE_OMC` sha256 `734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61` builds the generator (still required at bridge main `ed420fcb`, `docs/NATIVE-ABI.md` lines 15-16). At bridge `1109b46a19c98c650488d36b465d969de65e3d61`, separate `OMEGA_NATIVE_X86_OMC` was pinned to candidate compiler SHA256 `badedbb0c6287887641fcd7e97301b43b5f82f2d7a2838bbe0d17547873108be`, omega-mv source `3e66b6744590cc72c623d8e09413b9072bcab36e`, source SHA256 `4b5392fffd25a3a37844ad8bb5138fbaada690be7dae95132614524bdb78a1e0`, then-pending [compiler draft #923](https://github.com/aien-dev/omega-mv/pull/923) (merged at `bf54b19f`). `OMEGA_NATIVE_OMC2` is unused for x86; do not substitute the candidate for the baseline.