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 / adr

f497dc3 Merge docs/first-person 3879cdb4 (L422, 2026-10-22 first-person pass) onto main c874c3b7 Drake Stapleton committed 2026-11-09
..
.crumb8259
0001-native-boot-milestone-and-linux-island.md4119
0002-incumbent-os-as-migration-environment.md1597
0003-bootstrap-firmware-handoff-and-minimal-object-store.md1895
0004-reversibility-definition-and-network-effect-boundary.md2051
0005-unified-memory-c1-cow-and-reservation-accounting.md2046
0006-deterministic-recovery-core-and-offline-operator-authority.md1979
0007-continuous-existence-provisioning-once.md2479
0008-temporary-bring-up-firmware-report-exception.md2845
0009-el2-bootstrap-to-el1h-kernel-transition.md4271
0010-fabric-machine-identity-and-capability-advertisement.md8967
0011-machine-1-hardware-test-rig.md3985
0012-self-construction-capability-growth-and-generations.md11739
0013-aienos-abi-v1.md9500
0014-binary-artifact-v0-and-native-admission.md32144
0015-golden-vectors.json106066
0015-golden-vectors.md1614
0015-system-store-v1-format.md14937
0016-continuity-objects-over-store-v1.md6472
0017-m5-key-hierarchy-and-encrypted-store.md19229
0018-allen-subject-state-object.md13196
0019-per-resource-capability-generation.md12189
0020-pi5-software-only-dma-confinement.md8760
README.md12361

README.md

Architectural Decision Records (ADRs) & Specifications

This directory documents the key architectural decisions and formal technical specifications for AIENOS. Each record captures the context, decision, invariants, consequences, and operator approval.

1. Master Index of Architectural Decision Records

ADRTitleStatusDatePrimary Cross-References
ADR 0001Native boot with CPU inference stays the next milestone; minimal Linux is only Benchmark Config BAccepted2026-09-23ARCHITECTURE.md §3, §7; BLUEPRINT.md §8, §15, §16, §19, §31; MILESTONES.md Phase 1, 2, 5
ADR 0002Incumbent operating systems are bootstrap and migration environmentsAccepted2026-09-23ARCHITECTURE.md §3; BLUEPRINT.md §20, §21, §22, §23, §34; MILESTONES.md Phase 1, 6
ADR 0003Bootstrap Firmware Handoff and Minimal Persistent Object StoreAccepted2026-09-23ARCHITECTURE.md §3; BLUEPRINT.md §5, §15, §17; MILESTONES.md Phase 2, 3; PHASE_3_TO_5_SPECIFICATION.md §2; ADR 0001
ADR 0004Reversibility Definition and Network Effect BoundaryAccepted2026-09-23ARCHITECTURE.md §5; BLUEPRINT.md §5, §12, §13; MILESTONES.md Phase 4; PHASE_3_TO_5_SPECIFICATION.md §3
ADR 0005Unified Memory C1 Copy-On-Write and Reservation AccountingAccepted2026-09-23ARCHITECTURE.md §2, §7; BLUEPRINT.md §9, §10, §28; MILESTONES.md Phase 4, 5; PHASE_3_TO_5_SPECIFICATION.md §4
ADR 0006Deterministic Recovery Core and Offline Operator AuthorityAccepted2026-09-23ARCHITECTURE.md §1, §4, §6; BLUEPRINT.md §5, §6, §33; MILESTONES.md Phase 2, 6; SYSTEMS_INTEGRATION_SEQUENCE.md §2.5
ADR 0007Continuous Existence and Provisioning-OnceAccepted2026-09-23CONTINUOUS_EXISTENCE_AMENDMENT.md; ARCHITECTURE.md §1, §10; SYSTEMS_INTEGRATION_SEQUENCE.md Steps 1 to 10; MILESTONES.md Phase 3, 6, 8; ADR 0005; ADR 0006
ADR 0008Temporary bring-up exception: post-handoff firmware report (trigger 11)Accepted (temporary)2026-09-24ADR 0003; MILESTONES.md section 0; NATIVE_BOOT_ONE_TIME.md
ADR 0009Two-Stage Exception Level Architecture (EL2 Bootstrap to EL1h Kernel)Accepted2026-09-24ARCHITECTURE.md §3, §6; BLUEPRINT.md §8, §15; MILESTONES.md Phase 2, 3
ADR 0010Fabric Machine Identity and Capability AdvertisementProposed (post-M6)2026-09-24ARCHITECTURE.md §2; BLUEPRINT.md §21, §25, §26; MILESTONES.md Phase 8; ADR 0004; ADR 0007; issue #37
ADR 0011Machine 1 Hardware Test Rig (Power, Capture, Input)Proposed2026-09-24MILESTONES.md section 0, gate M2C; HARDWARE_TEST_RIG.md; NATIVE_BOOT_ONE_TIME.md
ADR 0012Self-Construction, Capability Growth, and Reversible System GenerationsAccepted2026-09-24ADR 0002; ADR 0006; ADR 0007; ROADMAP.md (SEED-0A, SEED-0B)
ADR 0013AIENOS ABI v1Proposed2026-09-24ADR 0012; ADR 0004; issue #30; PR #106; abi.rs
ADR 0014Binary Artifact v0 and Native AdmissionProposed2026-09-25ADR 0012; ADR 0013; SEED-0B qualification
ADR 0015AIENOS System Store v1 FormatAccepted for P3-1 format freeze2026-09-25ADR 0003; P3 Native Persistence & Continuity
ADR 0016Continuity objects over System Store v1Proposed (format freeze needs operator approval)2026-09-25ADR 0007, ADR 0015; M4 continuity
ADR 0017M5 Key Hierarchy, Encrypted Envelopes, and Storage Security RootsProposed2026-09-25ADR 0006; ADR 0015; ADR 0016; Milestone M5 (Encryption and Identity)
ADR 0018ALLEN Subject State Object (continuity kind 24)Proposed (companion to ARCH-0035; format freeze needs operator approval)2026-10-04ADR 0016; omega ARCH-0022 Cortex; R16
ADR 0019Per-resource capability generation (OSC unit required_generation, domain 1)Accepted (Option 3; counter tracked in aienos#285)2026-10-08ADR 0013; ADR 0014 amendment point 5; aien-protocols specs/osc-unit-artifact section 15.3 C1
ADR 0020Pi 5 software-only DMA confinement (Pi-only exception to ADR 0012 rule 5)Accepted (operator D3, 2026-10-13)2026-10-13ADR 0012 rule 5; native/kernel/core/smmu.c (Spark)

2. Architectural Specifications & Integration Frameworks

In addition to discrete decision records, AIENOS maintains formal technical specifications and execution sequences that govern phased implementation:

DocumentScopeStatusAuthorityTarget Phases
AIENOS Technical Specification & Contracts (Phases 3 to 5)Agent State ABI, Model ABI, Cortex Epistemic Store, AEGIS Effect Intent Pipeline, J-Space Worlds, and C1 CoW Prefix TreeConfirmed SpecificationBlueprint §§ 9 to 14, 17 to 19, 28Phases 3, 4, 5
AIENOS Systems Integration Sequence & Epistemic Calibration10-step empirical hardware integration sequence, epistemic claim precision, and host-tested vs. native-qualified gatesGoverning FrameworkOperator Directive (2026-09-23)Phases 1 to 8
AIENOS Continuous-Existence AmendmentProvisioning-once lifecycle, power states, state classes A/B/C, continuous-existence acceptance criteria for Gates 1 to 10Operator-Approved Governing AmendmentOperator Directive (2026-09-23); ADR 0007All Phases
AIENOS Final Architectural BlueprintComplete 37-section architectural foundation, core principles, and final success definitionsImmutable FoundationOperator DirectiveAll Phases
AIENOS Architectural Milestones Matrix8-phase execution roadmap, deliverables, invariant contracts, and escalation triggersConfirmed SpecificationBlueprint §36Phases 1 to 8
AIENOS Governing ArchitectureHigh-level system overview, stack, trusted base, agent authority, security, and roadmapConfirmed ArchitectureOperator DirectiveAll Phases

3. Operator Invariant Freeze Summary (2026-09-23)

The operator confirmed immutable architectural invariants in ADRs 0003 to 0007:

  1. ADR 0003 (Firmware Handoff & AIEN System Store): Firmware loads the immutable boot bundle only. Firmware services are bootstrap machinery, never a runtime dependency. Phase 3 introduces a minimal native AIEN System Store (immutable content-addressed extents model/<hash>, Cortex WAL + checkpoints, agent branches) rather than a general-purpose POSIX filesystem.
  2. ADR 0004 (Reversibility & AEGIS Egress Boundary): Reversibility requires that all observable state changes remain under AIENOS transactional control. Outbound network packets, telemetry, and external device state are external effects (EffectIntent) crossing into AEGIS even when read-only. Reversibility and authorization are decoupled via Standing Capabilities; network access never bypasses AEGIS under the guise of "reversible research."
  3. ADR 0005 (Unified Memory & C1 Block Accounting): Unified memory (NVLink-C2C) requires explicit block ownership across System, Model, KV Pool, Agent State, and Cortex budgets. C1 CoW prefix tree uses shared immutable blocks (refcount > 1) and private blocks (refcount == 1). Multi-branch divergence mandates transactional KV reservations prior to step admission to prevent mid-step OOM corruption. Logical identity survives; physical state is expendable.
  4. ADR 0006 (Recovery Core & Offline Authority): Recovery Core is an autonomous, deterministic subsystem operating completely outside the model, neural runtime, and network stack. Root authority and authentication are strictly local (offline physical credentials/passphrase). System updates use transactional A/B slot switching with deterministic kernel health milestone verification. Kernel panics write deterministic crash records to raw storage, and Cortex corruption is resolved via WAL truncation without semantic AI dependencies.
  5. ADR 0007 (Continuous Existence & Provisioning-Once): AIEN is provisioned once. Boot, reboot, sleep, model reload, kernel restart, hardware failure, and migration are execution-state transitions, not agent creation events. Cold boot initializes hardware and never silently mints a replacement LogicalAgentId. Uncertain identity fails toward Recovery Core and operator decision, never toward false continuity. Gate order (1 to 10) is unchanged; continuous-existence acceptance criteria bind every gate.

4. Governance

ADRs reflect decisions confirmed by the operator. Changes to the core decisions, invariants, or specifications documented here require operator escalation and approval per docs/ARCHITECTURE.md §9.