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

GitHub aien-dev/omega-harness#172 (code only)

closed derived 8ab31bcec0478a93 #172

Imported from GitHub aien-dev/omega-harness#172 (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 ec1bb54e2ef6c5cc2cf58ff05d6de531850a4969 · Head 56992d037aa0e89a8ecd346d8099f917218067a3

Apply it

git checkout -b patch-8ab31bcec0478a93 ec1bb54e2ef6c5cc2cf58ff05d6de531850a4969
curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/8ab31bcec0478a93.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
172
56992d037aa0e89a8ecd346d8099f917218067a3
{"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":172,"url":"https://github.com/aien-dev/omega-harness/pull/172","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:39Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/skills/aien-repositories/SKILL.md b/skills/aien-repositories/SKILL.md
index 9151cc9..d3da4a0 100644
--- a/skills/aien-repositories/SKILL.md
+++ b/skills/aien-repositories/SKILL.md
@@ -33,6 +33,8 @@ The default-branch [Omega README](https://github.com/aien-dev/omega-mv/blob/main
 
 omega-mv also holds `om/tls/`, a TLS 1.3 client written in seeded Omega with its own primitives (SHA-2, HMAC/HKDF, X25519, ChaCha20-Poly1305, AES-GCM, ECDSA P-256/P-384, RSA PKCS#1/PSS verify, X.509 path validation). It was merged in omega-mv #813 (`705c0f01`, 2026-10-26). Build a program against it with `sh om/tls/build.sh OMC PROGRAM.om OUT`. Its README states the side-channel limits. Route HTTPS and SMTPS needs in `.om` there, not to a host TLS library.
 
+Since train r3 (`4376c211`, on the pin `9920aab1`) `om/tls/` also holds ECDH (`ecdh.om`), an HMAC_DRBG (`drbg.om`), FIPS-style self-tests and approved-only mode (`fips.om`, `tls_init` flag 4), SHA-3, ML-KEM and stapled-OCSP checking (`rev.om`), plus the fuzz harness `om/tls/test/fuzz/`. Accelerator emitters also live in omega-mv: route AWS Trainium/Inferentia (NKI) work to `seed/nki`, Google TPU/StableHLO work to `seed/stablehlo` and Tenstorrent Tensix work to `seed/tensix`. All three are oracle-exercised on the host only; hardware is NOT_RUN (see `omega-harness`, seed tools section).
+
 Omega's language and toolchain path to 1.0 is [`docs/ROADMAP-1.0.md`](https://github.com/aien-dev/omega-mv/blob/19f014f2178ca9cd3473728fe00a475a2398c409/docs/ROADMAP-1.0.md) (merged in omega-mv #801, 2026-10-26). It has an audit at `3364a1dfd` and milestones RM1..RM11, each with acceptance gates and a tracking issue, [#790](https://github.com/aien-dev/omega-mv/issues/790) through [#800](https://github.com/aien-dev/omega-mv/issues/800). It owns only that acceptance contract. Milestone IDs, status and cross-project order stay with aien-architecture below, and the RM names exist so they are not confused with its `M` rows. Route language work to the RM issue that names it and to the existing owner issue it links. An open RM item is missing work, not something Omega cannot do, and nothing in the file is a readiness claim.
 
 ## Which authority answers which question?
diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md
index 1dc84cd..917176b 100644
--- a/skills/omega-encoding/SKILL.md
+++ b/skills/omega-encoding/SKILL.md
@@ -1211,6 +1211,14 @@ omega MCP pin `2c824805…`, lack both.
   little-endian 32-bit descriptors; `fstat`/`stat` write the 128-byte Linux ARM64 stat structure;
   `waitpid` writes a 4-byte status. Any other protocol layout needs its own spec citation and test
   vectors.
+  At the pin `9920aab1` (OMEGESE lines 1050-1056) a packed list with embedded zero bytes, a truncated
+  record, extra trailing bytes or a count outside 1..64 traps 3; the first `execprog` record (path and
+  argument zero) must be nonempty, and `renames` needs exactly two nonempty records. These refusals are
+  gated by `seed/qualification/security673/packets.cases` (see `omega-harness`, seed tools section).
+- IR mode and floats, observed 2026-11-05 with omc `be8c5130…`: a float type in an `ir` function
+  signature (`fn fa a f64 b f64 to f64`) is `omc: line 2: error 9`, and a float word in the body
+  (`x = f64 a`) is `omc: line 3: error 3` (OMEGESE says error 3 only). No producer of float IR exists, so
+  float backends (`seed/stablehlo` wire v7, `irnki f32`) use hand-written fixtures or retyped u32 lanes.
 
 ## 11. Compiler errors (exit code = error number, stderr `omc: line N: error K`)
 
diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md
index 2d1d5ba..7761ce7 100644
--- a/skills/omega-harness/SKILL.md
+++ b/skills/omega-harness/SKILL.md
@@ -366,6 +366,20 @@ fi
 - 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`; observed at main `91c83438`, omc sha256 `2aec185d4ed6d7a6a5779ed656b4e56904742bde5551b02893fb5f73916ad8d5`, two pins before the current `9920aab1`; not rerun at `24caacf4` or `be8c5130`). `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.
 
+### Seed tools and target directories landed on omega-mv main (checked 2026-11-05)
+
+All of the following are on omega-mv at the harness pin `9920aab1` (omc `be8c5130…`) and on main `d3d1b1bc` (omc `b4f45121…`), except DDC650, which is on main only. Each line names the gate and what was observed on the Spark host (Linux AArch64, `nice -n 19 taskset -c 0-9,15-19`) on 2026-11-05. Host and oracle results are not hardware qualification.
+
+- **`seed/equiv/irequiv.om`** (#826, landed in train r2 #972 `f5c9bd89`): exhaustive equivalence of two OSC IR v1 scalar functions, the way to prove a small-domain refactor. Build `seed/out/omc < seed/equiv/irequiv.om > irequiv`, feed it the IR of a unit (`{ printf 'ir\n'; cat unit.om; } | seed/out/omc > unit.ir`), then `./irequiv check A B < unit.ir`: `EQUIV PASS … checked=N differing=0` or `EQUIV FAIL … first=…`. `check` needs identical signatures and at most 24 parameter bits. `sample A B N SEED` prints `NOT_A_PROOF` and exits 10 even on agreement; running out of fuel (16777216 instructions per evaluation) prints `EQUIV INCONCLUSIVE` and exits 6, never PASS. `sh seed/equiv/gate-irequiv.sh` at `9920aab1`: `CONFORM native rows=140 equal=140`, `GATE-IREQUIV PASS`. The result is about the IR, not the AArch64 words the native path emits. The IR-mode cast gotcha (`ret ulong sub c 48`, error 7) is fixed since #967; see `omega-encoding` section 1.
+- **OMEGA-TRACE and OMEGA-TRACECLI** (#608/#610; `tests/gates/omega-trace.gate`, `tests/gates/omega-tracecli.gate`; `tests/gates/run.sh trace|tracecli`). `seed/trace/segment.om` is a library unit (no `main`; concatenate it in front of a program) for trace segment format v1: a 16-byte `AITR` header, 64-byte records with a 52-byte payload and a CRC-32/IEEE per record, at most 4096 records, torn-tail recovery that keeps the valid prefix and quarantines the damaged file as `<segment>.bad`. `seed/trace/tracecli.om` is the read-only inspector. Observed: `sh seed/trace/gate.sh` → `PASS trace 71 checks, 4/4 mutants caught`; `sh seed/trace/cli-gate.sh` → `PASS tracecli 28 cases, mode-0000 refused, 4 mutants caught`.
+- **Packed-list runtime ingress** (#959, in `seed/qualification/security673/`): `packets.cases` and `packets-mutant.cases` are OM-2 case files and run under `seed/qualification/om2/gate.om`, not `gate669.om`. `sh seed/host/check.sh` runs both; the mutant file must give `OM2GATE FAIL cases=3 pass=0 fail=3 …`. Observed at `9920aab1`: `OM2GATE PASS cases=60 pass=60 fail=0 invalid=0 not_run=0` and `PASS packed-list ingress: hostile packets refused; size, count and exact-length mutants detected`. The whole `check.sh` exits 3 because `contract C parity` is NOT_RUN without its comparison oracles. The packed-list rules are in `omega-encoding` (formats the pin defines).
+- **`seed/nki/irnki.om`** (#854): OSC IR v1 single-op u32 elementwise functions to AWS NKI kernels at the `nki.isa` level (the lowest level AWS documents publicly) for trn1/trn2/trn3. Refusals: 24 UNSUPPORTED_OP (div, rem, shl, shr), 25 UNSUPPORTED_TAG, 29 NOT_ELEMENTWISE, 20–28 as irwasm, 30 USAGE, all before the first stdout byte. `irnki f32` retypes u32 lanes to float32 (add, sub, mul only). `sh seed/nki/gate-irnki.sh` needs `NKI_ORACLE_DIR` from `seed/nki/setup-oracle.sh` (`nki.simulate` 0.7.0 under qemu-user 10.0.13; the host qemu 8.2.2 crashes); without it it prints `NOT_RUN NKI_ORACLE_DIR unset…` and exits 3 (observed). Status: IMPLEMENTED, EXERCISED on the simulator per its README, Trainium/Inferentia NOT_RUN. The NKI compiler is a private beta and `neuronx-cc` needs an AWS account.
+- **`seed/stablehlo/irstablehlo.om`** (#852, Google TPU path): `irstablehlo N FUNCTION < unit.ir > module.mlir` lifts one one-block scalar function elementwise to a StableHLO `@main` over `tensor<NxT>`; refusals exit 20..30 with empty stdout. Oracles IREE 3.13 (llvm-cpu) and the XLA CPU PJRT client (jaxlib 0.12.0.1) are interop oracles; without them the gate prints `NOT_RUN requires iree-compile oracle` and exits 3 (observed). Omega's signed overflow trap has no StableHLO form (Omega exits 101, the oracles wrap). libtpu is closed, so StableHLO is the lowest level Omega writes; any TPU run is NOT_RUN.
+- **`seed/tensix/`** (#851, Tenstorrent): the unchanged `seed/rung2/asm2.bin` with the table `rv32im.tbl` (registers written as numbers), and `irrv32.om`, which lowers the IR of a `(uint,uint)->uint` unit (CONST/MOV/BIN add,sub,mul,and,or,xor/RET) to an RV32IM elementwise kernel and refuses div/rem/shl/shr with exit 24. `sh seed/tensix/gate-tensix.sh` observed: irrv32 output byte-identical to the asm2 `vecadd.bin`, GNU/LLVM objdump and qemu-riscv32 checks PASS, mutants caught, `RESULT NOT_RUN (9 checks could not run; nothing failed)` because the pinned ttsim v1.15.0 libraries are absent; exit 3. No Tenstorrent card was touched.
+- **om/tls fuzz harness** (#849, `om/tls/test/fuzz/`): `fz_*.om` targets plus `run.sh` stages `build replay plant fuzz cmin triage service`. A trap exits 100+code, so any input exiting ≥100 is a crash (AFL++ `AFL_CRASH_EXITCODE=101-114`); campaigns use AFL++ v4.40c `qemu_mode` (`-Q`) with CMPLOG (`-c 0`), and the planted-defect control `fz_plant` must trap natively (exit 103) and be found blind. `run.sh` refuses the X925 cores 5–9 and 15–19 and more than 2 workers. Observed at `9920aab1`: `OUT=… sh om/tls/test/fuzz/run.sh build replay` built 8 targets and printed `replayed 309 inputs`, `fails=0`; `fz_plant` exits 103 on `\0OMFZ` and 0 on `\0OMFY`. The fuzz and plant stages were not run here.
+- **om/tls units since train r3 `4376c211`**: `om/tls/build.sh` concatenates `sha2 hkdf drbg x25519 sha3 mlkem chacha aesgcm ec ecdh rsa x509 rev fips tls`. `tls_init c hostname flags`: flag 1 offers ALPN http/1.1, flag 4 is approved-only mode (HMAC_DRBG, NIST-approved algorithms only), flag 8 checks stapled OCSP with must-staple (`om/tls/README.md`).
+- **DDC650** (#650, `seed/qualification/ddc650/ddc.om`, merged `a48b6041` in #952): diverse double compilation of `seed/omc/omc.om`. Route S rebuilds from `seed/rung4/om4.bin`; route I interprets the source with `omega_ref` built by GCC from `tools/omega_ref/omega_ref.c` at `190130b7`. Status: PROPOSED gate, host EXERCISED, not in any manifest, not QUALIFIED, and not a trusting-trust cure: same host, kernel and CPU; the oracle is project-authored; other OS/architecture routes are NOT_RUN. Observed on main `d3d1b1bc` with GCC 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04.1), using the README's run command: `VERDICT DDC650 PASS` (self-regeneration, `stage2 == BIN`, `ref == BIN`, `stage2 == ref` and the NOP sensitivity mutant all PASS), BIN `b4f45121…`.
+
 ### SPIR-V OpenCL Kernel backend
 
 `seed/spirv/irspirv.om` in [omega-mv #804](https://github.com/aien-dev/omega-mv/pull/804)