interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / evidence / om3-fnmode-run / RECEIPT.md

84 lines · 5974 bytes Raw Blame History Source

OM-3 function-mode mapping context: bridge native run (Om3BridgeRun, ham lane, 2026-11-10)

Question: omega-mv QUESTIONS 2026-11-09T06:45Z (L835 OM-3 review), option 2: approve the context ABI only after the bridge native runner executes a function-mode unit against the mapping table once, including a failed bind. This is that run. CPU only (anonymous maps, a PROT_NONE reservation at 2^36, memfds); no device, no GPU. Host: Spark, aarch64, cc 13.3.0, Python 3.12.3, pool-10-11 lock, taskset 10-11.

Inputs

Run A: bridge as on main, pinned compiler b8f8f137

tools/native --host OUT tests/native/v2/om3/fnmap.om        -> rc 0, library b3df81b9...
tools/native OUT2 tests/native/v2/om3/fnmap.om (no --host)  -> rc 110, nothing installed
context (context.c on fnmap)                                 -> rc 0, logs/A-pinned-fnmap-context.log
tools/native --host with main omc 6d1b1cf5 as OMEGA_NATIVE_OMC2 -> rc 110 (fingerprint refused)
python3 tests/native/v2/dev/run.py (existing gate)           -> rc 0, NATIVE-DEVICE-QUAL PASS, 11 mutants killed

Run B: the compiler on omega-mv main (6d1b1cf5)

The bridge on main refuses that compiler (Run A line 4), so Run B used a scratch worktree with two pin lines changed and nothing else (mainpin-scratch.diff: src/native.om mappin and tests/native/v2/run.sh DEVICE_OMC2_PIN). That diff is NOT committed to this branch.

tools/native --host OUT tests/native/v2/om3/fnmap.om        -> rc 0, library a10da251...
context (context.c on fnmap)                                 -> rc 0, logs/B-main-fnmap-context.log
tools/native --host with old omc b8f8f137                    -> rc 110 (fingerprint refused)
python3 tests/native/v2/dev/run.py (existing gate)           -> rc 0, NATIVE-DEVICE-QUAL PASS, 11 mutants killed

Failed bind with failed cleanup (quarantine) on fnmap.om: main seed/omc/omc.om with the one cleanup munmap (hsys 215 after the access-4 store, line 7420) replaced by getpid (hsys 172), the same forcing run.py uses (forced-compiler.diff). Compiled by main omc to 0125b53c594d8855a9b3798c68158cee1cb23ce044b3fa51891ece09166464ac; a second scratch worktree pins that sha (forced-scratch.diff, not committed).

tools/native --host OUT tests/native/v2/om3/fnmap.om        -> rc 0, library 48209e67...
cleanup (cleanup.c on forced fnmap)                          -> rc 0, NATIVE-CLEANUP PASS
NEGCTL cleanup.c on unforced main fnmap library              -> rc 134, cleanup.c:22 attach==3 assertion fails

Output lines (both runs identical)

PASS context capacity4098, exhaustion, reuse, cross-context and live-destroy controls
PASS owned fixed bind, foreign/data-map refusal, failed-bind retirement and cleanup controls
NATIVE-CONTEXT PASS capacity4098, owned fixed bind, retirement, context ownership and concurrent contexts
NATIVE-CLEANUP PASS quarantine refuses bind/read/write, busy destroy, retry drop then destroy
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)

Negative controls

Not run

Physical device, GPU, NVIDIA driver, x86-64 (native or QEMU), program-mode raw128 tables, and the clause "an absent table pointer may fault" (the entry31 gate mutant is killed by an abort in dcall.c, not observed as a fault). Linux gap-after-MAP_FIXED is not provoked; the run observed the reservation unmapped after successful cleanup (mincore ENOMEM).