Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/evidence/om3-fnmode-run/RECEIPT.md # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / evidence / om3-fnmode-run / RECEIPT.md` 84 lines ยท 5974 bytes Raw Blame History Rendered 1 # OM-3 function-mode mapping context: bridge native run (Om3BridgeRun, ham lane, 2026-11-10) 2 3 Question: omega-mv QUESTIONS 2026-11-09T06:45Z (L835 OM-3 review), option 2: approve the 4 context ABI only after the bridge native runner executes a function-mode unit against the 5 mapping table once, including a failed bind. This is that run. CPU only (anonymous maps, a 6 PROT_NONE reservation at 2^36, memfds); no device, no GPU. Host: Spark, aarch64, cc 13.3.0, 7 Python 3.12.3, pool-10-11 lock, taskset 10-11. 8 9 ## Inputs 10 11 - omega-bridge Radicle main `a52c35dd` (this branch ham/om3-fnmode-run is cut from it). 12 - omega-mv Radicle main `a59a425b`, compiler `seed/out/omc` `6d1b1cf5a44803389a831b67f750ea4cd1c9f53edfde9d6d9241d7352887f1f8` 13 (fixpoint rechecked: main omc compiles main `seed/omc/omc.om` to itself, cmp equal). 14 - Bridge pinned context compiler `b8f8f1371bc0303f8da02db8b754e085d5dd852620c8d8d676c5769c233d9195` 15 (omega-mv `dbedb2ca`, tag bridge74-device-omc-`dbedb2ca`; `src/native.om` line 42 `mappin`). 16 - Generator compiler OMEGA_NATIVE_OMC `734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61`. 17 - Spec text: omega-mv `spec/omegese-om3.md` section 1 at review head `77b58f5e` (patch `8d54f60`); 18 bridge text `docs/NATIVE-ABI.md` "Explicit mapping contexts". 19 - Unit: `tests/native/v2/om3/fnmap.om` (new, 40 lines, src sha256 20 `32fcfb5dc2943d7a67528eb40a81e64e971f707b8d2a5338ef39a73fe1e7ddda`): an OM-2 function unit, 21 nine exports, uses only mapnew mapdrop mapread mapwrite mapaddr mapget mapset maphold mapbind. 22 - Callers: the existing `tests/native/v2/dev/context.c` and `cleanup.c`, unchanged, linked 23 against the library `tools/native --host` generated from fnmap.om (export names match). 24 25 ## Run A: bridge as on main, pinned compiler `b8f8f137` 26 27 tools/native --host OUT tests/native/v2/om3/fnmap.om -> rc 0, library `b3df81b9`... 28 tools/native OUT2 tests/native/v2/om3/fnmap.om (no --host) -> rc 110, nothing installed 29 context (context.c on fnmap) -> rc 0, logs/A-pinned-fnmap-context.log 30 tools/native --host with main omc `6d1b1cf5` as OMEGA_NATIVE_OMC2 -> rc 110 (fingerprint refused) 31 python3 tests/native/v2/dev/run.py (existing gate) -> rc 0, NATIVE-DEVICE-QUAL PASS, 11 mutants killed 32 33 ## Run B: the compiler on omega-mv main (`6d1b1cf5`) 34 35 The bridge on main refuses that compiler (Run A line 4), so Run B used a scratch worktree with 36 two pin lines changed and nothing else (`mainpin-scratch.diff`: `src/native.om` mappin and 37 `tests/native/v2/run.sh` DEVICE_OMC2_PIN). That diff is NOT committed to this branch. 38 39 tools/native --host OUT tests/native/v2/om3/fnmap.om -> rc 0, library `a10da251`... 40 context (context.c on fnmap) -> rc 0, logs/B-main-fnmap-context.log 41 tools/native --host with old omc `b8f8f137` -> rc 110 (fingerprint refused) 42 python3 tests/native/v2/dev/run.py (existing gate) -> rc 0, NATIVE-DEVICE-QUAL PASS, 11 mutants killed 43 44 Failed bind with failed cleanup (quarantine) on fnmap.om: main `seed/omc/omc.om` with the one 45 cleanup munmap (`hsys 215` after the access-4 store, line 7420) replaced by getpid (`hsys 172`), 46 the same forcing run.py uses (`forced-compiler.diff`). Compiled by main omc to 47 `0125b53c594d8855a9b3798c68158cee1cb23ce044b3fa51891ece09166464ac`; a second scratch worktree 48 pins that sha (`forced-scratch.diff`, not committed). 49 50 tools/native --host OUT tests/native/v2/om3/fnmap.om -> rc 0, library `48209e67`... 51 cleanup (cleanup.c on forced fnmap) -> rc 0, NATIVE-CLEANUP PASS 52 NEGCTL cleanup.c on unforced main fnmap library -> rc 134, cleanup.c:22 attach==3 assertion fails 53 54 ## Output lines (both runs identical) 55 56 PASS context capacity4098, exhaustion, reuse, cross-context and live-destroy controls 57 PASS owned fixed bind, foreign/data-map refusal, failed-bind retirement and cleanup controls 58 NATIVE-CONTEXT PASS capacity4098, owned fixed bind, retirement, context ownership and concurrent contexts 59 NATIVE-CLEANUP PASS quarantine refuses bind/read/write, busy destroy, retry drop then destroy 60 NATIVE-DEVICE-QUAL PASS (15 word controls, 2 ABI controls, 5 ioctl controls, 3-unit shared-context fixture, cleanup-failure control, 11 mutants; chip NOT_RUN) 61 62 ## Negative controls 63 64 - Stale handle from another generation: context.c `stale(a, bh)`, `stale(b, ah)` (handle of the 65 other context) and `stale(a, old)` (slot 0 reused, same low 13 bits, older generation): mapaddr, 66 mapbind and mapdrop all return bridge status 3 and leave the result untouched. Gate mutant 67 `context-generation` (every context gets ID 1) killed rc -6 on both compilers. 68 - Caller that ignores quarantine: cleanup.c keeps calling mapbind, mapread, mapget, mapwrite and 69 mapset on the quarantined handle; every call is refused with status 3 and no result write. Gate 70 mutants `quarantine-bind` (rc -6) and `quarantine-read` (rc -11), which delete the guards, are 71 killed on both compilers. The unforced library fails cleanup.c at its first quarantine assertion 72 (rc 134), so the control distinguishes quarantine from plain retirement. 73 - Capacity: create(0) and create(4099) return OMEGA_BAD_ARG; 4098 live slots succeed (slot index 74 4097 is the last); the 4099th mapnew returns -24 (EMFILE) with status 0. Gate mutants 75 `context-capacity` (4098 -> 128) and `handle-slot-bits` (8191 -> 255) killed. 76 - Fingerprint: pinned bridge refuses main omc (110), repinned bridge refuses old omc (110), gate 77 line `PASS incompatible mapping-compiler format refused` on both. 78 79 ## Not run 80 81 Physical device, GPU, NVIDIA driver, x86-64 (native or QEMU), program-mode raw128 tables, and 82 the clause "an absent table pointer may fault" (the entry31 gate mutant is killed by an abort in 83 dcall.c, not observed as a fault). Linux gap-after-MAP_FIXED is not provoked; the run observed 84 the reservation unmapped after successful cleanup (mincore ENOMEM).