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#96 (code only)

closed derived be7127f2d4a3299f #96

Imported from GitHub aien-dev/omega-harness#96 (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 7b4c553c8f31b61ab6dfe923bb71082a846deb6c · Head 4ebadff5d8f551966bdf7c857bfe9c8dc3fce150

Fetch it

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

curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/be7127f2d4a3299f.bundle -o be7127f2d4a3299f.bundle
git fetch be7127f2d4a3299f.bundle refs/pull/96/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
96
4ebadff5d8f551966bdf7c857bfe9c8dc3fce150
{"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":96,"url":"https://github.com/aien-dev/omega-harness/pull/96","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:52Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md
index 0811e4a..d041f64 100644
--- a/skills/omega-encoding/SKILL.md
+++ b/skills/omega-encoding/SKILL.md
@@ -250,9 +250,14 @@ Changes and confirmations against the rules below, each observed with a program:
   `omc: line 0: error 1`; stdout on `/dev/full` gives exit 2 with the line after the last input line
   (`omc: line 5: error 2` for a 4-line unit). A 33rd `export fn` in an OM-2 unit is error 14; exports
   are function mode, so an `export` beside `fn main` is error 9.
-- **Error 24 was not reproduced.** 40 functions of 4,000 checked `add` lines each compiled and ran,
-  because trap branches stay short; the check (`disp19`, omc.om line 2465) is defensive. Codes 25 and
-  26 are not emitted by any `fail` call at this pin.
+- **Error 24 needs more than 1 MiB of code inside one loop.** 40 functions of 4,000 checked `add`
+  lines each compiled and ran, because each function's branches stay short. One `while` loop with
+  270000 copies of `x = add x 1` was refused with `omc: line 270006: error 24` (the loop's `end`);
+  with 140000 copies it compiled. The check is `disp19` (omc.om line 2465 at `e5b32567`, line 2956
+  at `91c83438`): a conditional branch reaches at most 2^18 - 1 words forward. The recipe is in
+  `writing-omega` section 11. Rerun 2026-10-31 with omc `2c824805` and with the current pin omc
+  `2aec185d`: both give exit 24 and that line for 270000 copies, and exit 0 for 140000 copies (the
+  program then exits 0). At `e5b32567`, codes 25 and 26 are not emitted by any `fail` call.
 - **Narrow `bitcast`:** at omc `2c824805`, `bitcast int` of `uint 4294967295` was not -1 and `add` 2
   trapped 1, and `bitcast uint` of `int -1` was not 4294967295. At omc `62775d2a` those two cases
   are correct (exit 1 and exit 1; `add` 2 returns 1). `ushort`/`short`, `uchar`/`byte` and `f32` to
@@ -557,7 +562,7 @@ kind error is detectable.
 | WebAssembly MVP backend `seed/wasm/irwasm.om` | OMEGESE section 11.1; scalar OSC IR v1 only | merged; gate not in any manifest (#790) |
 | Executable contracts (`requires`, `ensures`, `invariant`, `result`) | OMEGESE section 12; section 11a here | merged in #768, including #807; host-exercised |
 | The seeded compiler `omc`, written in `.om` | `seed/omc/omc.om`, built `seed0 -> hex1 -> asm2 -> om4 -> omc` by `sh seed/omega-from-seed.sh` | on `main` since PR #696 ([README.md#L27](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/README.md#L27)) |
-| Keyword table, the authority for reserved words | `fn kw` in `seed/omc/omc.om` ([#L375](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/seed/omc/omc.om#L375)); same list in `seed/omc/genkw.awk` ([#L16](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/seed/omc/genkw.awk#L16)), parity checked by `seed/omc/gate18.sh` | gated |
+| Keyword table, the authority for reserved words | `fn kw` in `seed/omc/omc.om` ([#L375](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/seed/omc/omc.om#L375) at `55f9b0af`, [#L765](https://github.com/aien-dev/omega-mv/blob/e5b32567a7aff3ce594e3254a622a846a6cd190b/seed/omc/omc.om#L765) at `e5b32567`, [#L818](https://github.com/aien-dev/omega-mv/blob/91c83438daec0bdb88bf5c077cae10f3d15d365d/seed/omc/omc.om#L818) and `fn kw2` [#L1328](https://github.com/aien-dev/omega-mv/blob/91c83438daec0bdb88bf5c077cae10f3d15d365d/seed/omc/omc.om#L1328) at `91c83438`); same list in `seed/omc/genkw.awk` ([#L16](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/seed/omc/genkw.awk#L16) at `55f9b0af`; [#L16-L18](https://github.com/aien-dev/omega-mv/blob/e5b32567a7aff3ce594e3254a622a846a6cd190b/seed/omc/genkw.awk#L16-L18) at `e5b32567`, which adds `flock` 197 and a second list for `peercred`, `pollfds`, `sendmsg`; [#L17-L20](https://github.com/aien-dev/omega-mv/blob/91c83438daec0bdb88bf5c077cae10f3d15d365d/seed/omc/genkw.awk#L17-L20) at `91c83438`, whose second list adds `qty`, `cpufence`, `cpurelax`), parity checked by `seed/omc/gate18.sh` | gated |
 | C translator `tools/omegese/omegese.c` and `omegese next` | OMEGESE sections 1-8 | legacy referee and token-mask tool, not the compiler |
 | `spec/omega-language-v0.md` (`let x: u8 = ...`, `fn f(x: T) -> T { }`, `//` comments) | Visor console line language, lowered by C in `src/language/` ([#L1-L13](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/spec/omega-language-v0.md#L1-L13)) | history; never write `.om` in that syntax |
 | C under `src/`, including `src/compiler/` | `main` | unfinished migration ([README.md#L50](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/README.md#L50)) |
@@ -1014,7 +1019,10 @@ which fails when an emitting site in `omc.om` has no registry row, an emitted ro
 table in OMEGESE section 9.14 ([#L811-L855](https://github.com/aien-dev/omega-mv/blob/91c83438daec0bdb88bf5c077cae10f3d15d365d/docs/one_layer/OMEGESE.md#L811-L855))
 differs from the registry, or a case did not refuse as listed. irwasm exit codes 20..28 are a
 separate namespace in the same registry (OMEGESE section 11.1). The message format is `fn fail`
-([omc.om#L122-L148](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/seed/omc/omc.om#L122-L148) at `55f9b0af`).
+([omc.om#L122-L148](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/seed/omc/omc.om#L122-L148) at `55f9b0af`;
+[omc.om#L292-L322](https://github.com/aien-dev/omega-mv/blob/e5b32567a7aff3ce594e3254a622a846a6cd190b/seed/omc/omc.om#L292-L322) at `e5b32567`;
+[omc.om#L324-L356](https://github.com/aien-dev/omega-mv/blob/91c83438daec0bdb88bf5c077cae10f3d15d365d/seed/omc/omc.om#L324-L356) at `91c83438`,
+`fn fail` on the first line and `exit int code`, the only non-zero `exit` in the compiler, on the last).
 
 | Code | Meaning | Code | Meaning |
 |---|---|---|---|
@@ -1069,9 +1077,10 @@ name (write the literal in the entry signature).
 
 One minimal refusal per code is in `examples/errNN_*.om` of this repository, with its exact stderr
 line in `errNN_*.expect`, and `examples/gate.sh` runs them: codes 1..23 and 27..30, observed at
-`e5b32567`, plus code 25 (`err25_target`, added 2026-10-31 at `91c83438`). Code 24 has no
-reproduction (section 0), and 25 and 26 were unused at `e5b32567`; since `bf54b19f` the target
-checks emit 25 (section 0, rerun at `91c83438`).
+`e5b32567`, plus code 25 (`err25_target`, added 2026-10-31 at `91c83438`). Code 24 needs a
+generated program of more than 1 MiB inside one loop (recipe in `writing-omega` section 11;
+observed at `e5b32567` and rerun at `91c83438`, section 0). 25 and 26 were unused at `e5b32567`;
+since `bf54b19f` the target checks emit 25 (section 0, rerun at `91c83438`).
 
 ## 11a. Executable contracts (merged #807 through #768)