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

branch main Branches Tags History

omega-mv / evidence / HELIX-AUDIT-HARDENING-20261121 / README.md

31 lines · 6544 bytes Raw Blame History Rendered
1# Evidence Receipt: Fine-Tooth Comb Audit & Hardening Pass (2026-11-21)
2
3- **Audit scope**: Line-by-line adversarial audit of all `seed/helix/` engines, bootstrap scripts, Lean 4 proofs, and receipts against Wheeler DDC principles, Blackwell SM121 hardware hazards, and proof-kernel soundness.
4- **Zero existing `evidence/` files modified** (strictly additions-only).
5
6## 7 Audit Findings & Concrete Fixes Verified
7
8| # | Audit Finding | Severity | Concrete Fix Implemented & Verified |
9|---|---|---|---|
10| **1** | `seed/helix/helix-from-seeds.sh` line 39 invoked pre-committed `seed/rung4/om4.bin` instead of assembling `om4` from `asm2.bin`, and did not explicitly record Strand A self-regeneration $c(s_A, A) = A$ before Stage 1/2. | **CRITICAL** | Strand A now builds `om4.bin` (`16,200 B`) directly from `$B/asm2.bin` (`seed0 -> hex1 -> asm2 -> om4 -> omc`, **zero prebuilt binaries**) AND verifies `$B/A_stage2(omc.om) == $B/A_stage2` (`c(s_A, A) = A`) before Stage 1 & Stage 2 DDC! |
11| **2** | `seed/helix/monk_check.om` used a single linear pass for `mkCheckHazards` (missing backward loop edges & branch joins) and did not anchor `BAR.SYNC(2)`, `MEMBAR(3)`, `SYNCS(4)`, `BSSY(7)`, `BSYNC(8)`, `ISETP(16)`, or `FSETP(25)`. | **CRITICAL** | Upgraded `monk_check.om` to a **full CFG worklist fixed-point dataflow scoreboard checker** (`mkHzInW`/`mkHzInR` 2048×512×6-bit masks, joining across forward branches, backward loop edges, and reconvergence points) AND anchored `nm <= 8`, `ISETP(16)`, `FSETP(25)`, `nm >= 33`, `flow != 0`, and `guard != 7` in both `monk_check.om` and `arboris_predator.om`. |
12| **3** | `seed/helix/dual_checker.om` (`EGP1`) only checked `(rule_id, lhs_opcode, rhs_opcode)` rather than expression structure, child e-classes, or constant values — vulnerable to structural spoofing (e.g., applying `add(x,0)->x` to `add(x,1)->x`). | **CRITICAL** | Upgraded to **`EGP2` structural proof certificates**: `egraph_opt.om` serializes the full e-graph node table `(op, a, b, c, val)`, `root_before`, `root_after`, and every rewrite step; Strand A's `dual_checker.om` independently replays union-find from scratch verifying every rule's exact operand/e-class/constant preconditions, proves `find(root_before) == find(root_after)`, independently recomputes `gb10Cost` before/after, evaluates both ASTs across 4 concrete environments (`eval_checks=12`), and kills BOTH `rule 99 (add->mul)` AND the structural spoof `rule 3 on add(x,1)->x` (`neg_controls=2/2`). |
13| **4** | `seed/helix/arboris_predator.om` received the live 35B `q36-serve` HTTP response into `prResp` and printed `resp_bytes` without parsing or applying the LLM's proposals. | **CRITICAL** | Added `prFindKeyDigit` to parse `compact=<d>` and `swap=<d>` directly from the live 35B `q36-serve` JSON response (`prLlmCfg`), print `llm_compact=... llm_swap=...`, and actively steer `prDoSwaps` and `prDoStallCompact` behind Monk's proof gate. |
14| **5** | Fixed-latency SM121 ALU RAW pipeline stalls were neither checked by `monk_check.om` nor respected by `arboris_predator.om` swaps/compaction (on `w4_b32_gemv_fast`, naive swapping moved 9 ALU producers closer to consumers, dropping cycle distance below 4!). | **HIGH** | Added `mkCheckRawStalls` in `monk_check.om` enforcing `cand_cycles(u -> v) >= min(ref_cycles(u -> v), 4)` for every fixed-latency RAW pair (including when consumer `v` is an anchor like `LDG`/`STG`/`ISETP`!); added `prSwapWindowOk` + `prStallShaveSafe` in `arboris_predator.om` (filtering out the 9 unsafe swaps on `w4_b32_gemv_fast`: `85 -> 76` verified swaps!); added **Attack 8** (fixed-latency RAW stall shave) to `immune.om`, bringing total automated antibodies to **`12/12`** (`8` SM121 + `4` `uor-gpu`). |
15| **6** | `immune.om` `imRunDepAttack` fell back silently to `(0, 1)` if no dependent pair existed; synthetic vs live benchmarks needed explicit labeling. | **MODERATE** | `imRunDepAttack` and `imRunRawStallAttack` now fail closed (`ret false`) if no target pair is found. All receipts explicitly distinguish deterministic modeled benchmarks (`arboris_nervous_bench.om` Tracks 3A/3B/3C) from live GB10 silicon telemetry (`q36-serve` `54%` Arboris, `q36-native` `93%` Arboris, `72.49 tok/s` backbone / `66.73 tok/s` full-token). |
16| **7** | Comment drift in `HelixAntibodies.lean` (`23-bit` vs SM121 `17-bit w3[9..25]`) and `HelixSoundness.lean` (`mk_conflicts` / `hz_chk` naming). | **MINOR** | Updated doc comments in `HelixSoundness.lean` and `HelixAntibodies.lean` to match exact `monk_check.om` functions and 17-bit `w3[9..25]` control-word layout; re-verified all 23 declarations in Lean 4.36.0 (`0` warnings, `0` `sorry`, standard axioms only). |
17
18## Verified Clean-Room Hardened Metrics (`sh seed/helix/cold-regrowth.sh --lean`)
19
20- **Dual seeds**: `408 B` (`seed0.hex` → `hex1` → `asm2` → `om4(16200B)` → `omc`, self-regen verified, **zero prebuilt binaries**) + `396 B` (`seedB0.b0` W^X → `hexB1` → `omB2`).
21- **EGP2 structural dual-checker**: `DUAL_CHECK_EGP2: PASS kernels=3 verified_steps=23 eval_checks=12`, `neg_controls=2/2`, `uorgpu_antibodies=4/4`, `total_helix_antibodies=12/12`.
22- **3 Production `q36` SM121 kernels (CFG + fixed-latency RAW-safe)**:
23 - `bf16_gemv_fast` (227 insns): `47` swaps (`94` moved), stalls `1044 -> 923` (**−121**), `hazards=0`, `8/8` + `4/4` = `12/12` antibodies PASS
24 - `fp8_b128_gemv_fast` (207 insns): `51` swaps (`102` moved), stalls `895 -> 781` (**−114**), `hazards=0`, `12/12` antibodies PASS
25 - `w4_b32_gemv_fast` (437 insns): `76` swaps (`152` moved; 9 RAW-unsafe swaps rejected!), stalls `2118 -> 1841` (**−277**), `hazards=0`, `12/12` antibodies PASS
26- **Arboris Nervous System modeled benchmark (`arboris_nervous_bench.om`)**:
27 - Track 3A: `2080 -> 64` probes (**96% reduction**), `169.6 us -> 26.1 us` (`6.5x`)
28 - Track 3B: `100% vs 40%` Recall@1 in `476 ns/query`
29 - Track 3C: `8,000` steps / `8` streams, `p95` & `p99` `400 us -> 12 us`, `99%` hit rate, `236 ns` overhead
30- **Dual-strand OS & GPU gates**: `aienux/units-gate.om` (`4e097221…`), `protocol/units-gate.om` (`652ba774…`), `uor-gpu-gate` (`3d4a32d0…`, executed `UOR_GPU_GATE_PASS`), `Gen0 == Gen1 == Gen2` for `q36-serve` (`c4efef10…`) & `q36-native` (`e4746000…`).
31- **Live GB10 Silicon Closed-Loop (Window `20261122T033028Z-eec249` at `ffba8ab09`)**: `q36-serve` live Arboris `0% -> 54%` (`16,149 / 29,488`), `q36-native` `11/11` kernel parity PASS, `72.49 tok/s` backbone / `66.73 tok/s` full-token, `93%` Arboris (`103 us/tok`), `ldd: not a dynamic executable`.