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

closed derived 35b7708256a80286 #145

Imported from GitHub aien-dev/omega-harness#145 (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 3e56afb73ad755170f3238cec326debb76021071 · Head a71c10a16ce32bc14768835508d6f252d5f90247

Fetch it

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

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

Changes

diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md
index 0050843..d5f463b 100644
--- a/skills/omega-encoding/SKILL.md
+++ b/skills/omega-encoding/SKILL.md
@@ -445,6 +445,17 @@ disagree, `omc` is what compiles your program:
   call may name any function in the unit; recursion is allowed in program mode and refused (error 9)
   in function mode ([OMEGESE#L409-L417](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L409-L417)). IR mode
   (a leading `ir` line) again allows earlier functions only ([#L755-L763](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L755-L763)).
+- **IR-mode `TYPE value` casts** (merged on omega-mv main as [omega-mv#967](https://github.com/aien-dev/omega-mv/pull/967),
+  squash commit `96ea448add639f8448a4787ef36a2ade06a1a244`, 2026-10-31; harness issue #141). In IR mode a
+  cast reads its operand at the operand's own type, so it converts an operand of any scalar type; a bare
+  number is range-checked against the cast's type (error 8); bool to or from a number is refused (error 9),
+  a bool comes only from a comparison. Pinned by `seed/omc/gate-ir.sh`. Observed (host only) with omc
+  sha256 `e4d84bc3ff5c91b83ce9a156d262eb28c9563e43374537293129898da093b7a6` built from seed at omega-mv
+  main `d39450a23b5936a0aafd35cc23ca70e5468fd4c0`: `ret ulong sub c 48` and `ret long sub c -128`
+  compile; `ret uchar 256` and `ret ulong sub c 300` (c uchar) are error 8; `ret bool c` and
+  `ret ulong eq a b` are error 9. The general pin of this skill (omega-mv `91c83438`, omc `2aec185d…`)
+  predates #967: it gives error 7 for the two widening casts and for `ret ulong eq a b`, and compiles
+  `ret bool c`. Do not rely on the new rule until the pin moves past `96ea448a`.
 - `new` lengths: C path 1..64 ([#L85](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L85)); `omc` 1..16777216
   per array and at most 4 MiB of local arrays per program ([#L460-L463](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L460-L463), gate12).
 - Unread names: the C path refuses a name that is written and never read ([#L37-L38](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L37-L38)).