From 1a9cedf935a8185d06f42a036b81ff609fa8853e Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Sat, 7 Nov 2026 02:10:57 -0600 Subject: [PATCH] guides: hive-view pure-Omega HTTP service pattern; new size 0 is error 8 --- skills/omega-encoding/SKILL.md | 2 ++ skills/omega-harness/SKILL.md | 9 +++++++++ 2 files changed, 11 insertions(+) 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 ``, 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)