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/docs/adr/0013-machine-physics-lowering-and-aegis-invariant-checker.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 / docs / adr / 0013-machine-physics-lowering-and-aegis-invariant-checker.md` 42 lines ยท 3483 bytes Raw Blame History Rendered 1 # ADR 0013: Machine Physics Lowering and AEGIS Invariant Verification Chain 2 3 **Status:** Accepted 4 5 ## Context 6 7 Previous doctrine documents described PHYSICS as a gatekeeper membrane between OMEGA and physical execution, while conflating machine authority with security gating. This created ambiguity between: 8 1. Machine-level execution authority (lowering formal semantic programs into physical machine states). 9 2. Continuous verification of invariants, capabilities, and contracts across the transformation chain. 10 3. The separate scientific physics discovery program (Physics Zero). 11 12 Treating the machine authority layer as a binary allow or deny gatekeeper fails to capture the bidirectional dialogue required when compiling formal programs to physical silicon realities. 13 14 ## Decision 15 16 1. **Layer Responsibilities:** 17 - **ATLAS**: The irreducible bootstrap seed that establishes the first trusted machine state from cold silicon. 18 - **AIEN**: The cognitive driver that thinks, reasons across possibility spaces, and proposes intents, hypotheses, and architectural mutations. 19 - **OMEGA**: The semantic calculus that defines meaning, graphs, constraints, and formal transformation programs. 20 - **PHYSICS (Machine Physics / Physical Realizer)**: The physical compiler and realizer. Understands hardware mechanics (memory layouts, page tables, cache hierarchies, register pressure, DMA descriptors, GPFIFO queues, device registers, and bus topologies). Lowers abstract OMEGA programs into physical machine operations. 21 - **AEGIS (Invariant Checker & Verifier)**: A continuous verifier spanning the entire pipeline (AIEN -> OMEGA -> PHYSICS -> HARDWARE). Verifies constraints, bounds, slot generations, types, rollback safety, provenance, and post-execution state contracts. 22 - **HARDWARE**: Physical silicon (CPU, GPU, memory, peripherals) performing state transitions. 23 - **EVIDENCE**: Immutable record of verified receipts and execution results. 24 25 2. **Core Doctrine:** 26 > **AIEN PROPOSES. OMEGA DEFINES. PHYSICS REALIZES. AEGIS VERIFIES. HARDWARE ACTS. EVIDENCE TEACHES.** 27 28 3. **Bidirectional Compilation Dialogue:** 29 The relationship between OMEGA and PHYSICS is an iterative lowering dialogue rather than a one-way command dispatch. When PHYSICS encounters physical constraints (such as alignment mismatches, fragmentation, pinning, or coherence limits), it emits alternative realizations and machine facts back to OMEGA. OMEGA and AIEN select trade-offs, OMEGA formalizes the revised program, AEGIS verifies invariants, and PHYSICS executes. 30 31 4. **AEGIS Non-Interference:** 32 AEGIS does not censor, filter, or decide what AIEN is allowed to think or propose. AEGIS verifies that a proposed physical realization faithfully implements the requested meaning, preserves system invariants, and possesses valid recovery paths. 33 34 5. **Nomenclature Preservation:** 35 - `PHYSICS` (Machine Physics / Physics Runtime) retains its name as the physical lowering and realization compiler. 36 - `Physics Zero` retains its name as the scientific discovery engine investigating the natural world. 37 38 ## Consequences 39 40 - The execution pipeline mirrors a high-performance compiler with an intelligent physical backend and continuous formal verifier. 41 - OMEGA remains hardware-neutral; PHYSICS encapsulates silicon-specific realities (Blackwell, AArch64, SMMUv3, NVLink-C2C). 42 - Historical milestones (M2, M3, M15, M16, M17, M18, M19) remain structurally valid without semantic churn.