interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / ARCHITECTURE.md

129 lines · 13821 bytes Raw Blame History Source

AIENOS Governing Architecture

Status: confirmed by the operator on 2026-09-23. Changes to anything in this document that the operator listed as fundamental (see "Authority and escalation") require the operator's approval.

Document precedence (2026-09-27): this file governs AIENOS component architecture. ../ROADMAP.md governs current AIENOS execution order. Whole-system sequencing is owned by aien-spark/aien-architecture/CURRENT_EXECUTION_PLAN.md. See PLAN_AUTHORITY.md.

For supporting architectural references and decision records, see:

1. What AIENOS is

AIENOS is an agent-native operating system designed around continuous logical agent existence: the agent persists while models, kernels, inference state, power states, and physical machines change beneath it.

The resident AIEN agent is its primary user interface, coordinator, and policy-aware control plane. Graphical interfaces are projections of agent state that the agent can construct and change on request; there is no fixed desktop.

AIEN is provisioned once. After that, boot, reboot, sleep, model reload, kernel restart, hardware failure, and migration are execution-state transitions—not agent creation events (Continuous-Existence Amendment, ADR 0007). Cold boot initializes hardware; it does not create AIEN.

The model is never the kernel. The kernel is small, deterministic, auditable, and must function with no model loaded. It schedules CPU time, manages memory, services interrupts, mounts storage, enforces capability boundaries, restores a known World, authenticates the operator, recovers networking, kills processes, rolls back updates, and boots into recovery. The kernel operates deterministically without an AI model; recovery is governed by the deterministic Recovery Core (ADR 0006).

The agent is the operating interface, not the root of trust:

Hardware / firmware
  -> AIEN boot trust
  -> minimal deterministic AIEN kernel
  -> security + capability primitives
  -> AEGIS
  -> AIEN Runtime
  -> AIEN Agent

The agent cannot declare itself authorized. Irreversible actions flow EffectIntent -> AEGIS -> Effect Broker -> driver.

2. Stack

You
  -> AIEN Agent (persistent self, planner/router, operator UI)
  -> J-Space Worlds | Capability Graph | Cortex Memory
  -> AEGIS (capability grants)
  -> AIEN Runtime (models, tools, skills, fabric, effects, data)
  -> AIEN Kernel (scheduler, memory, IPC/capabilities, drivers, networking, storage)
  -> Hardware

3. Sovereignty and the trusted base

Sovereignty does not mean inventing every component. It means no outside organization is required to boot the machine, access data, authenticate the operator, authorize the agent, compile the trusted core, recover the system, change models, move to different hardware, or keep operating.

The trusted base (boot, kernel, memory management, scheduler, storage core, cryptography, identity, AEGIS, capability enforcement, update verification, recovery, provenance verification) builds from inspectable source with a toolchain that can be independently obtained, preserved, and reproduced. It has no mandatory dependency on a proprietary compiler, runtime, cloud service, licensing server, or opaque build step.

Opaque technology (for example a closed compiler) is allowed only in experiments, accelerator research, benchmark kernels, optional performance modules, and compatibility layers, and only with a fully open fallback. Opaque software may accelerate AIENOS. It may not become necessary to trust, build, boot, recover, or control AIENOS.

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).

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).

Persistent storage: Persistent storage avoids POSIX filesystem complexity in favor of the native AIEN System Store with content-addressed model extents and append-only journals (ADR 0003).

4. Security

5. Agent authority

Free inside reversible state; explicit authorization at irreversible boundaries. Each category is tunable by the operator.

Autonomous by default: read local files, search Cortex, run inference, inspect hardware and system state, run tests and diagnostics, create temporary files and Worlds, make rollback-safe changes inside a reversible World, change ordinary agent preferences.

Operator approval required: permanent deletion, overwriting important data, external email or messages, publishing code, spending money, credential changes, exporting private information, contacting untrusted machines, installing privileged components, boot or security policy changes, changing AEGIS, replacing the kernel, promoting RSI-generated system changes. All outbound network traffic, external device state, and telemetry are external effects requiring AEGIS capability evaluation, even when read-only (ADR 0004).

Self-improvement may tune scheduler, allocator, KV, caching, UI, routing, network, kernel implementation, placement, and power policy only out of band, through evaluation, canary, signing, and promotion gates, never by rewriting the running kernel.

6. First milestone

Power on, AIENOS boots directly (Linux is not the host), the AIEN agent starts on a local screen and keyboard (plain console), a local model loads, the operator talks to it, and Cortex and state persist across reboot. CPU inference is acceptable. Networking follows immediately after.

The first agent's job is running, understanding, diagnosing, repairing, and improving AIENOS itself. Coding help comes second; general conversation later.

7. Roadmap

  1. Linux reference baseline: freeze the existing Linux/NVIDIA inference stack as a reproducible, tagged reference (merged work, verified inference, correctness and performance evidence, identity manifest, verified recovery). No new Linux-side architecture after this.
  2. Weeks: AIENOS boots on real Spark hardware with CPU, memory, interrupts, storage, console, and recovery.
  3. Then: agent, local CPU inference, persistent Cortex.
  4. Months: AIENOS replaces Linux for normal AIEN operation.
  5. As long as necessary: full hardware sovereignty, including an independent accelerator path.

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, plus continuous-existence lifecycle metrics (wake-to-continuation and reconstruction latencies) per the Continuous-Existence Amendment (ADR 0001, ADR 0007).

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

9. Authority and escalation

The operator sets direction and approves milestones and permanent boundaries. AI operators work autonomously between gates: implement, test, benchmark, record evidence, continue.

Escalate to the operator: root of trust, boot policy, cryptographic identity, irreversible data formats, security boundaries, user authority, permanent hardware assumptions, licensing, externally visible protocol commitments, removing recovery paths, new irreversible agent authority, RSI promotion rules, major architecture changes.

Milestone reports show what was built, what passed, what failed, what changed, the evidence, remaining risks, and the proposed next milestone.

10. The persistent thing

The persistent thing is the AIEN organism, and inside it the durable subject the organism sustains, named ALLEN (ARCH-0035, PROPOSED; ADR 0018). AIEN is continuous: its organism keeps running and its cognitive faculty keeps proposing. ALLEN is durable: the same agent identity, standing intents and memory lineage are resolved from the Store after any restart. Hardware is replaceable beneath both. Models, interfaces, tools, and Machines are replaceable around them. If a company disappears tomorrow, the long-term target is that AIENOS continues to boot and remains the operator's.

Strengthened (Continuous-Existence Amendment §21, ADR 0007): AIEN is the persistent logical entity. Hardware, kernels, models, runtime processes, inference caches, interfaces, and Machines are replaceable execution substrates. Sleep changes residency. Reboot changes execution substrate. Failure triggers reconstruction. None of these events inherently terminates logical identity.