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 / freest-runtime-views

bb3a8ae feat: add import-free checked runtime-view C profile Drake Stapleton committed 2026-11-06
..
README.md6316
baseline.log3605
build.log0
commands.tsv6448
consumers.log4013
freest-host.log549
freest-views.log2028
freest-x86.log549
red-baseline.log481
seeded-float.log219
seeded-runtime-views.log973
seeded-views.log771
seeded.log103

README.md

Freestanding checked borrowed views

IMPLEMENTED and EXERCISED on branch feat/freestanding-runtime-views, based on omega-bridge #76 at 741c1ebb2b0fbae311a77ad2118b13d5ec7a17ee. Not MERGED, DEPLOYED or hardware QUALIFIED. GPU/device execution: NOT_RUN.

Source and execution boundary

All conversion logic is seeded Omega in src/toc.om; the shell driver only validates the pinned compiler fingerprints, snapshots source, selects a profile and publishes completed output. The hosted runtime and public ABI are unchanged. The new runtime passes a call-local status/depth pointer through private C functions. It uses checked 64-bit operations rather than int128, and has no TLS, libc/POSIX, longjmp, abort or printf imports. Scalar-only input continues to use the original conservative src/freest.om profile. A view-bearing unit never retries that profile after conversion refusal.

Every compiler, test and mutant invocation used this outer isolation:

bwrap --dev-bind / / --dev /dev --proc /proc -- \
  taskset -c 10-14 nice -n 10 <command>

No GPU nodes, live service, module, chip lock or PID 68451 was touched. No parallel builds or make -j were used. The C compiler/linker, Python ctypes, nm, readelf, and user-mode QEMU are verification/conversion infrastructure, not generated runtime dependencies. The source/frontend pins remain unchanged:

  • Baseline seed: 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9.
  • Seeded validator: omega-mv e5b32567, 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f.

commands.tsv records exact environments, commands, rc and final lines. Each command ran serially under env -i plus the outer isolation above. Logs replace /home/drakestapleton with ~; no other output normalization was applied. build.log is empty because tools/build.sh succeeded silently.

Red before green

The initial new fixture-conversion test was run before the emitter/driver changes: python3 tests/freest_views.py exited 1 because bridge-freest c attn_set.om returned 24 with empty stdout and toc: line 4: error 24 / unsupported freest scalar capability. red-baseline.log additionally records both exact fixture conversions against the read-only #76 driver after the change; both still return 24 and empty stdout. This pinned baseline reproduction is separate from the initial test-first observation, not a claim of rerunning an unchanged historical test log.

The fixtures are byte-for-byte copies of CUDApp 0d38145a697290f2cd00578fbaa168b824a38015 under ~/work/cudastack/lanes/IntegStage3/om/api/:

  • attn_set.om: b2e166c457dc42905f41c7ea473598ba35cf60cd4d0893ea2f03b8da258827f5.
  • attn_fill.om: 72fdc8200f248bbfd64854435b8f0533507e6a20a28f192c1f7f1329c40ead42.

Acceptance results

All following commands returned 0:

CommandFinal line
sh tools/build.shsilent success
python3 tests/freest_views.pyFREEST-VIEWS PASS
FREEST_CUDAPP_ROOT=... python3 tests/freest.pyPASS direct structural converter refusals independently of frontend, including recursive call graph
CC=x86_64-linux-gnu-gcc FREEST_RUNNER='qemu-x86_64 -L /usr/x86_64-linux-gnu' FREEST_CUDAPP_ROOT=... python3 tests/freest.pysame final line; x86 EMULATED
python3 tests/seeded.pySEEDED CONVERTER differential C/Python/native/x86 and pin/arithmetic/ABI controls PASS; device NOT_RUN
python3 tests/seeded_float.pyPASS seeded binary32/binary64 byte differential (native/C/x86, 132 constants vs exact oracle, one-ulp mutant detected); baseline/Python/f64-array/converter refusals
python3 tests/seeded_views.pySEEDED-VIEWS PASS
python3 tests/seeded_runtime_views.pySEEDED-RUNTIME-VIEWS PASS
sh tools/test.shALL SUITES RC=0

The new test compares hosted and freestanding results, refusal statuses and buffer bytes for deterministic randomized and boundary inputs. It covers empty/NULL, length 1, fixed capacity and capacity+1, out-of-bounds indexes, maximum address extents, wrap/misalignment, canonical integer min/max, partial writes, nested unwinding and result storage remaining unchanged on refusal. It reuses the independent runtime-view C oracle for all five element kinds on host and x86 EMULATED. O0/O2 objects are inspected, separately from the hosted oracle link.

Allowed nm -u set: {} (empty). This includes no compiler-helper exception. O0/O2 freestanding objects have no undefined symbols and no TLS sections. Consumer objects additionally pass a combined -r -nostdlib link with the same empty set. The checked path emits no int128 and code/header bytes are stable across repeated conversion.

Six source mutations in the new Omega emitter are killed: get bound, put bound, narrowing check, nested-call unwind, exported status and loop status. A seeded-valid view unit using unsupported part is refused by both c and h with no stdout. These are in freest-views.log.

consumers.log records all attention borrowed-view source compositions from IntegStage3 om/units.sh lines 140–172, their actual exported symbols and C hashes. Each compiled import-free at O2. Their hosted C and headers were also compared byte-for-byte with the #76 converter: unchanged. This is converter and object/link evidence, not execution of CUDApp's native runtime target. Integrator6B owns that consumer adoption and final integration run.

Numeric source

The deterministic canonical-boundary constants come from:

WolframLanguageEvaluator: Table[{w,2^(w-1),2^(w-1)-1,2^w-1},{w,{8,16,32,64}}]

Result: {{8,128,127,255},{16,32768,32767,65535}, {32,2147483648,2147483647,4294967295}, {64,9223372036854775808,9223372036854775807,18446744073709551615}}.

Expected runtime arithmetic/float results are measured from the unchanged hosted converter, not computed by the test in Python. The independent pointer-range oracle and its Wolfram constants are inherited from tests/seeded_runtime_views.py.

Guide scope

This assignment authorizes omega-bridge, not edits in omega-harness. The matching pending skill/guide update is recorded in aien-dev/omega-harness#196. No guide or implementation pin has been promoted to merged/deployed status.