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

guides: hive-view pure-Omega HTTP service pattern (pending hive-view#1); new size 0 is error 8

open 2813bebb811b16e1 #218 · opened 2026-11-07 08:14 UTC

Imported from GitHub aien-dev/omega-harness#218, by drakestapleton

Base bd107ca15c40b6cdfef0f23afb03a884fe3c8086 · Head 1a9cedf935a8185d06f42a036b81ff609fa8853e

drakestapleton wrote on 2026-11-07 08:14 UTC

Keeps the guides current with aien-dev/hive-view#1 (PENDING, not merged).

  • omega-harness: a section on hive-view as a worked pure-Omega HTTP service: build line, no-script server-rendered pages, the HBCAP body cap, and the tee-sink gate pattern with its negative control.
  • omega-encoding: new T 0 v is error 8 (observed 2026-11-07 with omc 5f90edea… at omega-mv 943d9555, host only: omc: line 3: error 8, exit 8).

Checked against the pinned compiler with throwaway programs: a text or global used above its declaration is error 3 (already in the guide), and a function called above its definition compiles and runs (exit 0), so no change there.

Apply it

git checkout -b patch-2813bebb811b16e1 bd107ca15c40b6cdfef0f23afb03a884fe3c8086
curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/2813bebb811b16e1.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
218
1a9cedf935a8185d06f42a036b81ff609fa8853e
{"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":218,"url":"https://github.com/aien-dev/omega-harness/pull/218","export_sha256":"81c8a50ec4f210545ba0c1f58b0895bf875fb250a73642ad466e88a680f2107e","imported_utc":"2026-11-18T16:39:27Z"}

Changes

diff --git a/skills/omega-encoding/SKILL.md b/skills/omega-encoding/SKILL.md
index 94dd8fa..f109071 100644
--- a/skills/omega-encoding/SKILL.md
+++ b/skills/omega-encoding/SKILL.md
@@ -1238,6 +1238,8 @@ From OMEGESE 9.4 and 9.7 ([#L449-L474](https://github.com/aien-dev/omega-mv/blob
   arrays do not count, see `local_arrays_per_fn.om`). **N must be a literal or an
   integer `const`**; a variable length is error 16 (gate16 `len_varname`), so there are no
   run-time-sized arrays. No heap and no `free` (decision 24; `free` is error 9).
+- `new T 0 v` (size 0) is error 8: a local array needs at least one element (observed 2026-11-07,
+  omc `5f90edea…`, host only).
 - Array parameters state type and length exactly: `a view uchar 64` / `a edit uchar 64` (error 7 for
   any other length), so OM-1 has no length-generic array parameters; use fixed sizes, an integer
   `const`, or a global. OM-2 (`om2` first line) adds unsized views, `a view T *`: one function took
diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md
index ac073fd..d1cfcc1 100644
--- a/skills/omega-harness/SKILL.md
+++ b/skills/omega-harness/SKILL.md
@@ -720,6 +720,15 @@ All of the following are on omega-mv at the harness pin `9920aab1` (omc `be8c513
 - **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…`.
 
+### Pure-Omega HTTP application: hive-view (PENDING [hive-view #1](https://github.com/aien-dev/hive-view/pull/1))
+
+`aien-dev/hive-view` is the hive dashboard on the Spark (port 18190), written in seeded Omega against omega-mv main `943d9555` (omc `5f90edea…`). It is a worked example of a long-running Omega service with no foreign code:
+
+- **Build:** one `omc` pass over `printf 'om2\n'` followed by `seed/net/http.om seed/net/notls.om om/tls/sha2.om` and the program's own files, in dependency order (a `text`, `const` or `global` must sit above its first use). Two builds were byte-identical; `build.json` pins compiler, sources and binaries, and its CI rebuilds on `ubuntu-24.04-arm` and compares bytes.
+- **No script in the browser:** the server renders every panel as HTML; iframes refresh with `<meta http-equiv="refresh">`, a CSS animation shows "NOT LIVE" when a panel stops refreshing, and the CSP carries no `script-src`. Form posts answer with a 302 carrying a result code. Chrome sends `Origin` on same-origin POSTs only with `Referrer-Policy: same-origin` (not `no-referrer`).
+- **Request-body cap:** `put cs HBCAP N` after `hinit` (cs index 10, default 1 MiB) makes `hreqrd` refuse a larger Content-Length with HEBIG, which `hreject` maps to 413.
+- **Gate pattern for "exactly these bytes were typed":** `tests/gate.om` starts a tmux session whose program is `/usr/bin/tee -a SINK` on a raw terminal (`stty -icanon -echo`), drives the service over HTTP with the `http.om` client words, and compares the sink byte for byte. Observed 2026-11-07: 52 PASS; a build without the trailing-`;` escape for `tmux send-keys -l` fails 6 (the `;` chunk-end cases).
+
 ### SPIR-V OpenCL Kernel backend
 
 `seed/spirv/irspirv.om` in [omega-mv #804](https://github.com/aien-dev/omega-mv/pull/804)