From 755182167d5c4ffc15483c6b12a4259b2b96f05f Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Mon, 26 Oct 2026 18:16:25 -0500 Subject: [PATCH 1/2] omega-harness: note pending omega-bridge #23 (f32 native binding, torch.compile backend omega) --- 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..0094bd9 100644 --- a/skills/omega-harness/SKILL.md +++ b/skills/omega-harness/SKILL.md @@ -111,6 +111,7 @@ say so and stop rather than estimating. Java, Swift and Node/JavaScript are not callers in these suites. See the [coverage clarification and replay receipt hashes](https://github.com/aien-dev/omega-bridge/pull/34#issuecomment-6473079219). - MERGED: the Omega Universal Translation adapters (omega-mv #624) from [#755](https://github.com/aien-dev/omega-mv/pull/755) (final head `b8957b878f`) are on omega-mv main via train r2 [#972](https://github.com/aien-dev/omega-mv/pull/972), squash `f5c9bd89ae604a65d7c777a5739c176f41a036ec`. They are seeded-Omega importers and exporters for profile S1 only (`spec/universal/translation-v1.md`): one pure function with 0..6 `u64` inputs, built from constants and `+ - *` modulo 2^64, in C17, Rust, Python, C++17, Zig and Go, plus `retarget` and `lower` (lowering through omc `734f0a39...6b61`, the `T624_OMC_SHA256` pin in `mk/translation.mk`, to a native unit bound by omega-bridge `tools/native`). Each tool reads one unit on stdin and writes stdout only on success. A refusal names itself on stderr and exits with the spec's status (64 bad command or name, 65 malformed envelope, 67 LIMIT, 68 PROFILE_MISMATCH). The tools are not reentrant, so run one process per call. Coverage is 12 directions and 30 directed compositions. MEASURED 2026-10-31 on the host (AArch64, cores 5-9 nice 19) at main `91c83438daec0bdb88bf5c077cae10f3d15d365d`, with `OMEGA_NATIVE_OMC` sha256 `734f0a39...6b61`, `OMEGA_BRIDGE_REPO`=`SA_SEED_REPO` an omega-bridge clone holding `0fc7d866`, Go 1.27.3 and Zig 0.17.0: the G3 chain run stage by stage (`make -f mk/translation.mk test-translation-g2`, then `test-source-aware-v2`, `test-retarget`, `test-cpp-u64`, `test-zig-u64`, `test-go-u64` and `make -f mk/translation-validate.mk test-translation-compose-v2`) all exited 0; compose-v2 reported 30 directed compositions plus 6 same-language round trips, `pass 636 fail 0 not_run 0`. Controls: without `ZIG` the Zig stage refuses (exit 2), and Go 1.25.14 against the `go >= 1.27` module fails the Go stage (exit 2) rather than passing. The earlier independent #623 validation passed at head `2d4c6407`. Anything outside S1 is refused, not approximated. The next profile, S2 (signed i64, comparisons, select), is specified in `spec/universal/translation-s2-v1.md` ([#822](https://github.com/aien-dev/omega-mv/pull/822), merged `56d979c4`) with status PROPOSED and no implementing tool on main; its C import, Rust export and lowering are on open [#839](https://github.com/aien-dev/omega-mv/pull/839) (host-tested, not qualified, not merged). The bridge statement above still holds for the bridge itself. +- PENDING, draft [omega-bridge #23](https://github.com/aien-dev/omega-bridge/pull/23) (head `d1f912a0`, 2026-10-26, not merged): the native binding (`src/native.om`) also binds `edit`/`view f32` arrays and array lengths named by `const NAME ulong DIGITS` lines, and `pytorch/` adds `torch.compile(model, backend="omega")`. That backend lowers core-ATen `mm`, `addmm`, 2-D `permute [1,0]`, `add.Tensor`, `relu` and `_softmax` (float32, static shapes, inference only) to `.om` kernels compiled by the omega-mv main `omc` (`2c82480596bb…029f`). Every other op raises at compile time; eager fallback only happens for ops the caller names, and each such call is counted. Describe it exactly as "EXERCISED: CPU, oracle = PyTorch eager, Omega-native codegen, Python glue", never as "Omega runs PyTorch". The Python glue is an interim migration step; its named successor is a PrivateUse1 `omega` device dispatched by an Omega unit through the bridge C ABI. TorchDynamo touches CUDA while tracing, so run it with `CUDA_VISIBLE_DEVICES=` outside an authorized GPU window. At the omc pin above, a function needing more than 16 registers fails with error 12, and large shape constants add to that pressure. Split hot expressions into helper functions and incremental indices; the pressure gets worse as constants grow. - The scalar IR-to-WebAssembly backend is owned by omega-mv, not a foreign-source import: [#787](https://github.com/aien-dev/omega-mv/pull/787) merged as `3364a1dfd0ca50c1b82bf19ba34932d8bc10a7a9`, after boolean IR fix From decf8a19cb272d1afc7730d03909a8c41855fd83 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Mon, 26 Oct 2026 18:18:47 -0500 Subject: [PATCH 2/2] omega-harness: omega-bridge #23 at head b04dc851, still draft and conflicting (rechecked 2026-11-04) --- skills/omega-harness/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md index 0094bd9..fb8f452 100644 --- a/skills/omega-harness/SKILL.md +++ b/skills/omega-harness/SKILL.md @@ -111,7 +111,7 @@ say so and stop rather than estimating. Java, Swift and Node/JavaScript are not callers in these suites. See the [coverage clarification and replay receipt hashes](https://github.com/aien-dev/omega-bridge/pull/34#issuecomment-6473079219). - MERGED: the Omega Universal Translation adapters (omega-mv #624) from [#755](https://github.com/aien-dev/omega-mv/pull/755) (final head `b8957b878f`) are on omega-mv main via train r2 [#972](https://github.com/aien-dev/omega-mv/pull/972), squash `f5c9bd89ae604a65d7c777a5739c176f41a036ec`. They are seeded-Omega importers and exporters for profile S1 only (`spec/universal/translation-v1.md`): one pure function with 0..6 `u64` inputs, built from constants and `+ - *` modulo 2^64, in C17, Rust, Python, C++17, Zig and Go, plus `retarget` and `lower` (lowering through omc `734f0a39...6b61`, the `T624_OMC_SHA256` pin in `mk/translation.mk`, to a native unit bound by omega-bridge `tools/native`). Each tool reads one unit on stdin and writes stdout only on success. A refusal names itself on stderr and exits with the spec's status (64 bad command or name, 65 malformed envelope, 67 LIMIT, 68 PROFILE_MISMATCH). The tools are not reentrant, so run one process per call. Coverage is 12 directions and 30 directed compositions. MEASURED 2026-10-31 on the host (AArch64, cores 5-9 nice 19) at main `91c83438daec0bdb88bf5c077cae10f3d15d365d`, with `OMEGA_NATIVE_OMC` sha256 `734f0a39...6b61`, `OMEGA_BRIDGE_REPO`=`SA_SEED_REPO` an omega-bridge clone holding `0fc7d866`, Go 1.27.3 and Zig 0.17.0: the G3 chain run stage by stage (`make -f mk/translation.mk test-translation-g2`, then `test-source-aware-v2`, `test-retarget`, `test-cpp-u64`, `test-zig-u64`, `test-go-u64` and `make -f mk/translation-validate.mk test-translation-compose-v2`) all exited 0; compose-v2 reported 30 directed compositions plus 6 same-language round trips, `pass 636 fail 0 not_run 0`. Controls: without `ZIG` the Zig stage refuses (exit 2), and Go 1.25.14 against the `go >= 1.27` module fails the Go stage (exit 2) rather than passing. The earlier independent #623 validation passed at head `2d4c6407`. Anything outside S1 is refused, not approximated. The next profile, S2 (signed i64, comparisons, select), is specified in `spec/universal/translation-s2-v1.md` ([#822](https://github.com/aien-dev/omega-mv/pull/822), merged `56d979c4`) with status PROPOSED and no implementing tool on main; its C import, Rust export and lowering are on open [#839](https://github.com/aien-dev/omega-mv/pull/839) (host-tested, not qualified, not merged). The bridge statement above still holds for the bridge itself. -- PENDING, draft [omega-bridge #23](https://github.com/aien-dev/omega-bridge/pull/23) (head `d1f912a0`, 2026-10-26, not merged): the native binding (`src/native.om`) also binds `edit`/`view f32` arrays and array lengths named by `const NAME ulong DIGITS` lines, and `pytorch/` adds `torch.compile(model, backend="omega")`. That backend lowers core-ATen `mm`, `addmm`, 2-D `permute [1,0]`, `add.Tensor`, `relu` and `_softmax` (float32, static shapes, inference only) to `.om` kernels compiled by the omega-mv main `omc` (`2c82480596bb…029f`). Every other op raises at compile time; eager fallback only happens for ops the caller names, and each such call is counted. Describe it exactly as "EXERCISED: CPU, oracle = PyTorch eager, Omega-native codegen, Python glue", never as "Omega runs PyTorch". The Python glue is an interim migration step; its named successor is a PrivateUse1 `omega` device dispatched by an Omega unit through the bridge C ABI. TorchDynamo touches CUDA while tracing, so run it with `CUDA_VISIBLE_DEVICES=` outside an authorized GPU window. At the omc pin above, a function needing more than 16 registers fails with error 12, and large shape constants add to that pressure. Split hot expressions into helper functions and incremental indices; the pressure gets worse as constants grow. +- PENDING, draft [omega-bridge #23](https://github.com/aien-dev/omega-bridge/pull/23) (head `b04dc851`, last pushed 2026-10-27; rechecked 2026-11-04: open, draft, not merged, and conflicting with bridge main): the native binding (`src/native.om`) also binds `edit`/`view f32` arrays and array lengths named by `const NAME ulong DIGITS` lines, and `pytorch/` adds `torch.compile(model, backend="omega")`. That backend lowers core-ATen `mm`, `addmm`, 2-D `permute [1,0]`, `add.Tensor`, `relu` and `_softmax` (float32, static shapes, inference only) to `.om` kernels compiled by omega-mv `369dbc96` `omc` (`2c82480596bb…029f`), not by the current guide pin. Every other op raises at compile time; eager fallback only happens for ops the caller names, and each such call is counted. Describe it exactly as "EXERCISED: CPU, oracle = PyTorch eager, Omega-native codegen, Python glue", never as "Omega runs PyTorch". The Python glue is an interim migration step; its named successor is a PrivateUse1 `omega` device dispatched by an Omega unit through the bridge C ABI. TorchDynamo touches CUDA while tracing, so run it with `CUDA_VISIBLE_DEVICES=` outside an authorized GPU window. At that omc, a function needing more than 16 registers fails with error 12, and large shape constants add to that pressure. Split hot expressions into helper functions and incremental indices; the pressure gets worse as constants grow. - The scalar IR-to-WebAssembly backend is owned by omega-mv, not a foreign-source import: [#787](https://github.com/aien-dev/omega-mv/pull/787) merged as `3364a1dfd0ca50c1b82bf19ba34932d8bc10a7a9`, after boolean IR fix