interplane.Get Omega
Read in your language

omega-harness

Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories

Brought by drakestapleton

GitHub aien-dev/omega-harness#157 (code only)

closed derived 494ecde504dc75b5 #157

Imported from GitHub aien-dev/omega-harness#157 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 245406f1d10176351cfd29aba27e15309e9de182 · Head 316bfe6da7ee3e2d6c918b53ab6bfbe78033d774

Fetch it

A git bundle of the pull request's head, 7332 bytes.

curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/494ecde504dc75b5.bundle -o 494ecde504dc75b5.bundle
git fetch 494ecde504dc75b5.bundle refs/pull/157/head

Raw bundle · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/omega-harness
157
316bfe6da7ee3e2d6c918b53ab6bfbe78033d774
{"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":157,"url":"https://github.com/aien-dev/omega-harness/pull/157","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:37Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md
index 330c993..cb36ea0 100644
--- a/skills/omega-encoding/SKILL.md
+++ b/skills/omega-encoding/SKILL.md
@@ -626,6 +626,11 @@ rebuilt for this note.
   `spec/omegese-om2-measure.md` `507702d0e69ccc76cefb3675e2b22f7279497d362b42ee3043f3a1057aa17bad`.
   Before #801 these files existed only on that branch; older notes that call the contract "missing"
   or "draft only" are stale.
+- **OM-2 is frozen.** `spec/omegese-om2.md` says "A change after freeze needs `omegese-om3.md`", and its
+  sha256 `245bb74e…` is pinned by `evidence/OM2-COMPILER/*/PINS.txt` and
+  `seed/qualification/om2/oracle/s0s2/PROVENANCE.txt`. Never edit it to add a feature: write the
+  addition in `spec/omegese-om3.md` (first proposed in draft omega-mv#1008, not on main 2026-11-04).
+  The errata file only resolves conflicts inside the frozen text.
 - **Omega 1.0 roadmap:** [`docs/ROADMAP-1.0.md`](https://github.com/aien-dev/omega-mv/blob/19f014f2178ca9cd3473728fe00a475a2398c409/docs/ROADMAP-1.0.md),
   milestones RM1..RM11 with acceptance gates, tracked in
   [#790](https://github.com/aien-dev/omega-mv/issues/790) (gate coverage),
@@ -924,6 +929,13 @@ end
 - A unit with `fn main` is a static AArch64 Linux ELF (program mode). Without `fn main` the output is
   bare function words (function mode): it compiles with exit 0 but is **not runnable**. Host words
   and `global` are error 9 there, and `text` is program-mode only ([#L400-L407](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L400-L407), [#L454-L459](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L454-L459), [#L629](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L629)).
+  **PENDING exception, draft [omega-mv#1008](https://github.com/aien-dev/omega-mv/pull/1008)** (`2992a68b`,
+  omc `c000ec02…b911`, not on main, 2026-11-04): an OM-2 function unit (first line `om2`, no `fn main`)
+  may use `fopen fclose fstat stat lstat getuid geteuid getgid getegid` on AArch64; every other host
+  word, any host word in an OM-1 unit and any other target stay error 9 (gate
+  `seed/omc/om2/fnhost/fnhost.cases`; PROPOSED contract `spec/omegese-om3.md` section 1). The
+  omega-bridge binds such a unit only with `tools/native --host` (draft omega-bridge#54). With main's
+  compilers (harness pin `be8c5130…`, omega-mv main `b4f45121…`) these are still error 9.
 - Program exit status = `main`'s value mod 256 (0 for void main). `exit v` (v `int`) ends at once.
   A runtime trap exits **100 + code**. Keep your own exit codes below 100, or a result is
   indistinguishable from a trap ([#L404-L407](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L404-L407), [#L484](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L484)).
@@ -1435,6 +1447,10 @@ omega MCP pin `2c824805…`, lack both.
     `uchar` array element (`xor c get A i`) is error 7 until you write `xor c ulong get A i`
     (reproduced at omc `2c824805…`: `d = xor c get A 0` is error 7, `xor c ulong get A 0` compiles).
   - Host words and `global` need program mode: without `fn main` the unit compiles in function mode
+    and every host word is error 9 with an empty output file, which reads like a broken pin. (Pending
+    exception for nine file/identity words in OM-2 units: section 2, omega-mv#1008. Observed
+    2026-11-04: `om2` / `export fn f to long` / `r = geteuid` gives `omc: line 3: error 9` with
+    omc `be8c5130…` and `b4f45121…`, and compiles with the #1008 omc `c000ec02…` at `2992a68b`.)
     and every host word is error 9 with an empty output file, which reads like a broken pin.
 - **Owned DMA-window integration: PENDING, not the main compiler or a kernel driver.**
   Depends on the VFIO words documented by pending
diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md
index dcbb31d..7888240 100644
--- a/skills/omega-harness/SKILL.md
+++ b/skills/omega-harness/SKILL.md
@@ -203,6 +203,7 @@ synthetic evidence cannot establish production or economic improvement.
   Zig/Go executions: their logs have individual successful caller lines, not merely aggregate PASS.
   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).
+- **PENDING, not merged (2026-10-31): host words in bridged units.** Draft [omega-bridge#54](https://github.com/aien-dev/omega-bridge/pull/54) (`c7f432cd93dc728a8c699b2787cd9a9513a7f84f`) adds `tools/native --host`, built on draft [omega-mv#1008](https://github.com/aien-dev/omega-mv/pull/1008) (`78fa7ec3`, a pin mover; omc sha256 `3988c31f9697a01f1436b7a75f6c956b37bc5301155b3ec8ca1b06b92118f7c4`; contract in the PROPOSED `spec/omegese-om3.md` section 1, because OM-2 is frozen). With it an OM-2 function unit may call nine host words, `fclose fopen fstat stat getuid geteuid getgid getegid lstat`, and a Rust/C/... caller runs that unit in-process. Without `--host` any host word in the unit is refused (110, nothing installed); with it every other host word, any host word in an OM-1 unit, `--target x86linux` and `--freestanding` stay refused. The words used are named in the identity (` host=...`). These words are no sandbox: they run with the caller's credentials and descriptors, a trap between `fopen` and `fclose` leaks the descriptor, and out buffers (e.g. a returned secret) stay on the Omega stack until the next call. First consumer: [open-humanity#54](https://github.com/aien-dev/open-humanity/pull/54) (`crates/oh-infer/om/tkcheck.om`, pins in `om/PIN`, `om/regen.sh --check`), which replaced a `libc` token-file check on Drake's request. Until both PRs merge, the merged pins above do not have `--host`; do not cite it as main behavior.
 - MERGED: the additive portable frontend [omega-bridge #36](https://github.com/aien-dev/omega-bridge/pull/36),
   head `3dc4a00e9966770cce58bdedb401c3b3932c35ee`, merge
   `2ed42c3818e72da321c3218d22d7662be607633c` (2026-11-01). It is separate from the
@@ -628,6 +629,7 @@ fi
   `python3 tests/native/v2/test_verdict.py` passed all five compiler-free tests on that pin;
   these execute the real terminal shell suffix, not upstream detection or native callers.
   The separate full native-v2 run above exercised detection and the new missing-toolchain verdict.
+- **Pending with omega-bridge#54 (2026-10-31):** `tests/native/v2/run.sh` needs `OMEGA_NATIVE_OMC` (734f0a39…) and `OMEGA_NATIVE_OMC2` = the omega-mv#1008 compiler (3988c31f…); its section 11 runs the `--host` refusals and the C and Rust callers of `tests/native/v2/host/hfile.om`. Observed at `c7f432cd` on AArch64 with zig 0.13.0 and go 1.27.3 on PATH: rc 0, 72 PASS, `NATIVE-V2 PASS (not run: none)`; `tests/native/run.sh`: `NATIVE-CALL PASS (not run: none)`. Negative control: removing the source scan from `fn unit` lets a parenthesised `geteuid` through without `--host`, and the suite catches it. The v1/v2 byte-identity baselines on bridge main were stale (#26's f32/ushort kinds changed every unit's Python output), so `v2/run.sh` failed on main before the fix to `74fcd43` carried by #54. The x86 suites fail identically on main and on #54 on this host (no x86_64 cross g++, `OMEGA_NATIVE_X86_PYTHON` unset): NOT_RUN, not caused by #54. No CI runs the native suites.
 - PENDING (omega-bridge draft PR #27, branch `feat/native-darwin` @ `362c6d0fb857e9068557bc244a7046051e47fb41`, not merged; rechecked 2026-11-04: bridge main `7af4d11` merged in, still draft): the C file that `src/native.om` generates also builds on macOS arm64 (Mach-O) and refuses to build there with `#error` for any unit whose code makes Linux system calls (host words). Generation stays Linux AArch64 only (main's `tools/native OUTDIR unit.om ...`, pinned omc `734f0a39…6b61`). The macOS check has two steps: `OMEGA_NATIVE_OMC=<seeded omc> sh tests/native/macos/run.sh bundle DIR` on Linux, then `sh DIR/run.sh run DIR` on the Mac, which must print `NATIVE-CALL-MACOS PASS` (exercised once on macOS 26.6.2, Apple M2, clang 17). It covers the C and Python callers, byte identity, no x18, the add->sub mutant and host-word refusal. C++/Rust/Zig/Go, ABI v2 and BTI on macOS are NOT_RUN. The ABI v2 suite `tests/native/v2/run.sh` also fails on bridge main (exit 110 since #26) until omega-bridge #55 lands. Until #27 merges, main is still AArch64 Linux only.
 - Compiler changes need the repository's referee and wrong-word-mutant checks, not just a self-fixpoint. Before running any gate, read its prerequisites, device requirements and whether it writes receipts.
 - For the merged IR/wasm backend above, run `nice -n 19 sh seed/wasm/gate-irwasm.sh`.