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
# aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
Unfinished: not checked yet
There is no published receipt of a rebuild from its source yet. What a receipt is
Get this repository
Git over HTTPS
`git clone --no-checkout https://interplane.io/projects/aienux/repo.git aienux && git -C aienux checkout --detach 1f12818d06ab0eb89cd592f83e13197477b36c07`
Source archive of `1f12818d06ab0eb89cd592f83e13197477b36c07`
Download ZIP · tar.gz
Sign in to star 0 stars 0 watching
About Files History Releases Proposed changes Issues For developers
README.md
# Aienux
Status: experimental, pre-alpha. Nothing here is qualified for real use. The C kernel has run on a Raspberry Pi 5 and on a 2017 iMac, but only in test builds with TEST keys or throwaway secrets. It has not been booted on the NVIDIA DGX Spark. There are no support, stability or compatibility promises. Expect breaking changes.
Aienux is the AienOS kernel: my own operating system kernel, built to replace Linux on the DGX Spark. AienOS is the whole system built on it. It is agent-native: the agent is the control plane, and the model is never the kernel. The kernel stays small, deterministic and non-intelligent, and the agent is never the root of trust. Most of the kernel is C in `native/`. An older Rust kernel and tools live in `crates/`.
```
Firmware -> AIEN Boot -> AIEN Kernel -> AIEN Runtime -> AIEN Agent -> You
```
## Where this fits in AIEN
Aienux owns the trusted base: boot, kernel, memory, storage, cryptography and device access. The sibling repositories are:
- aien-dev/aien-architecture-mv : the whole-system architecture, ADRs and sequencing. It is the authority over plans in this repository (see docs/PLAN_AUTHORITY.md ).
- aien-dev/omega-mv : Omega, the C reaction runtime and compiler. Under aien-architecture ADR 0024, Omega is where system code is headed. AIENOS carries a byte-for-byte copy of Omega's Cortex store in native/kernel/third_party/omega/ , pinned by `omega.lock`.
- aien-dev/physics-mv : FORGE, the machine-realization layer for the GB10 hardware path.
- aien-dev/aien-protocols-mv : specifications and wire formats shared across repositories.
- aien-dev/aien-sovereign-core-mv : the host runtime, and `aien-test`, the test judge that runs on the Spark.
- aien-dev/benchmarks-mv : measurement harnesses and evidence.
- aien-dev/aien-receipts : the signed test receipts the Spark publishes for each commit.
## Current state (2026-10-19)
Every item below names the file that holds its evidence. "QEMU" means the QEMU emulator: a QEMU pass says nothing about real hardware.
The C kernel is FROZEN (Drake, 2026-10-24; ADR 0039, program L802): it takes bug fixes and keeps the lab iMac booting while Aienux is rewritten in Omega; it takes no new features. See native/kernel/README.md .
C kernel in QEMU. `scripts/ck_gates.sh` lists 27 emulator gates. The newest receipt committed here is evidence/ck_gates_`29ed03c9`...json : 24 gates, all PASS, run at commit `7f0de7e` on 2026-10-09. Gates added after that date have no committed full receipt yet. What each gate checks: native/kernel/GATES.md .
Raspberry Pi 5 (test builds only). First runs on 2026-10-13: the kernel started all four cores, ran its timer and wrote its log to the SD card (evidence/pi5_hardware_runs_2026-10-13/ ). Later Pi runs, each with its own record in docs/native/ :
- Store unlock with a throwaway recovery secret read from the card (PI5-4-UNLOCK-RUNS.md ).
- A fact remembered and recalled after a reboot (PI5-5-CORTEX-RUNS.md ).
- First model inference on the Pi: Llama-3.2-1B at 1.20 tokens per second (PI5-6-INFER-RUNS.md ). A model reply was saved in the encrypted Store and read back after a reboot (PI5-6-AGENT-RUNS.md ).
- The agent lifecycle, including recall after a full power cut (PI5-7-LIFECYCLE-RUNS.md ), and signed user-mode programs loaded with TEST keys (PI5-7-ARTIFACT-RUNS.md ).
- One Ethernet frame sent on the wire, with device memory access kept inside a fixed window (PI5-NET-3-RUNS.md ). Receiving from the network is not done.
- The owner key ceremony on a YubiKey, performed once on 2026-10-14 (PI5-8-OWNER-CEREMONY.md ), and reproducible Pi image builds (PI5-8-QUALIFICATION.md ).
2017 iMac (x86_64). A diagnostic boot on 2026-10-16 recorded the hardware (evidence/imac_boot0_2026-10-16/ ). The C kernel started on the iMac on 2026-10-16 (evidence/imac_kernel0_2026-10-16/ ). On 2026-10-17 it started all four cores, read both disks without writing, and found the Ethernet chip (evidence/imac_kernel1_2026-10-17/ ). Code that sends the test report over Ethernet is merged (PR #408 ); no hardware run of it is recorded in this repository.
Network boot and audio (code only). The iMac network loader that fetches signed kernels from the Spark is merged (PR #414 ), and so is the first step of USB audio output for the C kernel (PR #423 ); this repository records no hardware run of either.
DGX Spark. The first native boot on the Spark passed on 2026-09-24, using the older Rust path (evidence/m2_first_boot_2026-09-24.md ). The C kernel has not been booted on the Spark.
Not qualified. The trust chain and encrypted storage on the Spark (TRUST-1 and M5) still need hardware and operator steps: docs/TRUST-1-M5-GATE-MATRIX.md , docs/TRUST-1-OPERATOR-STEPS.md .
Open work. Open tracking issues include the native OSH pipeline (#428 to #432 ), iMac drivers (#422 ), Pi 5 networking with the Spark (#398 ), native NVMe and Store (#31 ) and TRUST-1/M5 on the Spark (#32 ).
For component status, ROADMAP.md is the AIENOS plan, but its newest status block is dated 2026-10-01 and does not cover the Pi 5 or iMac work above.
## Rules this code follows
- Sovereignty: no outside organization is needed to boot the machine, reach your data, authenticate you, authorize the agent, build the trusted core, recover, change models, move hardware or keep running.
- Open trusted base: boot, kernel, memory, scheduling, storage, cryptography, identity, AEGIS (the authorization layer), capability checks, update checks and recovery build from readable source, offline.
- Free inside reversible state; explicit authorization at irreversible steps.
- Language: Rust is scaffolding, Omega is the destination, and C or assembly stay only where hardware, boot, ABI or measurement needs them (aien-architecture ADR 0024). No Python, no CUDA toolkit, no CUDA-shaped APIs, and no systemd or Linux init in boot, services or tooling. Dependencies in the trusted base are rare and built offline.
## How it works and how I built it
One boot of the C kernel, in order:
- UEFI calls `_start` (native/boot/efi_entry.S ). It relocates the image, then calls `efi_main`, which exits boot services.
- `ck_kernel_entry` (native/kernel/core/kmain.c ) builds the kernel's own page tables: text RX, data RW+XN, guard pages.
- It drops from EL2 to EL1h (ADR 0009 ).
- It brings up GICv3 and the 10 ms timer.
- It runs the M3 checks:
- cooperative threads, timer preemption and EL0 isolation;
- typed IPC, where every send, receive and delegation passes one capability gate (`ck_cap_lookup` / `gated` in native/kernel/core/ipc.c ). A missing right returns `CK_IPC_MISSING_RIGHTS`, and the EL0 caller gets `DENIED`.
The C kernel was ported step for step from the earlier Rust kernel:
- the core boot in aienos #194 (`34c6053`);
- the M3 isolation and IPC port in aienos #201 (`0d0efa5`).
Each Rust check pattern has a matching C gate in native/kernel/GATES.md . Two limits apply:
- scheduling is cooperative inside one kernel thread, and no secondary core runs tasks;
- QEMU results qualify nothing physical.
native/kernel/WALKTHROUGH.md follows that boot function by function. It covers the Rust-to-C history and the multi-threaded TCG hang that the gate avoids, and it gives a ten-second reproduction with the expected output, including a fail-closed refusal case:
```
make -s -C native/kernel OUT=$PWD/target/teach $PWD/target/teach/host/test_ipc && ./target/teach/host/test_ipc # test_ipc: PASS (75 checks)
bash scripts/qemu_ck_boot_test.sh # AIENOS_CK_M3: PASS, AIENOS_CK_M1: PASS
AIENOS_QEMU_CPU=neoverse-n1 bash scripts/qemu_ck_boot_test.sh # no FEAT_RNG: AIENOS_CK_M1: FAIL (refusal)
```
## Build and test
The C code needs only gcc, binutils, make and a shell. On a host that is not AArch64, the kernel Makefile uses the `aarch64-linux-gnu-` cross tools. Host tests:
```
make -C native/kernel test # C kernel host tests, ends CK_CORE_HOST: PASS
make -C native/kernel sanitize # same under ASan and UBSan
make -C native/capability test # capability authority (docs/CAPABILITY_ABI.md)
bash scripts/cap_abi_isolation_test.sh # C and Rust capability ABIs stay separate
make -C native/store test # Store v1 and the sealed Store
```
Each `native/` folder has its own README with its own test targets (`make test`, often also `sanitize` and `mutants`).
The emulator gates need `qemu-system-aarch64` and the AAVMF firmware (Ubuntu packages `qemu-system-arm` and `qemu-efi-aarch64`):
```
bash scripts/ck_gates.sh --self-test # checks the gate runner itself, runs no QEMU
bash scripts/ck_gates.sh # all C kernel gates; refuses a dirty tree; writes evidence/ck_gates_.json
bash scripts/ck_pi5_build_check.sh # builds the Pi 5 image (build only; it cannot boot in QEMU)
```
Other images: `make -C native/kernel pi5` (Raspberry Pi 5) and `make -C native/kernel imac-kernel` (2017 iMac). See native/kernel/README.md .
The Rust workspace in `crates/` is checked by `bash scripts/verify_all.sh` (needs Rust with the `aarch64-unknown-uefi` and `aarch64-unknown-none` targets).
### Who judges a change
Since 2026-10-18 (PR #427 ), all testing runs on the Spark, not on GitHub. The Spark runs the gate manifests in tests/gates/ (each one calls `tests/gates/run.sh `) and publishes a signed result to aien-dev/aien-receipts . GitHub keeps one required check on `main`, `AIEN Verification`, which only checks that signed result.
## Where the evidence lives
- evidence/ : emulator receipts (`ck_gates_*.json`), hardware run records (Pi 5, iMac, Spark) and TRUST-1 captures.
- docs/native/ : Pi 5 run records.
- native/kernel/GATES.md : every emulator gate row and its status.
- docs/adr/ : AIENOS decision records.
- docs/design/DESIGN.md : Allen's design system (colour, type, motion, sound, voice, accessibility), exported to C, Rust and CSS by `cargo run -p allen-design-tokens -- generate`; the boot reference sketch and its maths are in docs/design/boot/ , and mockups of every first-run screen in docs/design/screens/ (pictures and a browser sketch, not shown on real hardware)
## Human-Directed Agentic Engineering
Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions.
For the documented method and a systems-software case study, see Gregory M. Kurtzer, Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering (2026) . This concerns the development method, not kernel control-plane behavior or retrospective qualification of earlier experiments.
## Contributing
Read CONTRIBUTING.md first. Good places to start are issues labelled `good first issue` or `emulator-ok` ; they need no special hardware. Work that needs the real Spark is labelled `needs-hardware` and is run by maintainers. Open pull requests against `main` and lead with the commands you ran and their output. Questions go in Discussions . Report vulnerabilities privately through GitHub security advisories.
## License
Licensed under the Apache License, Version 2.0 (Apache-2.0). See LICENSE and NOTICE . Contact: aien@aienos.com.
## For developers: proof and records
The full record of this project. Words that are used only here are explained once:
ID
The project's permanent id on Interplane: the SHA-256 of its first signed record. This one is `git:6f0f0b028423a0509c5606de957cda89846672ee123e8ddbd157ec85e7b4b137`. Its old id, kept only so that old links still work: `z2Q6ob2gL6Qo5oUMpyehukayVF7mN`.
Owner
The key that signs every record of the project. This forge lists the project under drakestapleton; its key is `SHA256:qg3vxoE9ul3Cgk5heosQvPmO9pqIJNsdcsGJ2cHghTs`.
Refs and HEAD
Refs are the names that point at versions: branches and tags. HEAD is the version a fresh copy starts from, the newest commit of the default branch.
Patch
A proposed change, reviewed before it is merged. This forge does not show proposed changes from its own store yet. The list is under Proposed changes .
Receipt
A public record that someone checked a claim, with the fingerprint of its evidence file. The state at the top of this page is read from the list at interplane.io/receipts . This project has no receipt in that list yet.
Clones and fetches over HTTPS: 7 by visitors (git smart-HTTP `info/refs` requests answered 200 in the front-door download log; our own addresses and bots left out; since 2026-11-08) · not measured `git-upload-pack` requests from all clients (the source of this count is retired)
Downloads: 0 by visitors (0 source archives, 0 release assets; forged access log; our own addresses left out; since 2026-11-07)
commit `1f12818d06ab0eb89cd592f83e13197477b36c07` Branches Tags History
`1f12818` native/net/tcp: tcp-corpus gate manifest; correct the SYN-ACK retransmission count (review of `349c8df9`) Drake Stapleton committed 2026-11-17
```
.aien/
.cargo/
.github/
crates/
docs/
evidence/
native/
scripts/
tests/
tools/
vendor/
.crumb 28474
.gitignore 187
AGENTS.md 6116
AUDIT_SCOPE.md 7960
CONTEXT.md 6136
CONTRIBUTING.md 3796
CONTRIBUTORS.md 2068
Cargo.lock 13530
Cargo.toml 1913
DRAKE-DIRECTION-SKY.md 2119
LICENSE 11358
NOTICE 1936
PIN 126
README.md 13753
REPIN 518
ROADMAP.md 16373
SECURITY.md 2826
THIRD_PARTY_NOTICES 1403
crumb.lock 41
funding.json 2609
omega.lock 321
```
Every record: History (commits) · Branches · Tags · Releases, with the SHA-256 of each download · Patches · Issues · This project as JSON