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

branch main Branches Tags History

omega-harness / README.md

184 lines · 14668 bytes Raw Blame History Rendered
1# Omega Harness
2
3Agent skills for working in Omega, the `.om` language of AienOS, and in the AIEN repositories. An agent that loads these skills finds the actual source before acting, writes `.om` code that the seeded compiler accepts, runs what it builds, and reports its status without overstating it.
4
5Skills can't make agents flawless. What these do is turn the mistakes agents keep repeating into checks they must run before they claim anything: stale syntax, guessed compiler limits, compiling without running, labeling host-only runs as qualified, and choosing the wrong repository.
6
7<!-- gen:skills -->
811 skills, each `skills/<name>/SKILL.md`; the use column is the skill's own frontmatter `description`:
9
10| Skill | Use |
11|---|---|
12| `skills/aien-repositories/SKILL.md` | What AIEN builds and which repository owns a task: mission, doctrine, plan authority, task routing, evidence and status discipline, known source drift. Use before choosing an AIEN repository or making a cross-repository or status claim. |
13| `skills/lean-verify/SKILL.md` | Machine-checked proofs with Lean 4 + Mathlib through the `lean` MCP server on the Spark. Use to prove a safety invariant (core disjointness, disk floor, lease exclusion, queue bounds, protocol/state-machine properties) about an explicit model, and to check that a proof has no sorry and no extra axioms. |
14| `skills/nvidia-gb10/SKILL.md` | Load before touching the NVIDIA GPU in Drake's DGX Spark (the GB10 chip). Covers running or benchmarking a model on the Spark GPU, the shared model service, the chip lock and timing windows, NVIDIA driver debugging, writing kernels for the chip, and the mistakes already made there. |
15| `skills/omega-communication/SKILL.md` | Communicate Omega and AIEN work precisely: status and evidence labels, reports, PR text, agent handoffs, receipts, semantic needs, wire formats and corrections. Use when reporting, briefing agents, reviewing or publishing claims. |
16| `skills/omega-encoding/SKILL.md` | Write .om that the seeded Omega compiler actually accepts: syntax, types, traps, bounds, register limits, host I/O, byte encoding, compiler errors, verified examples. Use before writing, reviewing or explaining any Omega program. |
17| `skills/omega-gpu-om/SKILL.md` | >- |
18| `skills/omega-harness/SKILL.md` | Operate in Omega and the AIEN repositories. Use for any Omega or .om task, compiler or migration work, AIEN architecture, repository routing, or project status claim. Covers source pins, .om-first implementation, compile and run evidence, safe effects, communication and stopping repeated errors. |
19| `skills/omegese-wire/SKILL.md` | Omegese Wire protocols and wake hygiene: Trinary Doctrine (tools/trit), signed 3-digit layered codebook (tools/codebook), R45 Omegese (aien-train/docs/omegese45), bot-wire wake hygiene, and PROPOSED open tracks (R45 inst 041-099 and Gen 3 error-resistant codebook). Use when implementing, verifying, or routing agent wake signals, codebook frames, or R45 wire messages. |
20| `skills/spark-q38-stress/SKILL.md` | Replay the physical Spark GB10 Qwen four-layer, eight-stream stress test and paged-attention suite, then compare throughput, latency and correctness with a named earlier run. |
21| `skills/wolfram-math/SKILL.md` | Mandatory mathematics through Wolfram. Use for any computation, derivation, identity, unit conversion, numeric constant, formula check or quantitative claim, and to set up or repair the Wolfram tools so an agent never computes by hand. |
22| `skills/writing-omega/SKILL.md` | Portable guide to writing Omega (.om) programs that the seeded omc compiler accepts and runs correctly: program shape, types, words, traps, compiler errors 1..30, common mistakes with the exact refusal, and tested examples. Use before writing or reviewing any .om program on any machine. |
23<!-- /gen:skills -->
24
25The skills use the Agent Skills layout (`skills/<name>/SKILL.md` with `name` and `description` frontmatter), so any agent that reads that layout picks them up.
26
27## Human-Directed Agentic Engineering
28
29Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria and stopping points; agents implement, execute checks, diagnose failures and revise within those boundaries. Human review retains responsibility for claims, acceptance and release decisions. These skills make the agent's inner loop explicit without transferring the human's authority to a model.
30
31For the documented method and systems-software case study, see Gregory M. Kurtzer, *Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering* (2026), [doi:10.5281/zenodo.23682548](https://doi.org/10.5281/zenodo.23682548). Project authorship, compiler pins and historical evidence remain unchanged.
32
33## Install
34
35One command installs the skills from Interplane `main` and records the head it installed in
36`DIR/.installed-from-omega-harness`; the same command with `--check` exits 1 when `main` has moved past
37that head or an installed skill was edited:
38
39```sh
40git clone https://interplane.io/projects/omega-harness/repo.git omega-harness
41omega-harness/tools/install.sh --skills ~/.agents/skills # pick the directory for your agent
42omega-harness/tools/install.sh --skills ~/.agents/skills --check # is the installed head current?
43```
44
45`install.sh` takes `main` from that Interplane repository, so the clone only provides the script. It replaces only this repository's skills in that
46directory. On a Linux AArch64 machine with an overlay (`~/.config/omega-harness/local.rules`, never
47published), `tools/install.sh --omc OMC` also renders and installs the agents' instruction files that the
48overlay names (`omp` `RULES.md`, Claude Code `CLAUDE.md`, Codex and home `AGENTS.md`) from
49`rules/rules.txt`; after a landing on main, the landing tools' `land-hooks.sh` `harness` hook re-runs it
50from the landed head.
51
52**Interplane is the only forge (Drake, 2026-11-11).** This repository is shown at
53https://interplane.io/drakestapleton/omega-harness, and its Interplane `main` is the canonical source.
54Never push to a GitHub remote, open or update a GitHub PR or issue, publish with `gh`, or cite a GitHub
55branch as current state. The `aien-dev` GitHub organization has been frozen since 2026-11-07; its
56`github.com/aien-dev/...` links below are historical citations of the commits they name, not live
57destinations. Only Drake reverses this rule.
58
59| Agent | Skill directory |
60|---|---|
61| oh-my-pi (`omp`) | `~/.omp/agent/skills/` or a project's `.omp/skills/` |
62| Claude Code | `~/.claude/skills/` or a project's `.claude/skills/` |
63| Codex and other Agent Skills readers | `~/.agents/skills/` or a project's `.agents/skills/` |
64
65Install into the directory your agent reads with the command above.
66
67`omp` can also read them in place. Add the clone's `skills` directory to `skills.customDirectories` in `~/.omp/agent/config.yml`. Once installed, agents load a skill automatically when the task matches its description. In `omp` you can also invoke one directly with `/skill:omega-harness`.
68
69## Conversion
70
71The November 6 local Mac model experiment has explicit
72[runtime receipts and an open host-language migration boundary](skills/omega-harness/SKILL.md#2-implement-in-the-actual-language).
73Omega inference inside an Aienux firmware guest does not make the temporary
74C++ browser adapter Omega, and firmware-hosted emulation does not establish
75standalone-kernel or native Apple Silicon support. These are unmerged experiment
76branches; they do not change the compiler pin or supported language.
77
78These skills cover working in Omega itself. Conversion between Omega and other languages belongs to [`omega-bridge`](https://interplane.io/drakestapleton/omega-bridge). It converts a declared, checked subset and refuses to attempt universal conversion. You can run an MCP server in front of it if you want automated conversion, but that wrapper doesn't let it convert anything beyond that subset.
79
80Merged [omega-bridge #32](https://github.com/aien-dev/omega-bridge/pull/32) localizes private
81ABI1/ABI2 runtime symbols so independent generated translation units link without collisions.
82[#33](https://github.com/aien-dev/omega-bridge/pull/33) adds conservative integer-scalar
83freestanding output without pthread, mmap, heap or TLS; [#35](https://github.com/aien-dev/omega-bridge/pull/35)
84extends finite aggregate frame/output pools with checked refusal. Section 2 pins main
85`2efdd48cd0c7c232064d5870e77660a5a75966e1` and records host evidence and negative controls.
86Merged host-exercised source is not deployment or GPU qualification.
87
88Merged [omega-bridge #36](https://github.com/aien-dev/omega-bridge/pull/36) (merge
89`2ed42c3818e72da321c3218d22d7662be607633c`, 2026-11-01) adds an explicitly pinned
90`bridge-seeded` frontend for portable checked C/Python and C declarations.
91Section 2 records head `3dc4a00e9966770cce58bdedb401c3b3932c35ee`, compiler and converter
92hashes, canonical composition and binary32 limits, the import-free scalar profile,
93and exercised differential/refusal controls. Consumer host acceptance is separately
94recorded. This does not replace baseline gates or depend on a native x86 Omega compiler.
95
96The merged [omega-mv WebAssembly backend (#787)](https://github.com/aien-dev/omega-mv/pull/787)
97is a compiler backend for the existing scalar OSC IR v1 wire format, not a foreign-source
98converter. Its seeded Omega writer and read-only Node oracle boundary are documented in
99`omega-encoding` section 0 and `omega-harness` sections 2-3. Backend merge:
100`3364a1dfd0ca50c1b82bf19ba34932d8bc10a7a9`; boolean IR prerequisite #786:
101`87489da90a1a7a750fd4a7f9eeb005b1221721f6`.
102
103The [SPIR-V backend (#804)](https://github.com/aien-dev/omega-mv/pull/804)
104merged as `3a10bd29fb7debdcf2c8f5cb58680cc74cb5b1f3`: an Omega-written OpenCL Kernel
105emitter, a PoCL CPU parity gate and a minimal OpenCL IL demo. `omega-harness`
106section 3 records the exact exercised source, toolchain, ABI, refusal boundary
107and evidence. CPU execution is not GPU or DPC++ qualification.
108
109The Neuralese supplement ([#919](https://github.com/aien-dev/omega-mv/pull/919), merged by
110train r1 #971 as `f56a372a`) keeps Omega's name and proposes model/decoder-bound
111representations that decode into explicit Omega operations on the ordinary checked
112path. `omega-harness` section 2 and `omega-communication` record its pin, native host
113codebook evidence and trust boundary. The learned experiment is PROPOSED / NOT_RUN; the
114bounded reference is MERGED and IMPLEMENTED / EXERCISED on the host, not hardware
115QUALIFIED or deployed.
116
117## Host-only NL1R diagnostics
118
119`omega-harness` documents the separate capacity and task-conditioned experiments
120under [aien-train #39](https://github.com/aien-dev/aien-train/issues/39), with exact
121frozen source/compiler pins, independent judge custody, actual carrier/context
122budgets and retained negative results. Constructive capacity, learned recovery,
123heldout performance and production execution authority are separate claims.
124These host experiments do not qualify device execution or deployment.
125
126## Check the examples yourself
127
128The examples run on Linux AArch64 hosts only. [`examples/`](examples/) holds each `NAME.om` with
129`NAME.expect` (and `NAME.stdout` when it prints): every trap, one refusal per error code, the common
130mistakes, the known defects, and `execenv`. `examples/gate.sh` refuses any compiler but the one pinned
131in [`PIN`](PIN), then compiles and runs every program here and in `skills/*/examples/`:
132
133<!-- gen:examples -->
134`examples/gate.sh` reruns 132 programs: 127 in `examples/` and 5 in `skills/*/examples/`.
135<!-- /gen:examples -->
136
137<!-- gen:pin -->
138| Pin (`PIN`) | Value |
139|---|---|
140| omega-mv commit | `6c562dd1f7ab01fd9a2638e74a7330ec4c941ad8` |
141| `seed/out/omc` sha256 | `34d611ca0415eab1728d3234911d90e74af17ba9ab0c581d559f48274d7ca6d3` |
142| reference data | `data/reference.tsv`: omega-mcp's `data/reference.json` for this pin, with 201 keyword-table entries (80 host words), 30 compiler error codes, 14 traps and 13 topics |
143<!-- /gen:pin -->
144
145```sh
146git clone https://interplane.io/projects/omega-mv/repo.git omega-src
147git -C omega-src checkout "$(sed -n 's/^omega-mv //p' PIN)"
148sha256sum omega-src/seed/out/omc # must equal the omc-sha256 line of PIN
149examples/gate.sh omega-src/seed/out/omc
150tools/check.sh omega-src/seed/out/omc # the generated guide blocks and the rules source
151```
152
153It prints `PASS name` or `FAIL name: reason` per program and ends with a line like this one
154(exit 0), `GATE FAIL ...` (exit 1), or a hash refusal (exit 2):
155
156<!-- gen:gateline -->
157```text
158GATE PASS examples=132 pass=132 fail=0 omc=34d611ca0415eab1728d3234911d90e74af17ba9ab0c581d559f48274d7ca6d3
159```
160<!-- /gen:gateline -->
161
162The `omega-encoding` skill (section 0 and section 13) records how the pinned compiler was established,
163the earlier pins and their negative controls; [`examples/WOLFRAM.md`](examples/WOLFRAM.md) records the
164Wolfram checks of the arithmetic expectations.
165
166## Keeping it current
167
168**Nothing here is maintained by hand that can be generated.** The compiler pin is written once, in
169`PIN`; the pin tables, the word, error and trap tables, the example counts and the skill lists are
170generated from it, from omega-mcp's reference data for that pin and from this repository, by
171`tools/guides.om`, and `tools/check.sh` fails the landing when one of them is stale or typed by hand.
172Repinning is editing `PIN` and running `tools/regen.sh`. The agents' standing rules are one source,
173`rules/rules.txt`, rendered into each agent program's instruction file by `tools/rules.om`. What people
174and agents still write is prose: explanations, method, rules and dated observations with their
175evidence. When your change makes that prose untrue, rewrite it in the same piece of work and land it on
176Interplane `main` with a receipt (`examples/gate.sh` and `tools/check.sh` on a fresh clone of the exact
177head, the landing receipt, then the new head on https://interplane.io/drakestapleton/omega-harness).
178Never push to github.com. If you can't make the change, say what is now stale. `omega-harness` section 6
179has the full map. Contributions follow the
180[shared AIEN agent rules](https://www.aienos.com/agents/RULES.md).
181
182The [native GPU realization guidance](skills/omega-communication/SKILL.md#native-gpu-realization-records-2026-10-28) distinguishes quantization indexes, canonical artifact identity, session residency and independent qualification. It tracks the CUDApp #26 work without treating host fixtures or unmerged components as production admission.
183
184Written by Drake Stapleton with AIEN agents. Apache License 2.0.