interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / doctrine / ATLAS.md

300 lines · 22919 bytes Raw Blame History Source

DOCTRINE-001: ATLAS — The Irreducible Bootstrap Seed

[!NOTE] Historical Lineage & Provenance Note (not normative): Formerly designated Alpha (alpha.bin) during early lineage bootstrap drafting. Every prior architectural responsibility and contract of ALPHA transfers to ATLAS unchanged. Only atlas.* artifacts are canonical.

Document ID:     DOCTRINE-001
Milestone:       Milestone 0 (DOCTRINE_V1)
Classification:  Sovereign Machine Canonical Doctrine
Target Substrate: AArch64 Bare Metal (ARMv8.2-A / ARMv9-A)
Status:          AUTHORITATIVE / CANONICAL

1. Executive Summary & Definition

Atlas is the irreducible bootstrap seed of the Sovereign Machine.

Atlas is not an operating system, not a kernel, not a runtime, not an agent, and not an intelligence. It is the minimal, immutable, deterministic physical origin point from which the machine establishes trustworthy execution.

The doctrine of Atlas rests upon five fundamental tenets:

  1. Small: Atlas contains the minimum number of machine instructions necessary to validate the physical platform, measure the secondary boot stages, and transfer control to Physics. It carries zero extraneous logic.
  2. Fixed: Atlas is immutable. Its bytes are burned into permanent read-only media or sealed into write-locked non-volatile firmware. Once finalized, it is never modified in-place.
  3. Auditable: Every single byte, opcode, branch target, register mutation, and memory reference in Atlas is statically known, formally characterized, and human-verifiable.
  4. Deterministic: Given identical platform inputs, Atlas follows the exact same execution path, cycle count bounds, and state transitions on every boot invocation without variance.
  5. Non-Intelligent: Atlas possesses zero cognitive capacity. It contains no neural weights, no heuristic optimizers, no policy graphs, and no adaptive mechanisms. It is pure mechanical constraint.
┌────────────────────────────────────────────────────────────────────────┐
│                              ATLAS                                     │
│                  (Irreducible Bootstrap Seed)                          │
│                                                                        │
│   ┌───────────────┐     ┌────────────────┐     ┌──────────────────┐    │
│   │ Platform Init │ ──> │ Integrity &    │ ──> │ Transfer Control │    │
│   │ (Bare Metal)  │     │ Measurement    │     │ to Physics       │    │
│   └───────────────┘     └────────────────┘     └──────────────────┘    │
│           │                     │                        │             │
│           ▼                     ▼                        ▼             │
│      Strict MMU /          SHA-256 /                 Monotonic         │
│      Registers           Manifest Match         Handoff (contract EL)   │
└─────────────────────────────────┬──────────────────────────────────────┘
                                  │
                                  ▼
┌────────────────────────────────────────────────────────────────────────┐
│                             PHYSICS                                    │
│                 (Trusted Machine Authority)                            │
└────────────────────────────────────────────────────────────────────────┘

2. Canonical Executable Artifact

The sole executable artifact generated for Atlas is:

atlas.bin

In the Sovereign Machine architecture, the executable identity invariant is absolute:

$$\text{tested bytes} \equiv \text{evaluated bytes} \equiv \text{authorized bytes} \equiv \text{executed bytes}$$

Source code is historical provenance; atlas.bin is the sole physical truth. To ensure that atlas.bin can be completely audited and verified across space and time, every build must produce a canonical bundle of seven supporting evidence files.

2.1 The Supporting Evidence Bundle

Evidence FileFormatPurpose and Invariants
atlas.binRaw Binary ImageThe exact immutable byte stream executed by the processor at reset or early handoff. Contains raw machine opcodes; no dynamic headers.
atlas.manifestCanonical TOML / JSONMachine-readable declaration of entry point, load base, binary size, version, target tuple, authoring toolchain hash, and section boundaries.
atlas.sha256Text / ChecksumCryptographic SHA-256 digest of atlas.bin. Must match the hash stored in hardware Root of Trust / fused registers.
atlas.decodeAnnotated DisassemblyFull linear instruction disassembly mapping every 4-byte word to its canonical AArch64 mnemonic, register operands, and immediate values.
atlas.memory-mapSymbolic Address MapExplicit map of all physical memory regions: text, read-only data, reserved scratchpad stack, MMIO peripheral registers, and Physics staging buffers.
atlas.control-flowDirected Graph / DOTExhaustive Control Flow Graph (CFG). Enumerates every basic block, conditional branch, static jump, and exception vector. Zero unresolved dynamic targets permitted.
atlas.auditFormal Audit LedgerTabular line-by-line verification record proving that every byte is accounted for, every memory dereference is bounded, and every architectural side effect is safe.

3. Atlas Responsibilities & Explicit Non-Responsibilities

Atlas's authority is strictly bounded by design. Any expansion of Atlas beyond its minimal role compromises the auditability of the bootstrap root.

               ATLAS RESPONSIBILITY BOUNDARY
┌────────────────────────────────────────────────────────────────┐
│ INCLUDED (Atlas Responsibilities):                            │
│  [✓] Architectural register hygiene & initialization           │
│  [✓] Identity-mapped minimal page tables (EL1/EL2)             │
│  [✓] Diagnostic console (polled MMIO UART) bringup            │
│  [✓] Verification & measurement of Physics image              │
│  [✓] Monotonic, irreversible handoff to Physics                │
│  [✓] Fail-closed panic / halt state on anomaly                │
├────────────────────────────────────────────────────────────────┤
│ EXCLUDED (Explicit Non-Responsibilities):                      │
│  [✗] NO Filesystem (No ext4, FAT, ZFS, NVMe block layer)       │
│  [✗] NO Network (No TCP/IP, Ethernet, sockets, PCIe NICs)      │
│  [✗] NO Model (No neural networks, weights, KV cache, LLM)    │
│  [✗] NO General Runtime (No heap allocator, threads, libc)     │
│  [✗] NO Optimizer (No JIT, heuristics, runtime tuning)         │
│  [✗] NO Omega Compiler (No IR lowering, program synthesis)     │
│  [✗] NO Aien (No agents, no goals, no semantic reasoning)      │
└────────────────────────────────────────────────────────────────┘

3.1 Explicit Responsibilities

  1. Platform Hygiene: Cleanse all processor state inherited from firmware/reset. Clear speculative flags, scrub general-purpose registers, set architectural control registers (SCTLR_EL1, CPACR_EL1, TCR_EL1) to safe, deterministic initial configurations.
  2. Deterministic Memory Substrate: Configure minimal, static page tables covering only the Atlas text, read-only data, stack, diagnostic MMIO, and the Physics load window.
  3. Diagnostic Telemetry: Initialize a physical diagnostic UART in polled, unbuffered mode to emit raw ASCII/hex error codes and milestones.
  4. Physics Measurement: Read physics.bin, compute its cryptographic hash, verify it against the signed physics.manifest, and ensure its location adheres to the physical memory contract.
  5. Irreversible Handoff: Prepare the CPU registers with the physical machine contract descriptor and jump into physics.bin entry point, irrevocably relinquishing execution.
  6. Deterministic Halting: In the event of any bit discrepancy, signature failure, or unexpected exception, halt the CPU immediately in an unrecoverable fail-closed spin loop (wfe/wfi) after broadcasting a diagnostic fault code.

3.2 Explicit Non-Responsibilities


4. Machine Contract: AArch64 Bare Metal

Atlas executes directly on bare metal AArch64 hardware. It relies on a rigorous physical contract:

0x0000_0000 ┌──────────────────────────────────────────┐
            │ Boot ROM / Firmware Reserved             │
0x4000_0000 ├──────────────────────────────────────────┤ <── Atlas Load Base
            │ Atlas Code & Read-Only Data (.text/.rodata)│ [64 KB max]
0x4001_0000 ├──────────────────────────────────────────┤
            │ Atlas Static Scratch & Stack             │ [64 KB]
0x4002_0000 ├──────────────────────────────────────────┤ <── Physics Staging Buffer
            │ Physics Canonical Binary (physics.bin)   │ [Up to 16 MB]
0x4102_0000 ├──────────────────────────────────────────┤
            │ Available RAM / Dynamic Allocation Pool  │
            │ (Managed exclusively by Physics)         │
0x0900_0000 ├──────────────────────────────────────────┤ <── MMIO Region
            │ PL011 / Diagnostic UART Registers        │
            └──────────────────────────────────────────┘

4.1 Architecture & Endianness

4.2 Entry Address & Privilege Level

4.3 Architectural Register State

Upon entry into Atlas:

4.4 Memory Map and Alignment Contract

4.5 Diagnostic Console Contract

4.6 Terminal Failure State (Fail-Closed)

If any check fails:

  1. Write 2-byte failure code to UART.
  2. Disable all caches and MMU.
  3. Zero all general purpose registers x0-x30.
  4. Enter an infinite, interrupt-masked terminal spin loop:
    msr daifset, #0xf
    1:  wfe
        b 1b
    
  5. No reboot loops, no silent recovery, no fallback execution paths.

5. Atlas Audit Specification

The Atlas Audit is the definitive proof of correctness and boundedness. Every single instruction in atlas.bin must be documented in atlas.audit.

5.1 Audit Invariants

  1. Total Reachability: Every byte in atlas.bin must belong to a reachable basic block starting from the entry point, or a formally defined static data table. Zero orphaned bytes.
  2. Bounded Control Flow: All branches (b, b.cond, bl, cbz, cbnz, tbz, tbnz) must target statically provable offsets within the text segment of atlas.bin. Indirect register branches (br, blr) are strictly prohibited, except for the final single transfer to Physics: $$\text{br } x0 \quad (\text{where } x0 \equiv \text{PHYSICS_ENTRY_POINT})$$
  3. Bounded Memory Access: Load and store instructions (ldr, str, ldp, stp) must access only:
    • The predefined static stack frame ([SP, #offset]).
    • The declared MMIO UART address space.
    • The verified read-only memory window containing physics.bin.
  4. Zero Self-Modification: No instruction may write to any memory range marked executable. The page tables strictly enforce W^X (Write XOR Execute).

5.2 Line-by-Line Audit Ledger Schema

Each instruction in atlas.audit is recorded using the following standardized schema:

| Offset | Raw Bytes | Decoded Op | Inputs | Outputs | Branch Target | Memory Accessed | Privilege Required |

Canonical Audit Ledger Excerpt:

OffsetRaw BytesDecoded OpInputsOutputsBranch TargetMemory AccessedPrivilege
0x00000xD5384100mrs x0, CurrentELCurrentELx0NoneNoneEL1/EL2
0x00040xD3424000lsr x0, x0, #2x0x0NoneNoneEL1/EL2
0x00080x7100081Fcmp w0, #2w0NZCVNoneNoneEL1/EL2
0x000C0x540000A0b.eq 0x0020NZCVPC0x0020 (EL2 setup)NoneEL1/EL2
0x00100x7100041Fcmp w0, #1w0NZCVNoneNoneEL1/EL2
0x00140x54000100b.eq 0x0034NZCVPC0x0034 (EL1 setup)NoneEL1/EL2
0x00180x14000030b 0x00D8NonePC0x00D8 (Halt Panic)NoneEL1/EL2
........................
0x01F80x58000140ldr x0, [PC, #40]PCx0None0x0220 (Phys Base)EL1
0x01FC0xD61F0000br x0x0PCPhysics EntryNoneEL1

Every byte must be accounted for in the complete atlas.audit ledger. Unexplained data or non-audited opcodes invalidate the machine release.


6. Verification Gates

Before an Atlas build is admitted as a Sovereign Machine release, it must clear four mandatory, sequential verification gates:

       ┌──────────┐
       │ ATLAS-0  │ ──> ATLAS_BOOT_PASS (Executes from reset to handoff on silicon)
       └────┬─────┘
            ▼
       ┌──────────┐
       │ ATLAS-1  │ ──> ATLAS_AUDIT_PASS (100% reachable byte & branch accounting)
       └────┬─────┘
            ▼
       ┌──────────┐
       │ ATLAS-2  │ ──> ATLAS_CORRUPTION_REFUSAL_PASS (1-bit mutation halts machine)
       └────┬─────┘
            ▼
       ┌──────────┐
       │ ATLAS-3  │ ──> ATLAS_REPRODUCIBILITY_PASS (Identical byte-for-byte build & trace)
       └──────────┘

6.1 Gate ATLAS-0: ATLAS_BOOT_PASS

6.2 Gate ATLAS-1: ATLAS_AUDIT_PASS

6.3 Gate ATLAS-2: ATLAS_CORRUPTION_REFUSAL_PASS (1-Byte Mutation Test)

6.4 Gate ATLAS-3: ATLAS_REPRODUCIBILITY_PASS


7. Canonical Invariant Checklist

Before declaring Milestone 0 complete for Atlas, the following invariants must be verified: