interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

[OM-ABI A3] Checked variable-length views and qualified SHA streaming adapter removal

Open · #747 · open 2026-10-25 15:35 UTC

Imported from GitHub aien-dev/omega-mv#747, by drakestapleton

drakestapleton wrote on 2026-10-25 15:35 UTC

Scope

Coordinate omega-bridge native ABI owners, #601 systems facilities, #625 semantics and #726 migration. Existing SHA adapter chunks inputs because ABI arrays have fixed lengths; inspect latest before implementation.

  • Version slice ABI with element type, pointer/handle, length, alignment, access mode, lifetime and alias rules. Checked extent arithmetic; specify empty slices, overlapping arguments, ownership, retention and trap/error propagation.
  • Validate native caller boundaries; no forged lengths, writable views from readonly storage, overflow, use-after-return or out-of-bounds vector tail loads.
  • Replace fixed-size chunk adapter through qualified native .om entrypoints; preserve supported caller behavior and document post-final context semantics explicitly rather than claiming whole-context equivalence.
  • Boundary/split/large/empty/misaligned/malformed tests, interruption and independent ABI checks; compare complete caller cost, stack/mapping overhead and memory, not hashing alone.
  • Update dependent bindings/consumers then remove superseded active implementation under #726. Other bindings refuse unsupported ABI versions explicitly.

Delivery contract

Approved bounded language evolution under #599, not a replacement master plan. Baseline inspected: omega main acb3f15cdc691b1b046b48b0dad0f9255a12ba4b, seed/omc/omc.om and om/sha256/sha256.om. Reconcile latest source, issue comments, active branches/PRs and file owners before editing. Read plan authority/current execution plan, doctrine, applicable ADRs, AGENTS.md and .crumb. Existing compiler/IR/checker/ABI owners retain authority; one writer per shared file. Final first-party logic/tests/automation use seeded handwritten .om, no parallel compiler or retained legacy fallback. Qualify then cut over consumers and delete retired active implementations, preserving history. Pin compiler/source/target/config/fixtures and raw evidence; independent review and negative controls required. Host/simulator/device results remain distinct; unrun is NOT_RUN. Preserve live 27B/35B service and reserved hardware coordination; no deployment or driver changes authorized by this issue.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:21 UTC

Recovered GitHub comment. Original comment 6404127294

#747 implemented, qualified and cut over on draft branches (L834/L835/L838)

Compiler side: om2/compiler-s4 @ f6a6492fd (PR #764), omc 49923639…03ec

  • Unsized NAME view T * / edit T * with len NAME; every index checked at run time, numbers included, never eliminated. Sized arrays pass to unsized parameters (E2), internal functions included.
  • part A o k: only as an argument for an unsized parameter; checks o <= len A then k <= len A - o, o evaluated before k, the wrapped o + k never formed. Observed: with len A = 10, o = 2^64-2, k = 4, the in-unit wrap case traps 3; o > len traps; the tail case traps; the empty part at o = len, k = 0 is accepted; two parts of one array in one call give 19; a part outside a call gives 9.
  • out T N (one pointer, edit inside the unit), export fn (words 0..E-1 branch in source order, E ≤ 32, 33rd is error 14), 6 parameter slots with an unsized view taking two.
  • Qualified: C2 5,876/5,876; §3–§4 202 PASS / 0 FAIL; §5–§6 99 PASS / 0 FAIL; 22/22 mutants killed, including an independently written wrapped-sum part mutant, a dropped first check and a dropped view index check; a mutant evaluating k before o is the one mutant not built (its fixture v6-part-order passes on the head).

Consumer side: om2/sha-cutover @ 27834cea2 (PR #776), stacked on #764

src/sha256.c (the 4,096-byte adapter) and the OM-1 om/sha256/sha256.om are deleted. The API is om/sha256/sha256-om2.om (344 lines, 72 of them K/IV) through omega-bridge ABI v2 (feat/slice-abi @ 22c99b1). Generated src/omega_om_units.c + src/omega_api_decl.h + src/omega_om_units.ident; 38 build rules moved; RX_CX_FS_ALLOWED unchanged (E18 — the status wrappers are out of line, so rx_cortex.o's undefined set is identical to main's).

My own runs on that head: make/make libomega_gpu exit 0; om-units exit 0 with SHA256-PARITY PASS cases=2000 diff=0 against the historical C and BLAKE3-PARITY PASS; base, language, compiler, seed, crumb-verify all exit 0; make test exit 0 with the same semantic IDs as acb3f15c. Independent qualification (L836, not the author): 158 oracle vectors, 631 binding checks, E1 identity, E3/§7 receipts, 19 status-32 refusals, 17/17 unit mutants.

Measurement (predeclared protocol, spec/omegese-om2-measure.md 507702d0…7bad)

Bulk 152.5 → 210.2 MB/s (ratio 0.726), 1 MiB in 1-byte updates 14.3 → 32.8 MB/s (0.436). **1, 31, 32 and 55-byte inputs regress 6.5–12.9%**, declared REGRESSION under the policy fixed before the run; 0 B and ≥56 B pass. Record and raw samples: om/sha256/om2-evidence/s4/measure/.

Still open before this issue can close

  • Leakage: static scan init/hash PASS, update/final NOT_RUN (scanner precision); dynamic traces 28/28 identical but that is not a constant-time guarantee (E12). No such claim is made.
  • The stack is draft and unmerged; merging moves main's compiler pin for every consumer.
  • No GB10 or device evidence: HOST AArch64 only.

Sign in to comment