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/81e5969a4b79cc1f # 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#42 (code only) closed derived `81e5969a4b79cc1f` #42 Imported from GitHub aien-dev/omega-harness#42 (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 `eb07daf4ae9a3aa4cab66049a60c3f3c2be2aced` · Head `e3dea5d4f5d5d3f16e6b4f6bcf9d4ccea6e18ee0` ### Fetch it A git bundle of the pull request's head, 17428 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/81e5969a4b79cc1f.bundle -o 81e5969a4b79cc1f.bundle git fetch 81e5969a4b79cc1f.bundle refs/pull/42/head ``` Raw bundle · 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 42 e3dea5d4f5d5d3f16e6b4f6bcf9d4ccea6e18ee0 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":42,"url":"https://github.com/aien-dev/omega-harness/pull/42","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:45Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/README.md b/README.md index 9708e93..a5a13f2 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,6 @@ The `omega-encoding` skill (section 13) records the full set of observed results **The agent that makes a change updates the guides.** If your work changes the Omega language, the compiler or its pin, build or gate commands, the encoder or bridge, repository ownership or status, or this harness, update the matching skill in the same piece of work. Then open a PR here with the evidence. If you can't, open an issue saying what is now stale. `omega-harness` section 6 has the full map of which change goes in which skill. -Each skill names the omega-mv commit it was checked against and lists known disagreements. Historical sections retain their dated pins. `omega-encoding` section 0 adds scoped pins for the IR/wasm backend, the merged Omega 1.0 roadmap, and main `91b3c932` (compiler `189ada82…3b54`): executable contracts, expanded capacity and the f32 return fix. The batch has host evidence, not GPU qualification. When the compiler changes, recheck cited lines, rerun examples, then update pins. Do not edit old evidence. Contributions follow the [shared AIEN agent rules](https://www.aienos.com/agents/RULES.md). +Each skill names the omega-mv commit it was checked against and lists known disagreements. Historical sections retain their dated pins. `omega-encoding` section 0 adds scoped pins for the IR/wasm backend, the merged Omega 1.0 roadmap, main `91b3c932` (compiler `189ada82…3b54`: executable contracts, expanded capacity and the f32 return fix) and the current main `0b77e6ea` (batch 2 compiler `2c824805…029f`: function-mode const, flock, network host words, IR v1 validation, saturating casts). Both batches have host evidence, not GPU qualification. When the compiler changes, recheck cited lines, rerun examples, then update pins. Do not edit old evidence. Contributions follow the [shared AIEN agent rules](https://www.aienos.com/agents/RULES.md). Written by Drake Stapleton with AIEN agents. Apache License 2.0. diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md index 4df9171..70dc8d4 100644 --- a/skills/omega-encoding/SKILL.md +++ b/skills/omega-encoding/SKILL.md @@ -10,8 +10,9 @@ cannot express, and before encoding bytes, integers or host I/O in Omega. ## 0. Pin and how to re-check it -The general-language citations below retain their dated historical pin. The newer, -scope-specific pin immediately below is the tested and merged IR/wasm backend. +The general-language citations below retain their dated historical pin. The current main compiler +pin is "Merged compiler batch 2" below (`2c824805`, main `0b77e6ea`); the dated sections between +record how it got there. | Item | Value | |---|---| @@ -165,6 +166,30 @@ returns now work: internal void return code 12 is distinct from f32 value type 1 `gate8.sh` exercises f32 values and rejects void-as-value (7) and f32 fallthrough (18). Consumers must explicitly migrate and qualify their own pins; a main merge does not deploy them. +### Merged compiler batch 2: current main pin (2026-10-26) + +omega-mv main `0b77e6ea294aa3d69ccbdb86b9c14d133abea689` merges #816 (`integ/omc-batch2`, head +`4e76fd36b35beb5ef69e059e180c0d1ea8081d92`, tree identical to the merge). Status: MERGED and +EXERCISED on arm64 Linux, re-run in a fresh clone of main; not GPU qualification, not deployed. +This supersedes `189ada82` above as main's pin. Consumers still pinning an older digest must +migrate and re-qualify themselves. + +| Item | Value | +|---|---| +| `seed/omc/omc.om` | 12,040 lines, 405 functions, sha256 `7703da00055fc0c7a91fcae43071df76a3f277dbe867cb284a3bdff3bedb7e1b` | +| `seed/out/omc` | sha256 `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f` | +| Receipt | `evidence/BATCH-2c824805/README.md`, final run in `final-87f501ad/` | +| Size ledger | `seed/omc/size-history.tsv`, row `RM-batch2` | + +Contents: function-mode `const` (#806), `flock` 197 (#805), `peercred` 220, `pollfds` 221, +`sendmsg` 222 with the sockopt allowlist and getppid on syscall 173 (#808, section 9a), IR v1 +validation (#810, below), saturating float-to-integer casts by destination range and earlier +consts staying visible after a `fn` signature (#815). Frozen C2 is 5870/5876; the six failures +are exactly the declared rows in `manifest-c2-capacity.txt` and `manifest-c2-batch2.txt`, and +`189ada82` scores 0/3 on the batch 2 manifest. `om/units.sh`, the om/tls suites and +`seed/json/tests/gate-json.sh` pin this digest and refuse `189ada82`. #775 (empty text to a +`view`) is NOT fixed; it is batch 3 (`integ/omc-batch3`, integrator OmegaNext). + Re-check recipe (read only, in a fresh clone, never in a shared working tree another agent may be using): @@ -182,6 +207,34 @@ or fixture checks it), **author-verified** (the repository records a run; not re **proposed** (described, not on `main`). Nothing here is hardware qualification, and nothing here is deployed anywhere. +### Scalar IR validation repair (merged in batch 2) + +[omega-mv #810](https://github.com/aien-dev/omega-mv/pull/810) (source head `b77c07e41`) is +MERGED on main through batch 2 (#816) and is in the `2c824805` pin. +The compiler rejects discarded trailing words, missing operands, stale +untyped values, out-of-scope locals, duplicate loop counters, non-void +fallthrough and unsupported float signatures before serializing IR. +Local/parameter names remain at most eight bytes; function names retain +full matching up to 63 bytes. `continue` remains refused with error 3. + +The IR parser must consume each operand exactly once. In particular, a +bare left operand whose type is inferred from the right must not parse +that right operand again: the valid `shl 1 sh` regression is exercised by +the existing C-oracle dev corpus. + +Host-only commands, with `nice -n 19 ionice -c3` and builds limited to `-j2`, first on the +candidate and again on the batch 2 promotion head (`final-87f501ad/ir-trap.log`): +`python3 seed/omc/gate-ir-trap.py` reported `CHECKS=67 FAILURES=0`; +`python3 seed/omc/mutants-ir-trap.py` reported `COMPILED_MUTANTS=5 CAUGHT=5 RC=0`. +`sh seed/omc/gate-ir.sh` exited 0 on the candidate. The candidate's temporary fixpoint +`c8f38317…0f30` was a test artifact; the committed pin is `2c824805`. + +The separate [memory-profile specification #809](https://github.com/aien-dev/omega-mv/pull/809) +uses the milestone label “IR v2” but reserves **OSC wire v7**, preserving +existing wire v2 and draft #525's v6 reservation. Specification approval +does not mean omc or irwasm implements memory. The scalar backend refusal +boundary above remains the implemented boundary until separately qualified. + ## 1. Which language is which | Thing | Where | Status | @@ -263,6 +316,11 @@ end - A unit with `fn main` is a static AArch64 Linux ELF (program mode). Without `fn main` the output is bare function words (function mode): it compiles with exit 0 but is **not runnable**. Host words and `global` are error 9 there, and `text` is program-mode only ([#L400-L407](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L400-L407), [#L454-L459](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L454-L459), [#L629](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L629)). + `const` is accepted in function mode from pin `2c824805` ([omega-mv #806](https://github.com/aien-dev/omega-mv/pull/806), + merged in batch 2): each read is folded, so the words equal the literal-only unit byte for byte, + while a `global`, a `text` and host words stay error 9. `gate16` exercises it (9 function-mode + units, `final-87f501ad/qualification.log`). Older pins (`189ada82`, `befb8199`) still refuse it + with `omc: line : error 9`; there, write literals with a `note`. - 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)). @@ -319,6 +377,8 @@ bound in an outer `if`, then load inside it. decimal-to-binary rounding; overflow to infinity is error 8 ([#L555-L563](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L555-L563)). - Named constants: `const NAME TYPE LITERAL` at top level, visible only after their definition, also usable as array lengths, `trap` codes and `while` bounds ([#L602-L622](https://github.com/aien-dev/omega-mv/blob/55f9b0af47de70a3d06357985cf99ae3e45c016f/docs/one_layer/OMEGESE.md#L602-L622)). + Function mode too from `2c824805` (#806); a `const` declared after a `fn` no longer breaks later + signatures that use an earlier `const` as an array length (#815, `gate16` const_order). ## 5. Arithmetic, conversions and traps @@ -428,6 +488,83 @@ files, directories, clocks, sockets, poll, processes, arguments, environment, ra - Evidence for any host claim: compiler sha256, source sha256, output binary sha256, exact command, exit status, and the observed bytes. A program that ignores a negative result is not evidence. +### 9a. Bounded networking host words (#788, merged in batch 2) + +MERGED on main through batch 2 (#816, pin `2c824805`). +[omega-mv PR #808](https://github.com/aien-dev/omega-mv/pull/808), source +`58d6fb6a2f72b1ab02c0eb0c01afe141303c968d`, adds these Linux-arm64 host words: + +| Word | Contract | +|---|---| +| `peercred fd A off capacity` | Writable capacity at least 12; zero or negative errno; writes little-endian PID/UID/GID from `SO_PEERCRED`. Compare against application policy on a connected Unix socket; credentials alone grant nothing. | +| `pollfds A off n interval` | Writable packed eight-byte `pollfd` records, byte length multiple of eight and at most 8192; returns ready-entry count, zero timeout, or negative errno. Interval is nanoseconds; negative is infinite. | +| `sendmsg fd A off n flags` | One checked payload, private single `iovec`, no ancillary data; adds `MSG_NOSIGNAL`, returns partial count or negative errno. | + +The same source narrows `sockopt` to four-byte scalar values: +`SOL_SOCKET` options `SO_REUSEADDR`, `SO_REUSEPORT`, `SO_KEEPALIVE`, `SO_SNDBUF`, +`SO_RCVBUF`, and `IPPROTO_TCP/TCP_NODELAY`. Unknown options return `-92` +(`ENOPROTOOPT`); incorrect scalar length returns `-22` (`EINVAL`). Ordinary +kernel errors remain unchanged. Slices are checked before kernel calls. + +Sockets, `accept4` (`accept`), connection establishment, `send`/`recv`, +`waitio`, and `fclose` already exist; do not describe HTTP/JSON library work as +a missing socket interface. Callers own partial-I/O loops, monotonic deadlines, +EINTR/EAGAIN handling, framing and descriptor lifecycle. Do not retry `fclose` +after an error. Public TLS termination and tailnet encryption do not make +Omega a TLS client. The `.om` TLS library (`om/tls`, omega-mv #813) is merged +and host-exercised on `2c824805`; it is not hardware or third-party qualified. + +Author-exercised candidate only: bootstrap compiler +`befb8199db8c4bca188a494dfaac2a6f0ee5c36fcea11188c75666c55fce8a1d`; +one-stage candidate `b3159185ac433884184c83e573ae2397a72ce3d3bfb98fdd9c7838e4b2f98c3c`. +`OMC= sh seed/host/gate.sh` and `OMC= sh seed/host/negative.sh` +exited zero; all compiler invocations in the corrected host gate use `OMC`, +including its nested refusal driver and generated identity fixtures. +`python3 seed/host/net-mutant.py` caught the wrong-syscall and ignored-error +mutants via assertion exit 1 while the original fixtures exited zero. +Expanded `seed/host/tests/netdata.om` exercised short sends, EPIPE without +SIGPIPE, repeated descriptor reuse and monotonic timeout, exiting zero; +the three bounds controls exited 103. Source fixture SHA256 +`6762de311b8b1cb4f1f9220bc3837b29733fcf382ac3c2cd19e8096c02789f88`. +The distinct parent/child peer-credential fixture also exposed an older +`getppid` lowering defect: Linux-arm64 syscall 110 is `timer_settime`, whereas +`getppid` is 173. This source corrects it and requires a positive parent PID. +The earlier fixture accepted negative errors. Earlier candidate host-gate +logs used the committed compiler for two paths and are mixed-compiler evidence, +not full qualification of that candidate. Preserve those logs as history. +Those candidate checks did not establish a reseed. The batch 2 reseed did: +on `2c824805`, `seed/host/check.sh` with `gate5.sh` passed with 53 host negative +controls, including sockopt, flock and network (`final-87f501ad/qualification.log`). +Not hardware qualification. + +### 9b. HTTP/1.1 and JSON library units (#788) + +[omega-mv PR #814](https://github.com/aien-dev/omega-mv/pull/814), MERGED 2026-10-26 as `77ebd3fd5910e16326e4f6990141c76fce1ee735` (head +`f066f270cf23bfb07c458dd56504cf23c974d955`), adds library units, not +language or compiler changes. Gates first ran on `189ada82…3b54` and were re-run on batch 2 `2c824805` +(the JSON gate now pins `2c824805`): +`seed/net/http.om` (functions `h*`, constants `H*`) and `seed/json/{json,jsonw,jsonf}.om` +(`js*`). They have no `om2` line, no globals and no `main`; the caller composes one OM-2 unit: + +```sh +{ printf 'om2\n'; cat seed/json/json.om seed/json/jsonw.om seed/net/http.om app.om; } > app.full.om +``` + +- State is caller-owned arrays (`cs`, `io`, JSON `tape`, writer `ob`); globals cannot be passed, + so they are locals of the caller, inside the 4 MiB local-array limit. +- HTTP is strict: CRLF only, no obs-fold, Content-Length with Transfer-Encoding or a duplicate + Content-Length is refused, only `chunked` coding, caps on head, header count, body (1 MiB + default) and chunk framing, idle/head/body deadlines from `waitio` and `monons`. TLS is not + included; a non-plain transport returns -95. +- JSON numbers stay source lexemes; integers convert exactly; `jsonf.om` gives correctly rounded + binary64 on request. Duplicate keys are kept in order: the application decides. +- Two compiler limits met while building them at `189ada82`, both fixed in `2c824805`: `const` + blocked function-mode compilation (#806), and a `const` declared after a `fn` broke later + signatures that use an earlier `const` as an array length (#815). On older pins, declare + constants before functions. +- Gates (host only): `python3 seed/net/tests/check.py` → `HTTP-CHECK PASS`; + `sh seed/json/tests/gate-json.sh` → `JSONGATE PASS rows=8758 mutants=5`. + ## 10. Wire serialization (only what the pin defines) - There is no byte-layout type. Encode and decode integers with shifts and masks into `uchar` diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md index 316d30b..2d7e246 100644 --- a/skills/omega-harness/SKILL.md +++ b/skills/omega-harness/SKILL.md @@ -69,8 +69,8 @@ fi - The program's return value becomes the process status, modulo 256. A trap exits with 100 plus its code. A nonzero status is not automatically a failure. Tell compiler refusal, runtime trap and intended result apart, and never run output left behind by a failed compile. - Do not lose the status: no pipelines that hide it, and do not let `set -e` skip collecting an expected nonzero exit. -- 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. At source `ec07d25d5506d33567adbd4d9b518177b7933bad` on 2026-10-26, the seed gate reproduced `499236398aabc652e2dae27fe4bdc4c5db3d3726314356e0dbef23e3345803ec`. Main later used `befb8199db8c4bca188a494dfaac2a6f0ee5c36fcea11188c75666c55fce8a1d`. Main `91b3c9326919faf1491e29ae9276929e8349b8c7` now carries 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`. +- 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. At source `ec07d25d5506d33567adbd4d9b518177b7933bad` on 2026-10-26, the seed gate reproduced `499236398aabc652e2dae27fe4bdc4c5db3d3726314356e0dbef23e3345803ec`. Main later used `befb8199db8c4bca188a494dfaac2a6f0ee5c36fcea11188c75666c55fce8a1d`, then batch compiler `189ada82e00bb440cb41351bd252cc68c54a1b1050051cc42a1df700081c3b54` at `91b3c932` (contracts, capacity and f32 returns; `evidence/BATCH-189ada82/README.md`). Main `0b77e6ea294aa3d69ccbdb86b9c14d133abea689` (#816) now carries batch 2 compiler `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f` (function-mode const, flock, network host words, IR v1 validation, saturating casts); its host qualification is `evidence/BATCH-2c824805/README.md`. Compiler changes go through one integrator (OmegaNext) on `integ/omc-batch3` as source-only PRs; the integrator does the one reseed per batch. +- 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 `0b77e6ea` the last row is `RM-batch2` (`2c824805…`). 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`. - Run the changed path and compare exact expected bytes, status and state; a successful compile proves nothing about behavior. Also exercise the failure or refusal boundary most likely to regress. If that is impractical, say exactly what was not run. - Run a negative control: change an expected value or feed invalid input, and confirm the check fails. A verifier that also accepts its negative control has not established anything. - Qualification case files (`.cases` in omega-mv) are executed by a conductor, not run directly. More than one conductor exists under `seed/qualification/`, and picking the wrong one looks like a failing gate. Read the conductor's `main` for its argument count first. Observed 2026-10-25 with compiler `734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61`: `seed/qualification/om2/gate.om` takes four arguments (`omc pinhash casesfile scratchdir`) and summarises as `OM2GATE PASS cases=N pass=N fail=N invalid=N not_run=N`; `seed/qualification/security673/gate669.om` accepts at most one argument and exits 90 under a four-argument call. A usage status such as 90 from a conductor is INVALID setup, never a qualified refusal. ```