Goal
Drake (2026-10-20): the final kernel is an Omega program. The Rust kernel (aienos-mv) is frozen as the oracle. Omegese is the source language; this issue tracks what Omegese and the Omega IR still lack to write Aienux, and ships each piece as one PR with red-before-green tests and byte-for-byte checks against the oracle.
What exists
- Omegese (
tools/omegese/omegese.c,docs/one_layer/OMEGESE.md): integers, bool, structs, own/edit/view arrays of 1..64 elements, calls, loops proven to end, exact next-word oracle. Lowers to the omega_emit op list, then the OSC binary IR (src/compiler/osc_ir.h, version 5), then checker2. - OSC IR already has external byte slices (
OSC_T_BYTES,OSC_T_CELLS,SLOAD/SSTORE) and an AArch64 native backend (src/compiler/osc_a64.c,osc_cg.c). docs/osc/OSC-4-DESIGN.mddesigns large buffers, extern C, syscalls and long loops. Status: design, not implemented. The kernel needs a different slice D (no Linux underneath), so this issue takes slices B and E from OSC-4 and adds a machine slice.
Rungs (each one PR, each gated)
| rung | what | gate |
|---|---|---|
| K1 bytes and text | byte-string constants (text "..." as a view byte N), arrays past 64 elements for byte and ulong (OSC-4 slice B subset), long loops (slice E) | goldens + fuzz mismatches=0 interpreter vs native; Omegese next stays exact (6.5 suite green) |
| K2 machine memory | peek/poke of 8/16/32/64 bits at a ulong address, volatile (never reordered, merged or dropped), only in a unit compiled with --machine; checker2 marks the receipt machine | a test that writes a pattern to a mapped page and reads it back through the oracle's own reader; reorder test on the emitted bytes |
| K3 system words | sys ops for the few instructions a kernel needs: mrs/msr by named register, dsb/isb/dmb, wfi, eret, tlbi, exception vector entry | emitted bytes equal to what the oracle (aienos-mv Rust build) emits for the same instruction, checked with src/aarch64_decoder.c |
| K4 placement | entry function placed first at a fixed address; raw flat binary output (oscc --flat); no runtime context register (x7) in machine units | the output boots under QEMU virt and prints one line on PL011; byte-compared with the oracle's first stage |
| K5 units | cross-file use (closes L096): one unit per file, names resolved at link, one binary | a two-file program equals the same program in one file, byte for byte |
| K6 first light | an Omega-compiled Aienux stage 0 boots the DGX Spark with no Linux and prints one line on the serial console | receipt from the real machine (photo of console + serial log + sha of the binary) in evidence/ |
Rules
- No C, Rust, GNU or CUDA in the program path; the Rust kernel and gcc are oracles only.
- Every number measured; machine ops are refused outside
--machineunits; a--machinereceipt is never mistaken for a safe one. - Branch
omegese/bytes-io(K1) is open. Ledger: L184.
Owner: Hermes chat (Drake asked for this to be done by the coordinator personally, 2026-10-20).