interplane.Get Omega
Read in your language

omega-bridge

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

Brought by drakestapleton

GitHub aien-dev/omega-bridge#25 (code only)

closed derived b079b488b548d2ee #25

Imported from GitHub aien-dev/omega-bridge#25 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base f637021f36f0cfff39240a62341a47e442ae05c3 · Head dbd0976ad11e3a7e58e306c74162ef9d792db179

Fetch it

A git bundle of the pull request's head, 7805 bytes.

curl -fsSL https://interplane.io/drakestapleton/omega-bridge/patches/b079b488b548d2ee.bundle -o b079b488b548d2ee.bundle
git fetch b079b488b548d2ee.bundle refs/pull/25/head

Raw bundle · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/omega-bridge
25
dbd0976ad11e3a7e58e306c74162ef9d792db179
{"kind":"github-import","owner":"aien-dev","repo":"omega-bridge","number":25,"url":"https://github.com/aien-dev/omega-bridge/pull/25","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:57Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/AGENTS.md b/AGENTS.md
index 753507c..9e1e5cc 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,7 +1,9 @@
-# Omega Bridge (an Omega-written compiler from a checked Omega subset to C and Python, plus native call and GPU adapter boundaries)
+# Omega Bridge (Omega's compatibility gateway: a checked Omega subset converted to C and Python, native call bindings and GPU artifact negotiation)
 
 > `src/toc.om` is an Omega program, built by the pinned seeded Omega compiler, that emits executable C and Python from a checked, bounded Omega subset (ABI v0). `src/native.om` generates a C binding so C, C++, Python, Rust, Zig and Go call the machine code the seeded compiler produced (native call ABI v1/v2). `src/gpu_adapter.om` is an opt-in GPU adapter boundary that negotiates and admits artifacts; it converts no host program. The bootstrap and generators require Linux AArch64; hosted native output also has explicit x86-64 SysV Linux selection, exercised under QEMU 10.0.14 (physical x86 NOT_RUN). Independent review remains required before release; no universal conversion or speedup is claimed.
 
+> Ownership rule (ARCH-0042, aien-dev/aien-architecture-mv#342, Accepted (Drake, 2026-10-30)): Omega owns computation, CUDA++ owns GPU execution, Omega Bridge owns compatibility. This repository is not a second Omega compiler, encoder or GPU runtime: it builds with omega-mv's pinned compiler and runs Omega GPU work only through aien-dev/CUDApp. Remaining overlaps: omega-mv#870 (own seed bootstrap), omega-mv#871 (own front end in `src/toc.om`).
+
 Shared rules: read https://www.aienos.com/agents/RULES.md first. This file adds what is specific to this repository; where the two differ, this file wins here.
 
 ## Scope
diff --git a/README.md b/README.md
index 7847eef..fb6be86 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,14 @@
 # Omega Bridge
 
-An Omega-written compiler that emits executable C and Python from a checked, bounded Omega subset. Existing C and Python applications can also call generated library functions, and compiled Omega functions can be called in place from C, C++, Python, Rust, Zig and Go through the native call adapter. Apache-2.0 WITH LLVM-exception.
+Omega's compatibility gateway. `src/toc.om` is an Omega program that converts a checked, bounded Omega subset into executable C and Python; `src/native.om` generates bindings so existing C, C++, Python, Rust, Zig and Go code calls compiled Omega; `src/gpu_adapter.om` negotiates and admits GPU artifacts and runs no kernel. Apache-2.0 WITH LLVM-exception.
 
-The source-only compiler bootstrap currently requires Linux AArch64. Generated C uses GNU C11 and POSIX; generated Python uses Python 3. This branch has local differential tests and caller demos; independent review remains required before release. No universal conversion or performance improvement is claimed.
+Ownership rule ([ARCH-0042](https://github.com/aien-dev/aien-architecture-mv/pull/342), Accepted (Drake, 2026-10-30)): Omega owns computation, CUDA++ owns GPU execution, Omega Bridge owns compatibility.
+
+- **Omega Bridge (this repository)** owns compatibility: conversion to C and Python, native-call bindings, framework attachments (MAX conformance; PyTorch and GGML pending (#23/#30, ggml-omega#1/#2)) and GPU artifact negotiation. It exists so existing ecosystems can adopt Omega without rewriting; it makes them optional and does not constrain Omega to them.
+- **[Omega](https://github.com/aien-dev/omega-mv)** owns computation: the language and its semantics, the seeded compiler and its pin. This repository builds with that compiler; it is not a second Omega compiler. Today `tools/bootstrap.sh` replays the seed itself and `src/toc.om` keeps its own front end; both stay as they are, and new compiler work goes to Omega ([omega-mv#870](https://github.com/aien-dev/omega-mv/issues/870), [omega-mv#871](https://github.com/aien-dev/omega-mv/issues/871)).
+- **[CUDA++](https://github.com/aien-dev/CUDApp)** owns GPU execution: encoder, GPU code generation, cubin writer, artifact admission, driver client and runtime. Omega device runs here go through CUDA++ (`conformance/build.sh` links `conformance/omega_runner.c` against its `libomega_gpu.a`; `tools/run-device-window.sh` calls its `cubin_probe`).
+
+The source-only bootstrap of the pinned Omega compiler currently requires Linux AArch64. Generated C uses GNU C11 and POSIX; generated Python uses Python 3. This branch has local differential tests and caller demos; independent review remains required before release. No universal conversion or performance improvement is claimed.
 
 Build from exact pinned source:
 
diff --git a/docs/DESIGN.md b/docs/DESIGN.md
index 6b6d765..b64640b 100644
--- a/docs/DESIGN.md
+++ b/docs/DESIGN.md
@@ -20,7 +20,7 @@ Do not install Jarvis, switch drivers, change 18091, alter other worktrees, or c
 
 ## GPU scope decision (2026-10-23)
 
-The user explicitly moved GPUs, accelerators and graph runtimes into Omega Bridge's scope. Bridge owns source-language bindings, graph-runtime adapters, GPU-runtime interop, capability manifests, tensor ownership handoff and explicit refusal. Omega and CUDApp keep ownership of the native compiler, sm_121 encoder, driver client, kernel runtime, artifact exporter and verifier. Bridge must not duplicate any of them. The versioned contract is `omega-bridge-gpu-adapter/1` in [GPU-ADAPTER.md](GPU-ADAPTER.md); the implemented native checker is `src/gpu_adapter.om`.
+The user explicitly moved GPUs, accelerators and graph runtimes into Omega Bridge's scope. Bridge owns source-language bindings, graph-runtime adapters, GPU-runtime interop, capability manifests, tensor ownership handoff and explicit refusal. Under ARCH-0042 (Omega owns computation, CUDA++ owns GPU execution, Omega Bridge owns compatibility), Omega keeps the language and the native compiler, and CUDA++ keeps the sm_121 encoder, GPU code generator, driver client, kernel runtime, artifact exporter and verifier. Bridge must not duplicate any of them. The versioned contract is `omega-bridge-gpu-adapter/1` in [GPU-ADAPTER.md](GPU-ADAPTER.md); the implemented native checker is `src/gpu_adapter.om`.
 
 ## Implemented architecture and study reconciliation (L483)
 
diff --git a/docs/GPU-ADAPTER.md b/docs/GPU-ADAPTER.md
index 788d842..d647bd1 100644
--- a/docs/GPU-ADAPTER.md
+++ b/docs/GPU-ADAPTER.md
@@ -16,9 +16,12 @@ capabilities. It is a pure boundary:
 - it never falls back to CPU, to another backend, or to a less capable adapter;
 - it has no network, telemetry or install path.
 
-Native ownership stays with the existing projects: Omega/CUDApp own the sm_121
-encoder, code generator, QMD template, driver client, artifact exporter and
-verifier. MAX/Mojo extensions, if any, remain isolated third-party artifacts.
+Native ownership follows ARCH-0042 (Omega owns computation, CUDA++ owns GPU
+execution, Omega Bridge owns compatibility). CUDA++ (aien-dev/CUDApp) owns the
+sm_121 encoder, GPU code generator, QMD template, driver client, kernel runtime,
+artifact exporter and cubin verifier. Omega (aien-dev/omega-mv) owns the language,
+the compiler and the declared kernel contract. MAX/Mojo extensions, if any, remain
+isolated third-party artifacts.
 
 ## 2. Activation