From 8252d2da231ceaf518e9146a1e40a86117daba47 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Fri, 30 Oct 2026 10:02:03 -0500 Subject: [PATCH 1/2] =?UTF-8?q?omega-encoding=20=C2=A711:=20codes=2024-30,?= =?UTF-8?q?=20registry,=20IR=20error=2030=20(PENDING=20omega-mv#965)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/omega-encoding/SKILL.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md index 89a3538..5027264 100644 --- a/skills/omega-encoding/SKILL.md +++ b/skills/omega-encoding/SKILL.md @@ -737,8 +737,15 @@ OM-2 units add or extend codes ([OMEGESE 9.13](https://github.com/aien-dev/omega [`spec/omegese-om2.md` section 8](https://github.com/aien-dev/omega-mv/blob/19f014f2178ca9cd3473728fe00a475a2398c409/spec/omegese-om2.md#L225)): 27 initialization (`fresh`), 28 constructor discipline (`seal`, `holds`), 29 external `layout`; 14 also covers expansion fuel (`obligation=growth`) and a 33rd `export`; 24 keeps its OM-1 meaning -(branch displacement). gate15 pins only codes 3..23 (roadmap RM8, #797). Merged contracts -(#807 through #768) add error **30**, diagnostic `obligation=contract` (section 11a). +(branch displacement). Merged contracts (#807 through #768) add error **30**, diagnostic +`obligation=contract` (section 11a). + +PENDING aien-dev/omega-mv#965 (draft, not merged): one registry `seed/omc/error-codes.reg` lists every +code; gate15 covers 1..25 and 27..30 at exact lines, checked by `seed/omc/codereg.om`; OMEGESE §9.14 is +the table. Codes 24..30: 24 AArch64 branch displacement out of range; 25 unknown target or AArch64-only +path on another target; 26 unused; 27 fresh element read before written; 28 seal outside its +constructor or unsupported holds; 29 external layout out of bounds; 30 contract syntax misplaced, +including any `requires`/`ensures`/`invariant` line in IR mode (#791; base omc reads `requires` as a local). Limits met while porting CUDApp's encoder and cubin writer (aien-dev/CUDApp#143, merged `2fab72fde0`), rechecked with omega-mv main `bf54b19f` (`seed/out/omc` sha256 `62775d2a...`): From 66e1730844f86496e333281cc5e420750955f3e2 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Fri, 30 Oct 2026 12:58:51 -0500 Subject: [PATCH 2/2] omega-encoding: recheck error registry against omega-mv#965 head 595050a0 (omc 6ad704d1); IR contract-word assignment still allowed --- skills/omega-encoding/SKILL.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md index 5027264..efc46d7 100644 --- a/skills/omega-encoding/SKILL.md +++ b/skills/omega-encoding/SKILL.md @@ -740,12 +740,20 @@ OM-2 units add or extend codes ([OMEGESE 9.13](https://github.com/aien-dev/omega (branch displacement). Merged contracts (#807 through #768) add error **30**, diagnostic `obligation=contract` (section 11a). -PENDING aien-dev/omega-mv#965 (draft, not merged): one registry `seed/omc/error-codes.reg` lists every -code; gate15 covers 1..25 and 27..30 at exact lines, checked by `seed/omc/codereg.om`; OMEGESE §9.14 is -the table. Codes 24..30: 24 AArch64 branch displacement out of range; 25 unknown target or AArch64-only -path on another target; 26 unused; 27 fresh element read before written; 28 seal outside its -constructor or unsupported holds; 29 external layout out of bounds; 30 contract syntax misplaced, -including any `requires`/`ensures`/`invariant` line in IR mode (#791; base omc reads `requires` as a local). +PENDING aien-dev/omega-mv#965 (draft, not merged; rechecked 2026-10-30 at head +`595050a01763c94622b2629dbc200fa92fc8fcf2`, committed omc sha256 +`6ad704d124bdc62657f3759c9c7f5197ccca157f57544dd5659a49deeac374f8`, self-rebuild byte-identical): one +registry `seed/omc/error-codes.reg` lists every omc code 1..30 plus irwasm exit codes 20..28 as a +separate namespace; gate15 covers 1..25 and 27..30 at exact lines, checked by `seed/omc/codereg.om`; +OMEGESE §9.14 is the table. Codes 24..30: 24 AArch64 branch displacement out of range; 25 unknown target +or AArch64-only path on another target; 26 unused; 27 fresh element read before written; 28 seal outside +its constructor or unsupported holds; 29 external layout out of bounds; 30 contract syntax misplaced, +including any `requires`/`ensures`/`invariant` clause line in IR mode (#791). Only the clause form is +error 30: `ensures = ulong 1` in IR still assigns a local named `ensures`. Observed with that omc: the +three IR clause lines (`requires lt x 10`, `ensures lt x 10`, `invariant lt x 10`) are each +`omc: line 3: error 30`, and `ensures = ulong 1` / `ret ensures` compiles (55 bytes of IR). Main's omc +`62775d2a…` compiles the `requires` and `ensures` lines as locals (exit 0) and gives error 13 for +`invariant` (a 9-byte IR name); the assignment form gives identical IR bytes under both compilers. Limits met while porting CUDApp's encoder and cubin writer (aien-dev/CUDApp#143, merged `2fab72fde0`), rechecked with omega-mv main `bf54b19f` (`seed/out/omc` sha256 `62775d2a...`):