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/patches/efe1868c7adf4560 # 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 ## GitHub aien-dev/aienux#1 (code only) closed derived `efe1868c7adf4560` #1 Imported from GitHub aien-dev/aienux#1 (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 `6fca19b9c27e538f5884711d362d343ed1a87425` · Head `2c409c92b2105adf918111e9bd7880176ec4f241` ### Apply it ``` git checkout -b patch-efe1868c7adf4560 6fca19b9c27e538f5884711d362d343ed1a87425 curl -fsSL https://interplane.io/drakestapleton/aienux/patches/efe1868c7adf4560.patch | git am ``` Raw patch (mbox) · 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/aienux 1 2c409c92b2105adf918111e9bd7880176ec4f241 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aienux","number":1,"url":"https://github.com/aien-dev/aienux/pull/1","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:35:43Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 917f49c6..945db9e9 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -49,6 +49,10 @@ Opaque technology (for example a closed compiler) is allowed only in experiments Accepted exception: silicon that physically requires vendor-signed firmware (for example the GPU's GSP firmware) keeps that firmware. +**Fastest wins, scoped:** 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 ([ADR 0001](adr/0001-native-boot-milestone-and-linux-island.md)). + +**Host operating systems:** Windows, macOS, and Linux are bootstrap and migration environments, not the target runtime. **AIENOS may learn from the host, but it must not require the host to survive** ([ADR 0002](adr/0002-incumbent-os-as-migration-environment.md)). + ## 4. Security - **Boot trust:** Secure Boot off during early development. Before daily use: firmware verifies the operator's key, the operator's key verifies AIENOS boot artifacts, AIENOS verifies kernel and runtime components. An offline recovery key and recovery media are designed before enforcement. @@ -81,6 +85,8 @@ The first agent's job is running, understanding, diagnosing, repairing, and impr Every stage boots and does something real. +Steps 2 and 3 are the primary milestone (native AIENOS boot with CPU inference). A minimal-Linux image booting straight into `aien-init` exists only as Benchmark Config B and the temporary GPU compatibility island, and it is never a prerequisite for the native path. Configs A (Ubuntu reference), B (minimal-Linux island), and C (native AIENOS) run the same frozen workload and report boot-to-ready, ready-to-model, TTFT, throughput, idle and available memory, jitter, power, and branch cost separately ([ADR 0001](adr/0001-native-boot-milestone-and-linux-island.md)). + Native capability migration order: Runtime, Cortex, AEGIS, World/J-Space, Capability Graph, local inference, storage, networking, operator interface, developer tools, mail, cockpit, others. Nothing is rebuilt merely because it exists today. ## 8. Development discipline diff --git a/docs/adr/0001-native-boot-milestone-and-linux-island.md b/docs/adr/0001-native-boot-milestone-and-linux-island.md new file mode 100644 index 00000000..e22c878d --- /dev/null +++ b/docs/adr/0001-native-boot-milestone-and-linux-island.md @@ -0,0 +1,64 @@ +# ADR 0001: Native boot with CPU inference stays the next milestone; minimal Linux is only Benchmark Config B + +Status: accepted by the operator, 2026-09-23. + +## Context + +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. + +Useful parts of the proposal: + +- AIEN owns the hot path: no HTTP/JSON between internal components, fewer copies, resident models, direct accelerator-memory management, copy-on-write agent state. +- 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. +- Run the same machine in comparable configurations and measure the difference. + +Parts that conflict with the governing architecture ([ARCHITECTURE.md](../ARCHITECTURE.md)): + +- 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). +- Its GPU path relies on NVIDIA userspace (`libcuda`, the PTX JIT). Those components are opaque and may not be in the trusted base. +- 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. + +## Decision + +Keep **native AIENOS boot on the Spark with CPU inference** as the next primary milestone. + +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. + +### Three configurations + +| Config | Stack | Role | +|---|---|---| +| A: Ubuntu reference | Ubuntu, services, AIEN runtime, model, GPU | Frozen Linux reference baseline (roadmap step 1) and its measurements | +| 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 | +| C: native AIENOS | AIENOS owns boot, CPU, memory, interrupts, storage, console, recovery, Cortex persistence, CPU inference | The main engineering milestone | + +### B must never become a prerequisite for C + +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. + +### Scope of "fastest wins" + +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. + +### Benchmark protocol + +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: + +1. boot to AIEN ready +2. AIEN ready to model ready +3. time to first token (TTFT) +4. steady-state throughput (tokens/s) +5. idle memory +6. available memory +7. scheduler jitter +8. power +9. branch cost (creation latency and memory overhead) + +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. + +## Consequences + +- Kernel, boot, storage, and console work for C continues as planned. It is not blocked on B. +- B is built only when a benchmark or GPU performance needs it, and it is kept deliberately small. +- Every A/B/C comparison is rerun and reproduced before its figures are reported. +- 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. diff --git a/docs/adr/0002-incumbent-os-as-migration-environment.md b/docs/adr/0002-incumbent-os-as-migration-environment.md new file mode 100644 index 00000000..cf27e139 --- /dev/null +++ b/docs/adr/0002-incumbent-os-as-migration-environment.md @@ -0,0 +1,26 @@ +# ADR 0002: Incumbent operating systems are bootstrap and migration environments + +Status: accepted by the operator, 2026-09-23. + +## Context + +People adopting AIEN already run Windows, macOS, or Linux. AIEN can reach them by running inside those systems first. The risk is that "AIEN inside Windows" becomes the permanent product and the host's abstractions leak into the native architecture. + +## Decision + +**Incumbent operating systems are bootstrap and migration environments, not the target runtime.** AIEN may initially run inside Windows, macOS, or Linux to: + +- inventory the machine and determine what hardware support native AIENOS needs; +- preserve the user's state; +- build and validate an AIENOS installation (for example on a separate partition); +- provide a reversible migration path ("Restart into AIEN"), leaving the old OS bootable until the user no longer needs it. + +The long-term target is independent AIENOS boot on bare metal. + +**AIENOS may learn from the host, but it must not require the host to survive.** Anything learned from the host (hardware inventory, user data, settings) is converted into AIENOS-native state. Once installed, AIENOS boots, runs, recovers, and updates with the host OS removed. + +## Consequences + +- Host-side AIEN is an installer and migration tool ("use Windows to escape Windows"), not a second product line. +- No native AIENOS component may call into, link against, or require artifacts that only the host OS can produce. +- The Linux reference baseline and GPU island ([ADR 0001](0001-native-boot-milestone-and-linux-island.md)) follow the same rule. ```