omega-harness
Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories
Brought by drakestapleton
GitHub aien-dev/omega-harness#60 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/01fcb426661dbb86.bundle -o 01fcb426661dbb86.bundle git fetch 01fcb426661dbb86.bundle refs/pull/60/head
Provenance
github-import 1
aien-dev/omega-harness
60
adf43bd344ab552f796745a36fe84f3216fa2e00
{"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":60,"url":"https://github.com/aien-dev/omega-harness/pull/60","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:46Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/README.md b/README.md index f7b044a..acfde8e 100644 --- a/README.md +++ b/README.md @@ -78,20 +78,20 @@ QUALIFIED or deployed. ## Check the examples yourself -The examples run on Linux AArch64 hosts only. [`examples/`](examples/) holds 97 programs, each +The examples run on Linux AArch64 hosts only. [`examples/`](examples/) holds 99 programs, each `NAME.om` with `NAME.expect` (and `NAME.stdout` when it prints): every trap, one refusal per error code, the common mistakes and the known defects. `examples/gate.sh` refuses any compiler but the pinned one, then compiles and runs every program here and in `skills/*/examples/`: ```sh git clone https://github.com/aien-dev/omega-mv.git omega-src -git -C omega-src checkout 91c83438daec0bdb88bf5c077cae10f3d15d365d -sha256sum omega-src/seed/out/omc # 2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5 at main 91c83438 (2026-10-31); 734f0a39... at the 2026-10-25 pin 55f9b0af +git -C omega-src checkout 3a163bc5eafa5be4b9ca97b7f17046c33f0d9032 +sha256sum omega-src/seed/out/omc # 24caacf463cc29c5413d5b2565ef8f88c76e60a585bbad44d2388cb1ac29abb7 at main 3a163bc5 (2026-10-31); 2aec185d... at the previous pin 91c83438; 734f0a39... at the 2026-10-25 pin 55f9b0af examples/gate.sh omega-src/seed/out/omc ``` It prints `PASS name` or `FAIL name: reason` per program and ends with -`GATE PASS examples=99 pass=99 fail=0 omc=2aec185d...` (exit 0), `GATE FAIL ...` (exit 1), or a hash +`GATE PASS examples=101 pass=101 fail=0 omc=24caacf4...` (exit 0), `GATE FAIL ...` (exit 1), or a hash refusal (exit 2). The `omega-encoding` skill (section 0 and section 13) records the observed results and the negative controls; [`examples/WOLFRAM.md`](examples/WOLFRAM.md) records the Wolfram checks of the arithmetic expectations. diff --git a/examples/WOLFRAM.md b/examples/WOLFRAM.md index ed9b378..3affc42 100644 --- a/examples/WOLFRAM.md +++ b/examples/WOLFRAM.md @@ -68,3 +68,17 @@ BitAnd[12, 10] ``` 8 ``` + +Third call, 2026-10-31, for `for_bound` (exit status 10, the sum of `i` over the 5 passes) with the +omc `24caacf4…abb7` pin, query and result verbatim: + +```wolfram +{Sum[i, {i, 0, 4}], 512 - 495, Mod[1500000,89], Mod[1100000,89], Mod[1234567,89], Mod[2000000,89], 2^63 - 1} +``` + +``` +{10, 17, 83, 49, 48, 81, 9223372036854775807} +``` + +The other entries are the `omega-encoding` section 0 and section 8 numbers (free om4 function entries, +loop probe exit statuses, the largest `bound`). diff --git a/examples/for_bound.expect b/examples/for_bound.expect new file mode 100644 index 0000000..d22b3ea --- /dev/null +++ b/examples/for_bound.expect @@ -0,0 +1,2 @@ +compile 0 +exit 10 diff --git a/examples/for_bound.om b/examples/for_bound.om new file mode 100644 index 0000000..74b74d9 --- /dev/null +++ b/examples/for_bound.om @@ -0,0 +1,10 @@ +note for_bound: for i T K bound N caps the passes at N (1..9223372036854775807); here 5 passes, exit 10 +note with bound N every count, a number or a value, traps 4 after N passes (trap4_for_bound.om) +fn main to int +n = ulong 5 +s = ulong 0 +for i ulong n bound 10 +s = add s i +end +ret int s +end diff --git a/examples/gate.sh b/examples/gate.sh index f13faaf..06e2537 100755 --- a/examples/gate.sh +++ b/examples/gate.sh @@ -16,8 +16,8 @@ # Exit 0 only when every example passes; 1 on any failure; 2 on a usage or pin error. set -u -PIN_REV=91c83438daec0bdb88bf5c077cae10f3d15d365d -PIN_SHA=2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5 +PIN_REV=3a163bc5eafa5be4b9ca97b7f17046c33f0d9032 +PIN_SHA=24caacf463cc29c5413d5b2565ef8f88c76e60a585bbad44d2388cb1ac29abb7 if [ "$#" -ne 1 ]; then echo "usage: $0 /path/to/omc (omega-mv $PIN_REV seed/out/omc)" >&2 diff --git a/examples/loops.om b/examples/loops.om index 78d3c2a..b5b8f4b 100644 --- a/examples/loops.om +++ b/examples/loops.om @@ -1,4 +1,4 @@ -note loops: while COND bound N (1..999999), for i T K, break and continue +note loops: while COND bound N (N 1..9223372036854775807), for i T K [bound N], break and continue note ---- output helpers: a function works on a global by naming it (a global is never an argument) global ob uchar 32 note outb: write ob[off .. off+n) to stdout; a short write continues, 0 or an error exits 90 diff --git a/examples/mistake_bound_range.om b/examples/mistake_bound_range.om index d6e3054..3423037 100644 --- a/examples/mistake_bound_range.om +++ b/examples/mistake_bound_range.om @@ -1,7 +1,7 @@ -note mistake_bound_range: a while bound is 1..999999; without bound the limit is 1000000 passes +note mistake_bound_range: a while or for bound is 1..9223372036854775807; 0 and 2^63 are error 8 fn main to int i = ulong 0 -while lt i 3 bound 1000000 +while lt i 3 bound 9223372036854775808 i = add i 1 end ret 0 diff --git a/examples/mistake_for_bound.expect b/examples/mistake_for_bound.expect deleted file mode 100644 index 640c914..0000000 --- a/examples/mistake_for_bound.expect +++ /dev/null @@ -1,2 +0,0 @@ -compile 5 -stderr omc: line 5: error 5 diff --git a/examples/mistake_for_bound.om b/examples/mistake_for_bound.om deleted file mode 100644 index cf0e210..0000000 --- a/examples/mistake_for_bound.om +++ /dev/null @@ -1,9 +0,0 @@ -note mistake_for_bound: for takes no bound; its count is the limit. Use while COND bound N for a bounded variable loop -fn main to int -n = ulong 5 -s = ulong 0 -for i ulong n bound 10 -s = add s i -end -ret int s -end diff --git a/examples/mistake_ir_bound.expect b/examples/mistake_ir_bound.expect new file mode 100644 index 0000000..0ae9548 --- /dev/null +++ b/examples/mistake_ir_bound.expect @@ -0,0 +1,2 @@ +compile 8 +stderr omc: line 5: error 8 diff --git a/examples/mistake_ir_bound.om b/examples/mistake_ir_bound.om new file mode 100644 index 0000000..379260a --- /dev/null +++ b/examples/mistake_ir_bound.om @@ -0,0 +1,9 @@ +ir +note mistake_ir_bound: IR mode keeps the C oracle's loop range: a bound is 1..1000000, so 1000001 is error 8 +fn main to int +i = ulong 0 +while lt i 3 bound 1000001 +i = add i 1 +end +ret 0 +end diff --git a/examples/trap4_for_bound.expect b/examples/trap4_for_bound.expect new file mode 100644 index 0000000..21ea6db --- /dev/null +++ b/examples/trap4_for_bound.expect @@ -0,0 +1,2 @@ +compile 0 +exit 104 diff --git a/examples/trap4_for_bound.om b/examples/trap4_for_bound.om new file mode 100644 index 0000000..4c978dd --- /dev/null +++ b/examples/trap4_for_bound.om @@ -0,0 +1,11 @@ +note trap4_for_bound: a for count above its bound traps 4 when pass N+1 would start, exit 104 +text before "before\n" +fn main to int +k = write 1 before 0 len before +n = ulong 11 +s = ulong 0 +for i ulong n bound 10 +s = add s i +end +ret int s +end diff --git a/examples/trap4_for_bound.stdout b/examples/trap4_for_bound.stdout new file mode 100644 index 0000000..90be1f3 --- /dev/null +++ b/examples/trap4_for_bound.stdout @@ -0,0 +1 @@ +before diff --git a/skills/aien-repositories/SKILL.md b/skills/aien-repositories/SKILL.md index a1fbb6c..c034ed3 100644 --- a/skills/aien-repositories/SKILL.md +++ b/skills/aien-repositories/SKILL.md @@ -162,7 +162,7 @@ Observed contradictions to keep visible, not silently reconcile: - The AienOS README describes an older universal Spark-before-merge process. Its [newer repository instructions](https://github.com/aien-dev/aienix/blob/main/AGENTS.md) warn that historical README prose is not current merge policy. - Omega README's opening sentence used to say the seeded compiler was only on candidate branches while line 27 said it landed from PR #696. omega-mv #801 corrected the opening at main `19f014f21`. Source and current instructions still decide availability. - Architecture README acknowledges roadmap R15/R16 wording lagging candidate results. The execution plan contains dated corrections to older baselines. Read exact candidate receipts and exceptions before raising status. -- CUDApp's README, `AGENTS.md`, `docs/NAMING.md` and Makefile said Omega builds CUDApp from `cudapp.lock`; omega-mv main (`e5b32567`, 2026-10-26, and still at `91c83438da`) has no such file and builds its own diverged GPU copy with `nvrm` from physics-mv. Corrected in CUDApp#109 (merged `c1652b0d53`); the cut-over is CUDApp#106/#107. At CUDApp main `edb9a70361`, `AUDIT_SCOPE.md` line 141 and `docs/START_HERE.md` line 65 still describe the lock as existing. +- CUDApp's README, `AGENTS.md`, `docs/NAMING.md` and Makefile said Omega builds CUDApp from `cudapp.lock`; omega-mv main (`e5b32567`, 2026-10-26, and still at `3a163bc5`, 2026-10-31) has no such file and builds its own diverged GPU copy with `nvrm` from physics-mv. The lock exists only on draft omega-mv#924. Corrected in CUDApp#109 (merged `c1652b0d53`); the cut-over is CUDApp#106/#107. CUDApp#212 (merged `c76412e8`) corrected the last two mentions (`AUDIT_SCOPE.md` line 141, `docs/START_HERE.md` line 65), which had still described the lock as existing at CUDApp main `edb9a70361`. - [ADR 0038](https://github.com/aien-dev/aien-architecture-mv/blob/main/docs/adr/0038-names-aienux-kernel-aienos-system.md) establishes **AienOS system / Aienux kernel**, but its rename request is not proof both renames happened. Current system slug is **`aien-dev/aienix`**, kernel **`aien-dev/aienux`**. Do not rename `aienix` or reuse `aienos` as onboarding cleanup: redirects, signed repository identities, pins, judge consumers and receipt paths require a coordinated migration. Preserve historical evidence, cryptographic labels and identifiers exactly. ## Refresh before acting diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md index 58aff28..f18270a 100644 --- a/skills/omega-encoding/SKILL.md +++ b/skills/omega-encoding/SKILL.md @@ -24,19 +24,52 @@ below remain dated history, not claims about the newer integration. | Item | Value | |---|---| | Repository | `github.com/aien-dev/omega-mv`, branch `main` | +| Commit | `3a163bc5eafa5be4b9ca97b7f17046c33f0d9032` (squash of [#857](https://github.com/aien-dev/omega-mv/pull/857), `for ... bound N` and the IR loop ranges, 2026-10-31) | +| Compiler source `seed/omc/omc.om` | 16,422 lines, 495 `^fn ` lines, sha256 `0ed35c70437d498cbce3deb661bb24ba4753ec16a8890450a482aaea147bca2a` | +| Compiler `seed/out/omc` | sha256 `24caacf463cc29c5413d5b2565ef8f88c76e60a585bbad44d2388cb1ac29abb7`, 517,768 bytes (equals `seed/out/omc.sha256`; last `seed/omc/size-history.tsv` row `forbound-857-main`) | +| Seed loader `seed/rung0/seed0.hex` | sha256 `baaf081fe6055a768485c5d25d7435681ce00b04cfa80b26c48169f78944e14d` | + +Merges after `91c83438d` (omc `2aec185d…d8d5`) that change the compiler, oldest first: #967 +(`96ea448ad`, IR-mode `TYPE` casts read the operand at its own type, section 4), #948 (`dc0d06e95`, +B/BL imm26 displacements checked by the shared `bdisp`, section 4 error 24 entry), #875 +(`236787439`, OM-2 words `dit` 225 / `scrub` 226, section 6), #918 (`2d848d939`, host word +`peername` 224, section 9), #853 (`4722cba58`, floats in V registers, codegen only; see the `scrub` +entry in section 6), #848 (`157bab57c`, `while ... bound N` up to 2^63-1, section 8) and #857 +(`3a163bc5e`, `for ... bound N`, IR loop ranges, section 8). #990, #992 and #989 touch tests and +docs only. `seed/rung0`, `seed/rung4/om4.s`, `seed/rung4/om4.bin` (sha256 `d0da40e4…19efab`), +`seed/omega-from-seed.sh` and `seed/omc/gate12.sh` are unchanged between `91c83438d` and +`3a163bc5e`. `omc.om` went from 512 to 495 `^fn ` lines with #853, so the om4 cap (section 8) has +17 free entries at this pin. + +Observed 2026-10-31 on a Linux AArch64 host in a clean detached worktree at `3a163bc5e`: +`sh seed/omega-from-seed.sh` exited 0 (`RC=0`) and left `seed/out/omc` at exactly `24caacf4…abb7` +with a clean `git status`. Both guide examples were rerun with that omc: `fnv1a32.om` compiled with +exit 0 and empty stderr to a binary byte-identical to the one `2aec185d` emits; `abc`, `a` and empty +input gave `0b e9 47 1a`, `2c 29 0c e4`, `c5 9d 1c 81`, exit 0; 65536 zero bytes gave no output, +exit 2; the wrong-prime control (`16777617`) gave `55 be dc f5` for `abc`. `trap_narrow.om` +compiled with exit 0 and empty stderr and ran with exit 105; deleting only its unmasked store +(negative control) changed the run exit to 44. The same `fnv1a32.om` prefixed with +`target x86linux` printed `0b e9 47 1a` with exit 0 under `qemu-x86_64` 8.2.2: EMULATED, not +native x86. + +The omega MCP tools (`compile`, `run`) use an older pin: omega-mv `e5b32567`, omc `2c824805…029f`. +Their results do not describe main's omc `24caacf4…`; for main, run `git show main:seed/out/omc` +directly. + +### Previous pin `91c83438` (2026-10-31, history) + +| Item | Value | +|---|---| | Commit | `91c83438daec0bdb88bf5c077cae10f3d15d365d` (squash of [#965](https://github.com/aien-dev/omega-mv/pull/965), error-code registry and IR error 30, 2026-10-31) | | Compiler source `seed/omc/omc.om` | 15,952 lines, 512 `^fn ` lines, sha256 `92eb49f35715147ccb6c6b00a96b9cb38d7f7383de14d4f6521d2e07eaad465c` | -| Compiler `seed/out/omc` | sha256 `2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5`, 495,668 bytes (equals `seed/out/omc.sha256`; last `seed/omc/size-history.tsv` row `error-registry-965`) | -| Seed loader `seed/rung0/seed0.hex` | sha256 `baaf081fe6055a768485c5d25d7435681ce00b04cfa80b26c48169f78944e14d` | +| Compiler `seed/out/omc` | sha256 `2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5`, 495,668 bytes (last `seed/omc/size-history.tsv` row `error-registry-965`) | -Three merges after `4376c2112` (omc `62775d2a…712b`) change the compiler: #946 (`d94617177`, host +Three merges after `4376c2112` (omc `62775d2a…712b`) changed the compiler: #946 (`d94617177`, host words `cpufence` 199 / `cpurelax` 200), #970 (`1db941627`, `execpure` word 198 and `close_range` before `exec`; omc `7a8b84fcc07808a52e6cbb65aa7450c754b3ad62eeddf9ec64cc0edd0938b2de`) and #965 (`91c83438d`: error-code registry and IR error 30, section 11; float literal scans and the untyped long float literal miscompile, section 4). The `omc.om` line links in this file are permalinks to the -commit they name; on main the line numbers have moved. `seed/rung0`, `seed/rung4/om4.s`, -`seed/rung4/om4.bin` (sha256 `d0da40e4…19efab`), `seed/omega-from-seed.sh` and `seed/omc/gate12.sh` -are unchanged between `4376c2112` and `91c83438d`. +commit they name; on main the line numbers have moved. Observed 2026-10-31 on a Linux AArch64 host in a fresh clone at `91c83438d`: the committed `seed/out/omc` hashed to `2aec185d…d8d5`; `seed/rung4/om4.bin` alone compiled that `omc.om` with exit 0 @@ -51,10 +84,6 @@ changed the run exit to 44. The same `fnv1a32.om` prefixed with `target x86linux exit 0 to an x86-64 ELF that printed `0b e9 47 1a` with exit 0 under `qemu-x86_64` 8.2.2: EMULATED, not native x86. -The omega MCP tools (`compile`, `run`) use an older pin: omega-mv `e5b32567`, omc `2c824805…029f`. -Their results do not describe main's omc `2aec185d…`; for main, run `git show main:seed/out/omc` -directly. - ### x86 integration as tested before merge (observed 2026-10-28) Then-draft [#923](https://github.com/aien-dev/omega-mv/pull/923), source @@ -98,9 +127,11 @@ compiled with exit 0 to x86-64 ELF files with main's omc, at `62d1d0d66` and aga (where `target x86efi` still gave `omc: line 1: error 25`, exit 25). They were not run, so no x86 execution of device words is claimed. The VFIO words `vfioctl`/`vfiomap` are not on main (pending draft [omega-mv#878](https://github.com/aien-dev/omega-mv/pull/878), open on 2026-10-31). -At main `91c83438d` (omc `2aec185d…`, 2026-10-31) `target x86efi` still gives `omc: line 1: error 25`, -exit 25 (observed). Since #970, `docs/X86-LINUX.md` also lists `execpure` (word 198) among the -`xhost` error-25 refusals on x86 (source text, not run here). +At main `91c83438d` (omc `2aec185d…`, 2026-10-31) and again at main `3a163bc5e` (omc `24caacf4…`, +2026-10-31) `target x86efi` still gives `omc: line 1: error 25`, exit 25 (observed); `vfioctl` is +still absent from `omc.om` at `3a163bc5e` and #878 is still open. Since #970, `docs/X86-LINUX.md` +also lists `execpure` (word 198) among the `xhost` error-25 refusals on x86 (source text, not run +here). ### Historical quantity/check/next candidate (observed 2026-10-28) @@ -148,9 +179,26 @@ correctness proof or a full gate5/host qualification. Every citation links to that commit: `https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/<path>#L<n>`. -### Rerun at omega-mv `91c83438` (2026-10-31) - -The example gate now pins main `91c83438daec0bdb88bf5c077cae10f3d15d365d` (#965), `seed/out/omc` +### Rerun at omega-mv `3a163bc5` (2026-10-31) + +The example gate pins main `3a163bc5eafa5be4b9ca97b7f17046c33f0d9032` (#857), `seed/out/omc` +sha256 `24caacf463cc29c5413d5b2565ef8f88c76e60a585bbad44d2388cb1ac29abb7`. With the previous tree +and only the pin moved, the gate against that binary ended `GATE FAIL examples=99 pass=97 fail=2`: +`mistake_bound_range.om` (`while ... bound 1000000`, valid since #848) and `mistake_for_bound.om` +(`for ... bound 10`, valid since #857) both compiled with exit 0 where error 8 and error 5 were +expected. `mistake_bound_range.om` now uses `bound 9223372036854775808` (error 8, line 4); +`mistake_for_bound.om` became `for_bound.om` (exit 10); `trap4_for_bound.om` (a value count 11 over +`bound 10`, exit 104) and `mistake_ir_bound.om` (`ir`, `while ... bound 1000001`, error 8, line 5) +are new. On 2026-10-31, Linux AArch64, `examples/gate.sh` against `24caacf4…abb7` printed +`GATE PASS examples=101 pass=101 fail=0` (exit 0). Negative controls on a scratch copy each ended +`GATE FAIL examples=101 pass=100 fail=1` with exit 1: `bound 9223372036854775807` in +`mistake_bound_range.om` (`compile exit 0, expected 8`) and `bound 4` in `for_bound.om` +(`exit 104, expected 10`). The gate pointed at the previous omc `2aec185d…d8d5` was refused with +exit 2. The section below is the previous pin. + +### Rerun at omega-mv `91c83438` (2026-10-31, previous pin) + +The example gate then pinned main `91c83438daec0bdb88bf5c077cae10f3d15d365d` (#965), `seed/out/omc` sha256 `2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5`. On 2026-10-31, Linux AArch64, `examples/gate.sh` against that binary printed `GATE PASS examples=98 pass=98 fail=0` (exit 0) with no expectation changed. The rerun also showed that code 25 is emitted (it has been @@ -225,9 +273,12 @@ Changes and confirmations against the rules below, each observed with a program: - **The `=` of an assignment is optional** (OMEGESE line 24), so `return x` compiles as an assignment to a new name `return`. In a value function the missing `ret` then shows as error 18 (`mistake_return.om`). -- **`for` takes no `bound`**: `for i ulong n bound 10` is error 5 (`mistake_for_bound.om`). `while` - bounds are 1..999999 (`bound 1000000` is error 8) and `trap` takes 1..14 (`trap 15` and `trap 0` - are error 8; `trap 14` exits 114). +- **`for ... bound N` and the bound range** (since #848 and #857, pinned at `3a163bc5`): `for i ulong + n bound 10` compiles (`for_bound.om`, exit 10) and a count past the bound traps 4 + (`trap4_for_bound.om`); a bound is 1..9223372036854775807, so `bound 0` and `bound + 9223372036854775808` are error 8 (`mistake_bound_range.om`), and in IR mode it is 1..1000000 + (`mistake_ir_bound.om`). `trap` takes 1..14 (`trap 15` and `trap 0` are error 8; `trap 14` exits + 114). - **Names:** an 8-character variable compiles and 9 is error 13; a 63-character function name compiles and 64 is error 13. `len` or `stat` as a variable is error 16, `free` is error 9, and `bits` is an ordinary name. @@ -255,9 +306,15 @@ Changes and confirmations against the rules below, each observed with a program: 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 + `writing-omega` section 11. Rerun 2026-10-31 with omc `2c824805` and with the then 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. + program then exits 0). At `e5b32567`, codes 25 and 26 are not emitted by any `fail` call. Since + #948 (`dc0d06e95`, pinned at `3a163bc5`) every B.cond/CBZ/CBNZ imm19 and every B/BL imm26 site goes + through one checked `bdisp` ([omc.om#L2982-L2992](https://github.com/aien-dev/omega-mv/blob/3a163bc5eafa5be4b9ca97b7f17046c33f0d9032/seed/omc/omc.om#L2982-L2992)); + the 8 MiB output ceiling (error 14) keeps every B/BL inside its 128 MiB reach, so imm26 error 24 + is a defence no legal program reaches (`seed/qualification/security673/README.md`). Observed + 2026-10-31 at `3a163bc5e`: that directory's `gate669.om`, built with omc `24caacf4…`, ended + `GATE669 PASS bounded Linux AArch64 execution and independent decoding only` (exit 0, host only). - **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 @@ -583,9 +640,11 @@ disagree, `omc` is what compiles your program: 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…`) + `ret ulong eq a b` are error 9. The previous 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`. + `ret bool c`. The current pin `3a163bc5` includes #967: observed 2026-10-31, the IR unit + `fn dig c uchar to ulong` / `ret ulong sub c 48` compiles with omc `24caacf4…` (124 bytes of IR) and + is `omc: line 3: error 7` with `2aec185d…`. - `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)). @@ -794,7 +853,11 @@ the target's limits, and a NaN gives 0, with no trap (observed at `e5b32567`, ## 6. Names, scope, registers - Function names: up to 63 characters. Every other name (variable, parameter, global, text, const, - struct, field): **at most 8 characters**, else error 13 ([#L423](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L423), gate15 `e13_long_variable`). + struct, field): **at most 8 characters** on the pinned omc `2c824805`, else error 13 ([#L423](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L423), gate15 `e13_long_variable`). +- PENDING, not merged or pinned: [omega-mv #837](https://github.com/aien-dev/omega-mv/pull/837) (batch 3 + candidate `21d34e12`) raises every such name to 63 bytes, compared in full (`counter_a` and + `counter_b` are distinct). Error 13 then means over 63. IR-mode locals and parameters, `abstract`/`layout` + names and layout fields stay at 8, and so does om4. Until the batch-3 pin lands, keep names at 8. - A new name may not equal a visible name, a function or a struct (error 10). A name first written inside `if` / `else` / `while` / `for` dies at its `end`; assign it before the block to carry it out. - Reserved words cannot be names. Besides the obvious ones, the table reserves `len read write text @@ -807,9 +870,8 @@ the target's limits, and a NaN gives 0, with no trap (observed at `e5b32567`, The same program with the parameter renamed to `n` compiles (exit 0). Use `n`, `cnt` or `size`. - **`dit` and `scrub`: merged in [omega-mv#875](https://github.com/aien-dev/omega-mv/pull/875) as `2367874399001efdc7f1ff345fb327469bc1a135` (2026-10-31), committed omc sha256 - `3862655902e3bb9f502ebca2e1e5e5edb6175bf512be731a63c700a6dce8d355`. The general pin of this skill - (omega-mv `91c83438`, omc `2aec185d…`) predates it: do not rely on these words until the pin moves - past `23678743`.** Keyword ids: `dit` 225, `scrub` 226 in `fn kw2`, the OM-2 table + `3862655902e3bb9f502ebca2e1e5e5edb6175bf512be731a63c700a6dce8d355`; included in the current pin + `3a163bc5` (omc `24caacf4…`).** Keyword ids: `dit` 225, `scrub` 226 in `fn kw2`, the OM-2 table ([omc.om#L1329](https://github.com/aien-dev/omega-mv/blob/2367874399001efdc7f1ff345fb327469bc1a135/seed/omc/omc.om#L1329), [#L1384-L1388](https://github.com/aien-dev/omega-mv/blob/2367874399001efdc7f1ff345fb327469bc1a135/seed/omc/omc.om#L1384-L1388)). Both are emitted inline, not as helper functions, because om4 holds 512 functions and `omc.om` is at @@ -825,9 +887,20 @@ the target's limits, and a NaN gives 0, with no trap (observed at `e5b32567`, `dit-ok` exit 0, `dit-two`/`dit-neg`/`scrub-odd`/`scrub-big` trap 3 (exit 103), `scrub-floor` exit 106, `scrub-ctl` exit 10 (its negative control), `scrub-mem`/`scrub-live`/`scrub-emit`/`om1-names` exit 0, the refusal fixtures 9/7/16 as above, `scrub-emit` output sha256 `5ba83eaf…` as in - `s5.cases`, and `dit-ok` behind `target x86linux` error 25. The pinned omc `2aec185d…` does not know + `s5.cases`, and `dit-ok` behind `target x86linux` error 25. The previous pin omc `2aec185d…` does not know the words: every fixture that uses them is error 3, while `dit-name`/`scrub-name` (the words as names) compile as in OM-1, and `scrub-ctl`/`om1-names` behave as with `38626559…`. + Rerun 2026-10-31 with the pinned omc `24caacf4…` (host only): every `s5` fixture gives the same exit + as with `38626559…` above, `scrub-emit` output sha256 `5ba83eaf…` again, and `dit-ok` behind + `target x86linux` is `omc: line 6: error 25`; the previous pin `2aec185d…` still gives error 3 for + the fixtures that use the words. + **Defect at this pin: `scrub` destroys live floats.** #853 (floats in V registers) merged after + #875, but the `scrub` emitter still zeroes all of V0-V31 and its note still says floats live in X + registers ([omc.om#L7837-L7875](https://github.com/aien-dev/omega-mv/blob/3a163bc5eafa5be4b9ca97b7f17046c33f0d9032/seed/omc/omc.om#L7837-L7875)). + Observed 2026-10-31: `om2` / `f = f64 1.5` / `g = f64 2.5` / `k = scrub 16` / `h = add f g` / + `if ne h f64 4.0` / `ret 50` / `end` / `ret int k` exits 50 with omc `24caacf4…` and 0 with omc + `38748442…` (omega-mv `2d848d939`, before #853). Do not hold a float across `scrub` at this pin; + the omega-mv fix is pending. - **16 registers per function** (pool x0-x6, x8-x15, x17; [omc.om#L82-L91](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/seed/omc/omc.om#L82-L91)). Parameters, every live name, the hidden counter of each open `while` / value-count `for`, and the temporaries of the current statement all draw from it; error 12 when the next one is not available @@ -866,12 +939,41 @@ From OMEGESE 9.4 and 9.7 ([#L449-L474](https://github.com/aien-dev/omega-mv/blob ## 8. Loops and bounds -From OMEGESE section 3 and 4 ([#L58-L60](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L58-L60), [#L131-L135](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L131-L135)) and [omc.om#L5493-L5494](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/seed/omc/omc.om#L5493-L5494): - -- `while COND bound N`: at most N body passes, N 1..999999 (error 8 outside). Without `bound` the - limit is 1000000 passes. One more pass traps 4. The condition is recomputed before every pass. +From OMEGESE section 3 and 4 ([#L58-L60](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L58-L60), [#L131-L135](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L131-L135)) and [omc.om#L5493-L5494](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/seed/omc/omc.om#L5493-L5494); +the bound ranges below are those of the pin `3a163bc5` (OMEGESE [#L63-L69](https://github.com/aien-dev/omega-mv/blob/3a163bc5eafa5be4b9ca97b7f17046c33f0d9032/docs/one_layer/OMEGESE.md#L63-L69), +[#L140-L149](https://github.com/aien-dev/omega-mv/blob/3a163bc5eafa5be4b9ca97b7f17046c33f0d9032/docs/one_layer/OMEGESE.md#L140-L149); +`s_while` [omc.om#L8853-L8854](https://github.com/aien-dev/omega-mv/blob/3a163bc5eafa5be4b9ca97b7f17046c33f0d9032/seed/omc/omc.om#L8853-L8854), +`sf_num` [#L8912-L8915](https://github.com/aien-dev/omega-mv/blob/3a163bc5eafa5be4b9ca97b7f17046c33f0d9032/seed/omc/omc.om#L8912-L8915), +`ir_bound` [#L13162-L13163](https://github.com/aien-dev/omega-mv/blob/3a163bc5eafa5be4b9ca97b7f17046c33f0d9032/seed/omc/omc.om#L13162-L13163)): + +- `while COND bound N`: at most N body passes, N 1..9223372036854775807 (2^63-1), a number or an + integer const; 0 and 9223372036854775808 are error 8 on the loop's line. Without `bound` the limit + is 1000000 passes. One more pass traps 4. The condition is recomputed before every pass. Merged as + omega-mv #848 (`157bab57`); before it (pins up to `91c83438`, omc `2aec185d`) the range was + 1..999999 and `bound 1000000` was error 8. - `for i T K` runs i = 0..K-1. A literal K needs no hidden guard; a name or expression K gets the - 1000000-pass guard. `for` takes no `bound` word (error 5, observed at `e5b32567`). + 1000000-pass guard. `for i T K bound N` (omega-mv #857, `3a163bc5`) takes the same N as `while`; + with a bound every count, literal or not, traps 4 after N passes. Before #857 `for` took no `bound` + word (error 5). +- IR mode (`ir` first line) keeps the C oracle's ranges so that checker2 proves every guard: `bound N` + on `while` or `for` is 1..1000000, and a number or integer-const `for` count is 0..1000000; outside + them (a minus sign included) is error 8 on the loop's line. An IR `for` with a value count (a name) + now carries the hidden 1000000-pass guard; before #857 it was emitted unguarded and checker2 + rejected it (C2-LOOP-UNBOUNDED). +- Observed 2026-10-31, Linux AArch64 host, omc `24caacf4…abb7` (negative control: the previous pin + omc `2aec185d…d8d5`): `while lt i 1500000 bound 2000000` exits 83 = 1500000 mod 89 (old: error 8); + `bound 9223372036854775807` and `bound 1000000` compile and run (old: error 8); `bound 0` and + `bound 9223372036854775808` are `omc: line 3: error 8` on both; `const BIG ulong 5000000` as the + bound runs 1100000 passes (exit 49 = 1100000 mod 89; old: error 8); `bound 5` with 10 passes wanted + and 1000001 passes with no bound both exit 104 (trap 4) on both. `for i ulong 1234567 bound 1300000` + exits 48 = 1234567 mod 89 (old: error 5); `for i ulong 11 bound 10` and the same with `k = ulong 11` + as the count exit 104 (old: error 5); `for ... bound 0` and `bound 9223372036854775808` are error 8 + (old: error 5); `for i ulong 2000000` without a bound still runs unguarded (exit 81 = 2000000 mod + 89). IR mode: `while ... bound 1000000` compiles (old: error 8), `bound 1000001` is error 8 on both; + `for i ulong 1000000` compiles, `for i ulong 1000001` is error 8 (old: compiled); `for i ulong 3 + bound 10` compiles and `bound 1000001` is error 8 (old: error 5 for both); `for i ulong k` with + `k = ulong 3` grows from 162 to 225 bytes of IR (the guard). Wolfram: + `{Mod[1500000,89], Mod[1100000,89], Mod[1234567,89], Mod[2000000,89]}` -> `{83, 49, 48, 81}`. - `break` and `continue` (`omc` only, gate7); `continue` in a `while` re-runs the condition and bound. - Choose N from a proof, not a guess. Example: a read loop where every pass adds at least one byte to a 65536-byte buffer needs at most 65536 passes. Write that reasoning in a `note`. @@ -938,7 +1040,7 @@ Base words ([#L476-L486](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de7 `write fd A off n`, `pread`/`pwrite fd A off n pos`. Native host words ([#L624-L747](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L624-L747)): files, directories, clocks, sockets, poll, processes, arguments, environment, random. -**cpufence / cpurelax: merged in [omega-mv#946](https://github.com/aien-dev/omega-mv/pull/946) as `d94617177`, current main pin `91c83438` / omc `2aec185d`.** +**cpufence / cpurelax: merged in [omega-mv#946](https://github.com/aien-dev/omega-mv/pull/946) as `d94617177`; in the current pin `3a163bc5` / omc `24caacf4`.** Rechecked 2026-10-31 at omega-mv main `91c83438daec0bdb88bf5c077cae10f3d15d365d` (omc sha256 `2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5`). These are operand-free statements. `cpufence` (keyword 199) is a full host CPU barrier, AArch64 `DSB SY` @@ -966,9 +1068,27 @@ Historical note: up to omc `2c824805…` (omega-mv `e5b32567`, the omega MCP pin the wrong word: `pwrite` from a `text` was error 20 and `pread` into a `text` compiled and returned `-EFAULT` at run time. Code written for that pin copied a text into a `new` array before `pwrite`. +**`peername`: bounded peer address of an existing descriptor** (merged in +[omega-mv#918](https://github.com/aien-dev/omega-mv/pull/918) as `2d848d939`, committed omc +`38748442…`; in the current pin `3a163bc5` / omc `24caacf4`). `peername fd A off n` is host word 224, +program mode only. It writes the connected peer's address into `A[off, off+n)` through AArch64 +`getpeername` 205 (not `getsockname` 204) or x86-64 `getpeername` 52 (not 51), with the same slice and +private 32-bit length convention as `sockname`. Zero capacity is allowed, at the array end too, and +returns the full length. The result is the full address length (above `n` means truncated) or a +negative errno. An invalid slice traps 3; a read-only buffer (a view or text) is error 20. It creates +and connects no descriptor; the caller owns the descriptor's lifetime. The peer is the transport +endpoint, not an authenticated user; forwarding headers gain no authority from it. Observed +2026-10-31 (host only) with `seed/host/tests/peername.om` at `3a163bc5e`: omc `24caacf4…` compiles it +and the run prints `PASS native peername: accepted peer, truncation, empty slices, errno and bounds`, +exit 0; its mutant arguments 1, 2 and 3 each exit 103; prefixed with `target x86linux` it gives the +same PASS line and exits under `qemu-x86_64` 8.2.2 (EMULATED, not native x86). The previous pin +`2aec185d…` gives `omc: line 24: error 3` for that file, and compiles `peername = int 1` as a name +(at `24caacf4` that is `omc: line 2: error 16`). This supersedes the pending candidate notes of +harness draft #108 (candidate omc `4ef67f18`/`6a2916cd`). + **`execpure` and descriptor closing in `execprog`** (merged in -[omega-mv#970](https://github.com/aien-dev/omega-mv/pull/970) as `1db941627`, current main pin -`91c83438` / omc `2aec185d`). `execpure A off n` is host word 198 +[omega-mv#970](https://github.com/aien-dev/omega-mv/pull/970) as `1db941627`; in the current pin +`3a163bc5` / omc `24caacf4`; observed below with the then pin `91c83438` / omc `2aec185d`). `execpure A off n` is host word 198 (AArch64 only; `target x86linux` is error 25): it decodes the packet as `execprog` does, pins the executable as descriptor 3, applies a fixed strict stdio profile (Landlock execute/read beneath that file, no-new-privs, seven `prlimit64` ceilings, a seccomp filter allowing only `read` on 0, `write` on 1 and 2, diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md index bbda4e5..3470902 100644 --- a/skills/omega-harness/SKILL.md +++ b/skills/omega-harness/SKILL.md @@ -128,7 +128,7 @@ reference from omega-mv #919 is **MERGED** and **IMPLEMENTED / EXERCISED (host)* not QUALIFIED or DEPLOYED: train r1 [#971](https://github.com/aien-dev/omega-mv/pull/971) merged it as `f56a372aec4909f0601bb4f74ce07b066dd54cf2` ([#919 close comment](https://github.com/aien-dev/omega-mv/pull/919#issuecomment-6529992046)). -Current pin: omega-mv main `91c83438daec0bdb88bf5c077cae10f3d15d365d`. The original +Current pin: omega-mv main `3a163bc5eafa5be4b9ca97b7f17046c33f0d9032`. The original evidence pins were documentation `e79566c191ea8ef11888e69ce50d8fadf375d4fd` and clean implementation `39e89fb1c2aaed99ddc05ec565274dd05792b70f` on main `6999fa9e6`. @@ -153,7 +153,7 @@ The original run used compiler `seed/out/omc` SHA-256 `d6290c7663c2b4bafb59eb3fdf812476e977f4c144def71095c6248ef9b96b84` (receipt `neuralese/host-results.287fdc263f7af93107c378ba63c92202a0e6c1479cb1ff6971706b423b0b15fb.json`, kept unedited on main). The conductor refuses any compiler other than the pinned one, -so at main `91c83438` use the current omc SHA-256. From a fresh Linux AArch64 clone, +so at main `3a163bc5` use the current omc SHA-256. From a fresh Linux AArch64 clone, with the scratch directory absent: ```sh @@ -161,16 +161,18 @@ mkdir -p build if seed/out/omc < seed/qualification/om2/gate.om > build/neuralese-gate; then chmod +x build/neuralese-gate && build/neuralese-gate seed/out/omc \ - 2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5 \ + 24caacf463cc29c5413d5b2565ef8f88c76e60a585bbad44d2388cb1ac29abb7 \ neuralese/host.cases build/neuralese-host else exit 1 fi ``` -MEASURED 2026-10-31 at main `91c83438` (omc `2aec185d...d8d5`): -`OM2GATE PASS cases=54 pass=54 fail=0 invalid=0 not_run=0`, the same count as the -original `d6290c76` receipt. Negative control: one byte appended to +MEASURED 2026-10-31 at main `3a163bc5` (omc `24caacf4...abb7`): +`OM2GATE PASS cases=54 pass=54 fail=0 invalid=0 not_run=0` (exit 0), the same count as at +`91c83438` (omc `2aec185d...d8d5`) and in the original `d6290c76` receipt; passing `2aec185d` as the +pin hash to the same conductor gives `OM2GATE INVALID cases=54 pass=0 fail=0 invalid=0 not_run=54` +(exit 3). Earlier negative control (2026-10-31 at `91c83438`): one byte appended to `neuralese/fixtures/positive-1-7.om` gives `decode-positive-1-7 FAIL ... stdout differs at byte 128` and `OM2GATE FAIL cases=54 pass=53 fail=1`. Cases include exact decoded-source and executed-result checks, seventeen guard-removal mutant kills, @@ -270,18 +272,18 @@ MJB/MJR authority or production qualification. The independent NL6 replay is Use the target repository's documented commands. A host-only seed workflow on AArch64 Linux, in a disposable clone pinned to an exact revision, looks like this: Current main source pin (checked 2026-10-31): omega-mv -`91c83438daec0bdb88bf5c077cae10f3d15d365d` (squash of -[#965](https://github.com/aien-dev/omega-mv/pull/965), error-code registry and IR error 30, after -#946 `d94617177` and #970 `1db941627`). -`seed/omc/omc.om`: 15,952 lines, sha256 -`92eb49f35715147ccb6c6b00a96b9cb38d7f7383de14d4f6521d2e07eaad465c`; +`3a163bc5eafa5be4b9ca97b7f17046c33f0d9032` (squash of +[#857](https://github.com/aien-dev/omega-mv/pull/857), `for ... bound N`, after #967, #948, #875, +#918, #853 and #848; the list is in `omega-encoding` section 0). +`seed/omc/omc.om`: 16,422 lines, sha256 +`0ed35c70437d498cbce3deb661bb24ba4753ec16a8890450a482aaea147bca2a`; `seed/out/omc`: sha256 -`2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5`, equal to -`seed/out/omc.sha256`, and reproduced by `sh seed/omega-from-seed.sh` in a fresh clone (exit 0). -Example reruns at this compiler are in `omega-encoding` section 0. The earlier main pins -`bf54b19fa` (#923, omc `62775d2a…712b`, unchanged through `4376c2112`), `1db941627` (#970, omc -`7a8b84fc…`), the candidate pin `1fe5976d` (#911, compiler `d6290c76...6b84`) and older pins below -remain dated history. +`24caacf463cc29c5413d5b2565ef8f88c76e60a585bbad44d2388cb1ac29abb7`, equal to +`seed/out/omc.sha256`, and reproduced by `sh seed/omega-from-seed.sh` in a clean detached +worktree (exit 0). Example reruns at this compiler are in `omega-encoding` section 0. The earlier +main pins `91c83438d` (#965, omc `2aec185d…d8d5`), `bf54b19fa` (#923, omc `62775d2a…712b`, +unchanged through `4376c2112`), `1db941627` (#970, omc `7a8b84fc…`), the candidate pin `1fe5976d` +(#911, compiler `d6290c76...6b84`) and older pins below remain dated history. ```sh @@ -361,7 +363,7 @@ fi were carried over byte-identically. Merge status does not establish deployment or trusted clocks. - Record the source revision, the compiler, source and binary hashes, the exact command, the platform, expected versus observed result, and the limits. A local smoke run is not repository qualification, not a merge and not a deployment. - Pinned `aien-test` verifier sources must be built from a trusted directory outside the candidate tree (`RUNNER_TEMP` in GitHub Actions), with an explicit separate target directory. Cargo loads configuration from its current directory and ancestors even with `--manifest-path`; source pins alone do not exclude a candidate `.cargo/config.toml`. Cache dependency registries/git only, never the compiled verifier target from a candidate run. Challenge both PR and Alpha commands with a candidate rustc-wrapper and a trusted-source negative control. This workflow correction is merged in [sovereign-core #771](https://github.com/aien-dev/aien-sovereign-core-mv/pull/771), merge `2369d7c8`; that source status does not assert deployment of local verifier services. -- om/tls coverage commands (merged: omega-mv #862 `audit/tls-coverage`, landed in train #979 `4376c211`; current main `91c83438`, omc sha256 `2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5`). `sh om/tls/test/wycheproof/ledger.sh WYCHEPROOF_DIR LOGDIR` accounts for every test of every C2SP/wycheproof `testvectors_v1` file at `d17cc89f` (347 rows in `ledger.tsv`) as pass, fail, na (with the written reason), not_run or unexplained, reading `LOGDIR/SUITE.log` from the primitive suites (`aesgcm chacha sha2 x25519 ec rsa mlkem ecdh`, each `sh om/tls/test/SUITE/run.sh OMC`); exit 0 PASS, 1 FAIL (a failure, an unexplained test or a ledger error), 3 NOT_RUN (applicable tests absent). A skipped or absent suite is NOT_RUN, never a pass. `sh om/tls/test/wycheproof/ledger-nc.sh WYCHEPROOF_DIR LOGDIR` is its negative control: a deleted row, a planted `FAIL` and an altered header sha256 must each make the ledger exit 1. Observed 2026-10-31 at main `91c83438` with omc `2aec185d`, Spark cores 5-9 at nice 19: all eight suites exit 0 (`SHA2 PASS`, `CHACHA PASS`, `AESGCM PASS`, `X25519 PASS`, `EC PASS`, `RSA PASS`, `MLKEM PASS`, `ECDH PASS`, every mutant detected); `ledger.sh` exit 0 with `WYCHEPROOF-LEDGER PASS files=347 tests=145057 pass=13804 fail=0 na=131253 not_run=0 unexplained=0 errors=0`; `ledger-nc.sh` exit 0, each of row, fail and header `rc=1 detected`; control: `ledger.sh` with an empty LOGDIR exits 3 (`WYCHEPROOF-LEDGER NOT_RUN ... pass=0 ... not_run=13804`). `sh om/tls/test/bogo/run.sh OMC BORINGSSL_DIR GO` builds the pure-.om BoGo client shim and the pinned BoringSSL runner (`om/tls/test/bogo/PINS`: commit, Go version, URL and sha256; Go is a test oracle only) and prints `BOGO-RESULTS tests= pass= fail= na= skip=` plus `na-reason`/`fail-reason` lines. `na` is only two runner-side refusals of a TLS 1.3-only client (`tls12-only`: runner MaxVersion below TLS 1.3; `record-301`: BoringSSL demands 0x0301 on the initial record, which RFC 8446 5.1 does not require); na is never counted as a pass. The runs use `-loose-errors`, so expected-failure tests pass on any error; the negative control therefore re-runs passing candidates without `-loose-errors`, keeps only success-expecting ones, runs them against an echo-corrupting shim and requires `BOGO-NC ... still_pass=0`. Exit 0/1/3 as above. The runner's leaf certificates have an empty subject with a non-critical SAN, which `x509.om` refuses per RFC 5280 4.2.1.6, so run.sh applies `runner-critical-san.patch` to the runner fixture by default; with `BOGO_UNPATCHED=1` handshakes using those leaves fail with `X509_ERR_MALFORMED` (an explained policy difference, not a pass). The BoGo run was not rerun for this refresh (NOT_RUN): heavy runs go to GitHub `ubuntu-24.04-arm` runners, not the Spark. +- om/tls coverage commands (merged: omega-mv #862 `audit/tls-coverage`, landed in train #979 `4376c211`; observed at main `91c83438`, omc sha256 `2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5`, the pin before the current `3a163bc5`; not rerun at `24caacf4`). `sh om/tls/test/wycheproof/ledger.sh WYCHEPROOF_DIR LOGDIR` accounts for every test of every C2SP/wycheproof `testvectors_v1` file at `d17cc89f` (347 rows in `ledger.tsv`) as pass, fail, na (with the written reason), not_run or unexplained, reading `LOGDIR/SUITE.log` from the primitive suites (`aesgcm chacha sha2 x25519 ec rsa mlkem ecdh`, each `sh om/tls/test/SUITE/run.sh OMC`); exit 0 PASS, 1 FAIL (a failure, an unexplained test or a ledger error), 3 NOT_RUN (applicable tests absent). A skipped or absent suite is NOT_RUN, never a pass. `sh om/tls/test/wycheproof/ledger-nc.sh WYCHEPROOF_DIR LOGDIR` is its negative control: a deleted row, a planted `FAIL` and an altered header sha256 must each make the ledger exit 1. Observed 2026-10-31 at main `91c83438` with omc `2aec185d`, Spark cores 5-9 at nice 19: all eight suites exit 0 (`SHA2 PASS`, `CHACHA PASS`, `AESGCM PASS`, `X25519 PASS`, `EC PASS`, `RSA PASS`, `MLKEM PASS`, `ECDH PASS`, every mutant detected); `ledger.sh` exit 0 with `WYCHEPROOF-LEDGER PASS files=347 tests=145057 pass=13804 fail=0 na=131253 not_run=0 unexplained=0 errors=0`; `ledger-nc.sh` exit 0, each of row, fail and header `rc=1 detected`; control: `ledger.sh` with an empty LOGDIR exits 3 (`WYCHEPROOF-LEDGER NOT_RUN ... pass=0 ... not_run=13804`). `sh om/tls/test/bogo/run.sh OMC BORINGSSL_DIR GO` builds the pure-.om BoGo client shim and the pinned BoringSSL runner (`om/tls/test/bogo/PINS`: commit, Go version, URL and sha256; Go is a test oracle only) and prints `BOGO-RESULTS tests= pass= fail= na= skip=` plus `na-reason`/`fail-reason` lines. `na` is only two runner-side refusals of a TLS 1.3-only client (`tls12-only`: runner MaxVersion below TLS 1.3; `record-301`: BoringSSL demands 0x0301 on the initial record, which RFC 8446 5.1 does not require); na is never counted as a pass. The runs use `-loose-errors`, so expected-failure tests pass on any error; the negative control therefore re-runs passing candidates without `-loose-errors`, keeps only success-expecting ones, runs them against an echo-corrupting shim and requires `BOGO-NC ... still_pass=0`. Exit 0/1/3 as above. The runner's leaf certificates have an empty subject with a non-critical SAN, which `x509.om` refuses per RFC 5280 4.2.1.6, so run.sh applies `runner-critical-san.patch` to the runner fixture by default; with `BOGO_UNPATCHED=1` handshakes using those leaves fail with `X509_ERR_MALFORMED` (an explained policy difference, not a pass). The BoGo run was not rerun for this refresh (NOT_RUN): heavy runs go to GitHub `ubuntu-24.04-arm` runners, not the Spark. ### SPIR-V OpenCL Kernel backend diff --git a/skills/writing-omega/SKILL.md b/skills/writing-omega/SKILL.md index 4433c75..b01a09f 100644 --- a/skills/writing-omega/SKILL.md +++ b/skills/writing-omega/SKILL.md @@ -14,8 +14,8 @@ For compiler internals, register rules, wire formats and the reasons behind each | Pin | Value | |---|---| -| omega-mv commit | `91c83438daec0bdb88bf5c077cae10f3d15d365d` | -| compiler `seed/out/omc` | sha256 `2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5` | +| omega-mv commit | `3a163bc5eafa5be4b9ca97b7f17046c33f0d9032` | +| compiler `seed/out/omc` | sha256 `24caacf463cc29c5413d5b2565ef8f88c76e60a585bbad44d2388cb1ac29abb7` | | language reference | `docs/one_layer/OMEGESE.md` at that commit | | host | Linux AArch64 only; omc writes a static AArch64 Linux ELF | @@ -26,7 +26,7 @@ decides; this guide records the known disagreements. ```sh git clone https://github.com/aien-dev/omega-mv && cd omega-mv -git checkout 91c83438daec0bdb88bf5c077cae10f3d15d365d +git checkout 3a163bc5eafa5be4b9ca97b7f17046c33f0d9032 sha256sum seed/out/omc # must print the pinned hash sh seed/omega-from-seed.sh # optional: rebuild omc from the 408-byte loader seed/out/omc < prog.om > prog; echo "compile $?" @@ -103,7 +103,7 @@ Every declaration and statement form at the pin (OMEGESE sections 9 to 12 are th | `put A i v`, `put p f v` | function body | store into an array element or a field | | `f v1 v2 ...` | function body | a call to a `void` function | | `if C` ... `else` ... `end` | function body | `else` is optional; no `else if` | -| `while C bound N` ... `end` | function body | N 1..999999 | +| `while C bound N` ... `end` | function body | N 1..9223372036854775807 (IR mode 1..1000000) | | `for i T K` ... `end` | function body | `unroll` after K in OM-2, K 1..64 | | `break`, `continue` | inside a loop | | | `ret`, `ret v` | function body | `ret v` in a function with a result | @@ -187,10 +187,12 @@ A trap ends the process with exit status 100 + N. Output already written stays w ## 6. Loops and bounds -- `while COND bound N` runs the body at most N times, N 1..999999 (error 8 outside). Without - `bound` the limit is 1000000. One more pass traps 4. Choose N from an argument you can write down - in a `note`, for example "every pass consumes at least one byte of a 65536-byte input". -- `for i T K` runs i from 0 to K-1. `for` takes no `bound` (error 5); K is the limit. +- `while COND bound N` runs the body at most N times, N 1..9223372036854775807 (error 8 outside; + IR mode 1..1000000). Without `bound` the limit is 1000000. One more pass traps 4. Choose N from + an argument you can write down in a `note`, for example "every pass consumes at least one byte of + a 65536-byte input". +- `for i T K` runs i from 0 to K-1. `for i T K bound N` takes the same N as `while` and traps 4 + when K exceeds N (`for_bound.om`, `trap4_for_bound.om`). - `break` and `continue` work in both loops. There is no `else if`: nest an `if` inside `else`. - No loop runs forever and recursion is bounded by the stack. @@ -296,7 +298,7 @@ with its exact stderr line in the matching `.expect`, except 24, which needs a g | 5 | words left after a complete statement | `err05_extra_words` | count each word's values; there is no infix | | 6 | malformed number | `err06_bad_number` | decimal digits; hex only in OM-2, lowercase | | 7 | type mismatch | `err07_type_mismatch` | convert with a type word: `add int 1 int u` | -| 8 | number out of range | `err08_out_of_range` | a literal that fits its type; a bound 1..999999; a trap code 1..14 | +| 8 | number out of range | `err08_out_of_range` | a literal that fits its type; a bound 1..9223372036854775807 (IR mode 1..1000000); a trap code 1..14 | | 9 | a word in a place where it is not allowed | `err09_disallowed` | move it: `new` only in a function's outermost block, `struct` before the first `fn` | | 10 | duplicate name | `err10_duplicate` | choose a name that is not visible, not a function, not a struct | | 11 | a number with nothing to give it a type | `err11_ambiguous` | `x = uint 5` | @@ -355,8 +357,8 @@ Each row is a program in `examples/` with its observed refusal. | `return x` | `ret x` | error 18 (silent assignment) | `mistake_return.om` | | `else if c` | `else`, then a nested `if c` | error 5 | `mistake_else_if.om` | | `fn main argc int to int` | `argcnt`, `argread` | error 9 | `mistake_main_args.om` | -| `for i ulong n bound 10` | `while lt i n bound 10` | error 5 | `mistake_for_bound.om` | -| `while c bound 1000000` | a bound 1..999999 | error 8 | `mistake_bound_range.om` | +| `while c bound 9223372036854775808` (or `bound 0`) | a bound 1..9223372036854775807 | error 8 | `mistake_bound_range.om` | +| `ir` unit with `while c bound 1000001` | an IR bound 1..1000000 | error 8 | `mistake_ir_bound.om` | | `a = new uchar n 0` | a literal or `const` length | error 16 | `mistake_new_var_len.om` | | `free a` | nothing: no heap | error 9 | `mistake_free.om` | | `len = ...` | another name | error 16 | `mistake_reserved_name.om` |