omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / evidence / text-native / README.md
| 1 | # L551 text conversion receipts (with the L555 correction) |
| 2 | |
| 3 | Host spark-b87b, 2026-11-09, CPU pool 12-13 (`flock -o ~/handoffs/hive/queen/pool-12-13.lock taskset -c 12-13 nice -n 19`). |
| 4 | All replay logs come from a fresh `git clone` of commit 402d641 (no working-tree changes), with the seed rebuilt |
| 5 | by `tools/bootstrap.sh` from Omega source `29b12760` (`OMEGA_SOURCE=~/workspace/omega`). |
| 6 | |
| 7 | Pins (`pins.sha256`, `compiler.sha256`): |
| 8 | - seed `build/bootstrap/omc` 191b776e... (bootstrap fixpoint RC=0, `replay-bootstrap.log`) |
| 9 | - seeded omc 2c824805... (`OMEGA_SEEDED_OMC`, seeded suites and cabi gate) |
| 10 | - `src/toc.om` 43feb9e9..., private emitter `build/bridge` ca6c697b... (same digest in the working clone and the replay) |
| 11 | - main f6b7cc40 `src/toc.om` 218214ab..., its emitter 509fb1e2... (comparison baseline only) |
| 12 | |
| 13 | Results: |
| 14 | - `replay-text.log`: `tests/text.py` 380 sources, 760 target checks passed, 20 of 20 direct converter runs |
| 15 | (seed bypassed), 16 of 16 controls caught, RC=0. `text-receipts.json` holds every row (source, native |
| 16 | status/stdout, C and Python status/stdout digests), every direct row and every control row. |
| 17 | - `replay-test.log`: `tools/test.sh` differential 114/0, refusals 48/0, attachments 2/0, controls 7/0, |
| 18 | robustness 225/0, text (as above), ALL SUITES RC=0. |
| 19 | - seeded, seeded_float, seeded_views, seeded_runtime_views, freest_views, freest and the cabi gate: PASS |
| 20 | (one log each). |
| 21 | - `readonly-view-green.json`: the L555 reviewer reproduction (`omega_pick(b'abc',3)`) now returns `(0, 99)`, |
| 22 | the same as `bytearray`; before the fix it returned `(8, None)` |
| 23 | (`evidence/text-parent-verification/readonly-view-red.json`). |
| 24 | - `regression-vs-main.json` (`regression-vs-main.py MAIN_EMITTER MAIN_TOC`): 184 committed sources x 14 emitter |
| 25 | modes = 2576 runs against main's emitter. 2297 byte-identical; 265 differ only by the two intended non-text |
| 26 | changes (readonly C views gain `const`; the Python `o_buf` line accepts `bytes` for readonly views); 14 differ |
| 27 | in status, all expected: |
| 28 | - `tests/fixtures/text_program.om` C/P: 24 -> 0 (the feature). |
| 29 | - refusal rows seed_9/seed_10 (write/read into a text) C/P: 24 -> 20; seed_14/seed_15 (bad escape, |
| 30 | unterminated text) C/P: 24 -> 22. The bridge now names the seed's own error; the seed refuses all four first. |
| 31 | - `tests/cabi/gate.om` 16 -> 14 and `tests/cabi/proc.om` 13 -> 14 in C/P: both are seeded-only programs the |
| 32 | baseline seed already refuses (error 16), so the baseline tool never reaches the converter for them. |
| 33 | Seeded modes for these files are byte-identical. |
| 34 | |
| 35 | Review: an independent read-only reviewer (fresh context) approved d2c71dd with two low notes, both fixed in |
| 36 | 402d641: the C text length is now `static const uint64_t` (a linked caller could otherwise raise it and widen |
| 37 | the `o_get` bound; `immutable-length-mutant` control), and `build/bridge` alone now refuses a trailing token |
| 38 | after a text value (error 16; the emitter 4e2c528b... of d2c71dd accepted `text t "ab" junk` with rc 0, while |
| 39 | the seed refuses it with 5 first, so `tools/bridge` behavior was already a refusal). Verdicts: |
| 40 | `~/handoffs/hive-breathe/L551.md`. |
| 41 | |
| 42 | - `replay-seeded_next.log`: `tests/seeded_next.py` "SEEDED-NEXT PASS" with `OMEGA_SEEDED_NEXT_OMC` built here from |
| 43 | omega-mv 7e93ca8e `seed/omc/omc.om` (source sha256 0a0f4bbc..., as pinned): both the seeded omc 2c824805... and |
| 44 | the bootstrap seed compile it to d89bdc08ca21ea9726f1117adc791f683287d3698ea112a9db5519df2e79aeec, the pinned |
| 45 | candidate. Run in the work clone at toc 43feb9e9... / bridge ca6c697b.... |
| 46 | |
| 47 | Not run: `tests/native/*` (the `tools/native` profile reads neither `src/toc.om` nor `build/bridge`), GPU and |
| 48 | device paths. No runtime retirement is claimed (the retirement count stays 0). |