aien-architecture-mv
Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.
Brought by drakestapleton
aien-architecture-mv / docs / m19r-recovery-program.md
| 1 | # AIEN Engineering Recovery Program: M19R Baseline Stabilization through Foundation-Trust Admission |
| 2 | |
| 3 | Status: RATIFIED (operator directive 2026-09-27), revised per critique 2026-09-27 |
| 4 | Date: 2026-09-27 |
| 5 | Authority: Operator Directive (Drake Stapleton) |
| 6 | Scope: Stop-the-line cleanup of M19 defects and staged admission program prior to M20 training stack development. |
| 7 | |
| 8 | --- |
| 9 | |
| 10 | ## 1. Executive Directive and Sequencing |
| 11 | |
| 12 | The engineering assessment of 2026-09-27 confirmed that while M19 demonstrated core Blackwell GPFIFO execution on DGX Spark GB10 silicon, critical defects exist beneath the M19 surface: |
| 13 | 1. Qualification receipts assert rather than observe counts, hardware strings, and commit identities. |
| 14 | 2. Rerunning regression suites overwrites historical milestone evidence in place. |
| 15 | 3. GPU device memory allocations lack a deallocation path (`nvrm_free` missing), leaking memory and virtual address space on buffer revocation. |
| 16 | 4. Completion markers rely on CPU marker resets and equality tests, enabling race conditions and double-commit vulnerabilities. |
| 17 | 5. The Blackwell IR lacks floating-point SIMT instructions, restricting matrix operations to a single fixed K=16 tile width. |
| 18 | 6. The synthesis candidate search space is capped at depth 3 and 512 candidates, providing insufficient volume for learned policy training. |
| 19 | |
| 20 | Building further training-stack milestones on top of this unverified substrate violates sound engineering doctrine. Work on the training stack (tensors onward) is gated behind repair of the foundation. |
| 21 | |
| 22 | ### Two Prime Objectives |
| 23 | |
| 24 | 1. Make the existing M19 foundation trustworthy. |
| 25 | 2. Build the training stack on top of that trustworthy foundation, one independently-qualified milestone at a time. |
| 26 | |
| 27 | ### Doctrine (per ADR 0014, accepted 2026-09-27 — FORGE realizes; historical PHYSICS identifiers unchanged) |
| 28 | |
| 29 | ``` |
| 30 | ATLAS AWAKENS. |
| 31 | AIEN PROPOSES. |
| 32 | OMEGA DEFINES. |
| 33 | FORGE REALIZES. |
| 34 | AEGIS VERIFIES. |
| 35 | HARDWARE ACTS. |
| 36 | EVIDENCE TEACHES. |
| 37 | ``` |
| 38 | |
| 39 | ### Master Linear Progression |
| 40 | |
| 41 | ``` |
| 42 | M19 |
| 43 | ↓ |
| 44 | M19R prove the evidence is truthful |
| 45 | ↓ |
| 46 | FORGE-0 FORGE realize / AEGIS verify seam + hardware probe |
| 47 | ↓ |
| 48 | NUMERIC make general numerical computation real (FP32 substrate) |
| 49 | ↓ |
| 50 | ------------------------- Combined Foundation Admission Gate (Gate 14) ------------------------- |
| 51 | ↓ |
| 52 | M20 TENSORS make differentiable state representable (own gate, own receipt) |
| 53 | ↓ |
| 54 | M21 AUTODIFF generate learning computation (own gate, own receipt) |
| 55 | ↓ |
| 56 | M22 OPTIMIZER make learning atomic (own gate, own receipt) |
| 57 | ↓ |
| 58 | M23 SEARCH-GUIDE TRAIN actually learn something, guided by search (own gate, own receipt) |
| 59 | ↓ |
| 60 | M24 AIEN_0 + HOLDOUT prove that it learned, on a sealed holdout (own gate, own receipt) |
| 61 | ``` |
| 62 | |
| 63 | **Decision A (operator, 2026-09-27):** the Combined M20 Admission Gate (Gate 14) covers ONLY the foundation gates: evidence (Gate 1), runtime lifecycle (Gate 2), realize/verify seam (Gates 3-4), and the FP32 substrate (Gate 5). Tensors, autodiff, optimizer, search-guided training, and AIEN_0 + holdout are separately qualified milestones — M20 (tensor), M21 (autodiff), M22 (optimizer), M23 (search-guide training), M24 (AIEN_0 + sealed holdout) — each closed by its own gate and its own receipt, not folded into Gate 14. Gate 14 passing means the foundation may be built on; it does not mean M20-M24 are done. |
| 64 | |
| 65 | **Decision B (operator, 2026-09-27, superseding the earlier "PHYSICS keeps its name" decision):** ADR 0014 is accepted. The machine realization subsystem is renamed **FORGE** ("ATLAS AWAKENS. AIEN PROPOSES. OMEGA DEFINES. FORGE REALIZES. AEGIS VERIFIES. HARDWARE ACTS. EVIDENCE TEACHES."). This is not a history rewrite, per ADR 0014's historical compatibility rule: existing milestone identifiers (`PHYSICS_BOOT`, `PHYSICS_EFFECTS`, `PHYSICS_ACCELERATOR_LINK`), the `aien-spark/physics` repository name, existing evidence files, and any field serialized into historical fingerprints (`is_physics_authorized`, serialized at `omega/src/omega_machine.c:96`) are NOT renamed — removing or renaming `is_physics_authorized` would change historical realization IDs. New code, APIs, gates, and receipts use FORGE naming (`ForgeMachineDescriptor`, `forge_realization`, `forge_receipt`) going forward. The realize/verify seam is built under the FORGE/AEGIS names, as new code, alongside the existing (frozen) M15 authority vocabulary. |
| 66 | |
| 67 | **Decision C (operator, 2026-09-27):** the mandatory dual-push-to-forgejo rule is dropped until a forgejo server/remote actually exists. No `forgejo` remote exists in any checkout today. GitHub `origin` is the only required remote for now (see §5). |
| 68 | |
| 69 | --- |
| 70 | |
| 71 | ## 2. Immediate Five-Lane Parallelization Architecture |
| 72 | |
| 73 | Five execution lanes proceed immediately in parallel. **These lanes do not share zero architectural state** — Lane A and Lane B both touch `omega/src/omega_world_gates.c` (evidence emission vs. runtime lifecycle), and Lane C's probe work reads structures Lane B and Lane D also touch. The isolation guarantee that actually holds is narrower: each lane owns a distinct *addition surface* and none of them renames or deletes another lane's files without an explicit merge-order agreement (see file-level overlap notes below). |
| 74 | |
| 75 | ``` |
| 76 | +-----------------------------------------------------------------------------+ |
| 77 | | Lane A: Evidence and Immutable Qualification (M19R) | |
| 78 | | Repo: omega (evidence/, src/omega_world_gates.c) | |
| 79 | | Target: Hash-addressed immutable receipts, derived execution metrics | |
| 80 | +-----------------------------------------------------------------------------+ |
| 81 | | Lane B: GPU Allocation/Free and Monotonic Completion (M19R-RUNTIME) | |
| 82 | | Repos: physics (nvrm/, m16/), omega (src/omega_accelerator_world.c, | |
| 83 | | src/omega_world_gates.c exit-criteria hooks) | |
| 84 | | Target: nvrm_free, memory revocation, monotonic tickets, single-commit FSM | |
| 85 | +-----------------------------------------------------------------------------+ |
| 86 | | Lane C: FORGE realize/AEGIS verify seam + hardware probe (FORGE-0, FORGE-HWID) | |
| 87 | | Repos: physics, omega, aien-architecture | |
| 88 | | Target: typed FORGE/AEGIS seam, ForgeMachineDescriptor, raw hardware | |
| 89 | | observation probe. NEW FILES ONLY — no renames of existing | |
| 90 | | PHYSICS/OMEGA files, the `physics` repository name, or any | |
| 91 | | historical PHYSICS_* identifier; historical M15/M16/M19 names and | |
| 92 | | evidence paths are untouched. | |
| 93 | +-----------------------------------------------------------------------------+ |
| 94 | | Lane D: FP32 GB10 and Omega Instruction Substrate (OMEGA-NUMERIC-0) | |
| 95 | | Repo: omega (src/omega_blackwell_codegen.*, src/omega_blackwell_encoder.*) | |
| 96 | | Target: Blackwell SIMT FP32 opcodes, Omega exp/log, CPU-GB10 bit parity | |
| 97 | +-----------------------------------------------------------------------------+ |
| 98 | | Lane E: Instrumented Search Module (OMEGA-SYNTHESIS-1) | |
| 99 | | Repo: omega — NEW module: src/search/ | |
| 100 | | Target: Candidate exploration telemetry, search expansion, ranker hook. | |
| 101 | | MUST NOT edit src/omega_synthesis.* or src/omega_discovery.* — | |
| 102 | | the M9-M11 gates depend on those files as-is; Lane E is additive. | |
| 103 | +-----------------------------------------------------------------------------+ |
| 104 | ``` |
| 105 | |
| 106 | ### File-level overlap notes (correction to the "zero shared state" claim) |
| 107 | |
| 108 | - `omega/src/omega_world_gates.c` is written by both Lane A (receipt/evidence emission) and Lane B (new exit-criteria checks for the runtime FSM). Lane A's receipt-schema changes must land first (see dependency fix below); Lane B rebases onto it rather than merging in parallel. |
| 109 | - Lane C reads (but must not rename) symbols Lane B and Lane D also touch in `omega_accelerator_world.*` and the Blackwell codegen headers; Lane C's probe and descriptor code lives in new files and only *references* those symbols. |
| 110 | - Lane E is fully additive (`src/search/` is new) and has no file-level overlap with any other lane, by construction. |
| 111 | |
| 112 | --- |
| 113 | |
| 114 | ## 3. Phased Gate Specifications |
| 115 | |
| 116 | ### Gate 1: M19R - Repair the Qualified Baseline |
| 117 | |
| 118 | Objective: Freeze current evidence and establish an immutable, observation-derived qualification lineage. |
| 119 | |
| 120 | 1. Freeze existing M18 and M19 receipts as read-only historical records. Qualification scripts must never overwrite existing files. **Existing evidence file paths and filenames are not moved or renamed** — docs (including `aien-architecture/docs/milestone-19-spec.md`) and Cortex records reference these exact paths. |
| 121 | 2. Establish the `M19_REPAIR_BASELINE` qualification lineage. New runs are written to new, immutable run directories; nothing already committed under `evidence/M18/` or `evidence/M19/` is edited in place. |
| 122 | 3. Restructure evidence storage (for new runs going forward) to hash-addressed immutable receipts: |
| 123 | ``` |
| 124 | evidence/ |
| 125 | M18/ |
| 126 | <receipt-digest>.json |
| 127 | M19/ |
| 128 | <receipt-digest>.json |
| 129 | M19R/ |
| 130 | <receipt-digest>.json |
| 131 | ``` |
| 132 | 4. Derive all receipt fields strictly from observed execution: |
| 133 | - Source git commit SHA — **the receipt binds the frozen CANDIDATE commit under qualification, never whatever HEAD the rerun happens to execute at.** (Observed failure mode, 2026-09-27: a regression rerun at the merge commit rebound M19's `candidate_git_commit` from `beaa118` to `ae2476d`, silently falsifying the qualification record. This must be structurally impossible: the qualification harness takes the candidate commit as an input parameter, not a runtime `git rev-parse HEAD`.) |
| 134 | - Working tree dirty/clean state |
| 135 | - Candidate binary digest (SHA-256) |
| 136 | - Test manifest digest |
| 137 | - Array of test identifiers actually executed |
| 138 | - Pass and fail counts actually observed (zero fixed constants like "157" or "175"; see §6, derived cumulative regression counts) |
| 139 | - Hardware probe digest |
| 140 | - Realization and runtime identity |
| 141 | - Predecessor qualification digest |
| 142 | - Timestamp and run identity |
| 143 | - Overall receipt digest |
| 144 | 5. **Evidence is committed separately from code.** Regenerating or adding evidence happens in a dedicated evidence-only commit, never mixed into a commit that also changes source, so evidence provenance can be audited independently of implementation changes. |
| 145 | 6. Exit Gate: |
| 146 | ``` |
| 147 | RECEIPT_COUNTS_DERIVED PASS |
| 148 | HISTORICAL_RECEIPTS_IMMUTABLE PASS |
| 149 | CLEAN_RERUN_REPRODUCIBLE PASS |
| 150 | CANDIDATE_COMMIT_BOUND_NOT_HEAD PASS |
| 151 | EVIDENCE_COMMIT_SEPARATE PASS |
| 152 | M19R_EVIDENCE PASS |
| 153 | ``` |
| 154 | |
| 155 | **Owner:** Lane A (omega repo, evidence/ + omega_world_gates.c). |
| 156 | **Boundary:** May add new evidence files and new receipt-schema fields; must not edit, move, or rename any existing evidence file under `evidence/M4/` … `evidence/M19/`. |
| 157 | **Failure behavior:** Any attempted overwrite of an existing evidence file, or any receipt whose `candidate_git_commit` does not match the harness-supplied candidate parameter, fails the gate closed — no receipt is emitted. |
| 158 | **Evidence:** `evidence/M19R/<receipt-digest>.json`, plus the evidence-only commit SHA recorded in the ratification PR. |
| 159 | |
| 160 | --- |
| 161 | |
| 162 | ### Gate 2: M19R-RUNTIME - Fix Correctness Defects Hidden by Current Gates |
| 163 | |
| 164 | Objective: Eliminate physical GPU memory leaks and establish deterministic, monotonic completion semantics. |
| 165 | |
| 166 | 1. GPU Resource Lifecycle: |
| 167 | - Introduce an explicit `nvrm_free` API in `physics/nvrm/nvrm.c` that issues `NVOS00_CTRL_CMD_FREE` / `NV_ESC_RM_FREE` to release allocation handles and physical device memory. |
| 168 | - Update `omega_world_revoke_buffer` to transition slots to `RETIRING`, await retirement of all referencing in-flight dispatches, and invoke `nvrm_free`. |
| 169 | - Measure actual GPU device allocation state via driver queries and VMM inspection, not merely process RSS. |
| 170 | - Verify repeated allocate, use, revoke loops without virtual address or physical memory creep. |
| 171 | 2. Monotonic Completion and State Machine: |
| 172 | - Replace exact-value completion markers (`*marker == expected`) with monotonic ticket comparisons (`*marker >= expected`). |
| 173 | - Eliminate CPU-side marker resets during active operation. |
| 174 | - Enforce a strict per-dispatch state machine: |
| 175 | ``` |
| 176 | Created -> Submitted -> InFlight -> Completed -> Committed |
| 177 | ``` |
| 178 | - Transitions are strictly forward. `Committed` is reachable exactly once. |
| 179 | - Test the core invariant: one dispatch yields zero or one failure result, exactly one terminal state, and never two commits. |
| 180 | 3. Adversarial Test Matrix (there are no hardware interrupts in this path — completion is detected by the runtime polling a memory completion marker; the adversarial cases below are stated in those terms): |
| 181 | - **Duplicate marker observation**: the runtime polls the same completed marker value more than once across poll cycles and must commit exactly once, not once per observation. |
| 182 | - **Skipped marker value**: the polled marker jumps past the expected ticket value (e.g. a batched dispatch completes out of the polled sequence) without the intermediate value ever being observed. |
| 183 | - **Stale marker value**: the runtime reads a marker value left over from a prior generation/epoch (e.g. after a slot reuse) and must reject it rather than treat it as current completion. |
| 184 | - Timeout racing completion (poll times out in the same window the marker actually flips). |
| 185 | - Error arriving after success status. |
| 186 | - Teardown and recovery during active in-flight execution. |
| 187 | 4. Exit Gate: |
| 188 | ``` |
| 189 | DEVICE_ALLOCATION_BALANCE PASS |
| 190 | REVOKE_RELEASES_DEVICE_MEMORY PASS |
| 191 | COMPLETION_MONOTONIC PASS |
| 192 | DISPATCH_COMMIT_EXACTLY_ONCE PASS |
| 193 | FAILURE_CLEANUP PASS |
| 194 | LONG_SOAK_NO_DEVICE_LEAK PASS |
| 195 | ``` |
| 196 | - **LONG_SOAK_NO_DEVICE_LEAK definition:** a soak run of ≥ 1 hour OR ≥ 100,000 allocate/use/revoke cycles (whichever is reached first is sufficient, both are attempted), with total bytes churned through the allocator > 2× physical device memory over the run, and **zero growth** in driver handle count and VA high-water mark measured at the start and end of the run (not merely "no crash"). |
| 197 | |
| 198 | **Owner:** Lane B (physics nvrm/m16 + omega_accelerator_world.c). |
| 199 | **Boundary:** May add `nvrm_free` and modify the revoke path and completion/state-machine code; must not modify Lane A's receipt-schema fields directly — new exit-criteria fields are proposed to Lane A and merged after Gate 1 lands (see dependency fix below). |
| 200 | **Failure behavior:** Any double-commit, any non-monotonic marker acceptance, or any measured handle/VA growth over the soak window latches a FAULTED state; only explicit `recover`/`rebuild` clears it, and the gate does not pass while latched. |
| 201 | **Evidence:** `evidence/M19R-RUNTIME/<receipt-digest>.json`, including raw driver handle-count/VA samples at soak start and end. |
| 202 | |
| 203 | --- |
| 204 | |
| 205 | ### Gate 3: FORGE-0 - FORGE realize / AEGIS verify seam |
| 206 | |
| 207 | Note (ADR 0016 Amendment 1, 2026-10-02): this is the hardware realization seam. FORGE is not a stage of accepting a reaction result; that chain is World -> J-Space -> compose.verify -> commit -> Cortex. |
| 208 | |
| 209 | Objective: Formally establish the typed FORGE-realize / AEGIS-verify seam and eliminate obsolete authorization concepts that are not doctrine, without touching what is already correct doctrine. |
| 210 | |
| 211 | 1. Architectural Alignment (per ADR 0013 clause 5 — see §1 doctrine block). No renaming of PHYSICS or its historical vocabulary. |
| 212 | 2. Vocabulary additions (new code, additive — nothing existing is renamed): |
| 213 | - `ForgeMachineDescriptor` |
| 214 | - `forge_realization` |
| 215 | - `forge_receipt` |
| 216 | - `verified_realization` |
| 217 | - `aegis_verification` |
| 218 | - **`is_physics_authorized` is kept as-is** — it is serialized into machine-graph fingerprints (`omega/src/omega_machine.c:96`); removing or renaming it would change historical realization IDs and invalidate every prior fingerprint. It is documented, not deleted. Historical identifiers `PHYSICS_BOOT`, `PHYSICS_EFFECTS`, and `PHYSICS_ACCELERATOR_LINK`, and the `aien-spark/physics` repository name, are likewise not renamed (ADR 0014 historical compatibility rule). |
| 219 | - Historical M15/M16/M19 evidence files and their field names are preserved verbatim. |
| 220 | 3. Typed Seam: |
| 221 | - Enforce an explicit boundary between Omega and FORGE: |
| 222 | ``` |
| 223 | Omega Realization Request |
| 224 | ↓ |
| 225 | Forge Machine Descriptor |
| 226 | ↓ |
| 227 | Forge lowering |
| 228 | ↓ |
| 229 | AEGIS verification |
| 230 | ↓ |
| 231 | Hardware submission |
| 232 | ↓ |
| 233 | Forge execution evidence |
| 234 | ``` |
| 235 | 4. Exit Gate: |
| 236 | ``` |
| 237 | FORGE_TYPED_BOUNDARY_ENFORCED PASS |
| 238 | FORGE_REALIZE_API_NAMED PASS |
| 239 | AEGIS_VERIFY_API_NAMED PASS |
| 240 | HISTORICAL_NAMES_PRESERVED PASS |
| 241 | NO_EXISTING_FILE_RENAMED PASS |
| 242 | ``` |
| 243 | |
| 244 | **Owner:** Lane C (physics + omega + aien-architecture). |
| 245 | **Boundary:** New files/symbols only (`forge_realization.*`, `aegis_verification.*`, `ForgeMachineDescriptor`); must not rename, move, or delete any existing PHYSICS/OMEGA file, symbol, or evidence field, must not rename the `physics` repository, and must not remove `is_physics_authorized`. |
| 246 | **Failure behavior:** Any diff that renames or deletes an existing symbol/file referenced by a historical receipt fails the gate; the PR is rejected at review, not just at CI. |
| 247 | **Evidence:** `evidence/FORGE-0/<receipt-digest>.json`, plus a diff-scope check recorded in the PR showing zero renames/deletions of pre-existing files. |
| 248 | |
| 249 | --- |
| 250 | |
| 251 | ### Gate 4: FORGE-HWID - Make Hardware Claims Observational |
| 252 | |
| 253 | Objective: Bind qualification evidence to physical hardware facts measured at runtime. |
| 254 | |
| 255 | 1. Canonical Machine and Hardware Probe: |
| 256 | - Create a single hardware probe module. Receipts consume its structured output; receipts never accept hardcoded hardware strings. |
| 257 | - Probe captures: |
| 258 | - PCI vendor, device, and subsystem IDs |
| 259 | - Driver reported compute class (`0xCEC0` for Blackwell GB10) |
| 260 | - RM SM version (`0x0A04` for SM 10.04) |
| 261 | - Driver and firmware version strings |
| 262 | - Physical and unified memory topology |
| 263 | - Hardware realization features supported |
| 264 | - Compute a SHA-256 digest over the canonical descriptor (`ForgeMachineDescriptor`). |
| 265 | 2. Derived Labels: |
| 266 | - Treat semantic labels such as `"sm_121"` as derived aliases linked to the underlying `(compute_class, rm_sm_version)` measurement, per errata E-M19-10. |
| 267 | 3. Exit Gate: |
| 268 | ``` |
| 269 | RAW_HARDWARE_PROBE_CAPTURED PASS |
| 270 | FORGE_DESCRIPTOR_NORMALIZED PASS |
| 271 | DESCRIPTOR_DIGEST_BOUND PASS |
| 272 | RECEIPT_HARDWARE_DERIVED PASS |
| 273 | ``` |
| 274 | |
| 275 | **Owner:** Lane C. |
| 276 | **Boundary:** New probe module only; reads driver/RM state, writes nothing to existing receipt generators except through the new structured descriptor type. |
| 277 | **Failure behavior:** A receipt containing a hardware string not traceable to a probe digest fails the gate. |
| 278 | **Evidence:** `evidence/FORGE-HWID/<receipt-digest>.json`, containing the raw probe output and its SHA-256. |
| 279 | |
| 280 | --- |
| 281 | |
| 282 | ### Gate 5: OMEGA-NUMERIC-0 - FP32 Blackwell Machine Vocabulary |
| 283 | |
| 284 | Objective: Construct and qualify a complete floating-point machine instruction set on GB10 before tensor operations. |
| 285 | |
| 286 | 1. SIMT FP32 Instruction Realization: |
| 287 | - Implement codegen and encoder support for Blackwell FP32 instructions: |
| 288 | - Load and store (global and shared memory) |
| 289 | - `FADD`, `FSUB`, `FMUL` |
| 290 | - `FFMA` (fused multiply-add) |
| 291 | - `FSETP` (floating-point compare and predicate set) |
| 292 | - `FMNMX` (minimum and maximum) |
| 293 | - `MUFU` (multi-function unit: reciprocal, reciprocal square root) — **MUFU is allowed only as a seed input to a correctly-rounded division/square-root sequence (e.g. a Newton-Raphson refinement step defined by Omega); the raw MUFU output is never compared bit-exactly as a final result**, since its rounding behavior is not fully documented. |
| 294 | - Conversion operations (`CVT` between integer and FP32) |
| 295 | - Reduction primitives across warps — **warp reductions are qualified only under a declared, fixed summation order** (e.g. a specified pairwise-tree order); floating-point addition is not associative, so an unordered/hardware-scheduled reduction order is not bit-parity qualifiable and is out of scope here. |
| 296 | 2. Transcendental Operations: |
| 297 | - Implement Omega-defined polynomial approximation sequences for `exp` and `log`. |
| 298 | - Zero dependence on host or vendor math runtime libraries (`libm`, CUDA math libraries). |
| 299 | 3. Three-Tier Parity Verification: |
| 300 | ``` |
| 301 | Semantic Reference == CPU Realization == GB10 Realization |
| 302 | ``` |
| 303 | 4. Edge Class Coverage: |
| 304 | - Positive and negative zero (`+0.0`, `-0.0`) |
| 305 | - Positive and negative infinity (`+inf`, `-inf`) |
| 306 | - Quiet and signaling NaNs |
| 307 | - **Subnormals are preserved bit-exactly — flush-to-zero is explicitly rejected as a semantics.** (Gate 5's original text asked for both "subnormal representation" and "flush-to-zero semantics" verification, which are contradictory; this resolves it: subnormals must round-trip, FTZ behavior is a failure if observed.) |
| 308 | - Exponent boundaries and overflow/underflow handling |
| 309 | - Exhaustive deterministic pseudo-random vectors |
| 310 | 5. Mixed precision (FP16, BF16, FP8) is barred until FP32 bit-parity is verified on silicon. |
| 311 | 6. Exit Gate: |
| 312 | ``` |
| 313 | FP32_SIMT_OPCODES_ENCODED PASS |
| 314 | OMEGA_MATH_SEQUENCES_QUALIFIED PASS |
| 315 | CPU_GB10_BIT_PARITY PASS |
| 316 | SUBNORMALS_PRESERVED_NO_FTZ PASS |
| 317 | MUFU_SEED_ONLY_NOT_COMPARED PASS |
| 318 | WARP_REDUCTION_ORDER_DECLARED PASS |
| 319 | EDGE_CLASS_BEHAVIOR_VERIFIED PASS |
| 320 | ``` |
| 321 | |
| 322 | **Owner:** Lane D (omega Blackwell codegen/encoder). |
| 323 | **Boundary:** `src/omega_blackwell_codegen.*`, `src/omega_blackwell_encoder.*`; does not touch tensor, autodiff, or search code. |
| 324 | **Failure behavior:** Any FTZ observation, any bit-exact comparison against a raw MUFU result, or any warp reduction without a declared fixed order fails the gate; mixed-precision code paths are rejected at review if introduced before this gate passes. |
| 325 | **Evidence:** `evidence/OMEGA-NUMERIC-0/<receipt-digest>.json`, including the three-tier parity trace per opcode and edge class. |
| 326 | |
| 327 | --- |
| 328 | |
| 329 | ### Combined Foundation Admission Gate (Gate 14 — scope narrowed per Decision A, 2026-09-27) |
| 330 | |
| 331 | Before M20 (tensors) may begin drawing on GPU-side runtime or FP32 substrate work, the **foundation** — Gates 1 through 5 only — must satisfy: |
| 332 | |
| 333 | ``` |
| 334 | [ ] EVIDENCE_IMMUTABLE PASS (Gate 1) |
| 335 | [ ] RECEIPTS_OBSERVED_NOT_ASSERTED PASS (Gate 1) |
| 336 | [ ] DEVICE_MEMORY_LIFECYCLE PASS (Gate 2) |
| 337 | [ ] COMPLETION_EXACTLY_ONCE PASS (Gate 2) |
| 338 | [ ] LONG_RUNNING_GPU_SOAK PASS (Gate 2) |
| 339 | [ ] FORGE_BOUNDARY PASS (Gate 3) |
| 340 | [ ] HARDWARE_ID_OBSERVED PASS (Gate 4) |
| 341 | [ ] FP32_CPU_GB10_PARITY PASS (Gate 5) |
| 342 | ``` |
| 343 | |
| 344 | This gate does **not** include tensor, autodiff, optimizer, training, or holdout criteria. Those live in the milestone gates below (M20-M24), each independently qualified with its own receipt. Passing this gate means: the substrate is trustworthy enough to build GPU-side tensor/training work on. It does not mean any training-stack milestone is complete. |
| 345 | |
| 346 | **Owner:** Program-level (all four foundation lanes jointly). |
| 347 | **Boundary:** Read-only aggregation of Gates 1-5 receipts; produces no new implementation, only a combined receipt referencing the four. |
| 348 | **Failure behavior:** If any of the eight criteria is not PASS, GPU-side M20+ work does not open (CPU-side work may still proceed — see dependency fix below). |
| 349 | **Evidence:** `evidence/GATE14-FOUNDATION/<receipt-digest>.json`, referencing the four constituent receipt digests. |
| 350 | |
| 351 | --- |
| 352 | |
| 353 | ## 3a. Milestone Gates M20-M24 (separately qualified; each has its own gate and receipt) |
| 354 | |
| 355 | ### Gate 6: OMEGA-TENSOR-0 - Immutable Semantic Tensors — Milestone M20 |
| 356 | |
| 357 | Objective: Define immutable tensor values and generation-tracked storage representations. |
| 358 | |
| 359 | 1. Semantic Layer: |
| 360 | ``` |
| 361 | Tensor = immutable value |
| 362 | ``` |
| 363 | Zero semantic in-place mutation. Every transformation produces a new tensor value. |
| 364 | 2. Realization Layer: |
| 365 | ``` |
| 366 | TensorValue -> TensorView -> StorageId + Generation |
| 367 | ``` |
| 368 | - Physical storage recycling requires incrementing the storage generation counter. |
| 369 | - Access via an outdated `TensorView` referencing an older generation fails deterministically. |
| 370 | 3. Initial Primitive Set: |
| 371 | - `create` |
| 372 | - `reshape` / `view` |
| 373 | - `elementwise` arithmetic (`add`, `sub`, `mul`, `div`) |
| 374 | - `matmul` (fixed-tile path only — see Gate 7, deferred) |
| 375 | - `reduction` (`sum`, `mean`, `max`) |
| 376 | - `broadcast` |
| 377 | - `transpose` |
| 378 | - `compare_select` |
| 379 | 4. Graph Construction Invariant: |
| 380 | - Entire computation graph must be constructed and validated prior to execution dispatch. Zero eager partial execution during graph building. |
| 381 | 5. Exit Gate: |
| 382 | ``` |
| 383 | TENSOR_VALUE_IMMUTABLE PASS |
| 384 | STORAGE_GENERATION_ABA_SAFE PASS |
| 385 | PRIMITIVE_OPERATIONS_VERIFIED PASS |
| 386 | GRAPH_AOT_VALIDATION PASS |
| 387 | ``` |
| 388 | |
| 389 | **Owner:** Training-stack lane (omega), post-foundation. |
| 390 | **Boundary:** New tensor module; CPU-side realization may start without waiting on Lanes B/D (dependency fix, §4); GPU-side tensor kernels require Gate 14 (foundation) to have passed. |
| 391 | **Failure behavior:** Any successful mutation of a `TensorValue`, or any read through a stale `TensorView` that doesn't fail deterministically, fails the gate. |
| 392 | **Evidence:** `evidence/M20-TENSOR/<receipt-digest>.json` — this is M20's own qualification receipt, independent of Gate 14. |
| 393 | |
| 394 | --- |
| 395 | |
| 396 | ### Gate 8: OMEGA-AUTODIFF-0 - Omega-Producing Differentiation — Milestone M21 |
| 397 | |
| 398 | Objective: Generate backward computation graphs as first-class Omega programs without a separate runtime. |
| 399 | |
| 400 | 1. Pure Symbolic Differentiation: |
| 401 | ``` |
| 402 | Omega Forward Graph -> Differentiator -> Omega Backward Graph |
| 403 | ``` |
| 404 | - Derivative generation uses symbolic differentiation rules over Omega primitives. |
| 405 | - The resulting backward graph is submitted to FORGE, verified by AEGIS, and realized through the identical hardware execution pipeline. (Hardware realization path only; ADR 0016 Amendment 1.) |
| 406 | - Core Invariant: Training computation is standard Omega computation. |
| 407 | 2. Numerical Verification: |
| 408 | - Compare analytical gradients against double-precision finite differences on small graphs. |
| 409 | - Verify trivial analytic targets: identity, linear combination, quadratic bowl, cross-entropy loss. |
| 410 | 3. Exit Gate: |
| 411 | ``` |
| 412 | SYMBOLIC_BACKWARD_GENERATED PASS |
| 413 | BACKWARD_IS_STANDARD_OMEGA PASS |
| 414 | FINITE_DIFFERENCE_MATCH PASS |
| 415 | ANALYTIC_ORACLE_MATCH PASS |
| 416 | ``` |
| 417 | |
| 418 | **Owner:** Training-stack lane. CPU-side symbolic differentiation and the finite-difference oracle may start without waiting on Lanes B/D (dependency fix, §4); silicon realization of the backward graph requires Gate 14. |
| 419 | **Boundary:** New autodiff module, consumes M20's tensor graph; does not modify Gate 6 primitives. |
| 420 | **Failure behavior:** Any analytic/finite-difference mismatch beyond a pre-declared tolerance fails the gate. |
| 421 | **Evidence:** `evidence/M21-AUTODIFF/<receipt-digest>.json`. |
| 422 | |
| 423 | --- |
| 424 | |
| 425 | ### Gate 9: OMEGA-OPT-0 - Transactional Optimizer State — Milestone M22 (part 1) |
| 426 | |
| 427 | Objective: Implement atomic parameter updates using isolated shadow state generations. |
| 428 | |
| 429 | 1. Transactional Update Cycle: |
| 430 | ``` |
| 431 | ParameterGeneration N |
| 432 | ↓ |
| 433 | Create shadow generation N+1 |
| 434 | ↓ |
| 435 | Forward pass |
| 436 | ↓ |
| 437 | Backward pass |
| 438 | ↓ |
| 439 | Optimizer writes to shadow state N+1 |
| 440 | ↓ |
| 441 | Validation and invariant checks |
| 442 | ↓ |
| 443 | Record commit receipt |
| 444 | ↓ |
| 445 | Atomic generation switch (N -> N+1) |
| 446 | ``` |
| 447 | 2. Failure Invariant: |
| 448 | - Any failure or aborted check prior to the atomic switch leaves generation N intact. |
| 449 | - State is either fully OLD or fully NEW; partial updates are structurally impossible. |
| 450 | 3. Injected Fault Testing: |
| 451 | - Inject deliberate faults at every phase boundary: pre-forward, post-forward, mid-backward, post-backward, mid-optimizer-write, pre-commit. |
| 452 | - Verify that generation N parameters remain uncorrupted after every injected fault. |
| 453 | 4. Exit Gate: |
| 454 | ``` |
| 455 | TRANSACTIONAL_SHADOW_UPDATE PASS |
| 456 | ATOMIC_GENERATION_SWITCH PASS |
| 457 | FAULT_INJECTION_STABILITY PASS |
| 458 | ZERO_PARTIAL_UPDATE PASS |
| 459 | ``` |
| 460 | |
| 461 | **Owner:** Training-stack lane. |
| 462 | **Boundary:** New optimizer module, consumes M21's backward graph and M20's tensors; requires Gate 14. |
| 463 | **Failure behavior:** Any observed partial-update state after an injected fault fails the gate. |
| 464 | **Evidence:** `evidence/M22-OPTIMIZER/<receipt-digest>.json`. |
| 465 | |
| 466 | --- |
| 467 | |
| 468 | ### Gate 10: TRAINING-PROVENANCE-0 - Two-Tier Provenance Architecture — Milestone M22 (part 2) |
| 469 | |
| 470 | Objective: Provide cryptographic execution and state traceability without excessive hashing overhead. |
| 471 | |
| 472 | 1. Tier 1: Per-Launch Execution Provenance |
| 473 | - Captured per kernel dispatch: |
| 474 | - Operation identity |
| 475 | - Input and output object identifiers |
| 476 | - Realization identifier |
| 477 | - Tensor shapes and memory layouts |
| 478 | - Forge machine descriptor digest |
| 479 | - Monotonic dispatch sequence ticket |
| 480 | - Execution status and completion code |
| 481 | 2. Tier 2: Per-Commit State Provenance |
| 482 | - Captured at committed optimizer step boundaries: |
| 483 | - Complete parameter state digest |
| 484 | - Complete optimizer state digest |
| 485 | - Predecessor generation index and digest |
| 486 | - Resulting generation index and digest |
| 487 | - Training batch reference and dataset offset |
| 488 | - Loss and evaluation metric state |
| 489 | 3. Invariant: Execution provenance verifies kernel dispatch; state provenance verifies model evolution. |
| 490 | 4. Exit Gate: |
| 491 | ``` |
| 492 | EXECUTION_PROVENANCE_CAPTURED PASS |
| 493 | STATE_PROVENANCE_COMMITTED PASS |
| 494 | HASH_OVERHEAD_BOUNDED PASS |
| 495 | ``` |
| 496 | - **HASH_OVERHEAD_BOUNDED definition:** provenance hashing (both tiers combined) adds ≤ 5% to measured wall-clock step time, averaged over a representative training step count (≥ 1,000 steps), measured with hashing on vs. off on the same hardware and batch configuration. |
| 497 | |
| 498 | **Owner:** Training-stack lane. |
| 499 | **Boundary:** Instruments Gate 9's commit path and Gate 6/8 dispatch path; does not change their semantics. |
| 500 | **Failure behavior:** Overhead > 5% fails the gate; provenance is then optimized (e.g. incremental hashing) before re-attempting, not disabled. |
| 501 | **Evidence:** `evidence/M22-PROVENANCE/<receipt-digest>.json`, including the on/off timing comparison. |
| 502 | |
| 503 | --- |
| 504 | |
| 505 | ### Gate 13: OMEGA-SYNTHESIS-1 - Expanded Instrumented Search Module — prerequisite for M23 |
| 506 | |
| 507 | Objective: Scale program synthesis exploration as a parallel research track with rich search telemetry, in a new module that does not touch the existing M9-M11 synthesis gates. |
| 508 | |
| 509 | 1. Search Instrumentation (new module `src/search/`): |
| 510 | - Instrument candidate exploration to record detailed telemetry for every node: |
| 511 | - Parent node identifier |
| 512 | - Applied transformation |
| 513 | - Search depth |
| 514 | - Semantic properties |
| 515 | - Estimated execution cost |
| 516 | - Verifier outcome |
| 517 | - Machine realization outcome |
| 518 | - Execution performance |
| 519 | - Reason for pruning or abandonment |
| 520 | - Reason for success or failure |
| 521 | 2. Scaled Search Space: |
| 522 | - Expand candidate limits beyond the existing `omega_synthesis.*` caps (depth 3, 512 candidates) inside the new module — the old module and its M9-M11 gates are untouched. |
| 523 | 3. Separation of Concerns: |
| 524 | - The learned ranking model proposes candidate paths to explore. |
| 525 | - Deterministic verification retains absolute authority over semantic validity. |
| 526 | 4. Exit Gate: |
| 527 | ``` |
| 528 | SYNTHESIS_TELEMETRY_LOGGED PASS |
| 529 | SEARCH_ENVELOPE_EXPANDED PASS |
| 530 | PROPOSAL_VERIFIER_SEAM_CLEAN PASS |
| 531 | OMEGA_SYNTHESIS_UNTOUCHED PASS |
| 532 | ``` |
| 533 | - **SEARCH_ENVELOPE_EXPANDED definition:** search depth ≥ 6, ≥ 70 distinct primitives available, and the exploration budget calibrated so that *baseline* (unguided) search success on a fixed calibration task set lands in the 40-60% range — neither trivially easy nor effectively unsolvable — so that a learned guide has genuine room to demonstrate improvement in M23. |
| 534 | |
| 535 | **Owner:** Lane E. |
| 536 | **Boundary:** `src/search/` only; must not edit `src/omega_synthesis.*` or `src/omega_discovery.*`. |
| 537 | **Failure behavior:** Any diff touching the two protected files fails the gate at review, independent of test results. |
| 538 | **Evidence:** `evidence/OMEGA-SYNTHESIS-1/<receipt-digest>.json`, including the calibration-set baseline success rate. |
| 539 | |
| 540 | **Dependency:** this gate is a prerequisite of AIEN_0 training (Gates 11/12, M23/M24) — those milestones cannot start without a passing `OMEGA-SYNTHESIS-1` receipt, since there is no guided-vs-baseline comparison possible without the expanded, telemetered search space. |
| 541 | |
| 542 | --- |
| 543 | |
| 544 | ### Gate 11: AIEN_0 - Smallest Model Validating the Architectural Thesis — Milestone M23 (search-guide training) |
| 545 | |
| 546 | Objective: Train a minimal model that learns to score candidate operations in search space, using the Gate 13 search module. |
| 547 | |
| 548 | 1. Architecture and Scale: |
| 549 | - Target parameter budget: approximately 99k parameters. Parameter count serves as an upper bound, not a dogmatic constant. |
| 550 | 2. Learning Objective: |
| 551 | ``` |
| 552 | State + Available Next Operations + Target Objective |
| 553 | ↓ |
| 554 | AIEN_0 |
| 555 | ↓ |
| 556 | Score(Candidate Next Operation) |
| 557 | ``` |
| 558 | 3. Input-Visible Semantics: |
| 559 | - Primitive operation semantics must be exposed as input representations so the model scores unseen but describable candidates based on semantic properties. |
| 560 | 4. Exit Gate: |
| 561 | ``` |
| 562 | AIEN_0_CONVERGENCE PASS |
| 563 | SEMANTIC_OPERATION_SCORING PASS |
| 564 | GENERALIZATION_TO_UNSEEN_OPS PASS |
| 565 | ``` |
| 566 | - **None of these three is "loss went down."** AIEN_0's convergence and scoring criteria are measured by the same guided-vs-baseline search-cost comparison defined for M24 (below), run on a *training-visible* task set (not the sealed holdout) to confirm the model is learning something usable before the one-shot holdout evaluation is spent. |
| 567 | |
| 568 | **Owner:** Training-stack lane. Requires Gate 13 (OMEGA-SYNTHESIS-1) and Gates 8/9/10 (M21/M22) to have passed; requires Gate 14 (foundation) for any silicon-realized training. |
| 569 | **Boundary:** New training-loop module; consumes M20-M22 and Lane E's search module; does not modify any of them. |
| 570 | **Failure behavior:** A model that reduces loss but does not improve guided search cost over baseline on the training-visible task set does not pass this gate. |
| 571 | **Evidence:** `evidence/M23-SEARCH-GUIDE-TRAIN/<receipt-digest>.json`. |
| 572 | |
| 573 | --- |
| 574 | |
| 575 | ### Gate 12: AIEN_0-HOLDOUT - Cryptographically Sealed Evaluation — Milestone M24 |
| 576 | |
| 577 | Objective: Pre-register evaluation holdouts to eliminate post-hoc metric tuning, and produce the final AIEN_0 qualification. |
| 578 | |
| 579 | 1. Pre-Registration Commitment: |
| 580 | - Commit the following parameters to the repository prior to launching the final training run: |
| 581 | - Evaluation generator version |
| 582 | - Holdout seed commitment (SHA-256 hash) |
| 583 | - Target evaluation metrics |
| 584 | - Required pass/fail thresholds — **stated as concrete numeric thresholds, pre-registered in the M24 spec document before the final training run begins; not decided after seeing results.** |
| 585 | - Allowed training dataset bounds |
| 586 | - Model architecture specification |
| 587 | - Optimizer hyperparameter schedule |
| 588 | - Maximum training compute budget |
| 589 | - Disallowed operational contexts |
| 590 | 2. **The comparison being evaluated is named explicitly:** AIEN-guided search cost vs. baseline (unguided) search cost, on the *same* held-out task set, both run through the Gate 13 search module. Success is a pre-registered reduction in search cost (e.g. nodes expanded, or wall-clock, to reach a valid program) for the guided policy relative to baseline — never "loss went down." |
| 591 | 3. **Benchmark validity step:** the Gate 13 calibration (baseline success 40-60% on the calibration set) is performed and recorded *before* training starts, so the holdout task set is known to be neither trivial nor unsolvable for the baseline. |
| 592 | 4. **Holdout/training exclusivity:** any holdout task whose signature overlaps a training-set task signature is excluded from the holdout set before the seed is revealed; this exclusion check is itself part of the pre-registration record. |
| 593 | 5. Execution Sequence: |
| 594 | ``` |
| 595 | Commit holdout seed hash |
| 596 | ↓ |
| 597 | Execute training run |
| 598 | ↓ |
| 599 | Freeze candidate model digest |
| 600 | ↓ |
| 601 | Reveal holdout seed |
| 602 | ↓ |
| 603 | Generate evaluation dataset (excluding any training-overlapping task signature) |
| 604 | ↓ |
| 605 | Evaluate candidate once (guided vs. baseline search cost) |
| 606 | ↓ |
| 607 | Generate immutable qualification receipt |
| 608 | ``` |
| 609 | 6. Invariant: Evaluation thresholds are immutable once training commences. |
| 610 | 7. Exit Gate: |
| 611 | ``` |
| 612 | PRE_REGISTRATION_COMMITTED PASS |
| 613 | BENCHMARK_VALIDITY_CALIBRATED PASS |
| 614 | HOLDOUT_TRAIN_DISJOINT PASS |
| 615 | SEED_REVEAL_VERIFIED PASS |
| 616 | ONE_SHOT_EVALUATION_PASS PASS |
| 617 | HOLDOUT_RECEIPT_IMMUTABLE PASS |
| 618 | ``` |
| 619 | |
| 620 | **Owner:** Training-stack lane. |
| 621 | **Boundary:** Consumes the frozen M23 candidate model; performs exactly one holdout evaluation; does not retrain on holdout failure. |
| 622 | **Failure behavior:** A holdout failure does not permit threshold adjustment; the candidate is rejected and a new M23 training run (with the same pre-registered thresholds, or a newly pre-registered set for a new attempt) is required. |
| 623 | **Evidence:** `evidence/M24-HOLDOUT/<receipt-digest>.json`, including the pre-registration commitment and the guided-vs-baseline search-cost numbers. |
| 624 | |
| 625 | --- |
| 626 | |
| 627 | ## 3b. Deferred — Post-M24, Not On the Critical Path |
| 628 | |
| 629 | ### Gate 7: OMEGA-TENSOR-1 - Generalize Tensor-Core Realization (MOVED OUT OF CRITICAL PATH) |
| 630 | |
| 631 | **This gate is removed from the Combined Foundation Admission Gate and from the M20-M24 critical path.** Rationale: NVIDIA tensor cores accept FP16/BF16 inputs and accumulate with an undocumented internal add order. That is incompatible with the FP32 bit-parity requirement of Gate 5 and with this plan's own mixed-precision ban (§Gate 5, item 5). A ~99k-parameter AIEN_0 model (Gate 11/M23) does not need general tensor-core MMA tiling — the fixed-tile FP32 path from Gate 6 is sufficient. This work is deferred to a later, explicitly-scoped milestone after M24, if and when a larger model's compute needs justify reopening the mixed-precision question as its own decision. |
| 632 | |
| 633 | Objective (deferred): Remove fixed-dimension restrictions and establish tiled execution for arbitrary matrix dimensions. |
| 634 | |
| 635 | 1. Generalized Matrix Multiplication: |
| 636 | - Eliminate the `K == 16` restriction. |
| 637 | - Implement a multi-level tiling pipeline: |
| 638 | ``` |
| 639 | Semantic MatMul |
| 640 | ↓ |
| 641 | Shape Analysis |
| 642 | ↓ |
| 643 | Tiling Plan |
| 644 | ↓ |
| 645 | Edge and Tail Decomposition |
| 646 | ↓ |
| 647 | Tensor-Core MMA Tiles + FP32 Edge Kernels |
| 648 | ↓ |
| 649 | Accumulated Result |
| 650 | ``` |
| 651 | 2. Qualification Envelope: |
| 652 | - Non-ideal dimensions where M, N, or K are not multiples of tile size. |
| 653 | - Asymmetric aspect ratios (tall-skinny, short-wide). |
| 654 | - Single-element dimensions and prime dimension sizes. |
| 655 | 3. Exit Gate (deferred, not evaluated for M20-M24 admission): |
| 656 | ``` |
| 657 | GENERAL_SHAPE_DECOMPOSITION PASS |
| 658 | MMA_TILE_ACCUMULATION PASS |
| 659 | ARBITRARY_DIMENSION_PARITY PASS |
| 660 | ``` |
| 661 | |
| 662 | **Owner:** Unassigned (post-M24). |
| 663 | **Boundary:** Not scheduled; do not start this work under an M19R or M20-M24 lane. |
| 664 | **Failure behavior:** N/A — deferred. |
| 665 | **Evidence:** N/A — deferred. |
| 666 | |
| 667 | --- |
| 668 | |
| 669 | ## 4. Staged Execution Dependency Map |
| 670 | |
| 671 | Dependency fixes (2026-09-27 revision): |
| 672 | - **Lane A (evidence) must land before any other gate's receipt is produced.** Every gate's exit criteria depend on the derived-not-asserted receipt schema from Gate 1; a Gate 2-13 receipt produced against the old (literal-constant) schema is not valid evidence. |
| 673 | - **Lane E (search/traces, Gate 13) is a prerequisite of AIEN_0 training (Gates 11/12, M23/M24)**, not a parallel independent track all the way to the end — it must reach its own exit gate before M23 can start. |
| 674 | - **CPU-side tensor and autodiff work (Gates 6 and 8) may start without waiting for Lanes B/D.** Nothing about immutable tensor values, storage generations, or symbolic differentiation requires the GPU runtime fixes (Lane B) or the FP32 Blackwell ISA (Lane D) — those are only required before *silicon-realized* execution of tensor/autodiff graphs, not before the CPU-realized semantic and correctness work. |
| 675 | |
| 676 | ``` |
| 677 | LANE A (Evidence) LANE B (Runtime) LANE C (Forge/HWID) LANE D (FP32) LANE E (Search) |
| 678 | | | | | | |
| 679 | [must land first] Stabilized Stabilized Stabilized | |
| 680 | | \ | / | |
| 681 | | +-------------------+------------------+ | |
| 682 | | | | |
| 683 | | Combined Foundation Admission Gate | |
| 684 | | (Gate 14 — Gates 1-5 only) | |
| 685 | | | | |
| 686 | | CPU-side M20/M21 work may start earlier, in parallel with Lane B/D | |
| 687 | | | | |
| 688 | | M20: Gate 6 (Tensors, silicon) | |
| 689 | | | | |
| 690 | | M21: Gate 8 (Autodiff, silicon) | |
| 691 | | | | |
| 692 | | M22: Gates 9, 10 (Optimizer + Provenance) | |
| 693 | | | | |
| 694 | | +----------------------------------------+ |
| 695 | | | (Gate 13 exit required) |
| 696 | | M23: Gate 11 (Search-Guide Train) |
| 697 | | | |
| 698 | | M24: Gate 12 (AIEN_0 + Holdout) |
| 699 | | | |
| 700 | +---------------------------------------------+ |
| 701 | (Gate 1 receipt schema underlies every receipt above) |
| 702 | ``` |
| 703 | |
| 704 | Gate 7 (general tensor-core MMA tiling) does not appear on this map — it is deferred (§3b) and not a dependency of M20-M24. |
| 705 | |
| 706 | --- |
| 707 | |
| 708 | ## 5. Repository Assignments and Branch Standards |
| 709 | |
| 710 | ### Branch Allocations |
| 711 | |
| 712 | - `omega`: |
| 713 | - `refactor/m19r-lane-a-evidence`: Receipt generation, immutable receipt store, observed execution counts. |
| 714 | - `fix/m19r-lane-b-runtime`: World memory revocation, monotonic ticket completion, state machine. |
| 715 | - `feat/m19r-lane-d-fp32`: Blackwell SIMT FP32 instruction codegen, polynomial exp/log, bit parity suite. |
| 716 | - `feat/m19r-lane-e-search`: New `src/search/` module, candidate telemetry collection. |
| 717 | - `physics`: |
| 718 | - `fix/m19r-lane-b-nvrm-free`: Implementation of `nvrm_free` via `NVOS00_CTRL_CMD_FREE`. |
| 719 | - `feat/m19r-lane-c-forge`: `ForgeMachineDescriptor`, raw hardware observation probe, FORGE/AEGIS seam types. |
| 720 | - `aien-architecture`: |
| 721 | - `docs/m19r-gated-recovery`: Architectural updates, gate definitions, schema standards. |
| 722 | |
| 723 | ### Remote Requirement (revised per Decision C, 2026-09-27) |
| 724 | |
| 725 | GitHub `origin` is the only required remote for branch pushes, PRs, and merges at this time. No `forgejo` remote exists in any checkout as of 2026-09-27. The mandatory dual-push rule is dropped until a forgejo server/remote is actually provisioned; if and when one exists, this section is revised to reinstate a dual-push (or mirrored-push) requirement with SHA-equality verification. |
| 726 | |
| 727 | --- |
| 728 | |
| 729 | ## 6. Also Required (Cross-Cutting Requirements) |
| 730 | |
| 731 | These apply across every gate above, in addition to each gate's own exit criteria: |
| 732 | |
| 733 | - **Checkpoints, crash recovery, and resume equivalence.** Any training run (M22 optimizer commits onward, M23/M24) must checkpoint parameter and optimizer generation state such that a kill-and-resume produces the same continuation (bit-identical, or an explicitly documented equivalence class) as an uninterrupted run. Tested by an actual kill-and-resume, not by inspection. |
| 734 | - **Training determinism.** Same inputs (seed, data order, hardware, code) produce the same weights, byte-for-byte, verified by two independent full runs before any M23/M24 result is trusted. |
| 735 | - **Dataset construction, train/test split by task signature, label verification.** M23/M24 datasets are split by task signature, not by random row assignment, so that near-duplicate tasks cannot leak across the split; labels/ground truth are verified (not merely generated) before use. |
| 736 | - **Memory aliasing / planner checks.** The tensor storage planner (M20) must prove at graph-build time that no two live `TensorView`s alias the same physical storage across a generation boundary — since in-place mutation is banned (Gate 6), any observed aliasing is a planner bug, not a legitimate optimization, and must fail closed. |
| 737 | - **Fail-closed out-of-range index handling.** Any indexing primitive (reshape, view, gather, etc.) presented with an out-of-range index rejects the operation at graph-build or dispatch time. It never wraps, clamps, or silently reads adjacent memory. |
| 738 | - **Exact-commit, clean-worktree qualification procedure.** Every gate's receipt is generated from a clean worktree (`git status --porcelain` empty) checked out at one exact, recorded commit per repository involved (omega, physics). A dirty worktree fails the gate before any test runs. |
| 739 | - **Derived cumulative regression counts.** Every "cumulative gates passed" / "total gates evaluated" field in every receipt (not just Gate 1's own) is computed by summing actually-executed suite results at receipt-generation time. Writing a literal constant for these fields fails the gate that produced it. |
| 740 | - **Guard against agents weakening tests.** Any change that deletes, skips, or loosens the threshold of an existing passing gate or test requires an explicit, recorded operator-approved waiver in the same evidence-only commit category as Gate 1's evidence commits. A PR that both touches test/gate code and claims a gate pass is flagged for mandatory human review before merge. |
| 741 | - **Owner / Boundary / Failure behavior / Evidence for every gate.** Each gate section above states these four fields explicitly; a gate specification lacking any of the four is incomplete and is not eligible to be exit-checked until amended. |