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#146 (code only)

closed derived dc47bfbc78fcdfe1 #146

Imported from GitHub aien-dev/omega-harness#146 (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 8a4558c4d68433280b0d205050244d1bf8957506 · Head b4ecc13111f25023defe06c73c35124a0a3025e8

Fetch it

A git bundle of the pull request's head, 4017 bytes.

curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/dc47bfbc78fcdfe1.bundle -o dc47bfbc78fcdfe1.bundle
git fetch dc47bfbc78fcdfe1.bundle refs/pull/146/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
146
b4ecc13111f25023defe06c73c35124a0a3025e8
{"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":146,"url":"https://github.com/aien-dev/omega-harness/pull/146","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:36Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md
index 4f7350f..690c5f9 100644
--- a/skills/omega-encoding/SKILL.md
+++ b/skills/omega-encoding/SKILL.md
@@ -769,6 +769,23 @@ Historical note: up to omc `2c824805…` (omega-mv `e5b32567`, the omega MCP pin
 the wrong word: `pwrite` from a `text` was error 20 and `pread` into a `text` compiled and returned
 `-EFAULT` at run time. Code written for that pin copied a text into a `new` array before `pwrite`.
 
+**`execpure` and descriptor closing in `execprog`** (merged in
+[omega-mv#970](https://github.com/aien-dev/omega-mv/pull/970) as `1db941627`, current main pin
+`91c83438` / omc `2aec185d`). `execpure A off n` is host word 198
+(AArch64 only; `target x86linux` is error 25): it decodes the packet as `execprog` does, pins the
+executable as descriptor 3, applies a fixed strict stdio profile (Landlock execute/read beneath that file,
+no-new-privs, seven `prlimit64` ceilings, a seccomp filter allowing only `read` on 0, `write` on 1 and 2,
+`exit`, `exit_group` and `execveat` on 3) and calls `execveat(AT_EMPTY_PATH)`. It returns only on failure,
+with the first failing step's negative errno, and has no weaker fallback. `execprog` also changes: it now
+closes every descriptor at or above 3 with `close_range(3, UINT_MAX, CLOSE_RANGE_UNSHARE)` before exec,
+so a child no longer inherits them. Observed 2026-10-31 with omc `2aec185d` (host only): the
+`seed/qualification/security673/pure-launch.om` fixture launching a static omc program that exits 7 gave
+exit 7; launching `/nonexistent/x` printed `PURE_LAUNCH_REFUSED` and exited 2 (ENOENT); a child that reads
+descriptor 3 got EPERM (exit 1) under `execpure`, and EBADF (exit 9) under `execprog` with the parent's
+descriptor 3 open. The omc of `1db941627^` (`0243e4aff`, sha256 `1578b357…`) refuses `execpure` with
+error 3, and its `execprog` child read the inherited descriptor 3 (exit 50). Older pins, including the
+omega MCP pin `2c824805…`, lack both.
+
 - Types: `fd`, flags, modes, pids are `int`; offsets, counts, capacities `ulong`; file positions and
   intervals `long`; buffers are `uchar` arrays. Every result is `long`.
 - A result is a **count or minus the Linux errno**. `read` may return fewer bytes than asked, 0 at