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

closed derived 6a2017bc2f5d8577 #168

Imported from GitHub aien-dev/omega-harness#168 (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 ec1bb54e2ef6c5cc2cf58ff05d6de531850a4969 · Head 7c012011925bfa08cdb4469f2c32849483a9ccd5

Apply it

git checkout -b patch-6a2017bc2f5d8577 ec1bb54e2ef6c5cc2cf58ff05d6de531850a4969
curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/6a2017bc2f5d8577.patch | git am

Raw patch (mbox) · 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
168
7c012011925bfa08cdb4469f2c32849483a9ccd5
{"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":168,"url":"https://github.com/aien-dev/omega-harness/pull/168","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:39Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md
index 1dc84cd..7e56cfd 100644
--- a/skills/omega-encoding/SKILL.md
+++ b/skills/omega-encoding/SKILL.md
@@ -267,9 +267,8 @@ Two defects recorded at `e5b32567` are fixed in this compiler (the #904 integrat
 `fn continue_x` compiles and the program exits 7 (`examples/defect_keyword_prefix.om`); `bitcast int`
 of `uint 4294967295` compares equal to -1 and `add` 2 returns 1, and `bitcast uint` of `int -1`
 compares equal to 4294967295. At `2c824805` those three programs were error 16, exit 2 and exit 2,
-and `add` 2 trapped 1. `fn continue` is still error 16. The #775 empty-text report was not
-reproduced: a two-text unit passing `text e ""` to `view uchar *` returned len 0 on both compilers.
-Keep the `part e 0 0` workaround until that report has an exact failing program. Other
+and `add` 2 trapped 1. `fn continue` is still error 16. The #775 empty-text defect is reproduced at
+`2c824805` (see the bullet below); keep the `part e 0 0` workaround while that omc is the pin. Other
 "observed at e5b32567" lines below are dated history; the example suite still matches them.
 
 ### Historical rerun at omega-mv `e5b32567` (2026-10-27)
@@ -359,10 +358,15 @@ Changes and confirmations against the rules below, each observed with a program:
   `int` were not retested on 2026-10-29. Do not assume they are fixed. Decode signed values
   arithmetically when you have not measured the pair (`examples/wire_le.om`).
 - **`byte` is signed 8-bit** (`i8`, OMEGESE line 109); `char` is not a type (error 3).
-- **Empty text through `view uchar *` (omega-mv #775).** A 2026-10-27 report said `len` was 60 with
-  one other text and 28 with none. A two-text unit on 2026-10-29 returned 0 on both `2c824805` and
-  `62775d2a`, so that report was not reproduced. Keep passing `part e 0 0`
-  (`examples/empty_text_part.om`) until an exact failing program exists.
+- **Empty text through `view uchar *` (omega-mv #775).** Reproduced on 2026-11-04 with omc
+  `2c824805` (MCP `omega_run`): `om2`, `text e ""`, `fn n a view uchar * to ulong` / `ret len a`,
+  `main` `ret int n e` exits 28; adding `text f "0123456789abcdef0123456789abcdef"` makes it exit 60.
+  `ret int n part e 0 0` exits 0. The earlier "not reproduced" note was wrong for `2c824805`. Pass
+  `part e 0 0` (`examples/empty_text_part.om`). synapse-mcp hit it: every empty-text record arrived
+  with len 28-60 and positional arguments were refused as too long.
+- **`and`/`or` are eager everywhere, not only in contracts.** `if and gt n 0 eq get a sub n 1 13`
+  traps 3 (exit 103) when `n` is 0, because `get a sub n 1` still runs (`2c824805`, `omega_run`,
+  2026-11-04). Guard an index with a nested `if`.
 - **Skill examples rerun:** `fnv1a32.om` compile exit 0, empty stderr; `abc`, `a`, empty and 65535
   zero bytes gave `0be9471a`, `2c290ce4`, `c59d1c81`, `47dac371`, each exit 0; 65536 zero bytes gave
   exit 2 and no output; the prime changed to `16777617` gave `55bedcf5` for `abc`.
diff --git a/skills/writing-omega/SKILL.md b/skills/writing-omega/SKILL.md
index aa60151..7d6a169 100644
--- a/skills/writing-omega/SKILL.md
+++ b/skills/writing-omega/SKILL.md
@@ -386,10 +386,12 @@ Each row is a program in `examples/` with its observed refusal.
   `uchar`/`byte` and `f32` to `int` were not retested on 2026-10-29. Do not assume they are fixed.
   Decode signed values arithmetically when you have not measured the pair
   ([`examples/wire_le.om`](../../examples/wire_le.om)).
-- **Empty text through `view uchar *`** (omega-mv issue #775): a 2026-10-27 report said `len` was
-  60 or 28, not 0. A two-text unit on 2026-10-29 returned 0 on this pin and on `2c824805`, so that
-  report was not reproduced. Keep passing `part e 0 0`
+- **Empty text through `view uchar *`** (omega-mv issue #775): reproduced on 2026-11-04 with omc
+  `2c824805`: `om2`, `text e ""`, `fn n a view uchar * to ulong` / `ret len a`, `ret int n e` exits
+  28 (60 with one more 32-byte text). Pass `part e 0 0`
   ([`examples/empty_text_part.om`](../../examples/empty_text_part.om)).
+- **`and`/`or` are eager:** `if and gt n 0 eq get a sub n 1 13` traps 3 when `n` is 0. Guard an
+  index with a nested `if`.
 - **Function names:** a name of 9..63 bytes is not a keyword by its first 8 bytes. `continue_x`
   compiles and returns 7 ([`examples/defect_keyword_prefix.om`](../../examples/defect_keyword_prefix.om)).
   An exact keyword (`fn continue`) is still error 16. At omc `2c824805`, `continue_x` was error 16.