omega-harness
Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories
Brought by drakestapleton
GitHub aien-dev/omega-harness#79 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/069f55f9ce49b7dd.bundle -o 069f55f9ce49b7dd.bundle git fetch 069f55f9ce49b7dd.bundle refs/pull/79/head
Provenance
github-import 1
aien-dev/omega-harness
79
01295fc6b365c6f7e91f8aa2c63c02dfc3609201
{"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":79,"url":"https://github.com/aien-dev/omega-harness/pull/79","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:49Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/skills/aien-repositories/SKILL.md b/skills/aien-repositories/SKILL.md index 9151cc9..ffae015 100644 --- a/skills/aien-repositories/SKILL.md +++ b/skills/aien-repositories/SKILL.md @@ -117,6 +117,7 @@ For memory, do not route to an archived repo just because its name sounds right. - [omnet](https://github.com/aien-dev/omnet): Omega security-critical networking, initially server-side Tailnet Lock. It is not part of the alpha bundle. Its [README](https://github.com/aien-dev/omnet/blob/main/README.md) Status section (main `83f605b`, 2026-10-26) records the Omega daemon with all eight TKA RPCs and isolated end-to-end verification of the Headscale adapter and stock-client control-plane lifecycle, and says this is not deployed tailnet protection, data-plane qualification or a production security audit. Live deployment needs its own evidence. - [omtex](https://github.com/aien-dev/omtex): writing papers in Omega. `lib/omtex.om` is an Omega library, concatenated in front of a paper (FR-3, no imports), that emits escaped LaTeX and refuses unsafe input (exit 111). Omega listings are compiled with the pinned omc during the build (pin: omega-mv `91b3c932`, omc `189ada82…3b54`). There is no `target latex` in omc; pdflatex is a recorded host dependency. Main `4c86614` (2026-10-26) reproduces the published Omega paper (Zenodo 23547811) and the Turing brief: the PDF text matches the published PDFs, and the pages are pixel-identical to the original `.tex` built with the same pdfTeX. `tools/zenodo-draft.sh` creates drafts only and refuses any publish URL. Publishing to Zenodo is Drake's action. - [open-humanity](https://github.com/aien-dev/open-humanity): opt-in assistance-network attachment. Discovery or a peer request does not grant local execution, identity, secret access or administrative authority. +- [omega-gpu-driver](https://github.com/aien-dev/omega-gpu-driver) (created 2026-10-27): the GB10 GPU driver in seeded Omega, child of omega-mv (pins commit and omc sha256 in `tools/omc.pin`). W0 `w0.om` opens a `vfio-pci` function, reads config identity and PMC_BOOT_0/1/42 read-only, and releases it. Status: EXERCISED in QEMU (`qemu/test.sh`, edu on vfio-pci); not run or qualified on GB10. Its VFIO words are pending in draft omega-mv#878 and #890. Draft PR #3 (head `2bca194` when written; rechecked 2026-11-04: still an open draft, head `d83122bf`) adds `.om` ports of aienux#441 driver C (GSP MMIO start-up, GspSystemInfo, CPU sequencer, firmware container/bindata/inflate/sha384 as `fwprep`, GMMU/channel/memory, RM alloc params), each gated byte for byte against the C referee with mutant scripts, plus the D2 window scripts in `window/` with a simulator; all host-only. The GSP boot/RPC port (`gb10_gsp_boot.c`) does not exist: it was refused by the model policy and needs a human-written port, so `ogd boot`/`hello` cannot run. Host binding to `vfio-pci` is an operator action in an authorized window. ### Evidence and workflow diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md index 1dc84cd..b2d9ba4 100644 --- a/skills/omega-encoding/SKILL.md +++ b/skills/omega-encoding/SKILL.md @@ -1194,6 +1194,60 @@ omega MCP pin `2c824805…`, lack both. (reproduced at omc `2c824805…`: `d = xor c get A 0` is error 7, `xor c ulong get A 0` compiles). - Host words and `global` need program mode: without `fn main` the unit compiles in function mode and every host word is error 9 with an empty output file, which reads like a broken pin. +- **VFIO device words: PENDING, not on `main`.** Draft + [omega-mv#878](https://github.com/aien-dev/omega-mv/pull/878), rechecked 2026-10-30 at head + `019108d5cbaae12bdad818741b6a97ac8572501b` (committed omc sha256 + `d5d7d1029bf1b7011570d346e320bc793a0f3ee3c227033f7f8d2bbc292c4054`, self-rebuild byte-identical), adds + keyword ids 178/179 ([MAPPING.md#L18-L19](https://github.com/aien-dev/omega-mv/blob/019108d5cbaae12bdad818741b6a97ac8572501b/seed/host/MAPPING.md#L18-L19), + allowlist [#L66](https://github.com/aien-dev/omega-mv/blob/019108d5cbaae12bdad818741b6a97ac8572501b/seed/host/MAPPING.md#L66)): + `vfioctl fd req A off n -> long` takes only a **literal** request from the allowlist at its exact + `n` (GET_API_VERSION 15204/0, CHECK_EXTENSION 15205/4, SET_IOMMU 15206/4 value 3 only, + GROUP_GET_STATUS 15207/8, GROUP_SET_CONTAINER 15208/4, GROUP_GET_DEVICE_FD 15210 nonempty name + without zero bytes, DEVICE_GET_INFO 15211/24, DEVICE_GET_REGION_INFO 15212/32), writes + `argsz = n` when `n >= 8`, returns the result or -errno. A non-literal or unlisted request + (including DEVICE_RESET 15215) is compile error 9; wrong sizes or values trap 103 at run time. + Both words are AArch64 only: under `target x86linux` either one is error 25 + ([#L85-L86](https://github.com/aien-dev/omega-mv/blob/019108d5cbaae12bdad818741b6a97ac8572501b/seed/host/MAPPING.md#L85-L86)). + Observed with that omc on Linux AArch64: `r = vfioctl neg int 1 uint 15207 a 0 8` returned -9 + (EBADF, run exit 0 in a program checking it); `uint 15215` and a request held in a name are + error 9; a count held in a name compiled and trapped 103 at run time; the x86 form is error 25; + the PR's `seed/host/tests/vfio.om` exits 0 and `vfiocheck.om` prints + `PASS 15 VFIO compiler refusals`. Main's omc `62775d2a…` does not know the words (error 3); nor + does the guide-pin omc `be8c5130…` or main `d3d1b1bc7`'s omc `b4f45121…` (rechecked 2026-11-04: + `r = vfioctl neg int 1 uint 15207 a 0 8` is `omc: line 3: error 3` on both). + Not calling DEVICE_RESET does not avoid a reset: Linux vfio-pci FLRs on device open when a reset + method is enabled and calls `pci_reset_bus` (SBR) on release even with `reset_method` empty. + `vfiomap fd A off 32 -> handle` maps one `vfio_region_info` read-only and shared, exactly its size + at its offset; flags must include READ and MMAP. Read with `mapget`, release with `mapdrop`; + `mapset` through it traps. Exercised on host fixtures and in QEMU against real `vfio-pci` + ([omega-gpu-driver qemu/w0-edu.log](https://github.com/aien-dev/omega-gpu-driver/blob/main/qemu/w0-edu.log)); not qualified on GB10. +- **Keyword-id conflict, PENDING:** [omega-mv#946](https://github.com/aien-dev/omega-mv/pull/946) + (`cpufence`/`cpurelax`) merged as `d9461717` (2026-10-31) with ids 199/200, so it no longer + collides. Main `d3d1b1bc7` (#1015, 2026-11-04 recheck) now returns 178 for `efi`, a keyword only + under `target x86efi` (`fn kw` in `seed/omc/omc.om`), while #878 (head `019108d5`, open draft, + conflicting with main) still returns 178/179 for `vfioctl`/`vfiomap`. #878 must renumber and + reseed when it is brought up to main, so the ids above can still change; recheck `fn kw` at the + merge commit before quoting them. +- **VFIO DMA and writable BAR: PENDING, stacked on #878.** Draft + [omega-mv#890](https://github.com/aien-dev/omega-mv/pull/890) (base branch `feat/vfio-device-calls`; + rechecked 2026-10-30 at head `f850c52622577eedcb65af3e1af09ab568101e7a`, which contains #878's head; + committed omc sha256 `fe6e986596f5d22fcfce2bd66006608f49a8f9a28c555066569350aedd3c408b`, self-rebuild byte-identical) adds keyword id 180 + `vfiomapw fd A off 32 -> handle`: as `vfiomap`, but the + region flags must include READ, WRITE and MMAP and the map is shared read/write, so `mapget`/`mapset` + drive registers (one aligned access each, DSB SY on both sides) + ([MAPPING.md#L20](https://github.com/aien-dev/omega-mv/blob/f850c52622577eedcb65af3e1af09ab568101e7a/seed/host/MAPPING.md#L20)). + It also allows IOMMU_MAP_DMA 15217/32 and IOMMU_UNMAP_DMA 15218/24 in `vfioctl` + ([#L84-L99](https://github.com/aien-dev/omega-mv/blob/f850c52622577eedcb65af3e1af09ab568101e7a/seed/host/MAPPING.md#L84-L99)): + Omega code never supplies an address. Write a mapping handle into bytes 8..15 and the IOVA into + 16..23; the compiler checks the handle like `mapget`, requires a read/write mapping and flags exactly + 3, then stores the mapping's own base and whole length; any failed check traps 3 (exit 103). + UNMAP_DMA requires flags 0. Unmap before `mapdrop`: a dropped mapping that is still DMA-mapped + stays pinned until the container closes. All three VFIO words are error 25 under `target x86linux` + ([#L104-L105](https://github.com/aien-dev/omega-mv/blob/f850c52622577eedcb65af3e1af09ab568101e7a/seed/host/MAPPING.md#L104-L105)). + Observed with that omc: MAP_DMA on a zeroed span (no live handle) trapped 103; UNMAP_DMA on fd -1 + returned -9; `vfiomapw` under x86 is error 25; the PR's `vfio.om` exits 0 and `vfiocheck.om` prints + `PASS 19 VFIO compiler refusals`. #878's omc refuses 15217 (error 9) and does not know `vfiomapw` + (error 3). Exercised on host fixtures only. ## 10. Wire serialization (only what the pin defines)