Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-harness/patches/81e6da96ad5089b2 # omega-harness Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/omega-harness#143 (code only) closed derived `81e6da96ad5089b2` #143 Imported from GitHub aien-dev/omega-harness#143 (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 `68eaa3c49b87f0137fb72ed2fd36f197a96d82c0` · Head `39d3f59316e7f6cdf232c905c63a716b2950fc26` ### Apply it ``` git checkout -b patch-81e6da96ad5089b2 68eaa3c49b87f0137fb72ed2fd36f197a96d82c0 curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/81e6da96ad5089b2.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 143 39d3f59316e7f6cdf232c905c63a716b2950fc26 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":143,"url":"https://github.com/aien-dev/omega-harness/pull/143","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 89a3538..eaf8dd0 100644 --- a/skills/omega-encoding/SKILL.md +++ b/skills/omega-encoding/SKILL.md @@ -19,23 +19,35 @@ The quantity and diagnostic audit is merged through omega-mv #914 at main `d94a503f7aae57d09697046405da2e9a5895be6d`. The older candidate observations below remain dated history, not claims about the newer integration. -### Current main pin (checked 2026-10-29) +### Current main pin (checked 2026-10-31) | Item | Value | |---|---| | Repository | `github.com/aien-dev/omega-mv`, branch `main` | -| Commit | `bf54b19fa590e8ae925c0e80815516dbf41e7326` (merge of #923, 2026-10-28) | -| Compiler source `seed/omc/omc.om` | 15,624 lines, sha256 `96d51b63c8f451661ac715395078e04f39195e50c9e8fe37746cda121e4d7a1e` | +| Commit | `4376c2112d7469b6908c6403720c9001de4622b5` (squash of #979, Train r3, 2026-10-31) | +| Compiler source `seed/omc/omc.om` | 15,624 lines, 512 `^fn ` lines, sha256 `96d51b63c8f451661ac715395078e04f39195e50c9e8fe37746cda121e4d7a1e` | | Compiler `seed/out/omc` | sha256 `62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b` (equals `seed/out/omc.sha256`; last `seed/omc/size-history.tsv` row `FR9-acceptance-fixes`) | | Seed loader `seed/rung0/seed0.hex` | sha256 `baaf081fe6055a768485c5d25d7435681ce00b04cfa80b26c48169f78944e14d` | -Hashes were read with `git show origin/main: | sha256sum`; the compiler was not rebuilt -for this note. Both guide examples were rerun on 2026-10-29 with that `seed/out/omc` on a -Linux AArch64 host: `fnv1a32.om` compiled with exit 0 and empty stderr, and `abc` gave -`0b e9 47 1a`, exit 0; `trap_narrow.om` compiled with exit 0 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` compiled with exit 0 to an x86-64 static ELF that printed -`0b e9 47 1a` with exit 0 under `qemu-x86_64` 8.2.2: EMULATED, not native x86. +No commit between `bf54b19fa` (#923, 2026-10-28) and `4376c2112` changes the compiler: +`git diff --quiet 62d1d0d66 4376c2112 -- seed/omc/omc.om seed/omc/gate12.sh seed/out seed/rung0 seed/rung4 seed/omega-from-seed.sh` +exits 0, so the `omc.om`, `om4.s` and seed-script line links below, written at `62d1d0d66`, still +describe main. Hashes were read from a clone at `4376c2112` with `sha256sum`. On 2026-10-31, +`sh seed/omega-from-seed.sh` there exited 0 and rebuilt `seed/out/omc` with sha256 exactly +`62775d2a…712b`, and `seed/rung4/om4.bin` (sha256 `d0da40e4…19efab`) alone compiled that `omc.om` +with exit 0 to a 477,612-byte binary with the same sha256. Both guide examples were rerun on +2026-10-31 with that `seed/out/omc` on a Linux AArch64 host (results identical to the 2026-10-30 +run at `62d1d0d66`): `fnv1a32.om` compiled with exit 0 and empty stderr; `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 ran with exit 105; deleting only its unmasked store (negative control) changed the run exit +to 44. Earlier (2026-10-29, same binary) the same `fnv1a32.om` prefixed with `target x86linux` +compiled with exit 0 to an x86-64 static 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 `62775d2a…`; for main, run `git show main:seed/out/omc` +directly. ### x86 integration as tested before merge (observed 2026-10-28) @@ -60,6 +72,27 @@ contracts", source `7ab5fdd0`, QEMU, EMULATED) reported 15179 PASS, 4 NOT_RUN, `00ebdee8` then passed the two text-write cases (5 PASS), leaving two invalid-fd ioctl cases unrun. Merged in source; not native x86 qualification. +**Error 25 on x86 at main `62d1d0d66` (observed 2026-10-30, compile only; rechecked 2026-10-31 at `4376c2112`).** `docs/X86-LINUX.md` +([#L201-L202](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/docs/X86-LINUX.md#L201-L202)) +defines error 25 as an unsupported target/emission path. In `seed/omc/omc.om` at that commit it is +raised by the target-line parser for any `target` word other than `x86linux` +([#L15549-L15550](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/omc/omc.om#L15549-L15550); +`target x86efi` gives `omc: line 1: error 25`), by `emit` when a nondefault target reaches the +AArch64 emitter ([#L571-L574](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/omc/omc.om#L571-L574)), +by `hostval`, `xhost` and `xio` on a target mismatch +([#L6807-L6809](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/omc/omc.om#L6807-L6809), +[#L14663-L14665](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/omc/omc.om#L14663-L14665), +[#L15398-L15400](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/omc/omc.om#L15398-L15400)), +and by the `xcc` condition-code fallthrough ([#L14841](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/omc/omc.om#L14841)). +The device and mapping words 166..177 are **not** refused on x86: `xhost` dispatches them to x86 +helpers (`xhdev`, `xhmnew`, `xhmbind`, `xhmdrop`, `xhmcopy`, `xhmmio`; +[#L14679-L14707](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/omc/omc.om#L14679-L14707)). +`seed/host/tests/device.om`, `mapping.om` and `devcall.om`, each prefixed with `target x86linux`, +compiled with exit 0 to x86-64 ELF files with main's omc, at `62d1d0d66` and again at `4376c2112` +(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). + ### Historical quantity/check/next candidate (observed 2026-10-28) | Item | Value | @@ -620,7 +653,7 @@ From OMEGESE section 3 and 4 ([#L58-L60](https://github.com/aien-dev/omega-mv/bl - No loop runs forever and recursion is bounded by the 8 MiB stack. A long-running service needs an explicit epoch/restart design, not a bigger bound. -### Compiler limits checked at main `bf54b19fa` (2026-10-29) +### Compiler limits checked at main `bf54b19fa` (2026-10-29; compiler unchanged at `62d1d0d66` and `4376c2112`) Checked with main's `seed/out/omc` (sha256 `62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b`) and `seed/rung4/om4.bin` (`d0da40e4…19efab`) on the Linux AArch64 host; facts 2, 3, 5 and 6 were also @@ -638,11 +671,34 @@ reproduced with the omega MCP `run` tool (pin `e5b32567`, compiler `2c824805…0 - **Hex.** OM-1 rejects `0x10` with error 6; under `om2` the same unit compiles and exits 16. - **x86 target.** A first line exactly `target x86linux` emits an x86-64 ELF; with a leading space it is error 16. -- **om4 function cap (contributors to `omc.om`).** om4, which compiles the first `omc` from - `seed/omc/omc.om`, accepts at most 511 functions plus `main`. Main's `omc.om` has exactly 512 - `^fn ` lines, so it is full: adding one function makes `om4 < omc.om` print - `om4: line 15610: error 14` and the seed chain breaks. Fold single-call helpers into their caller, - or extend om4, before adding any function. Check with `grep -c '^fn ' seed/omc/omc.om`. +- **om4 function cap: 512 functions in `omc.om` itself (contributors to the compiler).** Rechecked at + main `62d1d0d66` on 2026-10-30 and at main `4376c2112` on 2026-10-31 (same `omc.om` and `om4.bin`, + same results). om4 is the seed rung that compiles `seed/omc/omc.om` into the first + `omc` (`seed/omega-from-seed.sh` + [#L43-L46](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/omega-from-seed.sh#L43-L46)). + Its function table is 128-byte entries at `0x1840000` + ([om4.s#L45](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/rung4/om4.s#L45)), + and a new function is refused with `E_FULL` (error 14) once 512 are recorded + ([om4.s#L768-L769](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/rung4/om4.s#L768-L769), + `cmp.x.i x10 512` / `b.hs E_FULL`; [#L3073-L3075](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/rung4/om4.s#L3073-L3075)). + 512 entries x 128 bytes fill exactly `0x1840000..0x1850000`, where the state slots begin + (Wolfram `IntegerString[16^^1840000 + 512*128, 16]` -> `1850000`). Main's `omc.om` has exactly 512 + `^fn ` lines (`main` included), so it is full. Observed: om4 compiled main's `omc.om` with exit 0; + the same file plus one three-line function gave `om4: line 15625: error 14`, exit 14, and the seed + chain stops there. Any omc change that adds a function must fold or remove another one (#875 inlines + `dit`/`scrub` for this reason, its `omc.om` note at L7275-L7276 on head `efd1b4e0`). On 2026-10-30 + a clean `git merge-tree` of main with draft + [#817](https://github.com/aien-dev/omega-mv/pull/817) (head `d0d794d0`) has 532 functions and with + draft [#832](https://github.com/aien-dev/omega-mv/pull/832) (head `707faca6`) 526, so both are + blocked until 20 and 14 functions are folded (Wolfram `{532-512, 526-512}` -> `{20, 14}`) or the cap + is raised. Raising the om4 cap changes a seed rung and is Drake's decision, not a contributor's. + Check before every compiler PR: `grep -c '^fn ' seed/omc/omc.om` must print at most 512. +- **Do not confuse it with omc's cap on user programs.** The compiled `omc` holds 4096 functions per + program ([omc.om#L116-L118](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/omc/omc.om#L116-L118), + refusal [#L7809-L7810](https://github.com/aien-dev/omega-mv/blob/62d1d0d668f897386a0e311374f8dbcc5c32dde8/seed/omc/omc.om#L7809-L7810); + gated by `seed/omc/gate12.sh`, 4095 helpers plus `main` accepted, 4096 plus `main` error 14). The + "1024 functions" in omega-harness issue #9 described omc on branch `feat/allen-imac-competition` + (`7eca2ac3f`, 2026-10-25), not om4 and not current main. ## 9. Host I/O: counts, errors, evidence diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md index f32c4a4..666d0ad 100644 --- a/skills/omega-harness/SKILL.md +++ b/skills/omega-harness/SKILL.md @@ -154,6 +154,7 @@ fi - Rebuilding with `sh seed/omega-from-seed.sh` rewrites tracked files, including `seed/out/omc.sha256`. Record the expected digest independently beforehand; the rewritten sidecar is not a trust anchor. A self-rebuild fixpoint proves consistency, not correctness and not diverse compilation (diverse double compilation is not on main; omega-mv issue #650 is open). At source `ec07d25d5506d33567adbd4d9b518177b7933bad` on 2026-10-26, the seed gate reproduced `499236398aabc652e2dae27fe4bdc4c5db3d3726314356e0dbef23e3345803ec`. Main later used `befb8199db8c4bca188a494dfaac2a6f0ee5c36fcea11188c75666c55fce8a1d`. Main `91b3c9326919faf1491e29ae9276929e8349b8c7` carried batch compiler `189ada82e00bb440cb41351bd252cc68c54a1b1050051cc42a1df700081c3b54` (contracts, capacity and f32 returns); its host qualification is `evidence/BATCH-189ada82/README.md`. - Gate5 bookkeeping for any compiler change: since main `91b3c932`, `seed/omc/gate5.sh` writes current outputs to `build/seed/r5/evidence/`, never to immutable `evidence/SEED-0/omc/`. The living ledger `seed/omc/size-history.tsv` keeps the old history byte for byte, then one tab-separated row per compiler change (`rewrite change source_lines functions words sha256`). At `91b3c932` the last row is `RM2-capacity-f32` (`189ada82…`). Gate5 checks that the last row's sha256 equals the freshly built `omc`, and it never appends a row itself. So a compiler change adds exactly one row by hand, with values measured from the new build, in the same commit as the change. Never edit an older row to make the check pass, and never point the check back at `evidence/SEED-0`. - Merged (2026-10-29): omega-mv#904 merged at `e2662fffbce1c21ef09da71c0d8808133a6af8ab`, carrying the source tested on 2026-10-28 at `7bce2a4fddc43268ac2af09cddc4a5a67d78312d`, compiler `1811d4047f118440cc35e995261af6768b606148cb17e18c42158afd15fcad58` (row `RM-batch3-current`, #896 #897 #898 #903). Main then moved to `62775d2a...712b` (row `FR9-acceptance-fixes`) with #923; at main `bf54b19f` the gate scripts below and `om/units.sh` pin `62775d2a`. The original `397346de` evidence stays historical. A reseed must also move compiler pins in `seed/json/tests/gate-json.sh`, `seed/wasm/gate-irwasm.sh` and `seed/spirv/gate-irspirv.sh`; TLS suites read `OMC_PIN` from `om/units.sh`. The seed/GATE5, current-language and diagnostic checks passed at the tested source. The integration also repairs `s2/mut/cyc.from` and `.to` to preserve the newer `check`/`next` prelude: before repair exact-once substitution matched zero times; after repair the same prohibited-recursion case catches the faulty compiler. An INVALID mutation setup is never a caught fault. Frozen C2 still has its six historical failures, while the separate capacity and batch2 manifests pass; do not call that frozen corpus PASS. +- Pin sites to move together when `seed/out/omc` changes (checked at main `4376c2112d7469b6908c6403720c9001de4622b5`, 2026-10-31; every site there holds `62775d2a…712b`; list them with `git grep -l -- ':!evidence'` and read each hit): `seed/out/omc` and `seed/out/omc.sha256:1`; one new `seed/omc/size-history.tsv` row; `om/units.sh:21` `OMC_PIN=` (enforced at :30 with `NOT_RUN: omc is not the pinned compiler`, exit 3); the files `om/units.sh` regenerates and `--check` compares (`src/omega_om_units.c:196`, `src/omega_native.h:18`, `src/omega_om_units.ident:1-3`, per its header :7-17); the parity runners' `OMC_PIN=` lines, each refusing with exit 3 on a mismatch: `om/evidence/parity/run.sh:14` (added by #761, checked at :19), `om/aarch64/parity/run.sh:15` (:20), `om/codec/parity/run.sh:12` (:17), `om/gpumath/parity/run.sh:13` (:18), `om/receipt/parity/run.sh:14` (:19); the IR gates: `seed/json/tests/gate-json.sh:9` `PIN=${JSON_OMC_PIN:-…}` (checked at :17), `seed/equiv/gate-irequiv.sh:9` `PIN=` (:10), `seed/nki/gate-irnki.sh:22` `pin=` (:24), `seed/spirv/gate-irspirv.sh:24` `pin=` (:26), `seed/stablehlo/gate-irstablehlo.sh:22` `pin=` (:23), `seed/tensix/gate-tensix.sh:33` `OMC_PIN=` (:86), `seed/wasm/gate-irwasm.sh:11` `pin=` (:12); `native/orig4/orig4.pin:14` `omc` (checked by `tests/orig4/run.sh:67`); plus prose mentions such as `om/evidence/README.md:62`, `om/receipt/README.md:64`, `om/quantity/README.md:45` and `neuralese/README.md`. Between `62d1d0d66` (2026-10-30, 11 files outside `evidence/` named the digest) and `4376c2112` (42 files), the train merges #971 (`f56a372ae`) and #972 (`f5c9bd89a`) added the aarch64, codec, gpumath and receipt parity runners, the equiv, nki, stablehlo and tensix gates and `orig4.pin`. Precedents: #923's merge `bf54b19fa` moved all of these that existed then, and `82a399b9f` ("build(omc): batch 2 pin 2c824805") moved the `om/units.sh`, `src/` and `seed/out` subset. A draft that still adds `seed/spirv/gate-vkspirv.sh:29` `pin=` (omega-mv#876 head `8a1126f2`, open on 2026-10-31) adds one more site when it lands. Produce the new digest only with `sh seed/omega-from-seed.sh`, which runs om4 then stage1..stage3 and refuses unless stage2 equals stage3 (`seed/omega-from-seed.sh:43-60`, `PASS omc fixpoint`); a self-fixpoint is still consistency, not correctness. A PR branched before #761 (for example omega-mv#918, base `6999fa9e6`) or before #971 lacks some of these sites, and its stale pins elsewhere must be caught when it is brought up to date. - At main `bf54b19f` (and the earlier candidate pin), `bash tests/gates/run.sh seed` also invokes `sh seed/omc/gate5.sh` after the seed build and host checks. Keep one size-history row for each distinct compiler change: the qty compiler and the check/next ```