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/ARCHITECTURE.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 / 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: - AIENOS Architectural Blueprint (reference design snapshot; not current execution order) - AIENOS Architectural Milestones Matrix (reference milestone/specification history; current order is `../ROADMAP.md`) - AIENOS Technical Specification & Contracts (Phases 3–5) (Agent State ABI, Cortex, AEGIS & Worlds, and C1 CoW Prefix Tree) - AIENOS Systems Integration Sequence & Epistemic Calibration (historical integration sequence; current order is `../ROADMAP.md`) - AIENOS Continuous-Existence Amendment (Governing lifecycle amendment: provisioning-once, power states, state classes, gate acceptance criteria) - Architectural Decision Records (Accepted architectural decisions: ADR 0001 , ADR 0002 , ADR 0003 , ADR 0004 , ADR 0005 , ADR 0006 , ADR 0007 ) ## 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 ``` - Applications become capabilities (for example `mail.send`, `image.edit`, `code.build`). Skills compose capabilities. An app is optional presentation and never owns data. - Personal data is OS state: Person, Conversation, Message, Document, Photo, Video, Project, Repository, CalendarEvent, Device, CredentialRef, Task, World, Memory. - Personal Fabric: a given computer is Machine N, not "the AIEN computer." Hardware and vendor details are capabilities, not identities. - Models are replaceable components behind a Model ABI: locally stored, no cloud or provider account required. The model proposes thought and action; it does not define truth, authority, policy, identity, storage, or the OS. - Unified memory and explicit block accounting: Hardware unified addressability (NVLink-C2C) is managed via explicit block ownership, distinct subsystem memory budgets, and copy-on-write prefix trees (ADR 0005 ). ## 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 - Boot trust: Secure Boot off during early development (confirmed OFF as of 2026-10-01, owner decision). 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. - Encryption at rest: conversations, Cortex, projects, World state, credentials, agent memories, model-private data, configuration, caches, and swap-equivalents. Unlock at startup; later hardware sealing plus an operator secret. Credentials receive extra protection after unlock. - Identities from day one: operator, agent identities, system services, remote Machines, future household users; each with separate capabilities, memory visibility, authority, and provenance. No login screens or profiles in version one. ## 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 - 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. - Weeks: AIENOS boots on real Spark hardware with CPU, memory, interrupts, storage, console, and recovery. - Then: agent, local CPU inference, persistent Cortex. - Months: AIENOS replaces Linux for normal AIEN operation. - 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 - Kernel work happens first under emulation and automated hardware tests. Bare-metal Spark tests run in scheduled windows. - Always keep: a known-good AIENOS boot entry, the existing Linux installation, independent recovery media, low-level diagnostics where possible, and rollbackable boot configuration. Crashes are acceptable; destroying the working environment is not. - Developed in public, labelled experimental. No support or compatibility obligations yet. ## 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.