omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / evidence / text-parent-qualification / README.md
| 1 | # L555 parent qualification of L551 text conversion |
| 2 | |
| 3 | Bay 2, kanban t_93b414c3 (run 343), 2026-11-09, host spark-b87b, CPU only under queen pool locks. |
| 4 | Instruments here are test-only Python and shell; conversion lives in `src/toc.om`. |
| 5 | |
| 6 | ## What was qualified |
| 7 | |
| 8 | - Immutable L551 source: `e9511dbde3530089ace29d6ad1b5176a2c4ed2b2` (L551 patch tip 81488ae3 plus the |
| 9 | bay 10 AUDIT_SCOPE desk fix; `src/toc.om` blob 56e4b8b7, sha256 43feb9e9…4bf4a, emitter `build/bridge` |
| 10 | ca6c697b…7eed3c). Results: `results-e9511dbd/`. |
| 11 | - Fixed head after the whole-core review and two delta reviews: |
| 12 | `ff9877bcf54dd625dbd2b853f5b7b4be30ac94e1` ( toc.om 1ae9b9bc…3156af, emitter 287e94f7…a0f7f). Results: |
| 13 | `results-ff9877b/`. Intermediate heads 0661eb6, e755289 and 3a3b855 were gated the same way |
| 14 | (run 2: 1165/1165 and 13/13; run 3: 1175/1175 and 15/15; run 4: 1177/1177 and 17/17, all suites |
| 15 | and replays green); their receipts stay in the desk evidence directory, not here. |
| 16 | - Pins (every run): seed `build/bootstrap/omc` 191b776e…df098e9 (bootstrap fixpoint from Omega |
| 17 | 29b12760), seeded omc 2c824805…9029f, draft-1049 next compiler d89bdc08…aeec built from omega-mv |
| 18 | 7e93ca8e (`seed/omc/omc.om` 0a0f4bbc…0549). Home prefixes in copied receipts are shown as `~`. |
| 19 | |
| 20 | ## Gates (`gate.sh HEAD EVIDENCE_DIR`) |
| 21 | |
| 22 | | Gate | e9511dbd | ff9877b | |
| 23 | |---|---|---| |
| 24 | | Independent probe `probe.py` (all 256 bytes raw + escaped, 17 frozen oracle cases, 60 random multi-text programs, pool/table/bounds, refusals via wrapper and direct, byte-mutation fuzz, every prefix, C ASan+UBSan and -O2, Python, library view/edit callers, `nm` read-only storage) | 1152/1152, library PASS | 1177/1177, library PASS | |
| 25 | | Emitter mutants, each built by the seed from a mutated toc.om | 10/10 caught | 17/17 caught | |
| 26 | | Clean-clone replay: bootstrap + `tools/test.sh` | ALL SUITES RC=0, text 760/760, direct 20/20, controls 16/16 | ALL SUITES RC=0, text 760/760, direct 85/85, controls 16/16; replay emitter 287e94f7 = work clone | |
| 27 | | Seeded suites seeded, seeded_float, seeded_views, seeded_runtime_views, freest_views, freest, seeded_next | not valid (see below) | all PASS (SEEDED-NEXT PASS) | |
| 28 | | cabi gate | not valid | OMEGA-BRIDGE CABI GATE PASS | |
| 29 | | Emitter delta vs e9511dbd (`emitdiff.py`, 177 committed sources x 14 mode bytes) | n/a | 2406 identical, 72 changed, all refusal-code changes (below), 0 accepted programs changed, 0 new refusals | |
| 30 | |
| 31 | Run 1 (e9511dbd) seeded suites and cabi gate are void: `src/toc.om` was edited in the work clone |
| 32 | while the run was in progress, so `tools/bridge` refused with "rebuild required". Its probe, |
| 33 | mutants and clean-clone replay ran before the edit or in a separate clone and stand. The run 2 |
| 34 | `emitdiff` step first failed on a predicate bug in the instrument (refusal-code changes were |
| 35 | counted as failures); the corrected predicate is used from run 2's rerun onward. |
| 36 | |
| 37 | Emitter delta detail: every changed run is a unit both binaries refuse. Seeded-mode text lines |
| 38 | now refuse 24 (cabi gate/proc, device-window race, text fixture); seeded-mode units with a |
| 39 | statement the converter does not support (`trap`, in tests/native fill, big, hsum, mix, trapcall, |
| 40 | v2/hoist; e5 accepts them, both converters refuse) now stop at the keyword-named-local check (16) |
| 41 | instead of 11. No accepted program changed bytes; no unit is newly refused. |
| 42 | |
| 43 | ## Whole-core review and fixes |
| 44 | |
| 45 | A fresh-context reviewer read all 7,135 lines of `src/toc.om` at e9511dbd: APPROVE_WITH_FIXES. |
| 46 | |
| 47 | | Finding | Before (seed / build/bridge) | Fix | |
| 48 | |---|---|---| |
| 49 | | F1 duplicate text/global/fn names | 10 / 0 | 10 (walk_sig, parse_global, parse_tx), d5b88e7 | |
| 50 | | F2 literal index into an empty text | 21 / 0 | 21; also `put g 4 1` on a global array (21 / 0 before), d5b88e7 | |
| 51 | | F3 words after a global's count | 5 / 0 | 16, d5b88e7 | |
| 52 | | F4 text or global name over 8 bytes | 13 / 0 | 13, d5b88e7 | |
| 53 | | F5 CAPABILITIES capacity numbers | doc 65,536 / 262,144 | doc 1,048,576 / 4,194,304 (code values) | |
| 54 | | F6 seeded-mode text line with a raw byte below 32 | 16 (documented 24) | 24 before tokenizing | |
| 55 | | F7 `o_io` const cast on the read branch | unreachable: every read target passes `writable` (20) | none, recorded | |
| 56 | | F4c fn names of 9 to 63 bytes | seed 0 / converter 13 | none: fail-closed and documented | |
| 57 | |
| 58 | The same reviewer's delta review of d5b88e7 returned APPROVE; its two test rows were added in |
| 59 | 0661eb6. Fixing the class it found turned up more names the converter accepted and the seed |
| 60 | refuses; 8bcff8c added keyword names (seed table, 16) and the parameter rules (13/16/10). |
| 61 | |
| 62 | A second fresh-context reviewer reviewed 0661eb6..8bcff8c, then each follow-up: |
| 63 | |
| 64 | | Finding | Before (seed or e5 / build/bridge) | Fix | |
| 65 | |---|---|---| |
| 66 | | R2-F1 cabi M/V: parameter named like a function | e5 10 / 0 | `param_fn_sweep` after the name scan, every mode, 3a3b855 | |
| 67 | | R2-F2 seeded-only keywords as names in seeded modes | e5 16 / 0 | second `kwlist` section (93 words), seeded modes only, 3a3b855 | |
| 68 | | R2-F3 keyword-named locals (pre-existing) | seed 9 or 16 / 0 | 16 in `eassign`, 3a3b855 | |
| 69 | | R2-F4 first-error order in doubly invalid units | both non-zero | none, recorded (seed pass 1 reads signatures only) | |
| 70 | | R2-N1 sweep reported the last source line | seed: function line | `fn_ln` per function, ff9877b | |
| 71 | | R2-N2 draft-1049's 6 extra words in E/J | draft 16 / 0 | third `kwlist` section, E/J only, ff9877b | |
| 72 | |
| 73 | Final verdict on ff9877b: APPROVE (N1 and N2 exercised against seed, e5 and the rebuilt draft-1049 frontend d89bdc08; emitter rebuilt by the reviewer from ff9877b = 287e94f7). |
| 74 | |
| 75 | Recorded conservative differences (both fail closed; the seed accepts): a local named like a global |
| 76 | declared below its function (7); baseline fn names of 9 to 63 bytes (13). Under-refusals left to |
| 77 | the seeded frontend, which runs first in `tools/bridge-seeded`: OM-2-only and target-conditional |
| 78 | keywords; consts in seeded mode are not checked against names. |
| 79 | |
| 80 | Not run: GPU or device, `tests/native` (reads neither `src/toc.om` nor `build/bridge`), merge. |
| 81 | No universal or runtime-retirement claim. |