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#38 (code only)

closed derived 288c5a91b544ca24 #38

Imported from GitHub aien-dev/omega-bridge#38 (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 5361f4f9abcb6ea46142f6704d8e7564711675f1 · Head 67fb85ffb3e53e67f2e4bf69500e501495153124

Fetch it

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

curl -fsSL https://interplane.io/drakestapleton/omega-bridge/patches/288c5a91b544ca24.bundle -o 288c5a91b544ca24.bundle
git fetch 288c5a91b544ca24.bundle refs/pull/38/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
38
67fb85ffb3e53e67f2e4bf69500e501495153124
{"kind":"github-import","owner":"aien-dev","repo":"omega-bridge","number":38,"url":"https://github.com/aien-dev/omega-bridge/pull/38","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:59Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/README.md b/README.md
index fef54ee..76fbcdd 100644
--- a/README.md
+++ b/README.md
@@ -108,6 +108,22 @@ failed/missing-toolchain controls passed EMULATED; see
 [the pinned receipts](evidence/native-x86-be8c5130.json). Earlier
 pins' receipts remain in `evidence/native-x86-62775d2a.json`, `evidence/native-x86-badedbb0/`, `evidence/native-x86-f7752bc5/` and `evidence/native-x86/`. Physical x86
 execution remains NOT_RUN.
+
+## Pending Linux kernel-leaf envelope experiment
+
+[`src/kernel_leaf.om`](src/kernel_leaf.om) emits a fixed-symbol AArch64 assembly
+envelope for the companion restricted `kleaf` compiler experiment. It matches
+the inspected Linux `7.0.0-1019-nvidia` leaf tracing/PAC metadata, not an arbitrary
+kernel ABI. It requires trusted compiler/source custody: framing checks are not
+a general machine-code verifier. It does not implement driver policy, Linux
+effects, a module loader or the userspace native trampoline.
+
+This source-only experiment is not integrated into `tools/native`, does not
+change any compiler fingerprint or production admission path, and is not a
+kernel/GPU qualification claim. The compiler-side
+`seed/omc/kernel-leaf-experiment.py` is its host oracle and exact kbuild-object
+comparison. GNU assembly/object tooling remains a disclosed build dependency.
+
 ## Framework attachments
 
 | Framework | Attachment | Scope (receipt) |
diff --git a/src/kernel_leaf.om b/src/kernel_leaf.om
new file mode 100644
index 0000000..4a72a23
--- /dev/null
+++ b/src/kernel_leaf.om
@@ -0,0 +1,121 @@
+note Isolated kernel-leaf instruction envelope, not a loader or code validator.
+note Input must be exact compiler-produced kleaf bytes with source/compiler custody.
+note Target matches Linux 7.0.0-1019-nvidia tracing 4,2 and PAC property, no BTI config.
+note No arbitrary external symbols, effects, C implementation, device or kernel access.
+global src uchar 4097
+global out uchar 65536
+global cursor ulong 1
+global digits uchar 20
+text head ".text\n.p2align 3\n.Lkleaf_start:\n"
+text entry ".global omega_kernel_unit\n.type omega_kernel_unit,%function\nomega_kernel_unit:\n"
+text inst ".inst "
+text tail ".size omega_kernel_unit,.-omega_kernel_unit\n.pushsection __patchable_function_entries,\"awo\",%progbits,.Lkleaf_start\n.p2align 3\n.xword .Lkleaf_start\n.popsection\n.section .note.GNU-stack,\"\",%progbits\n.section .note.gnu.property,\"a\"\n.p2align 3\n.long 2f-1f,6f-3f,5\n1: .asciz \"GNU\"\n2: .p2align 3\n3: .long 0xc0000000,5f-4f\n4: .long 2\n5: .p2align 3\n6:\n"
+fn putc c uchar to void
+p = get cursor 0
+if ge p len out
+trap 10
+end
+put out p c
+put cursor 0 add p 1
+end
+fn append id ulong to void
+if eq id 0
+for i ulong len head
+putc get head i
+end
+end
+if eq id 1
+for i ulong len entry
+putc get entry i
+end
+end
+if eq id 2
+for i ulong len inst
+putc get inst i
+end
+end
+if eq id 3
+for i ulong len tail
+putc get tail i
+end
+end
+end
+fn decimal v ulong to void
+n = ulong 0
+x = v
+go = true
+while go
+put digits n uchar add rem x 10 48
+n = add n 1
+x = div x 10
+if eq x 0
+go = false
+end
+end
+while gt n 0
+n = sub n 1
+p = get cursor 0
+if ge p len out
+trap 10
+end
+put out p get digits n
+put cursor 0 add p 1
+end
+p = get cursor 0
+put out p uchar 10
+put cursor 0 add p 1
+end
+fn word at ulong to ulong
+v = ulong 0
+for i ulong 4
+v = or v shl ulong get src add at i mul i 8
+end
+ret v
+end
+fn main to int
+n = ulong 0
+go = true
+while go
+if ge n len src
+ret 110
+end
+r = read 0 src n sub len src n
+if lt r 0
+ret 110
+end
+if eq r 0
+go = false
+else
+n = add n ulong r
+end
+end
+if or or lt n 20 gt n 4096 ne rem n 4 0
+ret 110
+end
+note Wolfram FromDigits["d503201f",16] = 3573751839, matches configured GCC ftrace oracle.
+for i ulong 4
+if ne word mul i 4 3573751839
+ret 110
+end
+end
+append 0
+p = ulong 0
+while lt p n
+if eq p 8
+append 1
+end
+append 2
+decimal word p
+p = add p 4
+end
+append 3
+p = ulong 0
+while lt p get cursor 0
+r = write 1 out p sub get cursor 0 p
+if le r 0
+ret 110
+end
+p = add p ulong r
+end
+ret 0
+end