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 / docs / milestone-19-spec.md

181 lines · 15026 bytes Raw Blame History Source

Specification: Milestone 19: OMEGA Accelerator Resident Substrate (OMEGA_ACCELERATOR_RESIDENT)

Document ID:     SPEC-ACCEL-M19
Milestone:       Milestone 19 (OMEGA_ACCELERATOR_RESIDENT)
Classification:  Sovereign Machine Canonical Specification
Target Substrate: Persistent Omega Execution Substrate in Coherent Memory on NVIDIA DGX Spark (GB10, sm_121)
Status:          REOPENED / IN PROGRESS (see docs/errata/m19-errata.md; closes via docs/m19r-recovery-program.md)
Opened:          2026-09-26
Authority:       aien-spark/physics M16 (commit b64753d), aien-spark/omega M18 (commit 7273c37)
Lineage:         SILICON -> ATLAS (M1) -> PHYSICS (M2/M3/M15/M16) -> OMEGA (M4-M14) -> M16 (Native Submission) -> M17 (Blackwell Vector) -> M18 (Blackwell MatMul) -> M19 (Accelerator Resident)

1. Executive Summary & Sovereignty Boundary

Milestones 16, 17, and 18 established native Blackwell hardware interaction on physical NVIDIA DGX Spark silicon without foreign userspace runtimes (libcuda.so, libcudart.so):

In Milestones 16 through 18, execution followed an ephemeral lifecycle: each operation or test suite invocation performed a full sequence of RM client creation, device allocation, VAS aperture binding, GPFIFO channel initialization, pushbuffer dispatch, completion wait, and teardown.

Milestone 19 transitions Omega from an ephemeral execution model to a persistent accelerator resident substrate (OmegaAcceleratorWorld):

EPHEMERAL DISPATCH INITIALIZES AND TEARS DOWN SUBSYSTEMS PER OPERATION. ACCELERATOR RESIDENCY MAINTAINS PERSISTENT CHANNELS, APERTURES, CODE REGISTRIES, AND BUFFERS ACROSS CONTINUOUS HETEROGENEOUS DISPATCH LOOPS.

The Core Architectural Invariant: resident != immortal

Residency provides persistent operational availability without incurring per-operation channel initialization latency. Residency does not confer unrevocable authority or perpetual resource retention:

  1. Explicit Generation Counters: Every registered buffer, code object, and channel handle binds to a strictly monotonic generation counter.
  2. Capability-Bounded Handles: Handles declare explicit bounds and access permissions. Ambient or untracked access to coherent memory apertures is prohibited.
  3. Fail-Closed Stale Handle Refusal: Access attempts using invalidated, expired, or out-of-generation handles are rejected with explicit error codes before submission.
  4. Deterministic Capability Revocation: Buffers and code modules can be dynamically revoked and purged from the resident substrate without tearing down the parent world.
  5. Deterministic Teardown: The entire resident substrate terminates deterministically, releasing all NVRM allocations, coherent mappings, and doorbells without leaking host or GPU resources.

2. Persistent Substrate Architecture (OmegaAcceleratorWorld)

The resident substrate resides in accelerator-accessible coherent memory and host memory on Grace Blackwell GB10 (128 GiB unified LPDDR5x RAM, sm_121):

+-----------------------------------------------------------------------------------+
|                           OmegaAcceleratorWorld                                   |
|                                                                                   |
|  +--------------------+  +--------------------+  +-----------------------------+  |
|  | RM Client & Device |  | VAS Virtual Space  |  | Persistent GPFIFO Channel   |  |
|  | - Client handle    |  | - Coherent aperture|  | - Channel group & GPFIFO ring|  |
|  | - Subdevice handle |  | - SMMUv3 mappings  |  | - USERD & Doorbell (+0x90)  |  |
|  +--------------------+  +--------------------+  +-----------------------------+  |
|                                                                                   |
|  +--------------------+  +--------------------+  +-----------------------------+  |
|  | Code Registry      |  | Buffer Registry    |  | Coherent Scratch Arena      |  |
|  | - Cached kernels   |  | - Persistent memory|  | - Zero-allocation scratch   |  |
|  | - Code digests     |  | - Generation tags  |  | - Dynamic sub-arenas        |  |
|  +--------------------+  +--------------------+  +-----------------------------+  |
|                                                                                   |
|  +--------------------+  +--------------------+  +-----------------------------+  |
|  | Semaphore Ring     |  | Monotonic Gen Id   |  | Rolling State Digest        |  |
|  | - WFI completions  |  | - Object lifetimes |  | - SHA-256 rolling execution |  |
|  | - State progression|  | - Invalidation     |  |   integrity trace           |  |
|  +--------------------+  +--------------------+  +-----------------------------+  |
+-----------------------------------------------------------------------------------+

Persistent Components Maintained Across Operations

The resident world maintains eleven persistent state components across continuous execution:

  1. RM Client & Root: A single persistent NVRM client (m16_native_open) initialized once and preserved across operations.
  2. GPU Device & Subdevice Objects: Established device object hierarchy bound to Grace Blackwell GB10 (sm_121).
  3. Virtual Address Space (VAS): A unified, coherent memory aperture avoiding per-operation virtual address space construction and teardown.
  4. Channel Group & GPFIFO Channel: A persistent compute channel with configured methods, work submission structures, and engine bindings.
  5. USERD & Hardware Doorbell Mapping: Direct MMIO aperture mapping for doorbell triggers (offset +0x90) held open across dispatches.
  6. Completion Mechanism & Semaphore Ring: Coherent memory semaphore tracking task completion markers (0x44444444) and monotonic completion counters.
  7. Code Registry: In-memory registry of compiled and verified sm_121 machine code artifacts (Vector Add, MatMul INT32, MatMul FP16, MatMul BF16) with deduplication by SHA-256 code digest.
  8. Buffer Registry: Registered persistent input/output tensors and scratch regions tracked with generation identifiers and memory bounds.
  9. Coherent Scratch Arena: Pre-allocated, reusable coherent memory buffer eliminating heap fragmentation and dynamic memory allocations on the hot dispatch path.
  10. Monotonic Generation Counter: Process-wide monotonic counter incremented on buffer allocation, reallocation, and revocation to invalidate dangling references.
  11. Rolling State Digest: Cryptographic SHA-256 hash chaining all dispatched operations, kernel digests, parameter hashes, and completion markers into an immutable execution trace.

3. Sustained Heterogeneous Execution & Queue Wraparound

Milestone 19 requires continuous execution across varied compute primitives to demonstrate true substrate residency rather than a single looped microbenchmark.

Heterogeneous Workload Specification

The resident substrate must execute continuous mixed workloads consisting of:

  1. Unsigned 32-bit Vector Addition (OMEGA_BLACKWELL_VECTOR, M17 semantic contract).
  2. Integer Matrix Multiplication (OMEGA_BLACKWELL_MATMUL INT32 intermediate contract).
  3. Tensor Core Matrix Multiplication FP16 (HMMA.16816.F32 with FP32 accumulation).
  4. Tensor Core Matrix Multiplication BF16 (HMMA.16816.F32.BF16 with FP32 accumulation).

Each operation runs dynamically through the persistent GPFIFO channel, referencing resident buffers or dynamically bound inputs, without tearing down or reconstructing the accelerator world.

Queue Wraparound Management Invariant

The GPFIFO submission channel uses a circular ring buffer of finite entries:

  1. As dispatches accumulate (reaching and exceeding 1,000 operations), the GPFIFO put/get indices wrap around the ring boundary modulo the ring capacity.
  2. The submission driver must advance the put index across the ring boundary without pipeline stalls, race conditions, or pushbuffer corruption.
  3. Completed entries must be acknowledged via semaphore progress before overwrite.

The 1,000-Operation Benchmark

Qualification requires continuous execution of at least 1,000 heterogeneous dispatches:


4. Capability Lifecycle, Invalidation, and Fault Recovery

Object Registration & Capability Tokens

When buffers or code modules are registered in OmegaAcceleratorWorld, the caller receives a capability handle:

$$\text{Handle} = \langle \text{handle_id}, \text{object_type}, \text{generation}, \text{base_addr}, \text{size_bytes}, \text{permissions} \rangle$$

Dispatch validation requires:

  1. $\text{generation}{\text{handle}} == \text{generation}{\text{current}}$
  2. Requested dispatch bounds fall strictly within $[\text{base_addr}, \text{base_addr} + \text{size_bytes})$.
  3. Operation requirements match granted permissions (read, write, execute).

Fail-Closed Stale Handle Refusal

If an operation references a handle whose generation does not match the active registry state (for example, after buffer reallocation or revocation), the dispatch path rejects the request immediately:

Fault Recovery Protocol

If an operation encounters an intentional or accidental fault (such as a timeout or illegal instruction injection):

  1. The fault is contained within the resident channel.
  2. The substrate executes an isolated channel reset and state resynchronization.
  3. The root RM client, GPU device, and VAS remain intact.
  4. Subsequent valid operations resume execution successfully.

5. Zero Foreign Userspace Runtime Verification

Strict execution invariant:

  1. ldd <binary>: Must show zero dynamic dependency on libcuda.so* or libcudart.so*.
  2. nm -u <binary>: Must show zero undefined symbols containing cu or cuda.
  3. /proc/self/maps: During persistent execution on DGX Spark, memory maps must confirm no loaded CUDA userspace drivers.

6. Qualification Gates & Cumulative Accounting

Milestone 19 qualification requires passing 18 Milestone 19 gates in addition to the 157 cumulative regression gates established through Milestone 18. Total evaluated gates: 175.

Milestone 19 Qualification Gates


7. Deliverables & Acceptance Criteria

  1. Architecture & Specification: Canonical specification docs/milestone-19-spec.md ratified in aien-spark/aien-architecture.
  2. Substrate Implementation: Complete OmegaAcceleratorWorld implementation in aien-spark/omega.
  3. Silicon Proof: Physical execution receipts recorded on NVIDIA DGX Spark (Grace Blackwell GB10, sm_121).
  4. Zero-Libcuda Audit: Verification receipts confirming zero proprietary userspace CUDA runtime linkage or symbols.
  5. Cortex Memory Commit: Milestone qualification receipt committed to Spark Cortex space atlas-memory.