interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / docs / SEED_LINEAGE.md

190 lines · 23719 bytes Raw Blame History Source

Seed lineage: where every running artifact comes from, and what would birth it from seed-0

Status: inventory, 2026-10-19. Ledger L107. This is a planning and evidence document, not a claim that any rung beyond the ones named in the seed brief exists.

Decision it serves (Drake, 2026-10-19, binding): one language rules the whole system, CPU, GPU, memory and storage. Every process on a machine is to be born from one seed. The seed is the chain being built on omega branch seed/birth (ledger L103): a hand-written hex seed, then labels, then a text-table assembler with CPU and GPU instruction tables, then an Omegese-to-words translator, then Atlas reborn. Today's tools (gcc, rustc, GNU as and ld) become reference oracles, then leave.

Sources: GitHub default branches read on 2026-10-19 at omega a8ffd2b9, physics 14273c5, atlas 6b11395 (branch master), aien-sovereign-core 10b4f851, aienos 18e2765. Line counts are wc -l of source files (c, h, s, S, rs, sh, ld), excluding vendored NVIDIA headers, vendor/, evidence/. Totals that I added up carry an aien-calc receipt. Nothing was built or run for this document. Where a fact came from memory notes and could not be read from a source file, it is marked UNVERIFIED.

Terms used once: rung = one step of the seed chain. Oracle = the outside tool whose output I compare mine against. OSC = Omega Systems Core, the small systems language the compiler in omega src/compiler accepts. Omegese = the word-style program language in omega docs/one_layer/OMEGESE.md.

1. The lineage rule

Every artifact that runs declares its birth chain: which tool made it, which tool made that tool, and so on back to seed-0, the few hundred bytes written by hand as hex words.

An artifact built by an outside toolchain today is on loan. It carries the gate that will replace the loan:

  1. My chain rebuilds the same artifact from the same source or listing.
  2. The output is byte-identical to the outside build on a fixed corpus (for a program: the same bytes out for the same inputs; for a binary: the same bytes).
  3. Only then does the outside tool leave the build. It stays archived as the oracle, so any later disagreement can be checked against it.

If my bytes and the outside bytes differ, the machine's manual (the ARM Architecture Reference Manual for CPU words, the sm_121 disassembler for GPU words) decides, and the difference is recorded either way.

Rungs, as defined in the L103 brief:

RungWhat it isCan express
0seed-0, hex words, reads hex text and writes bytesnothing but bytes
1hex1, adds labels and one relative branchhand assembly with names for places
2text-table assembler, CPU table (name to bit pattern)all of assembly, as readable text
3Omegese subset to words: fn, =, add sub mul and or, if/else/end, while ... bound, ret, unsigned ints onlysingle functions on whole numbers, no arrays, no memory, no I/O
4+a fuller Omega: bytes, aggregates, bigger storage, recursion, outputneeds the language gaps in section 4
5Atlas reborn through rung 2 (ledger L105)the 1,480-byte boot seed
6sm_121 (Blackwell, the GB10 GPU) table in the rung-2 assembler (ledger L106)GPU instruction words from a text listing

2. The inventory

Machines: S = the Spark (DGX Spark, GB10), I = the iMac (AIENOS kernel, x86-64), P = the Pi 5 hub, Q = QEMU only so far.

"Under it" is what runs beneath the artifact that I did not write. "Rung" is the earliest rung that could birth it: 2 assembly text only, 6 GPU words from a listing, NEW: <features> needs language features that do not exist yet (section 4). No whole artifact is birthable at rung 3: rung 3 has no arrays, memory or I/O.

2.1 Boot and hardware layer

#ArtifactRepoWhat it doesLangLinesBuilt today byUnder itRung
1Atlas boot seed (atlas.bin, 1,480 bytes)atlasChecks the next boot stage by SHA-256, hands over or haltsAArch64 asm509 (atlas.s 129, sha256_clean.s 319, physics_0.s 61)GNU as (per L103 brief; the repo holds the committed bytes and no assemble step)QEMU virt firmware; no native run yet2 (it is the rung-5 job, ledger L105)
2Atlas gate toolingatlasAudits the bytes, mutates them, runs QEMU matrixC, sh1,485 (calc:703b8874)gccLinux, QEMUNEW: bytes and strings, file I/O, process spawn
3PHYSICS boot stages and effects (M2, M3)physicsVerified boot stage after Atlas, capability and receipt codeAArch64 asm2,557 (physics.s plus m3/*.s; test .s inside)aarch64-linux-gnu gcc, ld, objcopy (m2_build.sh)QEMU virt firmware2, plus a hand-hex image header in place of ld
4PHYSICS gate tools (m2tool, m15tool, scripts)physicsAudit and qualify the boot artifactsC, sh1,120 + 701 + shellgccLinuxNEW: bytes and strings, file I/O
5FORGEphysicsRealizes a verified Omega meaning, descriptors, analog simulatorC3,935gccLinux, libcNEW: aggregates, bytes, and floating point if the analog simulator uses it (UNVERIFIED, not read)
6GB10 client (nvrm/, m16/)physicsOpens the NVIDIA device, allocates, maps memory, submits workC2,354 (calc:9fa24296)gccLinux 7.0.0-1019-nvidia, NVIDIA open kernel module 580.173.02, GSP firmware (section 4.2)NEW: system calls (open, ioctl, mmap), layouts that match 37,334 lines of NVIDIA headers, pointers into mapped memory

2.2 Omega (the language, compiler and GPU engine)

#ArtifactRepoWhat it doesLangLinesBuilt today byUnder itRung
7OSC compiler and language front endomegaTurns OSC source into AArch64 wordsC11,346 (calc:612b5cdc)gccLinux, libcNEW: bytes and strings, large growable storage, recursion, output (OSC-1 reasons 1, 3, 4, 5)
8AArch64 encoder and decoderomegaWords from operands, operands from wordsC592gccnoneencoder: replaced by the rung-2 table, kept as oracle. Decoder: NEW: tables, bytes
9Omega core: canonical form, validate, codec, program, verify, synthesis, library, discovery, machine, vector, matvec, evidence, receiptomegaMeaning, proof and receipt machineryC15,792 (calc:51a1ad52)gccLinux, libcNEW: bytes, aggregates, hashing, growable storage
10Omega numericomegaBit-exact reference arithmetic, reductions, tablesC6,411gccnone beyond libcNEW: floating point or exact integer emulation of it, wide multiply, tables
11GPU code generators (omega_blackwell_codegen*, encoder)omegaC programs that emit sm_121 words for each kernel familyC8,820 (calc:d8cb70e3)gccnoneNEW: loops over parameters, arrays, word output
12GPU kernels as emitted wordsomegaThe attention, GEMM, MoE, router, decode and prefill kernels that run on the chip (about 14 families, one per codegen file)sm_121 wordsnot text today; generated at run timemy own codegen (itself built by gcc)GSP firmware, GPU hardware6
13GPU host and engine (omega_gpu_*, blackwell engine, submit, QMD, realize, matmul, gates)omegaCommand lists, launch descriptors, memory, waits, serving glue; ships as libomega_gpu.aC16,100 (calc:d4e90cf7)gcc, archive pinned by digest in sovereign-core native-artifacts.lockLinux, NVIDIA module, GSP firmwareNEW: system calls, aggregates, volatile memory access
14checker2omegaIndependent checker for realization receipts, LRAT proofsC3,382gcclibcNEW: bytes, growable storage, hashing
15Runtime composition library (src/runtime, librx_compose.a)omegaGraph, plan, route, cost model, operators, capability queueC35,613gcc, archive pinned by digestlibcNEW: nearly everything in section 4.1
16OSH shell coreomegaLexer, parser, expander for the AIENOS shellOSC + C references + sh5,174, of which 1,572 are OSC (src/osh/*.osc)oscc (itself gcc-built) for the OSC part; gcc for the referencesnonethe OSC part is already in my language but is compiled by a gcc-built compiler, so it is born when OSC-14 self-host lands; the rest NEW
17Omegese translator, omega_emit, omega CLIomegaOmegese to IR to words; the one-layer pathCOmegese 2,169, omega_emit 782, typediff 205, othersgcclibcthe translator is itself the rung-3 product; its C original stays as oracle
18Research and experiment subsystems: visor, turing, estimation, searchtrace, dual, ans, tensor, train, autodiff, algebra, fabric, reservoir, polyglot, physics0, crumbline, allen, pathomegaExperiments and gates the program is judged byC, a little asm40,235 (calc:48327d02)gcclibcNEW; lowest priority, rebirth only when something in the serving path needs them
19Omega gate and chip-run scriptsomegaRun the gates and the chip testssh13,604not built; run by bashbash, coreutilsNEW: the OSH shell (#16) must run first

2.3 AIENOS (kernel and storage)

The local ~/workspace/aienos is a docs-only copy; these numbers come from the GitHub main snapshot. The iMac lab drivers that are not on main (PR #415, #421) are not counted here (UNVERIFIED, from memory notes).

#ArtifactRepoWhat it doesLangLinesBuilt today byUnder itRung
20AIENOS kernel (native/kernel) for Spark, Pi 5 and iMacaienosMemory, traps, devices, services; arm64 plus a small x86-64 port (x86 2,901 lines, arm64 arch 1,056)C, asm, sh67,200 (calc:ca49e87e); asm inside is 887 linesaarch64-linux-gnu gcc, ld, objcopy, plus Rust static libraries linked inS: platform UEFI firmware. P: VideoCore firmware and the UEFI build in rpi5-uefi. I: Apple firmware (section 4.2)asm part: 2. The rest: NEW: privileged instructions and system registers, volatile device memory, interrupt entry, inline words, all of 4.1. Last in order
21EFI boot stage and slot loader (native/boot)aienosLoads the kernel image, signed A/B slot choiceC, asm, ld4,020gcc, ldUEFI firmwareNEW: PE/COFF header as hand-hex words, bytes, signatures
22Disk and NVMe path (native/disk, kernel dev/nvme_*, disk_*)aienosNVMe and SD block I/O, partitioningC4,021gccNVMe controller firmware; none of mineNEW: volatile device memory, DMA, bytes
23Store (native/store)aienosCrash-safe artifact store: torn-slot handling, sealed recordsC7,319gccthe block device (#22)NEW: bytes, aggregates, growable storage
24Crypto and signatures (native/crypto, native/sig)aienosSHA-256, Ed25519 style checksC2,698 (calc:3059d70b)gccnoneNEW, but the smallest: xor, shifts, rotates, 32 and 64-bit wrap, byte arrays
25Capability, ARGUS, net, m5aienosAuthority tokens, defensive plane, network, small servicesC25,894 (calc:1dbda6f3)gccNIC firmwareNEW: all of 4.1
26AIENOS Rust crates (kernel model, boot, infer, store tool, others)aienosHost-side models and the two crates linked into the kernel image (aienos-infer-kernel 715, aienos-capability-ffi 768)Rust72,716 (aienos-kernel alone 38,704)rustcLinux for host crates; none for the two kernel cratesNEW; Rust is scaffolding by project rule, so these are rewritten in Omega, not carried across

2.4 Host runtime, the LLM path and tools

#ArtifactRepoWhat it doesLangLinesBuilt today byUnder itRung
27aien-serve-httpaien-sovereign-coreHTTP front door: prompt in, tokens outRust4,664rustcLinux sockets, libcNEW: network and syscall effects, strings, bytes
28Inference and runtime crates (aien-inference-abi 37,089, aien-runtime 24,381, aien-cli 15,431, kv-cache and kv-store 12,128, scheduler 3,455, nine aien-omega-* crates 7,979)aien-sovereign-coreSession, scheduling, KV cache, model loading, calls into libomega_gpu.aRust100,463 for the crates named, source only (calc:9abf0f86)rustc, plus gcc via build.rs for the omega archiveLinux, libcNEW
29aien-test (the Spark judge), aien-local-ci, aien-verifyaien-sovereign-coreDecide whether a change passesRust, sh20,047 Rust + 1,939 sh in tools/rustc, bashLinux, git, GitHubNEW; moves after the OSH shell and the store
30Other sovereign-core crates (spark-*, cortex-rs, crumbs, mcp, allen, security, trace, localhttp) and the Rust binaries copied to ~/.local/binaien-sovereign-core, othersMail, memory, supervisor, cockpit, harnessRustnot summedrustcLinuxNEW; many are scaffolding that may simply retire
31Shell tools in ~/.local/bin (46 live scripts: ledger, gh guard, crumb, quiet-build, org-check, aien-watch, spark-cleanup and others)no repo (home directory)Coordinate agents, guard GitHub, run buildssh3,218not built; run by bashbash, coreutilsNEW: the OSH shell. Two files there are Python (allen-vault, spark-receipt), against the no-Python rule
32Pi hub services I wrote: readings-window (503 Rust lines at local clone bb39d99), the interplane protocol crates (26,274 Rust lines), the interplane.io generatorreadings-window, interplane, interplane.ioServe GPU readings and the protocol pageRust26,777rustcRaspberry Pi OS Linux; headscale and nginx on the hub (UNVERIFIED, from memory notes of 2026-10-04)NEW

2.5 The LLM runtime path, prompt to GPU words

  1. A prompt arrives at aien-serve-http (#27).
  2. The Rust runtime (#28) tokenizes, schedules and manages the KV cache (the stored attention state), reading model weights as ordinary files through Linux.
  3. It calls libomega_gpu.a (#13, C), pinned to an omega commit.
  4. That library runs the generators (#11), which emit sm_121 words (#12) into GPU-visible memory.
  5. nvrm.c (#6) opens the NVIDIA device and submits the work with ioctl.
  6. Linux (7.0.0-1019-nvidia) and the NVIDIA open kernel module 580.173.02 carry the request; the GSP firmware blobs in /lib/firmware/nvidia/580.173.02/ run on the GPU's own processor; the silicon executes.

Under my code the unwritten parts are: gcc and rustc, glibc, the Linux kernel, the NVIDIA module, the GSP firmware, the GPU. Only #12 is born from my own code today, and its generator (#11) was compiled by gcc.

2.6 What on PATH is not mine

~/.local/bin also holds outside programs (the coding agents claude, codex, grok, agy, muse; rad, radicle-node, git-remote-rad; forgejo-runner; conduit; tectonic; bw). They are not inventoried as my artifacts. They run on the machine and will run under whatever replaces Linux only if they are ported or retired. Not counted below.

3. Order of rebirth, with gates

Principle: smallest and purest integer code first; code that needs bytes, strings and I/O after the language gains them; the kernel last.

StepArtifactWhy hereGate
0seed-0, hex1, text-table assembler (L103 rungs 0 to 2)everything else stands on theseeach rung rebuilds itself byte-identical; every word reconciled against two decoders
1Atlas, #1 (rung 5)1,480 bytes, all assembly, already audited word by wordatlas.bin byte-identical to sha256 f7802501b410a0c19eff7b8fca8865c9ba9c96bfa4f8065ca8f508b67748b9a5; the Atlas M1 gates pass in QEMU
2PHYSICS boot stages, #3assembly only; needs the hand-hex image header that replaces ldphysics.bin and atlas_m2.bin byte-identical to the sha256 files in physics; M2 gates pass in QEMU
3GPU kernels, #12 (rung 6)same assembler, second table; the C codegen is the oracleevery emitted kernel word equal to the C codegen's, bit for bit; one kernel then run on the chip
4First Omega words (rung 3)proves the translator end to end on whole-number functionsthe 10 public dev tasks return the same results as the C path; word-count table published either way
5Crypto and signatures, #24 (with sha256_clean.c in Atlas and omega)purest integer code, smallest, everything verifies against itknown-answer vectors plus a fixed corpus of inputs: digests and signature checks byte-identical to the gcc build
6AArch64 decoder and the encoder fields, #8table-driven; the rung-2 table already supersedes the encodersame words for every instruction form in aarch64_encoder.h; decoder returns identical text on a fixed word corpus
7OSC compiler, #7 (OSC-14 self-host)needed before any OSC code (#16) can be born without gcccompiler_n built by compiler_{n-1} produces byte-identical output on a fixed corpus (omega determinism gate II.9)
8Omega core, numeric, checker2, #9, #10, #14pure data code over bytes; the judges of everything abovesame receipts and digests as the gcc build on the existing test corpus
9GPU generators, #11, host and engine, #13, and nvrm, #6need system calls and volatile memorysame word streams and same submission traces as the gcc build; chip tests unchanged
10OSH shell, #16, then the scripts, #19, #31shell tools can only be born once a shell iseach script's output byte-identical on a fixed run
11Store, #23, storage drivers, #22, boot stage, #21need volatile device memory and DMAtorn-write and recovery tests identical; boot image byte-identical
12Capability, ARGUS, net, #25large, rely on the aboveexisting gates unchanged
13AIENOS kernel, #2067,200 lines, privileged instructions, interrupts, device memory, and the only artifact that cannot be tested without hardwarekernel image byte-identical to the gcc build, QEMU gates, then native gates
14Runtime, serve-http, judge and the rest, #26 to #30, #32these are Rust scaffolding by project rule; they are rewritten in Omega rather than re-compiledbehaviour and receipts identical to the Rust build on a fixed request corpus

Research subsystems (#18) have no fixed place; they move when a needed part of the serving path depends on them.

4. Honest gaps

4.1 What the language cannot express today, by artifact class

Source: docs/osc/OSC-1-SELF-HOST-STATEMENT.md in omega, with its 2026-10-01 addendum. Its six reasons, and where they stand:

OSC-1 reasonStatusBlocks
1. No bytes, strings or textopenevery tool that reads a file or prints a line: #2, #4, #7, #9, #14, #16, #17, #21, #23, #27 and all shell
2. No structs, unions or tagged datasuperseded for structs by OSC-2 item 2 (omega#149)still open for unions and tagged data
3. No growable or large storage (arrays of 64, pool slots of 64 cells)opencompiler tables (4,096 instructions per function), store, KV cache, runtime
4. No recursion or forward callsopenparser, compiler, shell
5. No output channel (a program can only return a scalar; no I/O, capabilities or effects)openeverything that talks to a device, a file or the network: #6, #13, #20 to #23, #27
6. No checked contractssuperseded by OSC-2 item 1 (omega#148)none now

Status of OSC-1 and OSC-2 is IMPLEMENTED / NOT QUALIFIED: host receipts only, not self-hosting, no production code compiled by either.

Further gaps from my reading of the inventory. These are UNVERIFIED against a language spec, confidence medium:

4.2 What sits below my code and no seed can replace

LayerMachinePhysical reason it cannot be birthed from the seed
GSP firmware (gsp_*.bin, loaded by the NVIDIA module; the GPU's own management processor)SThe GPU runs it on a processor inside the chip and, to my understanding, accepts only NVIDIA-signed images checked by hardware keys fused into the chip. I hold no signing key, so I can send work to it but not replace it. UNVERIFIED here (no driver source line found in the physics snapshot saying so); confidence high. The physics repo's native driver path (nvrm/) talks to it through the Linux module.
GPU silicon boot ROM and memory trainingSMask ROM and on-chip fuses: written at manufacture, read-only.
Spark CPU boot firmware (the early secure stages and platform UEFI)SThe chip's first instructions come from vendor ROM that checks the next stage's signature. Atlas can be the first stage I choose only where the platform lets an owner-signed image run. Native Spark boot of AIENOS is parked (memory note, 2026-10-18).
CPU microcodeILoaded by the Intel CPU from vendor-signed blobs; the CPU rejects unsigned microcode.
iMac firmware (Apple UEFI, SMC, Intel management engine)IVendor-signed and write-protected by hardware locks. Firmware replacement on the lab iMac is approved (Drake, 2026-10-18), but a read-only backup and a lock survey come first and no write code exists; whether the locks can be opened is not yet known.
Pi 5 boot ROM, VideoCore firmware, EEPROMPThe Pi's first stage is mask ROM and VideoCore code from Raspberry Pi; my UEFI (rpi5-uefi) and Atlas start only after it.
Linux kernel and the NVIDIA open kernel module on the Spark and Pi hubS, PNot a physical limit: replaceable once AIENOS runs there. They sit under every Spark artifact today, which is why the Spark's serving path (section 2.5) cannot be fully mine yet.
Network and storage controller firmware (NIC, NVMe drive)allInside each device and unreachable from the host.

What the seed can reach is everything from the first instruction I am allowed to run upward: it cannot reach below the first signed vendor stage.

5. Counts

Counted from the tables above (rows 1 to 32; section 2.6 is excluded).

MeasureCount
Artifacts total32
Built today by an outside compiler or assembler (gcc, rustc, GNU as and ld)29
Not built, run by an outside interpreter (bash)2 (#19, #31)
Built by my own codegen (which gcc compiled)1 (#12)
Birthable at rung 30 whole artifacts (rung 3 reaches single whole-number functions only)
Birthable at rung 2 (assembly text), including Atlas at rung 52 (#1, #3), plus the 887 assembly lines inside #20
Birthable at rung 6 (GPU table)1 (#12)
Needing new language features29
Cannot (physical reason)0 of my artifacts; 8 layers below my code listed in 4.2

Row check: 29 + 2 + 1 = 32 by build method, and 0 + 2 + 1 + 29 = 32 by rung. Calc receipts are shown as the first eight hex digits of the aien-calc id.