Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/docs/adr/0001-native-boot-milestone-and-linux-island.md # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / docs / adr / 0001-native-boot-milestone-and-linux-island.md` 64 lines ยท 4119 bytes Raw Blame History Rendered 1 # ADR 0001: Native boot with CPU inference stays the next milestone; minimal Linux is only Benchmark Config B 2 3 Status: accepted by the operator, 2026-09-23. 4 5 ## Context 6 7 An outside proposal ("Spark Native Boot v0") suggested making the next target a minimal Linux kernel that boots straight into `aien-init` as PID 1, keeps the NVIDIA kernel modules for the GPU, and runs the frozen inference stack with no general-purpose Linux userspace. 8 9 Useful parts of the proposal: 10 11 - AIEN owns the hot path: no HTTP/JSON between internal components, fewer copies, resident models, direct accelerator-memory management, copy-on-write agent state. 12 - Removing the general-purpose OS does not make GPU matrix multiplication faster. The likely gains are boot-to-ready time, freed memory, lower jitter, determinism, and multi-agent density. 13 - Run the same machine in comparable configurations and measure the difference. 14 15 Parts that conflict with the governing architecture ([ARCHITECTURE.md](../ARCHITECTURE.md)): 16 17 - It makes Linux the substrate of the destination. The first milestone says Linux is not the host (section 6), and the kernel, agent, storage, and capabilities must never depend on Linux (section 3). 18 - Its GPU path relies on NVIDIA userspace (`libcuda`, the PTX JIT). Those components are opaque and may not be in the trusted base. 19 - Adopting it as the next milestone would delay native AIENOS boot and put effort into the compatibility layer, which risks that layer becoming the architecture by inertia. 20 21 ## Decision 22 23 Keep **native AIENOS boot on the Spark with CPU inference** as the next primary milestone. 24 25 Build the minimal-Linux configuration only as **Benchmark Config B** and as the temporary **Era II GPU compatibility island**. This does not change the sovereignty requirement, the native-kernel trajectory, or the ban on Linux and CUDA dependencies in the trusted native path. 26 27 ### Three configurations 28 29 | Config | Stack | Role | 30 |---|---|---| 31 | A: Ubuntu reference | Ubuntu, services, AIEN runtime, model, GPU | Frozen Linux reference baseline (roadmap step 1) and its measurements | 32 | B: minimal-Linux GPU island | minimal Linux kernel, `aien-init` as PID 1, only the Linux/NVIDIA machinery the current GPU path needs | Control experiment; temporary accelerator performance while the native stack matures | 33 | C: native AIENOS | AIENOS owns boot, CPU, memory, interrupts, storage, console, recovery, Cortex persistence, CPU inference | The main engineering milestone | 34 35 ### B must never become a prerequisite for C 36 37 C may not depend on Linux abstractions, Linux drivers, CUDA, NVIDIA userspace, or artifacts that can only be produced through the Linux island. Removing A and B must leave C buildable, bootable, and recoverable. 38 39 ### Scope of "fastest wins" 40 41 For a capability AIENOS natively owns, the fastest correct implementation wins. A compatibility island may outperform the native path for a while, but it does not define the trusted base or the destination. 42 43 ### Benchmark protocol 44 45 A, B, and C run the same frozen workload (same model weights, prompts, sampling settings, and correctness envelope) and emit the same receipt format. Report each metric separately; never collapse them into one "faster" number: 46 47 1. boot to AIEN ready 48 2. AIEN ready to model ready 49 3. time to first token (TTFT) 50 4. steady-state throughput (tokens/s) 51 5. idle memory 52 6. available memory 53 7. scheduler jitter 54 8. power 55 9. branch cost (creation latency and memory overhead) 56 57 Expected shape: B may beat C on model throughput for some time because NVIDIA's stack is mature. C may already beat A and B on boot time, memory overhead, jitter, and determinism. These are separate engineering results. 58 59 ## Consequences 60 61 - Kernel, boot, storage, and console work for C continues as planned. It is not blocked on B. 62 - B is built only when a benchmark or GPU performance needs it, and it is kept deliberately small. 63 - Every A/B/C comparison is rerun and reproduced before its figures are reported. 64 - If B's convenience ever starts pulling C design toward Linux interfaces, that is a violation of this ADR and goes back to the operator.