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 / SOVEREIGNTY.md

392 lines · 39385 bytes Raw Blame History Source

DOCTRINE-SOV-001: SOVEREIGNTY AND CLOSURE

The Canonical Law, Oracle Principle, Self-Hosting Closure, and Provenance Doctrine

Document ID:     DOCTRINE-SOV-001
Milestone:       Milestone 0 (DOCTRINE_V1)
Classification:  Sovereign Machine Canonical Doctrine
Target Substrate: Complete Sovereign Stack (Atlas -> Physics -> Omega -> Aien)
Status:          AUTHORITATIVE / CANONICAL / RATIFIED
Revision:        Evidence-integrity revision (aien-architecture#8)
Roadmap:         Canonical M0-M40 Sovereign Discovery roadmap (DISCOVERY.md §13)

Reading this document. Everything below is either law (what the Sovereign Machine must be), a target (a theorem the lineage must eventually satisfy), or evidence (a result backed by a recorded qualification receipt). Only the last category may be described as demonstrated. Where this document states a target, it is a requirement, not a report.


0. The Evidence Rule

The Evidence Rule: No sovereignty, hardware, or training result is demonstrated until a qualification receipt for it exists. A target is never evidence of itself.

Every closure proof, gate, and qualification in this document carries the same five fields:

FieldMeaning
TARGET / THEOREMThe property the lineage must satisfy. A requirement, not a claim.
CURRENT STATUSWhat has actually been qualified, on which substrate, and what is pending.
REQUIRED EVIDENCEThe observations that must be recorded before the target may be declared met.
QUALIFICATION ARTIFACTThe named gate / receipt that records the evidence.
PASS/FAILThe objective criterion that decides the gate.

Status vocabulary, in increasing strength:

TARGET            Specified; no qualifying evidence exists.
IN PROGRESS       Work under way; no qualifying receipt for the current revision.
QEMU QUALIFIED    All emulation gates passed with receipts. Says nothing about silicon.
NATIVE QUALIFIED  Native gates passed with receipts on the physical target substrate.

Substrate rule: a QEMU pass never implies, substitutes for, or partially satisfies a native pass. Native qualification (*_NATIVE_PASS) is evaluated only on physical silicon (the current reference substrate is NVIDIA DGX Spark), and only a native receipt may raise a status to NATIVE QUALIFIED.

0.1 Evidence Snapshot (as of this revision)

ItemStatusEvidence
M0 DOCTRINE_V1COMPLETERatified doctrine corpus.
M1 ATLAS_BOOTCOMPLETE / QEMU QUALIFIEDaien-dev/atlas; QEMU gates only. ATLAS_BOOT_NATIVE_PASS pending.
M2 PHYSICS_BOOTQEMU QUALIFIED (requalified 2026-09-26)aien-architecture#6, aien-spark/physics#1, aien-spark/physics#3. QEMU only. PHYSICS_BOOT_NATIVE_PASS pending.
Physical DGX Spark / native Blackwell execution of this stackNOT DEMONSTRATEDNo native receipt exists.
Sovereign training (any AIEN lineage)NOT DEMONSTRATEDNo training has occurred in the sovereign stack.
SOVEREIGN_MACHINE_CLOSURETARGETNo closure evidence exists.

This snapshot is the only place in this document that reports status. It must be updated, with receipt references, whenever a gate changes state.


1. The Sovereignty Law

The Sovereignty Law: The permanent lineage of the Sovereign Machine must not require, depend upon, link against, or incorporate Rust, Cargo, LLVM, GCC, Clang, Python, Linux, POSIX runtimes, CUDA, PyTorch, TensorFlow, JAX, Triton, CuDNN, external virtual machines, foreign runtime schedulers, or foreign pretrained neural weights.

Rust, C, and external compiler toolchains may be used as temporary bootstrap and implementation scaffolding during construction; they are not dependencies of the permanent sovereign lineage, which must ultimately be realizable and maintainable by AIEN's own trusted toolchain.

1.1 The Meaning of Complete Sovereignty

Sovereignty is not an aesthetic preference or an open-source license; it is an existential computational boundary. A system is sovereign if and only if its operational continuity, cognitive validity, and physical transformations are completely decoupled from external technological civilizations, corporate software stacks, and cloud ecosystems.

The permanent lineage is the set of artifacts the Sovereign Machine needs in order to exist and to reproduce itself: atlas.bin, physics.bin, the Omega realization, synthesis, and verification substrate, the AIEN training and inference runtime, every AIEN checkpoint, the provenance ledgers, and the tooling that regenerates all of them. Anything outside that set (a development host, oracle, test harness, emulator, or scaffold) is not part of the lineage, and the lineage must not require it (§3).

The litmus test of sovereignty is the Severance Invariant (a target, qualified only through SOVEREIGN_MACHINE_CLOSURE, §4.6): If all external software repositories, global network backbones, commercial compiler toolchains, and proprietary AI models were instantaneously obliterated, the permanent lineage must continue to power on, self-execute, synthesize machine code, adapt to physical workloads, train its cognitive models, and, through PHYSICS, govern its physical effects indefinitely from its internal, self-contained lineage.

1.2 Explicit Enumeration of Forbidden Dependencies

The permanent lineage strictly forbids:

Forbidden Dependency CategorySpecific Prohibited TechnologiesSovereign Replacement Mechanism (target)
Foreign Compilers & ToolchainsLLVM, GCC, Clang, Rustc, Cargo, NVCC, TritonOmega Realization Substrate: Direct machine code synthesis ($\mathcal{G}_S \times \mathcal{G}_M \to \mathcal{G}_R \to \text{bytes}$).
Foreign Interpreters & RuntimesPython, Node.js, JVM, glibc, musl, libstdc++Physics Authority Nucleus: Bare-metal execution with zero dynamic userspace runtime.
Foreign Operating SystemsLinux, BSD, Windows, macOS, systemd, POSIXPHYSICS: Capability-based trusted machine authority and effect admission cycle.
Proprietary Accelerator StacksCUDA Driver, CUDA Runtime, CuDNN, TensorRT, ROCmPHYSICS-mediated accelerator interface: Direct command submission over the CPU/accelerator link described by the MachineGraph ($\mathcal{G}_M$).
Foreign ML FrameworksPyTorch, TensorFlow, JAX, ONNX Runtime, vLLMOmega Tensor Engine / AIEN runtime: Omega-synthesized tensor, autodiff, and optimizer realizations over accelerator-accessible memory (§4.7).
Foreign Pretrained WeightsAny externally trained checkpoint, open or closedSovereign Lineage Models: Weights trained inside the lineage with complete cryptographic dataset provenance (§5).

Any component that introduces a transient dependency during development must possess an explicit, non-negotiable Deprecation Horizon that terminates no later than SOVEREIGN_MACHINE_CLOSURE qualification (§4.6). A dependency not removed by then fails closure.


2. The Founding Exception

2.1 The Bootstrap Paradox

A perfectly self-hosting system presents a foundational paradox: How does a software lineage write its own compiler if no compiler exists to assemble the first line of code?

Historically, this paradox has been resolved through inherited dependencies: compiling C with GCC, which was compiled with another C compiler, tracing back through decades of opaque binary lineage (the Ken Thompson "Reflections on Trusting Trust" vulnerability).

2.2 Formal Definition of the Founding Exception

The Sovereign Machine resolves the bootstrap paradox through The Founding Exception:

$$\mathcal{A}_0 \equiv \text{Atlas}$$


3. The Oracle Principle

Throughout development, up to SOVEREIGN_MACHINE_CLOSURE, external tools (such as Linux, existing Aienux, NVIDIA CUDA, and PyTorch) may be employed under strict containment as Oracles or Scaffolds.

3.1 The Principle Defined

The Oracle Principle: Existing Aienux, Linux, CUDA, and research runtimes are strictly Oracles, Scaffolds, and Empirical References. They are NEVER deployed ancestors, runtime dependencies, or architectural templates of the permanent lineage.

An Oracle is an external computational entity queried solely for:

  1. Mathematical Ground Truth: Generating reference output tensors ($y_{\text{exact}}$) from known inputs to verify that Omega realizations satisfy error bounds: $$\max_i |y_{\text{sovereign}}[i] - y_{\text{oracle}}[i]| \le \epsilon$$
  2. Performance Baselines: Measuring hardware limits, memory bandwidth saturation percentages, and FLOP utilization under identical silicon conditions.
  3. Behavioral Divergence Hunting: Detecting subtle floating-point drift, tensor misalignment, or semantic graph compilation errors.

A Scaffold is an external development environment (host OS, cross-toolchain, test harness, emulator such as QEMU) used to build or exercise pre-closure artifacts.

Explicit Non-Requirement: Oracles and Scaffolds may exist outside the permanent lineage only if they are explicitly non-required. Each must be registered with its deprecation horizon, and the closure qualification (§4.6) must succeed with every registered Oracle and Scaffold absent.

The development-time Oracle is distinct from the Sealed World Oracle of Physics Zero (DISCOVERY.md §6), which is part of the experimental apparatus and is governed by the contamination firewall.

┌────────────────────────────────────────────────────────────────────────┐
│                        THE ORACLE ISOLATION GATE                       │
│                                                                        │
│   ┌────────────────────┐                   ┌───────────────────────┐   │
│   │   ORACLE REALM     │                   │    SOVEREIGN REALM    │   │
│   │ (Linux / CUDA / PT)│                   │(Atlas / Physics/Omega)│   │
│   │                    │                   │                       │   │
│   │ [ Reference Model ]│                   │ [ Sovereign Engine ]  │   │
│   └─────────┬──────────┘                   └───────────┬───────────┘   │
│             │                                          │               │
│             │ Reference Tensor                         │ Observed      │
│             │ Y_oracle                                 │ Y_sovereign   │
│             ▼                                          ▼               │
│        ┌────────────────────────────────────────────────────┐          │
│        │            FORMAL PARITY COMPARATOR                │          │
│        │        || Y_sovereign - Y_oracle || <= eps         │          │
│        └─────────────────────────┬──────────────────────────┘          │
│                                  │                                     │
│                                  ▼                                     │
│                     PASS: Oracle Severed Permanently                   │
│                     FAIL: Divergence Hunt Initiated                    │
└────────────────────────────────────────────────────────────────────────┘

3.2 The Oracle Boundary Invariants


4. The Self-Hosting Loop and Closure Proofs

Sovereignty is achieved when the permanent lineage completes the Self-Hosting Closure Loop. At closure, the lineage possesses complete regenerative self-containment.

flowchart LR
    subgraph SELF_HOSTING_LOOP [The Sovereign Self-Hosting Loop]
        ATLAS["ATLAS<br/>(Bootstrap Seed)"] --> PHYSICS["PHYSICS<br/>(Trusted Machine Authority)"]
        PHYSICS --> OMEGA["OMEGA<br/>(Defines, Synthesizes, Verifies, Realizes)"]
        OMEGA --> AIEN["AIEN<br/>(Proposes, Searches, Discovers)"]
        AIEN -.->|"Proposes candidate artifacts"| OMEGA
        OMEGA -.->|"Verified candidate images"| PHYSICS
        PHYSICS -.->|"Authorizes admission of next-generation images"| ATLAS
    end

Authority in the loop follows the canonical split: AIEN proposes and searches; OMEGA defines and verifies; PHYSICS authorizes physical effects. No regenerated artifact is admitted to the machine except through a PHYSICS-authorized effect.

The architecture requires the following Closure Proofs. Each is a target until its qualification artifact records a PASS. Roadmap positions refer to the canonical M0-M40 roadmap (DISCOVERY.md §13).

4.1 Proof 1: ATLAS_BOOT

4.2 Proof 2: PHYSICS_BOOT

4.3 Proof 3: OMEGA_LIVING_MATVEC

4.4 Proof 4: OMEGA_ACCELERATOR_NATIVE

4.5 Proof 5: AIEN_0 sovereign training

4.6 The Master Gate: SOVEREIGN_MACHINE_CLOSURE

SOVEREIGN_MACHINE_CLOSURE is a stable named architectural gate, not a roadmap milestone number. Earlier drafts placed it at "Milestone 27"; in the canonical M0-M40 roadmap, M27 is PHYSICS_ZERO_PROTOCOL, and closure has no milestone number of its own.

4.7 Memory Semantics Are MachineGraph-Driven

Sovereignty doctrine makes no assumption about a particular memory technology. "Resident" and "permanent" state (weights, KV pools, gradients, optimizer state, Cortex tiers) means accelerator-accessible memory as described by the MachineGraph ($\mathcal{G}_M$, M13), with placement decided by Omega realization synthesis and authorized by PHYSICS.


5. Dataset Sovereignty & Cryptographic Provenance

A model trained on poisoned, unverified, or legally compromised data is not sovereign. The cognitive integrity of AIEN depends upon absolute dataset hygiene and verifiable provenance. Because lineages differ in what they may learn from, provenance is tracked per lineage.

5.1 Separate Lineages

┌────────────────────────────────────────────────────────────────────────┐
│ AIEN-P0  — Physics Zero clean scientific-discovery lineage             │
├────────────────────────────────────────────────────────────────────────┤
│ • Allowed: Omega-generated tasks and synthesis traces, neutral         │
│   mathematical proofs, formal logic, verifiable algorithms/ASTs,       │
│   Physics Zero observations and experiment receipts.                   │
│ • Forbidden: human physical laws, named physical constants, physics    │
│   terminology and ontology, scientific papers/textbooks/corpora,       │
│   scientific QA sets and benchmarks, physics simulation source, and    │
│   pretrained models of any kind (including pretrained science models). │
│ • Governed by: DISCOVERY.md §3-§6 and P0_CONTAMINATION_AUDIT_PASS.     │
└────────────────────────────────────────────────────────────────────────┘
                                   │
               clean experiment frozen (checkpoint sealed,
               contamination audit passed, manifest signed)
                                   │
                                   ▼  (one-way; nothing flows back)
┌────────────────────────────────────────────────────────────────────────┐
│ General AIEN / science lineages (later, e.g. from M36 onward)          │
├────────────────────────────────────────────────────────────────────────┤
│ • May additionally ingest provenance-controlled human knowledge,       │
│   including human physical laws, engineering standards, and            │
│   scientific literature, each shard ledgered under §5.3.               │
│ • Must never be used as a parent, data source, or distillation         │
│   teacher for any AIEN-P0 checkpoint.                                  │
└────────────────────────────────────────────────────────────────────────┘

A general lineage may branch from a frozen AIEN-P0 checkpoint, but the branch is a new lineage with its own manifest. Once any human-physics token enters a checkpoint's ancestry, that checkpoint and all its descendants are permanently outside AIEN-P0.

5.2 The Pristine Data Doctrine (all lineages)

  1. Zero Unverified Web Scrapes: Bulk crawling of public internet data without provenance verification is strictly prohibited.
  2. Zero Commercial Taint: Training corpora must not contain unauthorized intellectual property, proprietary source code, or synthetic outputs generated by commercial closed models with restrictive terms of service.
  3. Zero Foreign Weights: No lineage is initialized from, merged with, or distilled from a foreign pretrained model.
  4. Pristine Mathematical & Formal Foundation: The shared cognitive seed foundation is limited to what AIEN-P0 permits:
    • Formal mathematical proofs (Lean, Coq, Isabelle, formal logic), within the Physics Zero research mode in force (P0-MATH or P0-PRIMITIVE, DISCOVERY.md §4).
    • Verifiable algorithmic implementations and AST representations.
    • Omega-generated tasks, synthesis traces, and verifiable reasoning chains free of physical ontology.

    Physical laws, engineering standards, and thermodynamic principles are not part of this foundation. They may enter only a general lineage, and only after the clean experiment is frozen (§5.1).

5.3 The Cryptographic Provenance Ledger

Every training token ingested into any AIEN lineage must be bound to a Cryptographic Provenance Certificate that names its lineage. The block below is an illustrative format only; it is not a real record, and no sovereign dataset has yet been certified.

┌────────────────────────────────────────────────────────────────────────┐
│          SOVEREIGN DATASET PROVENANCE BLOCK  (ILLUSTRATIVE FORMAT)     │
├────────────────────────────────────────────────────────────────────────┤
│ Dataset Chunk ID:     <content-derived identifier>                     │
│ Lineage:              AIEN-P0 | AIEN-GENERAL-<n>                       │
│ BLAKE3 Content Hash:  <32-byte digest>                                 │
│ Source Authority:     <originating archive / Omega generator>          │
│ Verification Level:   <e.g. FORMAL_PROOF_VERIFIED>                     │
│ Contamination Class:  P0_CLEAN | HUMAN_SCIENCE | ...                   │
│ Token Count:          <n>                                              │
│ Synthesizer Hash:     <Omega generator digest, if synthetic>           │
│ Signature:            Ed25519 <signature>                              │
└────────────────────────────────────────────────────────────────────────┘

5.4 Synthetic Self-Distillation

Beyond the initial seed corpus, AIEN expands its cognitive capacity through Autonomous Synthetic Self-Distillation:

  1. AIEN poses formal problems in J-Space.
  2. Multiple internal reasoning trajectories are explored.
  3. Solutions are submitted to Omega for verification (compiling the code, executing the test, verifying the proof); any physical experiment is submitted to PHYSICS for authorization and produces an EXPERIMENT_RECEIPT.
  4. Only reasoning trajectories that terminate in Omega-verified results or receipt-backed experimental evidence are ingested into the training buffer, under the provenance rules of the lineage being trained. For AIEN-P0, the only empirical source is Physics Zero observations and receipts.

6. Verification Gates for the Entire Roadmap

Roadmap progression is governed by four sequential Verification Gates, aligned to the canonical M0-M40 roadmap. No milestone within a higher gate may be declared complete until all preceding gate invariants are verified with receipts. Physics Zero (M27-M35) and the General AIEN Era (M36-M40) are governed by DISCOVERY.md and are not renumbered here.

     M0                  M1-M3                 M4-M26              (named gate)
┌───────────┐       ┌─────────────┐       ┌─────────────┐       ┌─────────────────┐
│  GATE 0:  │       │   GATE 1:   │       │   GATE 2:   │       │     GATE 3:     │
│ DOCTRINE  │ ────> │ BARE-METAL  │ ────> │ AUTONOMOUS  │ ────> │SOVEREIGN_MACHINE│
│           │       │  AUTHORITY  │       │ REALIZATION │       │    _CLOSURE     │
└───────────┘       └─────────────┘       └─────────────┘       └─────────────────┘

6.1 Gate 0: Doctrine, Architecture, and Formal Specifications (M0)

6.2 Gate 1: Bare-Metal Awakening & Physical Authority (M1-M3)

6.3 Gate 2: Autonomous Realization, Accelerator Sovereignty & Sovereign Training (M4-M26)

6.4 Gate 3: SOVEREIGN_MACHINE_CLOSURE

6.5 Architectural Separation of Lowering and Verification

Under ratified ADR 0013, PHYSICS is Machine Physics: the physical compiler, lowering backend, and machine realizer that lowers formal OMEGA programs into physical machine operations. AEGIS is the continuous invariant and contract checker that verifies semantic fidelity, types, bounds, object generations, capability contracts, and post-execution state transitions. PHYSICS is not a gatekeeper, and AEGIS is not an authority oracle. PHYSICS realizes operations within verified contracts, HARDWARE executes state transitions, and EVIDENCE records the immutable result.

================================================================================
                    SOVEREIGNTY IS THE INVIOLABLE LAW
            EVIDENCE, NOT ASSERTION, IS HOW IT IS SHOWN
================================================================================