omega-harness
Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories
Brought by drakestapleton
GitHub aien-dev/omega-harness#179 (code only)
Apply it
git checkout -b patch-b64a693be53df84b ea89a2466eb939078196d602b50ddc334ada13ac curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/b64a693be53df84b.patch | git am
Provenance
github-import 1
aien-dev/omega-harness
179
620e320ac1b5ebb3ec9baa1ba4a6c2a3a7b556a7
{"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":179,"url":"https://github.com/aien-dev/omega-harness/pull/179","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:40Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/skills/aien-repositories/SKILL.md b/skills/aien-repositories/SKILL.md index daf44dc..a604683 100644 --- a/skills/aien-repositories/SKILL.md +++ b/skills/aien-repositories/SKILL.md @@ -79,8 +79,7 @@ Ownership rule for the Omega/GPU/compatibility trio (Drake's forwarded omega-bri | Language, seed/compiler and the compiler pin, semantics, IR, reaction composition, the declared contract of what a kernel computes | [omega-mv](https://github.com/aien-dev/omega-mv) | Owns computation. Separate seeded `.om`, legacy C, host references and chip-qualified work. The GPU C under `src/omega_blackwell_*`/`src/omega_gpu_*` is a copy of CUDApp's responsibility (CUDApp#106); change it in coordination with that issue. Since [omega-mv#882](https://github.com/aien-dev/omega-mv/pull/882) (merged 2026-11-02 in train r4 `f9a9a40b`) the README notice and `.github/CODEOWNERS` route GPU changes to CUDApp; the existing GPU C stays in place (Drake, 2026-10-27). | | Machine realization policy, FORGE providers and historical boot artifacts | [physics-mv](https://github.com/aien-dev/physics-mv) | Current subsystem name is FORGE; old `PHYSICS_*` identifiers and receipts stay unchanged. Its `nvrm/`/`m16/` driver client (what omega-mv builds via `physics.lock`) is a copy of CUDApp's responsibility (CUDApp#107). | | Small boot root | [atlas](https://github.com/aien-dev/atlas) | Read its actual default branch (`master` in this snapshot); QEMU qualification is not native hardware qualification. | -| GPU execution: encoders and ISA tables, GPU code generation, cubin writer and exporter, artifact admission, disassembler, driver client, submission, GPU runtime | [CUDApp](https://github.com/aien-dev/CUDApp) | Owns GPU execution ([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 `6b924d4f8e`; [CUDApp docs/ARCHITECTURE.md](https://github.com/aien-dev/CUDApp/blob/main/docs/ARCHITECTURE.md)). The decision routes new work; the cut-over is not done: the encoder/codegen/runtime still exist as diverged copies in omega-mv and CUDApp ([CUDApp#106](https://github.com/aien-dev/CUDApp/issues/106), open), omega-mv builds physics-mv's driver client ([CUDApp#107](https://github.com/aien-dev/CUDApp/issues/107), open), and omega-mv does not consume CUDApp at a pin (no `cudapp.lock` at omega-mv main `91c83438da`). The resident 35B is served by the C stack. Check target support and remaining driver/OS dependencies. Driver policy (Drake, 2026-10-30): Aien's own GB10 kernel driver replaces NVIDIA's `nvidia.ko` and `nvidia-uvm.ko`; CUDApp's docs say so since [CUDApp#200](https://github.com/aien-dev/CUDApp/pull/200) (merged 2026-10-31, `e7cc7d69`). Status is IMPLEMENTED only: [aien-gpu](https://github.com/aien-dev/aien-gpu) `ec9d6d76` (`docs/STATUS.md`: host + QEMU, hardware NOT_RUN), [omega-gpu-driver](https://github.com/aien-dev/omega-gpu-driver) `07781415` (README: W0 QEMU only) and aienux#441 (merged `4c25c6ce`, simulator only). None has run on GB10, so CUDApp still runs on `nvidia.ko`/`nvidia-uvm.ko` 580.173.02 today; never claim the replacement is done. GSP firmware stays NVIDIA's. Only the GB10 (sm_121) is a supported GPU; every other GPU (other NVIDIA generations, AMD, Intel, Apple, mobile) is a PLANNED target, hardware NOT_RUN. Multi-target work (target table, code-object loader, SPIR-V on CPU drivers, HSACO checks) merged in CUDApp#138 (`0c782c44af`); host CPU runs never make a vendor "supported". CUDApp is still mostly C. [#143](https://github.com/aien-dev/CUDApp/pull/143) (merged `2fab72fde0`) runs the sm_121 encoder and cubin writer as `.om` units through an omega-bridge binding in the default hosted build; freestanding builds keep C. Do not call CUDApp "written in Omega". | -| GPU execution: encoders and ISA tables, GPU code generation, cubin writer and exporter, artifact admission, disassembler, driver client, submission, GPU runtime | [CUDApp](https://github.com/aien-dev/CUDApp) | Owns GPU execution ([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 `6b924d4f8e`; [CUDApp docs/ARCHITECTURE.md](https://github.com/aien-dev/CUDApp/blob/main/docs/ARCHITECTURE.md)). The decision routes new work; the cut-over is not done: the encoder/codegen/runtime still exist as diverged copies in omega-mv and CUDApp ([CUDApp#106](https://github.com/aien-dev/CUDApp/issues/106), open), omega-mv builds physics-mv's driver client ([CUDApp#107](https://github.com/aien-dev/CUDApp/issues/107), open), and omega-mv does not consume CUDApp at a pin (no `cudapp.lock` at omega-mv main `91c83438da` or `d3d1b1bc`). CUDApp carries the live engine sources ([#120](https://github.com/aien-dev/CUDApp/pull/120), from omega-mv `6de999da`) and omega-mv main `e5b32567` ([#121](https://github.com/aien-dev/CUDApp/pull/121)) with an omega-mv drift gate ([#122](https://github.com/aien-dev/CUDApp/pull/122)), all merged 2026-10-27; the server building from CUDApp pinned in `cudapp.lock` is PENDING (aien-sovereign-core-mv [#784](https://github.com/aien-dev/aien-sovereign-core-mv/pull/784), open draft on 2026-11-04). The resident 35B is served by the C stack. Check target support and remaining driver/OS dependencies; do not imply a complete driver replacement (NVIDIA kernel modules and GSP firmware stay required). Only the GB10 (sm_121) is a supported GPU; every other GPU (other NVIDIA generations, AMD, Intel, Apple, mobile) is a PLANNED target, hardware NOT_RUN. Multi-target work (target table, code-object loader, SPIR-V on CPU drivers, HSACO checks) merged in CUDApp#138 (`0c782c44af`); host CPU runs never make a vendor "supported". CUDApp is still mostly C. [#143](https://github.com/aien-dev/CUDApp/pull/143) (merged `2fab72fde0`) runs the sm_121 encoder and cubin writer as `.om` units through an omega-bridge binding in the default hosted build; freestanding builds keep C. Do not call CUDApp "written in Omega". | +| GPU execution: encoders and ISA tables, GPU code generation, cubin writer and exporter, artifact admission, disassembler, driver client, submission, GPU runtime | [CUDApp](https://github.com/aien-dev/CUDApp) | Owns GPU execution ([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 `6b924d4f8e`; [CUDApp docs/ARCHITECTURE.md](https://github.com/aien-dev/CUDApp/blob/main/docs/ARCHITECTURE.md)). The decision routes new work; the cut-over is not done: the encoder/codegen/runtime still exist as diverged copies in omega-mv and CUDApp ([CUDApp#106](https://github.com/aien-dev/CUDApp/issues/106), open), omega-mv builds physics-mv's driver client ([CUDApp#107](https://github.com/aien-dev/CUDApp/issues/107), open), and omega-mv does not consume CUDApp at a pin (no `cudapp.lock` at omega-mv main `91c83438da` or `d3d1b1bc`). CUDApp carries the live engine sources ([#120](https://github.com/aien-dev/CUDApp/pull/120), from omega-mv `6de999da`) and omega-mv main `e5b32567` ([#121](https://github.com/aien-dev/CUDApp/pull/121)) with an omega-mv drift gate ([#122](https://github.com/aien-dev/CUDApp/pull/122)), all merged 2026-10-27; the server building from CUDApp pinned in `cudapp.lock` is PENDING (aien-sovereign-core-mv [#784](https://github.com/aien-dev/aien-sovereign-core-mv/pull/784), open draft on 2026-11-04). The resident 35B is served by the C stack. Check target support and remaining driver/OS dependencies. Driver policy (Drake, 2026-10-30): Aien's own GB10 kernel driver replaces NVIDIA's `nvidia.ko` and `nvidia-uvm.ko`; CUDApp's docs say so since [CUDApp#200](https://github.com/aien-dev/CUDApp/pull/200) (merged 2026-10-31, `e7cc7d69`). Status is IMPLEMENTED only: [aien-gpu](https://github.com/aien-dev/aien-gpu) `ec9d6d76` (`docs/STATUS.md`: host + QEMU, hardware NOT_RUN), [omega-gpu-driver](https://github.com/aien-dev/omega-gpu-driver) `07781415` (README: W0 QEMU only) and aienux#441 (merged `4c25c6ce`, simulator only). None has run on GB10, so CUDApp still runs on `nvidia.ko`/`nvidia-uvm.ko` 580.173.02 today; never claim the replacement is done. GSP firmware stays NVIDIA's. Only the GB10 (sm_121) is a supported GPU; every other GPU (other NVIDIA generations, AMD, Intel, Apple, mobile) is a PLANNED target, hardware NOT_RUN. Multi-target work (target table, code-object loader, SPIR-V on CPU drivers, HSACO checks) merged in CUDApp#138 (`0c782c44af`); host CPU runs never make a vendor "supported". CUDApp is still mostly C. [#143](https://github.com/aien-dev/CUDApp/pull/143) (merged `2fab72fde0`) runs the sm_121 encoder and cubin writer as `.om` units through an omega-bridge binding in the default hosted build; freestanding builds keep C. Do not call CUDApp "written in Omega". | | Deep-learning primitives (norms, activations, RoPE, MatMul, attention, conv, pooling) written in seeded `.om` | [omega-dnn](https://github.com/aien-dev/omega-dnn) | The `.om` ops are host code (AArch64, through the omega-bridge ABI), not GPU kernels. omega-dnn#1 (merged `ff030473f6`) ships `tests/`, `docs/TOLERANCE.md` and a GB10 tier: CUDApp's native kernels for RMSNorm, RoPE (split), SwiGLU, SiLU, Softmax (c <= 64), GQA decode, causal prefill and paged-KV attention and f32 MatMul, gated against the `.om` host result (EXERCISED on the chip, not QUALIFIED: one seed, 32 cases per op; receipts `evidence/GPU-9841bb3a`, `evidence/GPU-b28372d1`, the MatMul one on unmerged CUDApp#139). Quote GPU coverage only from those receipts and the README "Not on the GPU" list (LayerNorm, GELU, ReLU, conv, pooling and others are NOT_RUN). There is no oneDNN speed comparison (NOT_RUN). | **Spark boot/input path 5 (merged 2026-10-30).** Aienux @@ -125,12 +124,10 @@ boot or hardware authority. - [aien-sovereign-core-mv](https://github.com/aien-dev/aien-sovereign-core-mv): host runtime, `aien` CLI, inference ABI, scheduling/KV state and verification tooling. Product source and gate manifests determine implementation; installed service state requires separate evidence. - Flint native forward (`om/flint`, Core #802 P0). Seeded `.om` manifest reader, operators and a full 49-layer host forward for `RecursiveSI/flint@2a247be0`. Merged to main via #805 (`d0f64633`) and #806 (`f71f7cc4c03cb39df2d8eed8f78ce41a426a2cce`), observed at main `85a185816307d435e89a77666de327c293c26961`. `bash om/flint/check.sh` runs the manifest and refusal arms. The opt-in acceptance arm `FLINT_FORWARD=1` (with `OMC`, `FLINT_SRC`, `FLINT_SHARDS` and `FLINT_PY` set to the pinned compiler, the frozen source, the BF16 shards and a pinned transformers referee) chains two token IDs through all 49 layers. It compares five intermediates per layer, the final norm and every vocabulary logit, and must print `OM-FLINT-MANIFEST PASS (92)` on main. Its wrong-token and skipped-final-norm source mutants must fail. Run it on host CPU only (e.g. `taskset -c 0-4 nice -n 19`); one run on main took 140 s. The result is a tolerance PASS (native f64 over BF16 storage, checked against reference f32 within the budget in `om/flint/test/TOLERANCE.md`), not bitwise equality. It is host evidence only: no GPU, serving, generation or bf16-activation qualification. PENDING: draft Core #809 adds a KV-cache decode arm with an 8-position bound and moves the count to `PASS (95)`. Remaining P0 work is Core #834; serving is Core #804. Flint is served today by an outside llama.cpp container, a host dependency recorded on #804, not Omega. -- [allen](https://github.com/aien-dev/allen): persistent-subject programme, identity/continuity contracts and acceptance work. Do not identify Allen with an interchangeable model or claim planned subject capabilities already run. - [aien](https://github.com/aien-dev/aien) (renamed from `aien-dev/allen`; `gh api repos/aien-dev/allen` resolves to `aien-dev/aien`, not archived, checked 2026-11-05): persistent-subject programme (the subject formerly named Allen, now Aien), identity/continuity contracts and acceptance work. Route subject and identity work here, not to the old slug. Do not identify the subject with an interchangeable model or claim planned subject capabilities already run. - [aegis-runtime-mv](https://github.com/aien-dev/aegis-runtime-mv): agent gateway, heartbeat/task workflow and storage attachment. It is not all of the AEGIS verification doctrine. - [spark-rsi-mv](https://github.com/aien-dev/spark-rsi-mv): evaluation/promotion and cryptographic-ledger attachment, not proof of autonomous improvement merely because an experiment proposes a better candidate. -- [aien-train](https://github.com/aien-dev/aien-train): training programme and research route toward training on Omega. Its [current instructions](https://github.com/aien-dev/aien-train/blob/main/AGENTS.md) explicitly describe plans and empty output directories, not a working training engine. **Pending, not merged (aien-train #42 still a draft on 2026-11-04):** draft [aien-train #42](https://github.com/aien-dev/aien-train/pull/42) (head `8307268a`) adds one bounded native `.om` training example (`native/adtrain`, an 8×4→8→2 relu MLP with gradients from the native reverse-mode tape of [omega-mv #930](https://github.com/aien-dev/omega-mv/pull/930), merged 2026-11-02 as `19b8340d`). It is EXERCISED on the host for forward/loss, gradients (central differences, C M21 tape 75/75 exact, exact-rational Wolfram oracle), loss reduction and checkpoint/resume identity. One GB10 fixture replay also matched 75/75 exact, with the C M21 tape over the M20 GB10 realization; the native tape itself runs only on the host. It is a single fixed graph, not a training engine and not GPU qualification; route general trainer/optimizer work to aien-train #6 and native autograd to omega-mv #664. -- [aien-train](https://github.com/aien-dev/aien-train): training programme and research route toward training on Omega. The Omega LLM stack is on main (`56cc88706a9a685ed9c5dae8050e4643cc7f1aae`, 2026-11-04): #53 merged as `19c952b6`, #54 `2897f38f`, #56 `e186ea29`, #57 `16e9932e`, #58 `4461e3fa`, #59 `24d21497`, #60 `a9c720db`, #61 `930ae21c`, #62 `56cc8870`; #55 is still an open draft (checked with `gh pr view` 2026-11-04). The heads cited below are the reviewed heads before each merge; cite paths at main. The Omega LLM is the planned model for `:18091` (Linear P-DRA-7), not served yet: inference is the CPU command `ollm sample`, with no HTTP server. [PR #53](https://github.com/aien-dev/aien-train/pull/53) (issue #52) at `df1fd9a94b4ec8317552777b2ce361f737942509` adds an Omega LLM v0 proof of concept: a 119104-parameter byte-level transformer whose forward, backward, Adam, checkpoints, eval and sampling are `.om` built with omc at omega-mv `e5b32567`, CPU only, with receipts under `evidence/OMEGALLM/` and a Python-stdlib referee used only as an oracle. Treat it as IMPLEMENTED/EXERCISED on GB10 host CPU, not as qualified or a general training engine. On #53 the I/O sits in one platform unit (`native/omegallm/lio.om` Linux, `native/omegallm/eio.om` UEFI) and `tests/omegallm/build.sh` takes `TARGET=aarch64|x86linux|x86efi`. The x86linux rung (omc `be8c5130…`, omega-mv main `ba5559d9`) is EXERCISED but EMULATED, under qemu-x86_64 user mode on a GB10 core: the full suite matches AArch64 receipt for receipt (`evidence/OMEGALLM/x86/`). The x86efi rung needs [omega-mv#1015](https://github.com/aien-dev/omega-mv/pull/1015) (merged `d3d1b1bc`, the current harness pin; omc `b4f45121…`) and is EXERCISED but EMULATED under QEMU/OVMF (`evidence/OMEGALLM/efi/`). The same UEFI image is EXERCISED on physical hardware (one machine) for that 11-job check on Drake's iMac (2026-11-01, `evidence/OMEGALLM/imac/`; the run records no machine identity, iMac18,3 and Core i5-7500 come from earlier aienux evidence): `tests/omegallm/efi-check.sh` checks the banner, one `J` timing line after each job and the final DONE line by position and finds the job output EQUAL to the AArch64 reference; the written files match their recorded sha256; 186521 ms by the firmware clock. One machine, one run. [PR #54](https://github.com/aien-dev/aien-train/pull/54) (v1) at `2e70de4c8d8663ae4f484b0a9b03220c0dc9e52a` adds a BPE tokenizer in `.om` (V=4096, oracle-checked), a larger checkpoint cap and K worker processes whose gradients the parent sums in a fixed order (bit-identical for every K); its 2,582,208-parameter TinyStories run (9000 steps, K = 20 on the GB10 CPU, wall 41,814 s) finished with `T 9000 1756201` and held-out `E 9000 4486 1823975 680427`, i.e. 0.680427 bpb (`evidence/OMEGALLM/v1/`; EXERCISED, one run, one seed). [PR #55](https://github.com/aien-dev/aien-train/pull/55) adds an `M` machine-identity line to the UEFI `OUT.TXT` through `efi 14` of [omega-mv#1022](https://github.com/aien-dev/omega-mv/pull/1022) (open on 2026-11-04); check #55's current head and receipts before citing it. GPU training on the GB10 from `.om` through the raw NVIDIA driver: [#56](https://github.com/aien-dev/aien-train/pull/56) (rungs 4-6 and kernel rounds k1-k9) at `4e0039070cce87802654a74b869288159ce94f5d`, [#57](https://github.com/aien-dev/aien-train/pull/57) (v2 shape, rung 7) at `43f374a6042769a3d853d9b953dbe4d86348b01b`, [#58](https://github.com/aien-dev/aien-train/pull/58) (BF16 training, adopted in CONTRACT-BF16 section 7) at `cb556468380944f4aa1a9a5da389f4ad193f4154`, [#59](https://github.com/aien-dev/aien-train/pull/59) (rung 8) at `7baaf8b4bda00a4394f1f094aece5ce7b3b6ed5c`, [#60](https://github.com/aien-dev/aien-train/pull/60) (v3 shape, L up to 16; chip gates of window v3-g1 held) at `b92c96b627f33beadd69dc2d8f70833e973a377f`, [#61](https://github.com/aien-dev/aien-train/pull/61) (rung 9) at `fcf6cdedec3024806a82f40e977c1d1389d684a4` and [#62](https://github.com/aien-dev/aien-train/pull/62) (rung 10) at `3ed47a0503f15cdff38ad911eeddb13cf13b4c32`. They are EXERCISED on one GB10, not QUALIFIED; the GPU is reached only through a spark-window; the encoding lessons are in `omega-encoding` section 9a. +- [aien-train](https://github.com/aien-dev/aien-train): training programme and research route toward training on Omega. Its [current instructions](https://github.com/aien-dev/aien-train/blob/main/AGENTS.md) describe research plans and bounded native components with focused host tests, not an integrated trainer. The Omega LLM stack is on main (`56cc88706a9a685ed9c5dae8050e4643cc7f1aae`, 2026-11-04): #53 merged as `19c952b6`, #54 `2897f38f`, #56 `e186ea29`, #57 `16e9932e`, #58 `4461e3fa`, #59 `24d21497`, #60 `a9c720db`, #61 `930ae21c`, #62 `56cc8870`; #55 merged 2026-11-05 as `9784167b` (checked with `gh pr view` 2026-11-05). The heads cited below are the reviewed heads before each merge; cite paths at main. The Omega LLM is the planned model for `:18091` (Linear P-DRA-7), not served yet: inference is the CPU command `ollm sample`, with no HTTP server. [PR #53](https://github.com/aien-dev/aien-train/pull/53) (issue #52) at `df1fd9a94b4ec8317552777b2ce361f737942509` adds an Omega LLM v0 proof of concept: a 119104-parameter byte-level transformer whose forward, backward, Adam, checkpoints, eval and sampling are `.om` built with omc at omega-mv `e5b32567`, CPU only, with receipts under `evidence/OMEGALLM/` and a Python-stdlib referee used only as an oracle. Treat it as IMPLEMENTED/EXERCISED on GB10 host CPU, not as qualified or a general training engine. On #53 the I/O sits in one platform unit (`native/omegallm/lio.om` Linux, `native/omegallm/eio.om` UEFI) and `tests/omegallm/build.sh` takes `TARGET=aarch64|x86linux|x86efi`. The x86linux rung (omc `be8c5130…`, omega-mv main `ba5559d9`) is EXERCISED but EMULATED, under qemu-x86_64 user mode on a GB10 core: the full suite matches AArch64 receipt for receipt (`evidence/OMEGALLM/x86/`). The x86efi rung needs [omega-mv#1015](https://github.com/aien-dev/omega-mv/pull/1015) (merged `d3d1b1bc`, the current harness pin; omc `b4f45121…`) and is EXERCISED but EMULATED under QEMU/OVMF (`evidence/OMEGALLM/efi/`). The same UEFI image is EXERCISED on physical hardware (one machine) for that 11-job check on Drake's iMac (2026-11-01, `evidence/OMEGALLM/imac/`; the run records no machine identity, iMac18,3 and Core i5-7500 come from earlier aienux evidence): `tests/omegallm/efi-check.sh` checks the banner, one `J` timing line after each job and the final DONE line by position and finds the job output EQUAL to the AArch64 reference; the written files match their recorded sha256; 186521 ms by the firmware clock. One machine, one run. [PR #54](https://github.com/aien-dev/aien-train/pull/54) (v1) at `2e70de4c8d8663ae4f484b0a9b03220c0dc9e52a` adds a BPE tokenizer in `.om` (V=4096, oracle-checked), a larger checkpoint cap and K worker processes whose gradients the parent sums in a fixed order (bit-identical for every K); its 2,582,208-parameter TinyStories run (9000 steps, K = 20 on the GB10 CPU, wall 41,814 s) finished with `T 9000 1756201` and held-out `E 9000 4486 1823975 680427`, i.e. 0.680427 bpb (`evidence/OMEGALLM/v1/`; EXERCISED, one run, one seed). [PR #55](https://github.com/aien-dev/aien-train/pull/55) adds an `M` machine-identity line to the UEFI `OUT.TXT` through `efi 14` of [omega-mv#1022](https://github.com/aien-dev/omega-mv/pull/1022) (still open on 2026-11-05, so main's omc has no `efi 14`); check #55's receipts and the compiler they name before citing it. GPU training on the GB10 from `.om` through the raw NVIDIA driver: [#56](https://github.com/aien-dev/aien-train/pull/56) (rungs 4-6 and kernel rounds k1-k9) at `4e0039070cce87802654a74b869288159ce94f5d`, [#57](https://github.com/aien-dev/aien-train/pull/57) (v2 shape, rung 7) at `43f374a6042769a3d853d9b953dbe4d86348b01b`, [#58](https://github.com/aien-dev/aien-train/pull/58) (BF16 training, adopted in CONTRACT-BF16 section 7) at `cb556468380944f4aa1a9a5da389f4ad193f4154`, [#59](https://github.com/aien-dev/aien-train/pull/59) (rung 8) at `7baaf8b4bda00a4394f1f094aece5ce7b3b6ed5c`, [#60](https://github.com/aien-dev/aien-train/pull/60) (v3 shape, L up to 16; chip gates of window v3-g1 held) at `b92c96b627f33beadd69dc2d8f70833e973a377f`, [#61](https://github.com/aien-dev/aien-train/pull/61) (rung 9) at `fcf6cdedec3024806a82f40e977c1d1389d684a4` and [#62](https://github.com/aien-dev/aien-train/pull/62) (rung 10) at `3ed47a0503f15cdff38ad911eeddb13cf13b4c32`. They are EXERCISED on one GB10, not QUALIFIED; the GPU is reached only through a spark-window; the encoding lessons are in `omega-encoding` section 9a. [aien-train #42](https://github.com/aien-dev/aien-train/pull/42) (merged 2026-11-05 as `80bcbd18`, head `5ad9b572`; the results here were recorded at head `8307268a`) adds one bounded native `.om` training example (`native/adtrain`, an 8×4→8→2 relu MLP with gradients from the native reverse-mode tape of [omega-mv #930](https://github.com/aien-dev/omega-mv/pull/930), merged 2026-11-02 as `19b8340d`). It is EXERCISED on the host for forward/loss, gradients (central differences, C M21 tape 75/75 exact, exact-rational Wolfram oracle), loss reduction and checkpoint/resume identity. One GB10 fixture replay also matched 75/75 exact, with the C M21 tape over the M20 GB10 realization; the native tape itself runs only on the host. It is a single fixed graph, not a training engine and not GPU qualification; route general trainer/optimizer work to aien-train #6 and native autograd to omega-mv #664. - [aien-math](https://github.com/aien-dev/aien-math) (private): a Wolfram Language replacement written in `.om`, checked against a corpus of sourced Wolfram recordings. Since main `43c629db362b48aeec3590a8f0cd30e927e5ec16` (PR #2, merged 2026-10-26) its runners fail closed: a nonzero candidate exit fails the row; comparisons in `tests/oracle_common.py` keep the whole result structure instead of matching fractional number tokens; an empty, null or malformed selected corpus prints `CORPUS FAULT` and exits nonzero; Alpha rows (`python3 tests/run_alpha.py`) and `--limit` selections print `NOT_RUN` in `tests/run.py`; and an `intentional_difference` reason excuses a mismatch only when the result equals a sourced `alternate` full answer. Quote a pass count only from a full, unlimited `tests/run.py` run with its exit status, the Alpha result and the guard controls (`python3 -m unittest discover -s tests/unit -p test_oracle_guards.py -v`). Scores from the earlier matcher are dated history and do not compare with current ones. Land changes through a pull request, draft while a dependency is pending, not by pushing to `main`. For memory, do not route to an archived repo just because its name sounds right. [ADR 0036](https://github.com/aien-dev/aien-architecture-mv/blob/main/docs/adr/0036-release-v1-memory-owner.md) names `aien-allen-memory` with an engaged Allen identity for release E4, while preserving ADR 0022's Omega-layer `rx_cortex` ownership. Durable execution journals, evidence receipts, subject memory and a coding agent's recall service are different things. A `.crumb` records directory role/invariants and provenance; `.crumb.local` is temporary coordination. Neither stale metadata nor a recalled model suggestion overrides code or receipts. diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md index 704650f..87e7b2c 100644 --- a/skills/omega-encoding/SKILL.md +++ b/skills/omega-encoding/SKILL.md @@ -74,13 +74,12 @@ with exit 105. The same `fnv1a32.om` prefixed with `target x86linux` printed `0b `abc` 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 `be8c5130…`; for main, run `git show main:seed/out/omc` -directly. One visible difference: the MCP omc predates #848, so `while ... bound 1000000` is -`error 8` there (1..999999), while `be8c5130…` compiles it (observed 2026-11-04, host only). It also -still has the #775 empty-text defect: `len` of a `text e ""` passed as `view uchar *` returns a stale -register value (exit 36 in the program recorded under "Empty text" below; 0 with `be8c5130…`). -Their results do not describe main's omc `b4f45121…`; for main, run `git show main:seed/out/omc` -directly. +Their results do not describe main's omc `b4f45121…` (omega-mv `d3d1b1bc`); for main, run +`git show main:seed/out/omc` directly. One visible difference: the MCP omc predates #848, so +`while ... bound 1000000` is `error 8` there (1..999999), while `be8c5130…` and `b4f45121…` compile +it (observed 2026-11-04 and 2026-11-05, host only). It also still has the #775 empty-text defect: +`len` of a `text e ""` passed as `view uchar *` returns a stale register value (exit 36 in the +program recorded under "Empty text" below; 0 with `be8c5130…` and `b4f45121…`). ### Previous pin `3a163bc5` (2026-10-31, history) @@ -515,20 +514,19 @@ Changes and confirmations against the rules below, each observed with a program: `int` were not retested on 2026-10-29. Do not assume they are fixed. Decode signed values arithmetically when you have not measured the pair (`examples/wire_le.om`). - **`byte` is signed 8-bit** (`i8`, OMEGESE line 109); `char` is not a type (error 3). -- **Empty text through `view uchar *` (omega-mv #775).** A 2026-10-27 report said `len` was 60 with - one other text and 28 with none. A two-text unit on 2026-10-29 returned 0 on both `2c824805` and - `62775d2a`, so that report was not reproduced then. **Reproduced 2026-11-04 on the MCP omc - `2c824805…` only:** `om2`, `text ta "abc"`, `text te ""`, `text tb "xy"`, `fn f t view uchar * to - ulong` / `ret len t`, then `ret int f te` in `main` exits 36 (expected 0), while `ret int f tb` - exits 2 and `ret int f part tb 0 0` exits 0. With the guide pin `be8c5130…` the same program exits 0 - (fixed by the #904 integration `e2662fff`). On the MCP pin pass `part T 0 0` of a non-empty text - instead (`examples/empty_text_part.om`). -- **Empty text through `view uchar *` (omega-mv #775).** Reproduced on 2026-11-04 with omc - `2c824805` (MCP `omega_run`): `om2`, `text e ""`, `fn n a view uchar * to ulong` / `ret len a`, - `main` `ret int n e` exits 28; adding `text f "0123456789abcdef0123456789abcdef"` makes it exit 60. - `ret int n part e 0 0` exits 0. The earlier "not reproduced" note was wrong for `2c824805`. Pass - `part e 0 0` (`examples/empty_text_part.om`). synapse-mcp hit it: every empty-text record arrived - with len 28-60 and positional arguments were refused as too long. +- **Empty text through `view uchar *` (omega-mv #775).** The stale `len` depends on layout, so one + passing two-text unit proves nothing (a 2026-10-29 two-text unit returned 0 on `2c824805` and + `62775d2a`). Reproduced 2026-11-04 on the MCP omc `2c824805…` (`omega_run`), with + `fn f t view uchar * to ulong` / `ret len t` under `om2`: + - `text ta "abc"`, `text te ""`, `text tb "xy"`, `main` `ret int f te`: exit 36 (expected 0); + `ret int f tb` exits 2 and `ret int f part tb 0 0` exits 0. + - only `text e ""`, `ret int f e`: exit 28; adding `text f "0123456789abcdef0123456789abcdef"` + makes it exit 60; `ret int f part e 0 0` exits 0. + + With the guide pin all three exit 0 (`be8c5130…` 2026-11-04, `b4f45121…` 2026-11-05; fixed by the + #904 integration `e2662fff`). On the MCP pin pass `part e 0 0` instead + (`examples/empty_text_part.om`). synapse-mcp hit it: every empty-text record arrived with len + 28-60 and positional arguments were refused as too long. - **`and`/`or` are eager everywhere, not only in contracts.** `if and gt n 0 eq get a sub n 1 13` traps 3 (exit 103) when `n` is 0, because `get a sub n 1` still runs (`2c824805`, `omega_run`, 2026-11-04). Guard an index with a nested `if`. @@ -949,8 +947,10 @@ end may use `fopen fclose fstat stat lstat getuid geteuid getgid getegid` on AArch64; every other host word, any host word in an OM-1 unit and any other target stay error 9 (gate `seed/omc/om2/fnhost/fnhost.cases`; PROPOSED contract `spec/omegese-om3.md` section 1). The - omega-bridge binds such a unit only with `tools/native --host` (draft omega-bridge#54). With main's - compilers (harness pin `be8c5130…`, omega-mv main `b4f45121…`) these are still error 9. + omega-bridge binds such a unit only with `tools/native --host` (omega-bridge#54, merged 2026-11-05 + as `d1124611`; the bridge side is on main, the compiler side is not). With main's compilers (the + harness pin omc `b4f45121…` at omega-mv `d3d1b1bc`, and the previous `be8c5130…`) these are still + error 9. - Program exit status = `main`'s value mod 256 (0 for void main). `exit v` (v `int`) ends at once. A runtime trap exits **100 + code**. Keep your own exit codes below 100, or a result is indistinguishable from a trap ([#L404-L407](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L404-L407), [#L484](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L484)). @@ -1282,7 +1282,8 @@ fixed limit (section 4). main `57a4135d6` on 2026-10-31: `omc.om` has 495 `^fn ` lines (16,432 lines, sha256 `d4b4b89d…30f6`, the same file as at `9920aab14`) and `om4.bin` is still `d0da40e4…19efab`. `omc.om` plus 17 appended `fn zqN to ulong` / `ret 0` / `end` functions compiled with exit 0; plus 18 gave - `om4: line 16484: error 14`, exit 14. So 17 entries are free. **Decision (Drake, 2026-10-31): stay + `om4: line 16484: error 14`, exit 14. So 17 entries were free then; at the current pin + `d3d1b1bc` `omc.om` has 510 `^fn ` lines, so 2 are free (section 0). **Decision (Drake, 2026-10-31): stay within 512 for now (option 3).** A prototype that moves om4's table to 4096 entries is draft [omega-mv#1013](https://github.com/aien-dev/omega-mv/pull/1013) (`646ed1ec`, om4 `bfc1cfd1…`, omc bytes unchanged), **parked until after alpha**: do not merge it unless `omc.om` needs more than 512 @@ -1477,10 +1478,9 @@ omega MCP pin `2c824805…`, lack both. exception for nine file/identity words in OM-2 units: section 2, omega-mv#1008. Observed 2026-11-04: `om2` / `export fn f to long` / `r = geteuid` gives `omc: line 3: error 9` with omc `be8c5130…` and `b4f45121…`, and compiles with the #1008 omc `c000ec02…` at `2992a68b`.) - and every host word is error 9 with an empty output file, which reads like a broken pin. - **Owned DMA-window integration: PENDING, not the main compiler or a kernel driver.** - Depends on the VFIO words documented by pending - [guide #79](https://github.com/aien-dev/omega-harness/pull/79), compiler + Depends on the VFIO words described below ("VFIO device words", added by + [guide #79](https://github.com/aien-dev/omega-harness/pull/79), merged `d3d6738`; the words stay PENDING), compiler [omega-mv#890](https://github.com/aien-dev/omega-mv/pull/890) stacked on #878, exact source `397e67040fb74853c6814097fe02ae4e1ebd6f66`, omc sha256 `bcfa582892afca8f65e551fe56867d918d86e84540c7381be8fa9ef18d0cf0f6`. @@ -2202,7 +2202,7 @@ are `seed/omc/omc.om` at `9920aab1`. traps of section 11b (exit 20, `omc: line 8: error 7`, `omc: line 5: error 12`). Each carries `.expect` (and `fnv1a32` also `.stdin` `abc` and the 4 expected bytes in `.stdout`) and -runs in [`examples/gate.sh`](../../examples/gate.sh) with the 99 programs in the repository's +runs in [`examples/gate.sh`](../../examples/gate.sh) with the 105 programs in the repository's `examples/` directory; section 0 records the `e5b32567` rerun of every row below. The portable guide for writing a first program is [`skills/writing-omega/SKILL.md`](../writing-omega/SKILL.md). diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md index 9d0326c..efb9338 100644 --- a/skills/omega-harness/SKILL.md +++ b/skills/omega-harness/SKILL.md @@ -203,8 +203,8 @@ synthetic evidence cannot establish production or economic improvement. Zig/Go executions: their logs have individual successful caller lines, not merely aggregate PASS. Java, Swift and Node/JavaScript are not callers in these suites. See the [coverage clarification and replay receipt hashes](https://github.com/aien-dev/omega-bridge/pull/34#issuecomment-6473079219). -- **PENDING (draft [omega-bridge #56](https://github.com/aien-dev/omega-bridge/pull/56), head `bc11b30`, not merged):** the additive seeded C frontend (`tools/bridge-seeded c`, omc `2c824805…029f`) lowers internal `f32`/`f64` scalars, unsuffixed float constants (table of 1024; a suffixed or integer literal is error 16, more than 19 significant digits or overflow to infinity error 8, as in omc), float `add sub mul div neg fabs`, compares, int<->float and f32<->f64 conversions and same-width bitcasts, bit-for-bit with omc's AArch64 output. Baseline `tools/bridge`, Python and public float parameters/arrays still refuse floats. omc decimal conversion is not always correctly rounded ([omega-mv #1024](https://github.com/aien-dev/omega-mv/issues/1024)); the bridge reproduces omc's bits. EXERCISED host plus x86-64 EMULATED (`tests/seeded_float.py`, and CUDApp#147 `mathlibs_ir.om` across 89 cases with identical native/C/x86 bytes); physical x86 and chip NOT_RUN. Until #56 merges, bridge main refuses all floats. -- **PENDING, not merged (2026-10-31): host words in bridged units.** Draft [omega-bridge#54](https://github.com/aien-dev/omega-bridge/pull/54) (`c7f432cd93dc728a8c699b2787cd9a9513a7f84f`) adds `tools/native --host`, built on draft [omega-mv#1008](https://github.com/aien-dev/omega-mv/pull/1008) (`78fa7ec3`, a pin mover; omc sha256 `3988c31f9697a01f1436b7a75f6c956b37bc5301155b3ec8ca1b06b92118f7c4`; contract in the PROPOSED `spec/omegese-om3.md` section 1, because OM-2 is frozen). With it an OM-2 function unit may call nine host words, `fclose fopen fstat stat getuid geteuid getgid getegid lstat`, and a Rust/C/... caller runs that unit in-process. Without `--host` any host word in the unit is refused (110, nothing installed); with it every other host word, any host word in an OM-1 unit, `--target x86linux` and `--freestanding` stay refused. The words used are named in the identity (` host=...`). These words are no sandbox: they run with the caller's credentials and descriptors, a trap between `fopen` and `fclose` leaks the descriptor, and out buffers (e.g. a returned secret) stay on the Omega stack until the next call. First consumer: [open-humanity#54](https://github.com/aien-dev/open-humanity/pull/54) (`crates/oh-infer/om/tkcheck.om`, pins in `om/PIN`, `om/regen.sh --check`), which replaced a `libc` token-file check on Drake's request. Until both PRs merge, the merged pins above do not have `--host`; do not cite it as main behavior. +- **PENDING (draft [omega-bridge #56](https://github.com/aien-dev/omega-bridge/pull/56), not merged; results below at head `bc11b30`, head `f9f1f7cf` on 2026-11-05):** the additive seeded C frontend (`tools/bridge-seeded c`, omc `2c824805…029f`) lowers internal `f32`/`f64` scalars, unsuffixed float constants (table of 1024; a suffixed or integer literal is error 16, more than 19 significant digits or overflow to infinity error 8, as in omc), float `add sub mul div neg fabs`, compares, int<->float and f32<->f64 conversions and same-width bitcasts, bit-for-bit with omc's AArch64 output. Baseline `tools/bridge`, Python and public float parameters/arrays still refuse floats. omc decimal conversion is not always correctly rounded ([omega-mv #1024](https://github.com/aien-dev/omega-mv/issues/1024)); the bridge reproduces omc's bits. EXERCISED host plus x86-64 EMULATED (`tests/seeded_float.py`, and CUDApp#147 `mathlibs_ir.om` across 89 cases with identical native/C/x86 bytes); physical x86 and chip NOT_RUN. Until #56 merges, bridge main refuses all floats. +- **Host words in bridged units: bridge side MERGED, compiler side PENDING.** [omega-bridge#54](https://github.com/aien-dev/omega-bridge/pull/54) (merged 2026-11-05 as `d1124611`, head `2518f9f7`; first reviewed 2026-10-31 at `c7f432cd93dc728a8c699b2787cd9a9513a7f84f`) adds `tools/native --host`, built on draft [omega-mv#1008](https://github.com/aien-dev/omega-mv/pull/1008) (a pin mover; tested at `78fa7ec3` with omc sha256 `3988c31f9697a01f1436b7a75f6c956b37bc5301155b3ec8ca1b06b92118f7c4`, the compiler bridge `docs/NATIVE-ABI.md` still names; open draft head `2992a68b` with omc `c000ec02…b911` on 2026-11-05; contract in the PROPOSED `spec/omegese-om3.md` section 1, because OM-2 is frozen). With it an OM-2 function unit may call nine host words, `fclose fopen fstat stat getuid geteuid getgid getegid lstat`, and a Rust/C/... caller runs that unit in-process. Without `--host` any host word in the unit is refused (110, nothing installed); with it every other host word, any host word in an OM-1 unit, `--target x86linux` and `--freestanding` stay refused. The words used are named in the identity (` host=...`). These words are no sandbox: they run with the caller's credentials and descriptors, a trap between `fopen` and `fclose` leaks the descriptor, and out buffers (e.g. a returned secret) stay on the Omega stack until the next call. First consumer: [open-humanity#54](https://github.com/aien-dev/open-humanity/pull/54) (merged `41299541`) (`crates/oh-infer/om/tkcheck.om`, pins in `om/PIN`, `om/regen.sh --check`), which replaced a `libc` token-file check on Drake's request. Bridge main has `--host`, but until #1008 merges and is pinned, main's omc (`b4f45121…`) still refuses every host word in a function unit (error 9), so a `--host` unit needs the #1008 compiler; do not cite it as main compiler behavior. - MERGED: the additive portable frontend [omega-bridge #36](https://github.com/aien-dev/omega-bridge/pull/36), head `3dc4a00e9966770cce58bdedb401c3b3932c35ee`, merge `2ed42c3818e72da321c3218d22d7662be607633c` (2026-11-01). It is separate from the @@ -630,8 +630,8 @@ fi `python3 tests/native/v2/test_verdict.py` passed all five compiler-free tests on that pin; these execute the real terminal shell suffix, not upstream detection or native callers. The separate full native-v2 run above exercised detection and the new missing-toolchain verdict. -- **Pending with omega-bridge#54 (2026-10-31):** `tests/native/v2/run.sh` needs `OMEGA_NATIVE_OMC` (734f0a39…) and `OMEGA_NATIVE_OMC2` = the omega-mv#1008 compiler (3988c31f…); its section 11 runs the `--host` refusals and the C and Rust callers of `tests/native/v2/host/hfile.om`. Observed at `c7f432cd` on AArch64 with zig 0.13.0 and go 1.27.3 on PATH: rc 0, 72 PASS, `NATIVE-V2 PASS (not run: none)`; `tests/native/run.sh`: `NATIVE-CALL PASS (not run: none)`. Negative control: removing the source scan from `fn unit` lets a parenthesised `geteuid` through without `--host`, and the suite catches it. The v1/v2 byte-identity baselines on bridge main were stale (#26's f32/ushort kinds changed every unit's Python output), so `v2/run.sh` failed on main before the fix to `74fcd43` carried by #54. The x86 suites fail identically on main and on #54 on this host (no x86_64 cross g++, `OMEGA_NATIVE_X86_PYTHON` unset): NOT_RUN, not caused by #54. No CI runs the native suites. -- PENDING (omega-bridge draft PR #27, branch `feat/native-darwin` @ `362c6d0fb857e9068557bc244a7046051e47fb41`, not merged; rechecked 2026-11-04: bridge main `7af4d11` merged in, still draft): the C file that `src/native.om` generates also builds on macOS arm64 (Mach-O) and refuses to build there with `#error` for any unit whose code makes Linux system calls (host words). Generation stays Linux AArch64 only (main's `tools/native OUTDIR unit.om ...`, pinned omc `734f0a39…6b61`). The macOS check has two steps: `OMEGA_NATIVE_OMC=<seeded omc> sh tests/native/macos/run.sh bundle DIR` on Linux, then `sh DIR/run.sh run DIR` on the Mac, which must print `NATIVE-CALL-MACOS PASS` (exercised once on macOS 26.6.2, Apple M2, clang 17). It covers the C and Python callers, byte identity, no x18, the add->sub mutant and host-word refusal. C++/Rust/Zig/Go, ABI v2 and BTI on macOS are NOT_RUN. The ABI v2 suite `tests/native/v2/run.sh` also fails on bridge main (exit 110 since #26) until omega-bridge #55 lands. Until #27 merges, main is still AArch64 Linux only. +- **omega-bridge#54 (merged 2026-11-05 `d1124611`; observations from 2026-10-31):** `tests/native/v2/run.sh` needs `OMEGA_NATIVE_OMC` (734f0a39…) and `OMEGA_NATIVE_OMC2` = the omega-mv#1008 compiler (3988c31f…); its section 11 runs the `--host` refusals and the C and Rust callers of `tests/native/v2/host/hfile.om`. Observed at `c7f432cd` on AArch64 with zig 0.13.0 and go 1.27.3 on PATH: rc 0, 72 PASS, `NATIVE-V2 PASS (not run: none)`; `tests/native/run.sh`: `NATIVE-CALL PASS (not run: none)`. Negative control: removing the source scan from `fn unit` lets a parenthesised `geteuid` through without `--host`, and the suite catches it. The v1/v2 byte-identity baselines on bridge main were stale (#26's f32/ushort kinds changed every unit's Python output), so `v2/run.sh` failed on main until the baseline fix (omega-bridge #55, merged `fa8581e8`; #54 carried the same fix to `74fcd43`). The x86 suites fail identically on main and on #54 on this host (no x86_64 cross g++, `OMEGA_NATIVE_X86_PYTHON` unset): NOT_RUN, not caused by #54. No CI runs the native suites. +- MERGED (omega-bridge #27, merged 2026-11-05 as `077d3d22`; the results below were recorded on branch `feat/native-darwin` @ `362c6d0fb857e9068557bc244a7046051e47fb41`): the C file that `src/native.om` generates also builds on macOS arm64 (Mach-O) and refuses to build there with `#error` for any unit whose code makes Linux system calls (host words). Generation stays Linux AArch64 only (main's `tools/native OUTDIR unit.om ...`, pinned omc `734f0a39…6b61`). The macOS check has two steps: `OMEGA_NATIVE_OMC=<seeded omc> sh tests/native/macos/run.sh bundle DIR` on Linux, then `sh DIR/run.sh run DIR` on the Mac, which must print `NATIVE-CALL-MACOS PASS` (exercised once on macOS 26.6.2, Apple M2, clang 17). It covers the C and Python callers, byte identity, no x18, the add->sub mutant and host-word refusal. C++/Rust/Zig/Go, ABI v2 and BTI on macOS are NOT_RUN. - Compiler changes need the repository's referee and wrong-word-mutant checks, not just a self-fixpoint. Before running any gate, read its prerequisites, device requirements and whether it writes receipts. - For the merged IR/wasm backend above, run `nice -n 19 sh seed/wasm/gate-irwasm.sh`. Node v24.21.0 is a read-only wasm validation/execution oracle only; never use Node to generate