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

Comparing f8561115745c6db7a1d7bc8bf5c0e89f228c503c ... 5eb9dc53978eecb222b7b0e4d05aaec4043e2556

12 files changed, +94 -6

AGENTS.md+3-1
README.md+2-2
examples/TILELAB.md+38-0
examples/err20_pread_text.expect+2-0
examples/err20_pread_text.om+8-0
examples/pwrite_text.expect+2-0
examples/pwrite_text.om+29-0
examples/pwrite_text.stdout+1-0
rules/rules.txt+1-1
skills/aien-repositories/SKILL.md+4-0
skills/omega-encoding/SKILL.md+1-1
skills/writing-omega/SKILL.md+3-1

AGENTS.md

@@ -2,6 +2,8 @@
22
33 Operating instructions for an agent working in this repository. Read this before editing a skill.
44
5+Omega Harness supports local Omega and four external providers: Claude, Codex, Grok and Muse. Use this list for worker selection, setup and qualification.
6+
57 **Standing rules (Drake, 2026-11-11).** Interplane (https://interplane.io, serving the Radicle
68 repositories) is the only forge and the canonical source: never push to a GitHub remote, open or update
79 a GitHub PR or issue, publish with `gh`, or cite a GitHub branch as current state. New work is a new
@@ -38,7 +40,7 @@ more. `examples/gate.sh OMC` checks the compiler hash against `PIN` and reruns e
3840 `examples/` and `skills/*/examples/`; run it after any change to an example or a language rule.
3941
4042 <!-- gen:examples -->
41-`examples/gate.sh` reruns 130 programs: 125 in `examples/` and 5 in `skills/*/examples/`.
43+`examples/gate.sh` reruns 132 programs: 127 in `examples/` and 5 in `skills/*/examples/`.
4244 <!-- /gen:examples -->
4345
4446 `PIN` is the one place the compiler pin is written. `data/reference.tsv` is omega-mcp's reference data

README.md

@@ -130,7 +130,7 @@ mistakes, the known defects, and `execenv`. `examples/gate.sh` refuses any compi
130130 in [`PIN`](PIN), then compiles and runs every program here and in `skills/*/examples/`:
131131
132132 <!-- gen:examples -->
133-`examples/gate.sh` reruns 130 programs: 125 in `examples/` and 5 in `skills/*/examples/`.
133+`examples/gate.sh` reruns 132 programs: 127 in `examples/` and 5 in `skills/*/examples/`.
134134 <!-- /gen:examples -->
135135
136136 <!-- gen:pin -->
@@ -154,7 +154,7 @@ It prints `PASS name` or `FAIL name: reason` per program and ends with a line li
154154
155155 <!-- gen:gateline -->
156156 ```text
157-GATE PASS examples=130 pass=130 fail=0 omc=26540e6de62402d5784b30b24d7c6faae488137c1f8a4b3e784fd0b5d5528991
157+GATE PASS examples=132 pass=132 fail=0 omc=26540e6de62402d5784b30b24d7c6faae488137c1f8a4b3e784fd0b5d5528991
158158 ```
159159 <!-- /gen:gateline -->
160160

examples/TILELAB.md

new file mode 100644
@@ -0,0 +1,38 @@
1+# Reproduce the Omega TileLab checks
2+
3+On Linux AArch64, use a fresh checkout. The first command sequence rebuilds the compiler from the seed, checks the compiler digest and runs the tile planner and streaming row-softmax cases.
4+
5+```sh
6+git clone https://interplane.io/projects/omega-mv/repo.git omega-tilelab
7+cd omega-tilelab
8+git checkout --detach 3086ed3ca1061b2625a48d175cd5ac990e783655
9+sh seed/omega-from-seed.sh && sh seed/tilelab/gate.sh
10+```
11+
12+The host gate compares 24 cases, rejects three deliberately incorrect softmax implementations and challenges two input checks. Inspect a GEMM plan with `build/seed/tilelab/tilelab 1 1024 1024 1024` and the row-softmax reduction with `build/seed/tilelab/tilelab 2 0`. The GEMM planner reports candidate tile shapes and resource estimates. It does not execute a GPU kernel. The algebra, traffic model, assumptions about operand reuse and independent reference values are in `seed/tilelab/WOLFRAM.md`. Reuse across GEMM rows differs from reading weights for a single row.
13+
14+## Physical GB10 comparison
15+
16+From a separate directory, obtain the measured CUDApp sources and receipts.
17+
18+```sh
19+git clone https://interplane.io/projects/CUDApp/repo.git tilelab-cudapp
20+cd tilelab-cudapp
21+git checkout --detach 21d8de285f713adf09e0d6ba6db2b37139d0674e
22+cat evidence/TILELAB-20261028/README.md
23+```
24+
25+Read `02-quiet-ab.json` in that evidence directory for the interleaved comparison against the CUDApp default. The shared-window smoke runs establish correctness only. The recorded planner configuration won on 8192 cubed and lost on 2048 by 8192 by 2048. Those are kernel measurements. End-to-end application speed remains unmeasured by that test.
26+
27+For a new physical run, reserve an exclusive GB10 window. Without one, record NOT_RUN and leave resident jobs running. Use the build flags, binary and library hashes in the receipt README, and the shapes, configurations and rounds in the raw receipt. The physical test uses the C driver in `tests/gpu_tilelab_test.c` and `libomega_gpu.a`. Replacing this path requires an Omega driver that reproduces the oracle comparisons, refusals and chip mutant detections on hardware. The host test exercises the seeded Omega planner and algebra only.
28+
29+With an exclusive window and a fresh CUDApp checkout, this runs the four recorded arms and writes a new receipt. A new build can produce different binary hashes. Retain them with the receipt.
30+
31+```sh
32+make build/libomega_gpu.a &&
33+gcc -O2 -std=gnu11 -Wall -Isrc -ffp-contract=off tests/gpu_tilelab_test.c build/libomega_gpu.a -lpthread -lm -o build/tilelab-gb10 &&
34+sha256sum build/tilelab-gb10 build/libomega_gpu.a &&
35+build/tilelab-gb10 --shapes '1024,1024,1024;4096,4096,4096;2048,8192,2048;8192,8192,8192' --cfg plan:2,4,4,4,8 --cfg t64x64:1,2,4,4,8 --cfg t64x128:1,4,4,4,8 --rounds 25 --out build/tilelab-gb10.json
36+```
37+
38+KernelFlow M1 and its tile extension landed in omega-mv at `e4f9f9c58` and `f0cc9d6a5`. The native TileLab gate above uses neither an Omegese C1 extension nor an external compiler. Its result certifies only the cases it runs.

examples/err20_pread_text.expect

new file mode 100644
@@ -0,0 +1,2 @@
1+compile 20
2+stderr omc: line 6: error 20

examples/err20_pread_text.om

new file mode 100644
@@ -0,0 +1,8 @@
1+note err20_pread_text: pread writes its array, so pread into a text is error 20, as for read.
2+note pwrite from the same text compiles (pwrite_text.om). Up to omc 2c824805 (omega-mv e5b32567)
3+note the two words were reversed: this compiled and pwrite from a text was error 20.
4+text t "abc"
5+fn main to int
6+r = pread 0 t 0 3 0
7+ret 0
8+end

examples/pwrite_text.expect

new file mode 100644
@@ -0,0 +1,2 @@
1+compile 0
2+exit 0

examples/pwrite_text.om

new file mode 100644
@@ -0,0 +1,29 @@
1+note pwrite_text: pwrite only reads its array, so a text is a valid source (omega-mv #904, e2662fff).
2+note pread writes its array, so its destination must be writable: a global here (err20_pread_text.om
3+note is the text case). Up to omc 2c824805 (omega-mv e5b32567) the check sat on the wrong word and
4+note this program was error 20 at the pwrite line. Run in an empty scratch directory; Linux AArch64
5+note O_RDWR|O_CREAT|O_EXCL = 194, mode 0600 = 384.
6+text fname "f.bin"
7+text body "pwrite\n"
8+global rb uchar 16
9+fn main to int
10+fd = fopen fname 0 len fname 194 384
11+if lt fd 0
12+exit 90
13+end
14+w = pwrite int fd body 0 len body 0
15+if ne w long len body
16+exit 91
17+end
18+r = pread int fd rb 0 len body 0
19+if ne r long len body
20+exit 92
21+end
22+k = write 1 rb 0 ulong r
23+c = fclose int fd
24+u = unlink fname 0 len fname
25+if ne u 0
26+exit 93
27+end
28+ret 0
29+end

examples/pwrite_text.stdout

new file mode 100644
@@ -0,0 +1 @@
1+pwrite

rules/rules.txt

@@ -34,7 +34,7 @@ order 23
3434 | ## No review desk: review your own work with another provider's model (Drake, 2026-11-11)
3535 | Drake: "we no longer have a review desk assignment. Anyone can take acting control of review desk at any time to match with the decentralized nature now that we are out of github." and "get rid of review desk and we should ALL be doing our own reviews and spinning up subagents of a different provider to do the review to keep it honest."
3636 | - There is no review desk and no reviewer assignment. Nothing waits for a desk, a queue or a named reviewer, and no file, tool or ledger line may require one. Any agent may review or land any ready head at any time.
37-| - The lane that wrote a change gets it reviewed itself, before landing. It starts a reviewer subagent on a model from a different provider than the model that wrote the change (work written by a Claude model is reviewed through Codex or Gemini, and the other way round). The reviewer gets the exact head, the base, the task in the operator's words and these rules, never the author's conclusions.
37+| - The lane that wrote a change gets it reviewed itself, before landing. It starts a reviewer subagent on a model from a different provider than the model that wrote the change (work written by a Claude model is reviewed through Codex, and the other way round). The reviewer gets the exact head, the base, the task in the operator's words and these rules, never the author's conclusions.
3838 | - The verdict is a file that names the exact head, the reviewer's program and model, and each finding. The author fixes each finding or answers it in writing in that file's reply; a changed head is reviewed again. The landing receipt names the verdict file. A REJECT, or a finding neither fixed nor answered, stops the landing.
3939 | - A review by the author, or by a model of the author's own provider, is not the independent review.
4040 end

skills/aien-repositories/SKILL.md

@@ -82,6 +82,10 @@ Component code and reproducible evidence win for what actually runs. Architectur
8282
8383 Names below are catalog slugs; the `https://github.com/aien-dev/` links are frozen historical citations (see "Where the code lives"). Resolve each repository's canonical copy by RID in the Radicle registry. These are ownership routes, not deployment assertions.
8484
85+Route `mining,pearl=omega-pearl` to the private repository for the PRL protocol, payout verification and mining pipeline. Route GPU code generation to CUDApp and compiler changes to omega-mv.
86+
87+For the native tile planner, host controls and GB10 receipts, see the [TileLab reproduction guide](../../examples/TILELAB.md).
88+
8589 ### Core foundations
8690
8791 Ownership rule for the Omega/GPU/compatibility trio (Drake's forwarded omega-bridge assessment, 2026-10-27; [ADR 0042](https://github.com/aien-dev/aien-architecture-mv/blob/main/docs/adr/0042-omega-cudapp-bridge-ownership.md), Accepted by Drake 2026-10-30, merged as [aien-architecture-mv#342](https://github.com/aien-dev/aien-architecture-mv/pull/342) `6b924d4f8e`): **Omega owns computation. CUDApp owns GPU execution. Omega Bridge owns compatibility.** Route new work by that rule, not by where a copy happens to live today. Known copies outside their owner, each with its owner's issue (all open at 2026-10-31): GPU C in omega-mv `src/` ([CUDApp#106](https://github.com/aien-dev/CUDApp/issues/106)), driver client in physics-mv ([CUDApp#107](https://github.com/aien-dev/CUDApp/issues/107)), a second cubin writer ([CUDApp#108](https://github.com/aien-dev/CUDApp/issues/108)), the disassembler in omega-mv ([CUDApp#10](https://github.com/aien-dev/CUDApp/issues/10)), omega-bridge's own seed bootstrap ([omega-mv#870](https://github.com/aien-dev/omega-mv/issues/870)) and front end ([omega-mv#871](https://github.com/aien-dev/omega-mv/issues/871)). Omega main (`91c83438da`) has no `cudapp.lock` yet.

skills/omega-encoding/SKILL.md

@@ -2533,7 +2533,7 @@ runs in [`examples/gate.sh`](../../examples/gate.sh) with the programs in the re
25332533 `examples/` directory:
25342534
25352535 <!-- gen:examples -->
2536-`examples/gate.sh` reruns 130 programs: 125 in `examples/` and 5 in `skills/*/examples/`.
2536+`examples/gate.sh` reruns 132 programs: 127 in `examples/` and 5 in `skills/*/examples/`.
25372537 <!-- /gen:examples -->
25382538
25392539 The gate runs only under the pinned compiler (section 0); the observations

skills/writing-omega/SKILL.md

@@ -257,6 +257,7 @@ A trap ends the process with exit status 100 + N. Output already written stays w
257257 - A bound is a trap, not a clamp. When the pass count follows outside input (a request, a file, a
258258 database row), check the length before the loop or exit early below N; one long input otherwise
259259 stops the process with trap 4 (`mistake_bound_input.om` exits 104, `bound_input_guard.om` exits 0).
260+- An outer `for` starts another batch only after its inner `while` exits. For batches of three, reset `q = uint 0` on each outer pass, use `while and gt n 0 lt q 3 bound 3`, and increment `q` for each item consumed. With five items, omitting the counter traps on the first batch (exit 104).
260261 - No loop runs forever and recursion is bounded by the stack.
261262
262263 ## 7. Arrays, texts, globals, structs
@@ -264,6 +265,7 @@ A trap ends the process with exit status 100 + N. Output already written stays w
264265 - **Local array:** `a = new T N v`, N elements each v, only in a function's outermost block (error 9
265266 inside a block). N is a literal or an integer `const`; a variable N is error 16. There is no heap
266267 and no `free` (error 9).
268+- Declare each global before the first function that uses it. In a concatenated build, place its declaring unit first. Using a later global produces error 3.
267269 - **Global array:** `global NAME T N` at top level, zero-filled, program mode only. **A global is
268270 never an argument** (error 19); a function uses it by naming it.
269271 - **Text:** `text NAME "bytes"` is a read-only `uchar` array. Escapes are only `\n \t \\ \"`
@@ -416,7 +418,7 @@ with its exact stderr line in the matching `.expect`, except 24, which needs a g
416418 | 17 | line after a path end | Delete the unreachable line or move it before the path end. | `err17_after_path` |
417419 | 18 | missing ret | Add a ret on every path (or make the function void). | `err18_missing_ret` |
418420 | 19 | global passed or same array twice | Copy the global into a local array (new) or pass distinct arrays. | `err19_global_arg` |
419-| 20 | write to a read-only array | Write into a local, global or edit array instead. | `err20_readonly` |
421+| 20 | write to a read-only array | Write into a local, global or edit array instead. | `err20_pread_text`, `err20_readonly` |
420422 | 21 | constant index out of range | Use an index below the length. | `err21_const_index` |
421423 | 22 | bad text literal | Use only \n \t \\ \" escapes and close the quote. | `err22_text_escape` |
422424 | 23 | size capacity | Use a smaller array. | `err23_size` |