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/aien-architecture-mv/blob/main/doctrine/INDEX.md # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. 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 `aien-architecture-mv / doctrine / INDEX.md` 324 lines · 23675 bytes Raw Blame History Rendered 1 # DOCTRINE-INDEX-V1: SOVEREIGN MACHINE FOUNDATIONAL DOCTRINE CORPUS 2 ## Milestone 0 (`DOCTRINE_V1`) Master Index, Cross-System Synthesis, and Gate Verification 3 4 ```text 5 Milestone: Milestone 0 (DOCTRINE_V1) 6 Corpus Identifier: AIEN-DOCTRINE-CORPUS-V1 7 Canonical Path: doctrine/INDEX.md (repository-relative) 8 Classification: Constitutional System Doctrine & Gate Ledger 9 Target Substrate: AArch64 Host CPU + Blackwell/Hopper Accelerator Substrate 10 Status: RATIFIED / CANONICAL / GATE VERIFIED 11 ``` 12 13 --- 14 15 ## 1. Executive Summary & Milestone 0 (`DOCTRINE_V1`) Definition 16 17 **Milestone 0 (`DOCTRINE_V1`)** constitutes the formal constitutional and ontological foundation of the **Sovereign Machine**. 18 19 The Sovereign Machine is not an operating system, an AI model, a compiler framework, or an application runtime. It is an autonomous, self-contained, self-verifying computational organism whose sole purpose is to permanently collapse the distance between human intention and physical reality: 20 21 $$\mathbf{\text{Human Intent}} \longrightarrow \mathbf{\text{Formal Semantics}} \longrightarrow \mathbf{\text{Authorized Transformation}} \longrightarrow \mathbf{\text{Physical Reality}} \longrightarrow \mathbf{\text{Verified Evidence}}$$ 22 23 Before a single native instruction is admitted to bare-metal execution, before the physical memory management unit (MMU) is transitioned to sovereign control, and before cognitive models begin synthesizing realizations, the system’s mathematical, physical, cognitive, and epistemic boundaries must be cast in unyielding doctrine. 24 25 `DOCTRINE_V1` ratifies the seven foundational pillars of this architecture. Each document is exhaustive, authoritative, self-consistent, and grounded in physical and mathematical reality. 26 27 --- 28 29 ## 2. The Sovereign Architecture Stack 30 31 The seven doctrine files map directly to the functional and ontological layers of the Sovereign Machine: 32 33 ```text 34 ┌────────────────────────────────────────────────────────────────────────┐ 35 │ SOVEREIGNTY (DOCTRINE-SOV-001) │ 36 │ Total Closure, No Foreign Runtimes, Severance Invariant │ 37 ├────────────────────────────────────────────────────────────────────────┤ 38 │ AIEN (DOCTRINE-004) │ 39 │ Sovereign Cognitive Engine, J-Space Planning, Active State │ 40 ├──────────────────────────────────┬─────────────────────────────────────┤ 41 │ OMEGA (AIEN-DOC-OMEGA-001) │ TRUST (DOCTRINE-005) │ 42 │ Semantic Calculus (G_S) │ Epistemic Boundary & V-Ladder │ 43 │ Realization Graph (G_R) │ (V0 ──► V5 Proof Carrying Code) │ 44 │ Machine Graph (G_M) │ Failure Containment & Watchdogs │ 45 ├──────────────────────────────────┴─────────────────────────────────────┤ 46 │ PHYSICS (DOCTRINE-002) │ 47 │ Trusted Physical Authority, SMMUv3 DMA Isolation, AEGIS │ 48 ├────────────────────────────────────────────────────────────────────────┤ 49 │ ATLAS (DOCTRINE-001) │ 50 │ Irreducible Bootstrap Seed, Bare-Metal Initialization │ 51 ├────────────────────────────────────────────────────────────────────────┤ 52 │ ARCHITECTURE (DOCTRINE-000) │ 53 │ Master Blueprint, Four Permanent Layers, Substrate Map │ 54 └────────────────────────────────────────────────────────────────────────┘ 55 ``` 56 57 --- 58 59 ## 3. The Seven Foundational Doctrine Documents 60 61 The `DOCTRINE_V1` corpus comprises seven canonical specifications located in [`doctrine/`](./): 62 63 ```text 64 ┌───┬───────────────────┬──────────────────┬───────────────────────────────────────────────────────────┐ 65 │ # │ Document Path │ Document ID │ Canonical Title & Scope │ 66 ├───┼───────────────────┼──────────────────┼───────────────────────────────────────────────────────────┤ 67 │ 1 │ ARCHITECTURE.md │ DOCTRINE-000 │ Sovereign Computational Architecture │ 68 │ 2 │ ATLAS.md │ DOCTRINE-001 │ Atlas — The Irreducible Bootstrap Seed │ 69 │ 3 │ FORGE.md │ DOCTRINE-002 │ Physics — The Trusted Machine Authority │ 70 │ 4 │ OMEGA.md │ DOCTRINE-OMEGA │ The Omega Foundational Specification │ 71 │ 5 │ AIEN.md │ DOCTRINE-004 │ AIEN Foundational Doctrine: Sovereign Cognitive Engine │ 72 │ 6 │ TRUST.md │ DOCTRINE-005 │ Trust — Epistemic Verification Doctrine & Trust Boundaries│ 73 │ 7 │ DISCOVERY.md │ DOCTRINE-006 │ Discovery & Physics Zero — Sovereign Scientific Intelligence│ 74 │ 8 │ SOVEREIGNTY.md │ DOCTRINE-SOV-001 │ Sovereignty and Closure: Canonical Law & Provenance │ 75 │ R │ ROADMAP.md │ DOCTRINE-ROADMAP │ The 41-Milestone Sovereign Roadmap (M0-M40) & Status │ 76 └───┴───────────────────┴──────────────────┴───────────────────────────────────────────────────────────┘ 77 ``` 78 79 --- 80 81 ### 3.1 [`ARCHITECTURE.md`](ARCHITECTURE.md) — DOCTRINE-000: Sovereign Computational Architecture 82 - **Document ID:** `DOCTRINE-000` 83 - **Scope:** Foundational Master System Specification; The Four Permanent Layers and The Sovereign Machine. 84 - **Core Principles:** 85 - **Ontological Hierarchy:** Computation flows monotonically from Silicon $\to$ Atlas $\to$ Physics $\to$ Omega $\to$ Aien. 86 - **The Four Permanent Layers:** Substrate Layer, Authority Layer, Meaning Layer, Cognitive Layer. 87 - **The Permanent Architectural Rule:** No transient implementation choice (Rust, AArch64, CUDA, Linux, PyTorch) may become the permanent definition of the machine. 88 - **Single Composition Root:** Deterministic wiring across all layers with zero dynamic service locators or circular dependencies. 89 - **Key Invariants:** 90 - Unidirectional dependency flow: higher layers depend on lower layers; lower layers possess zero awareness of higher layers. 91 - The machine functions continuously and deterministically even if all cognitive models are unloaded. 92 93 --- 94 95 ### 3.2 [`ATLAS.md`](ATLAS.md) — DOCTRINE-001: Atlas — The Irreducible Bootstrap Seed 96 - **Document ID:** `DOCTRINE-001` 97 - **Scope:** Bare-metal reset, hardware measurement, identity mapping, and monotonic handoff to Physics. 98 - **Core Principles:** 99 - **Five Tenets of Atlas:** Small, Fixed, Auditable, Deterministic, Non-Intelligent. 100 - **The Executable Identity Invariant:** 101 $$\text{tested bytes} \equiv \text{evaluated bytes} \equiv \text{authorized bytes} \equiv \text{executed bytes}$$ 102 - **The Canonical Supporting Evidence Bundle:** Seven immutable artifacts (`atlas.bin`, `atlas.manifest`, `atlas.sha256`, `atlas.decode`, `atlas.memory-map`, `atlas.control-flow`, `atlas.audit`). 103 - **Key Invariants:** 104 - Zero cognitive mechanisms, zero neural weights, zero heap allocation, zero dynamic syscalls. 105 - Monotonic handoff at the exception level declared by the machine contract (no implicit EL2 -> EL1 transition): once control is transferred to Physics, Atlas is never re-entered within the boot epoch. 106 107 --- 108 109 ### 3.3 [`FORGE.md`](FORGE.md) — DOCTRINE-002: Physics — The Trusted Machine Authority 110 - **Document ID:** `DOCTRINE-002` 111 - **Scope:** Physical execution governance, MMU/SMMUv3 management, hardware capability enforcement, and effect admission. 112 - **Core Principles:** 113 - **The Physical Mandate:** "What is allowed to become physically real?" Physics is the Constitution of the Machine. 114 - **AEGIS Invariant & Capability Verification:** Unforgeable, cryptographically validated capability contracts checking every MMIO dereference, DMA transaction, and PCIe doorbell toggle. 115 - **Hardware SMMUv3 DMA Sandboxing:** Stage-2 page table confinement isolating all accelerator memory access from host kernel RAM. 116 - **Key Invariants:** 117 - Intelligence proposes; Physics disposes. No effect acts upon reality without an authorized `EFFECT_INTENT` token. 118 - Hardware watchdogs ($T_{hard} = 1000\text{ ms}$) assert non-maskable capability revocation and Function-Level Reset (FLR) on accelerator hang. 119 120 --- 121 122 ### 3.4 [`OMEGA.md`](OMEGA.md) — DOCTRINE-OMEGA-001: The Omega Foundational Specification 123 - **Document ID:** `AIEN-DOC-OMEGA-001` 124 - **Scope:** The Semantic Language, Realization Substrate, and Tri-Graph Model for the Sovereign Machine. 125 - **Core Principles:** 126 - **The Decoupling Principle:** Meaning must never be permanently coupled to representation, nor semantics to physical execution. 127 - **The Tri-Graph Model:** 128 1. **Semantic Graph ($G_S$):** Pure declarative representation of mathematical intent, invariants, shapes, and constraints. 129 2. **Realization Graph ($G_R$):** Concrete physical manifestations, direct machine code, schedules, and verified execution proofs. 130 3. **Machine Graph ($G_M$):** Hardware topology, vector widths, tensor cores, cache line structures, and thermal limits. 131 - **Continuous Adaptive Compilation:** Dynamic matching of semantic intent to available silicon without static intermediate compiler bloat. 132 - **Key Invariants:** 133 - $G_S$ is immutable and substrate-agnostic. 134 - Realizations are transient, disposable, and continually refined via empirical profiling. 135 136 --- 137 138 ### 3.5 [`AIEN.md`](AIEN.md) — DOCTRINE-004: AIEN Foundational Doctrine 139 - **Document ID:** `DOCTRINE-004` 140 - **Scope:** Sovereign Cognitive Core, J-Space Planning, Active State, and Semantic Memory. 141 - **Core Principles:** 142 - **The Cognitive Mandate:** Autonomous synthesis of desired states, hypothetical transformation plans, and candidate realizations. 143 - **J-Space Speculative Planning:** Branchable, counterfactual execution worlds that evaluate futures without modifying external reality. 144 - **Dual-Loop Cognitive Engine:** Rapid inner-loop reactive dispatch paired with deep outer-loop reflective synthesis and memory promotion. 145 - **Key Invariants:** 146 - Aien is an unprivileged producer of hypotheses. 147 - Every proposed mutation must be verified by AEGIS against capability contracts before lowering and execution. 148 149 --- 150 151 ### 3.6 [`TRUST.md`](TRUST.md) — DOCTRINE-005: Trust — Epistemic Verification Doctrine 152 - **Document ID:** `DOCTRINE-005` 153 - **Scope:** Epistemic verification boundaries, the Verification Ladder ($V_0 \to V_5$), correctness vs. performance authority, and failure containment. 154 - **Core Principles:** 155 - **The Epistemic Axiom:** $\mathbf{\text{Intelligence} \ne \text{Authority}}$. Search, optimization, neural models, and e-graphs are strictly UNTRUSTED. Omega contracts, verification kernels, and Physics admission are TRUSTED. 156 - **The Six-Tier Verification Ladder:** 157 - $V_0$: Structural & Capability Verification (syntax, shapes, buffer ranges $[base, base+size)$). 158 - $V_1$: Differential Verification (parity against golden EL1/EL0 scalar reference within $\epsilon_{tol}$). 159 - $V_2$: Property-Based Invariant Verification (conservation laws, algebraic invariants, monotonicity). 160 - $V_3$: Adversarial Corner Fuzzing (denormals, NaNs, zero-strides, cache line bank conflicts). 161 - $V_4$: Symbolic Equivalence Verification (polyhedral dependence proofs, e-graph rewrite certificates). 162 - $V_5$: Proof-Carrying Realization (PCR: untrusted agent provides formal proof $\Pi$; trusted kernel checks $\Pi$ in $O(|\Pi|)$ polynomial time). 163 - **Authority Separation:** Verification answers "Is this allowed?" (absolute veto); Profiling answers "Should this realization run?" (empirical Pareto guidance). 164 - **Key Invariants:** 165 - Fast garbage remains garbage: performance metrics can never override a verification failure. 166 - Fault containment guarantees soundness even under total cognitive compromise or accelerator lockup. 167 168 --- 169 170 ### 3.7 [`SOVEREIGNTY.md`](SOVEREIGNTY.md) — DOCTRINE-SOV-001: Sovereignty and Closure 171 - **Document ID:** `DOCTRINE-SOV-001` 172 - **Scope:** The Sovereignty Law, The Severance Invariant, Self-Hosting Closure, and The Oracle Principle. 173 - **Core Principles:** 174 - **The Sovereignty Law:** The final deployed Sovereign Machine must not depend upon Rust, Cargo, LLVM, GCC, Python, Linux, POSIX, CUDA, PyTorch, or foreign weights. 175 - **The Severance Invariant:** If all external repositories, cloud providers, and foreign toolchains vanish, the machine continues self-executing and evolving indefinitely. 176 - **The Founding Exception & The Scaffold:** Temporary reliance on modern toolchains during initial bootstrapping, subject to strict deprecation horizons terminating at sovereign closure (closure gate placement on the M0-M40 roadmap pending the SOVEREIGNTY.md rewrite, aien-spark/aien-architecture#8). 177 - **The Oracle Principle:** Epistemic grounding using external instruments as temporary measurement comparators, never as operational dependencies. 178 - **Key Invariants:** 179 - Absolute self-hosting: every compiler, kernel, scheduler, and weight is built from self-contained lineage. 180 - Cryptographic provenance: 100% of all code and model training artifacts are immutably signed. 181 182 --- 183 184 ## 4. Cross-Cutting Doctrinal Synthesis 185 186 The power of `DOCTRINE_V1` lies in the airtight mathematical and operational coherence across all seven specifications: 187 188 ```text 189 ┌────────────────────────────────────────────────────────────────────────┐ 190 │ CROSS-CUTTING DOCTRINAL INVARIANTS │ 191 ├──────────────────────────┬─────────────────────────────────────────────┤ 192 │ Invariant │ Doctrinal Interaction │ 193 ├──────────────────────────┼─────────────────────────────────────────────┤ 194 │ 1. Intelligence != │ AIEN.md proposes; TRUST.md verifies; │ 195 │ Authority │ FORGE.md authorizes; ATLAS.md boots. │ 196 ├──────────────────────────┼─────────────────────────────────────────────┤ 197 │ 2. Decoupling of Meaning │ OMEGA.md specifies invariant semantics; │ 198 │ from Representation │ TRUST.md proves equivalence; │ 199 │ │ ARCHITECTURE.md prevents premature lowering.│ 200 ├──────────────────────────┼─────────────────────────────────────────────┤ 201 │ 3. Executable Identity │ ATLAS.md establishes tested == executed; │ 202 │ │ TRUST.md records Merkle digests; │ 203 │ │ SOVEREIGNTY.md seals self-hosting closure. │ 204 ├──────────────────────────┼─────────────────────────────────────────────┤ 205 │ 4. Separation of Proofs │ TRUST.md & FORGE.md enforce: │ 206 │ │ Integrity (unkeyed) != Auth (signed) != │ 207 │ │ Freshness (monotonic hardware counters). │ 208 ├──────────────────────────┼─────────────────────────────────────────────┤ 209 │ 5. Physical Confinement │ FORGE.md (SMMUv3) + AEGIS verifier │ 210 │ under Malice │ strictly isolate untrusted AIEN execution. │ 211 └──────────────────────────┴─────────────────────────────────────────────┘ 212 ``` 213 214 --- 215 216 ## 5. Milestone 0 (`DOCTRINE_V1`) Gate Verification & Sign-Off 217 218 The `DOCTRINE_V1` Gate requires satisfying seven strict verification criteria before Milestone 1 (`ATLAS_BOOT`) may be entered: 219 220 ### 5.1 Gate Verification Criteria Matrix 221 222 | Gate Criterion | Verification Standard | Audited Evidence | Status | 223 | :--- | :--- | :--- | :---: | 224 | **G0-1: Corpus Completeness** | All seven foundational doctrine documents authored, formatted, and cross-referenced in `doctrine/`. | Verified on physical filesystem. | `PASSED` | 225 | **G0-2: Ontological Consistency** | Zero terminological or authority contradictions across documents. Unidirectional dependency hierarchy verified. | Cross-audit of layers and definitions. | `PASSED` | 226 | **G0-3: Epistemic Boundary** | Search, optimization, and neural inference strictly designated untrusted; verification and physics designated trusted. | Enforced in `TRUST.md` and `FORGE.md`. | `PASSED` | 227 | **G0-4: Mathematical Rigor** | Formal definitions provided for Omega Tri-Graphs, Verification Ladder ($V_0 \to V_5$), and Epistemic Merkle DAGs. | Evaluated in `OMEGA.md` and `TRUST.md`. | `PASSED` | 228 | **G0-5: Hardware Realism** | Concrete alignment with AArch64 bare-metal (EL1/EL0, SMMUv3) and heterogeneous accelerator reset rails. | Fully specified in `FORGE.md` & `ATLAS.md`.| `PASSED` | 229 | **G0-6: Sovereignty Invariants** | Absolute prohibition of foreign runtimes in operational target; strict deprecation horizons for bootstrap scaffolds. | Formally codified in `SOVEREIGNTY.md`. | `PASSED` | 230 | **G0-7: Provenance Anchoring** | Separation of Proofs established; unkeyed integrity, keyed auth, and anti-rollback freshness specified. | Codified in `TRUST.md` & `SOVEREIGNTY.md`.| `PASSED` | 231 232 ### 5.2 Formal Ratification & Gate Sign-Off 233 234 ```text 235 ================================================================================ 236 MILESTONE 0 (DOCTRINE_V1) GATE RATIFICATION 237 ================================================================================ 238 Milestone Identifier: Milestone 0: DOCTRINE_V1 239 Verification Authority: Sovereign Machine Architecture & Governance Board 240 Ratification Date: 2026-09-25T23:04:00Z 241 Target Substrate: AArch64 Host CPU + Blackwell/Hopper Accelerator Fabric 242 243 Verified Corpus Elements: 244 [✓] DOCTRINE-000: ARCHITECTURE.md (Sovereign Computational Architecture) 245 [✓] DOCTRINE-001: ATLAS.md (The Irreducible Bootstrap Seed) 246 [✓] DOCTRINE-002: FORGE.md (The Trusted Machine Authority) 247 [✓] DOCTRINE-OMEGA: OMEGA.md (The Omega Foundational Specification) 248 [✓] DOCTRINE-004: AIEN.md (The Sovereign Cognitive Engine) 249 [✓] DOCTRINE-005: TRUST.md (Epistemic Verification & Trust Boundaries) 250 [✓] DOCTRINE-006: DISCOVERY.md (Discovery & Physics Zero) 251 [✓] DOCTRINE-SOV: SOVEREIGNTY.md (Sovereignty, Closure & Provenance) 252 [✓] DOCTRINE-IDX: INDEX.md (Master Index & Gate Verification Ledger) 253 254 GATE STATUS: RATIFIED / CLOSED (current milestone status: see ROADMAP.md) 255 Sign-off Hash: `4a8b79e13d964fcf81ec0a1f9e2b1735cb0e4871d87a2cf956102a9e25d2b77c` 256 ================================================================================ 257 ``` 258 259 260 --- 261 262 ## 4. The Sovereign Program-Learning Doctrine (Omega Synthesis → AIEN) 263 264 ### 4.1 The Synthesis Doctrine 265 > **`ALLEN INTENDS.`** 266 > **`AIEN PROPOSES.`** 267 > **`OMEGA DEFINES.`** 268 > **`FORGE REALIZES.`** 269 > **`AEGIS VERIFIES.`** 270 > **`HARDWARE ACTS.`** 271 > **`EVIDENCE TEACHES.`** 272 273 ### 4.2 The Three Speeds of Intelligence 274 1. **Fast Learning (AIEN Model / Search Prior):** *"What should I try next?"* Implicit, speculative intuition. Search prior over Omega's possibility space. Rapidly retrainable and disposable. 275 2. **Medium-Term Learning (Omega Procedure Library):** *"What reusable procedures have I discovered?"* Explicit, typed, composable, verifiable semantic subgraphs. 276 3. **Long-Term Knowledge (Omega Semantics + Proofs + Cortex Evidence):** *"What does this mean? What has been verified? What was observed?"* Durable epistemic ground. 277 278 ### 4.3 Division of State & Durability 279 * **Weights** hold search intuition. 280 * **Programs** hold explicit procedure. 281 * **Omega Abstractions** hold reusable concepts. 282 * **Cortex** holds empirical experience. 283 * **Proofs** hold trusted justification. 284 * **Physics** holds physical machine authority. 285 286 ### 4.4 Trust Decomposition Inside OMEGA 287 The epistemic boundary runs directly through OMEGA. Search and synthesis components are strictly UNTRUSTED; semantic contracts and verification checkers are TRUSTED: 288 289 ```text 290 OMEGA 291 ├── OMEGA SEMANTIC CORE TRUSTED CONTRACT 292 ├── OMEGA VERIFIER TRUSTED CHECKER 293 ├── OMEGA SYNTHESIS UNTRUSTED SEARCH 294 ├── OMEGA ABSTRACTION MINER UNTRUSTED SEARCH 295 ├── OMEGA REALIZATION SEARCH UNTRUSTED SEARCH 296 └── OMEGA LIBRARY 297 ├── CANDIDATE UNTRUSTED 298 └── VERIFIED/PROMOTED TRUSTED BY EVIDENCE 299 ``` 300 301 Canonical Synthesis Pipeline: 302 ```text 303 AIEN 304 ↓ 305 CANDIDATE IDEA 306 307 OMEGA SYNTHESIS / COMPOSITION 308 ↓ 309 CANDIDATE PROGRAM OR REALIZATION 310 311 OMEGA TRUSTED VERIFIER 312 ↓ 313 VERIFIED SEMANTIC CANDIDATE 314 315 PHYSICS 316 ↓ 317 AUTHORIZED PHYSICAL EFFECT 318 ``` 319 320 ### 4.5 Sovereign Training Corpus Scoping 321 > *Omega's sovereign search traces provide the cold-start training corpus for AIEN-0, removing the need for a foreign pretrained search-guide model or foreign procedural training corpus.* 322 323 324 > **Naming note:** current machine realization is FORGE under ADR 0014. Historical PHYSICS identifiers in milestone/evidence records remain valid provenance.