aien-architecture-mv
Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.
Brought by drakestapleton
GitHub aien-dev/aien-architecture-mv#56 (code only)
Apply it
git checkout -b patch-e31fabfb6a94c8b6 91c0f659b3de7ab30a64e2a6ea6df7954352d9c4 curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/e31fabfb6a94c8b6.patch | git am
Provenance
github-import 1
aien-dev/aien-architecture-mv
56
a72fc605391939ca24f7144a72dc1fe2e79c0d22
{"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":56,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/56","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:07Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/docs/adr/0018-substrate-neutral-physical-realization.md b/docs/adr/0018-substrate-neutral-physical-realization.md index 48fd1ce..8d3650e 100644 --- a/docs/adr/0018-substrate-neutral-physical-realization.md +++ b/docs/adr/0018-substrate-neutral-physical-realization.md @@ -169,28 +169,28 @@ Physics Zero (M27–M35, `CURRENT_EXECUTION_PLAN.md` §13) is scientific discove - It does not change the ARGUS ABI, the R16 scope, Omega runtime code, or any FORGE v1 type. - It does not choose concrete wire encodings for the V2 descriptor or evidence; those are AR1 deliverables, reviewed against this ADR. -## 11. Current code facts (audit basis, 2026-09-29) +## 11. Audit basis at ADR drafting time (2026-09-29) -These facts come from read-only audits. Omega file:line references are at `aien-dev/omega` `8e7a445` (audit basis); omega `main` is now `f308ac7` (`#72`, `aienos.lock` pin only). Physics references are at `aien-dev/physics#13` head `5781222` unless marked `main`. +These facts record the frozen audit basis at the time this ADR was drafted (2026-09-29). While Omega #60, Physics #13, and Physics #16 were open or companion drafts when this audit was captured, all three have since merged to `main` (Omega #60 as `c0edef0`, Physics #13 as `5969159`, and Physics #16 as `1f7c321`). Omega file:line references are at `aien-dev/omega` `8e7a445` (audit basis). Physics references are at `aien-dev/physics#13` head `5781222` unless marked `main`. -**Omega — already substrate-neutral:** +**Omega: already substrate-neutral:** - `src/runtime/rx_capq.h:84-102` `CqNeed` names an operation, types, effect class, authority ceiling, locality, latency/energy/reliability budgets and evidence requirement. No substrate field. - `src/runtime/rx_capq.h:104-126` `CqCandidate` carries an opaque `realization_id` (u32). `CQ_SRC_PHYSICAL` (`rx_capq.h:51-56`) is a provider origin, not a substrate. - `src/runtime/rx_graph.h:234-239` `AG_REAL_HARDWARE` is an existing placeholder realization kind ("none exists on this host"). -**Omega — the seams this ADR must eventually touch (after R16):** +**Omega: the seams this ADR must eventually touch (after R16):** - `src/runtime/rx_route.h:61` `enum { RX_COG_HW_CPU_P = 1u, RX_COG_HW_CPU_E = 2u, RX_COG_HW_GPU = 4u };` is **the one hardware-naming type on main**. It filters eligibility (`rx_route.c:323`) and is hashed into the registry digest (`rx_route.c:124`), so adding bits changes registry identity. - `src/runtime/rx_contract.{h,c}`: contracts are **exact-only**; field types are integer words; zero hits for tolerance/epsilon/float. `RC_EFFECT_CLASSES` includes a `physical` bit (`rx_contract.h:175`) with no `CQ_FX_*` counterpart. - The only tolerance-style parity path is the M18 matmul comparator (`src/omega_blackwell_submit.c` ~658-662, fixed `1e-4` absolute) against `omega_matmul_cpu_oracle_{i32,f16,bf16}` (`src/omega_blackwell_matmul.h:50-55`). The exact integer oracle is `omega_matvec_reference` (`src/omega_matvec.h:74`). -- `aien-dev/omega#60` (empirical cost model, OPEN, conflicting): arms are anonymous indices (`RX_CM_ARMS` 8); the only hardware axis is CPU core class (`RX_CM_CORE_X925/A725/OTHER`); `RX_CM_OPS 1` (matvec only); observations carry `failed` but no error/accuracy field. **No substrate axis.** +- `aien-dev/omega#60` (empirical cost model, merged as `c0edef0`; open/conflicting during drafting audit): arms are anonymous indices (`RX_CM_ARMS` 8); the only hardware axis is CPU core class (`RX_CM_CORE_X925/A725/OTHER`); `RX_CM_OPS 1` (matvec only); observations carry `failed` but no error/accuracy field. **No substrate axis.** - `EffectPayload` v2 (`src/omega_types.h:166-177`): 64-bit `capability_generation`, 178-byte wire form; v1 refused at `src/omega_canonical.c:48-49` and `src/omega_core.c:295`. -**FORGE v1 (`aien-dev/physics#13`, open, unmerged):** +**FORGE v1 (`aien-dev/physics#13`, merged as `5969159`; open at drafting audit):** - Type names are neutral (`ForgeMachineDescriptor`, `ForgeRealizationRequest`, `ForgeExecutionEvidence`), but the API is **NVIDIA-bound at submit**: `forge_realize.h:29` takes `Nvrm *`; error codes `FORGE_SEAM_ERR_NVRM`; feature/observation flags named after RM classes; `forge_descriptor.c:343` rejects any `pci_vendor_id != 0x10de`. - The v1 descriptor is a fixed 208-byte stream hashed with SHA-256. **The only frozen, reproducible v1 identity is the KAT digest** `10d63d05f888eaba4fe473c5f17febe22f462f543ae0c2b005a9a8e5417e09fd` (`forge_descriptor.c:486`), independently reproduced. The live GB10 descriptor digest is boot-volatile (it includes total memory, driver/firmware versions and PCI BDF). - `ir_payload`'s pointer value is never hashed (§5.3). - SHA-256 comes from `physics` `main:sha256_clean.c`, which is pinned into firmware builds: reuse, never modify or duplicate its exported symbols. -- Consequence: V2 wraps the v1 descriptor as an opaque substrate record identified by its digest. It does not reserialize v1, and it does not reuse v1 types as its neutral model. The companion draft "FORGE substrate V2" is `aien-dev/physics#16` (branch `feat/forge-substrate-v2`, host-only KAT: 47 checks and 6 gates PASS; frozen V2 machine digest `89cb5ba6…06c0`). +- Consequence: V2 wraps the v1 descriptor as an opaque substrate record identified by its digest. It does not reserialize v1, and it does not reuse v1 types as its neutral model. The companion PR "FORGE substrate V2" is `aien-dev/physics#16` (merged as `1f7c321`, branch `feat/forge-substrate-v2`, host-only KAT: 47 checks and 6 gates PASS; frozen V2 machine digest `89cb5ba6…06c0`). ## 12. Workstream gates AR0–AR7 diff --git a/docs/plans/analog-realization/ANALOG_REALIZATION_CURRENT_STATE.md b/docs/plans/analog-realization/ANALOG_REALIZATION_CURRENT_STATE.md index bb220b9..43af1c6 100644 --- a/docs/plans/analog-realization/ANALOG_REALIZATION_CURRENT_STATE.md +++ b/docs/plans/analog-realization/ANALOG_REALIZATION_CURRENT_STATE.md @@ -1,4 +1,4 @@ -# Analog Realization — Current State +# Analog Realization - Current State **NOT A MASTER PLAN.** This is a finite workstream document for ADR 0018 (ARCH-0018, ACCEPTED, merged 641bd3c), substrate-neutral physical realization. `CURRENT_EXECUTION_PLAN.md` still owns cross-project sequencing (§6 C3, Lane 6), and `doctrine/ROADMAP.md` still owns milestone status. The AR-gates are ADR 0018 workstream gates, not M-milestones. @@ -6,10 +6,10 @@ | Repository | Commit | |---|---| -| omega | `main` `f308ac7` (live); file:line facts read at `8e7a445` (audit basis); `#60` merged `c0edef0`; `#68` read at `d73315e` | -| physics | `main` `5969159` (live); `#13` merged `5969159`; `#16` merged `1f7c321` | -| aienos | `main` (commit not recorded in the audits; `#161` merged); `feat/argus-0` read at `a64bc55` | -| aien-architecture | `main` `f6baa35` | +| omega | `main` `e5159fa` (live); file:line facts read at `8e7a445` (audit basis); `#60` merged `c0edef0`; `#70` merged `e853a11`; `#66` merged `6bebdbd`; `#68` read at `d73315e` | +| physics | `main` `f63a6ef` (live); `#13` merged `5969159`; `#16` merged `1f7c321`; `#17` merged `fa48b7d` | +| aienos | `main` `6e2cd3d` (`#160` and `#161` merged); `#162` closed | +| aien-architecture | `main` `91c0f65` (`#53`, `#54`, `#55` merged) | --- @@ -18,31 +18,36 @@ | Repo | PR | Title / subject | State | Head / merge | Note | |---|---|---|---|---|---| | omega | #67 | R15 quantitative performance | MERGED | merge `bba3bd3` | Receipt `evidence/R15/065c688408aa18950f363b52be2357c3cb853827592dc71ea72b6da181b4569a.json`, `"outcome": "PASS"`, 16/16 gates (candidate `3e9e53be3358`, G10 amended Option A) | -| omega | #68 | R16 orchestrator retirement: spec + loop inventory | OPEN, DRAFT | head `d73315e` | W1–W4 done, W5 next; no runtime code; `evidence/R16/` does not exist on `main` | +| omega | #68 | R16 orchestrator retirement: spec + loop inventory | OPEN, DRAFT | head `d73315e` | W1-W4 done, W5 next; no runtime code; primary active gate | | omega | #71 | Effect capability generations to 64 bits (cap64) | MERGED | `8e7a445` | `EffectPayload` v2, 178-byte wire form; v1 refused | -| omega | #72 | `aienos.lock` pin `4c21386` → `d39dd5b` | MERGED | `f308ac7` | Audit (earlier the same day) saw it OPEN at `ed1194f`; live state is merged. Pin is frozen for R16 W9 | -| omega | #70 | ARGUS producer (ABI v1.1) | OPEN, DRAFT | head `cf6f45d` | "Do not merge". `rx_argus.c` contains loops that would collide with R16 G2 | -| omega | #66 | M18 receipt prints measured values | OPEN, DRAFT | head `3512af3` | 17/18 on Spark; only the pre-existing Gate 16 clean-clone env failure | +| omega | #72 | `aienos.lock` pin `4c21386` -> `d39dd5b` | MERGED | `f308ac7` | Merged; pin frozen for R16 W9 | +| omega | #70 | ARGUS producer (ABI v1.1) | MERGED | merge `e853a11` | Runtime ARGUS producer v1.1 landed | +| omega | #66 | M18 receipt prints measured values | MERGED | merge `6bebdbd` | 17/18 on Spark; prints measured values | | omega | #60 | Empirical cost model | MERGED | merge `c0edef0` | Merged at 2026-09-29T12:56:58Z; CPU matvec cost model landed | +| omega | #76 | OSC-0/OSC-0B code audit and proposed machine semantics freeze | OPEN, DRAFT | head `5c4b707` | Open draft; code audit and semantics freeze proposal | +| omega | #32 | Blackwell FP32 SIMT instructions and OMEGA-NUMERIC-0 substrate | OPEN | head `25a0c5f` | Open PR | | physics | #13 | FORGE-0 / FORGE-HWID (M19R Gates 3-4) | MERGED | merge `5969159` | Gates 3 and 4 pass (11/11, 10/10); FORGE v1 boundary closed | | physics | #16 | FORGE substrate V2 | MERGED | merge `1f7c321` | Host gates 47/47 KAT + 6/6 PASS; V2 frozen digest `89cb5ba6…06c0` | -| aienos | #160 | ARGUS-0 C defensive plane | OPEN, DRAFT | head `a64bc55` | 8/10 gates; PERFORMANCE FAIL (+6.2% vs 5%) | -| aienos | #161 | Capability observer | MERGED | — | Observer hook pinned by omega#72 | -| aienos | #162 | ARGUS-1 spec + plan (I1–I5), no code | OPEN, DRAFT | head `1f5fc23` | Stacked on #160 | +| physics | #17 | Normalize Gate 3 and Gate 4 receipts to digest-named files | MERGED | merge `fa48b7d` | Canonical digest-named receipts in `evidence/M19R/` (`a39269e8...`, `b81da4e2...`) | +| aienos | #160 | ARGUS-0 C defensive plane | MERGED | merge `6e2cd3d` | ARGUS-0 substrate complete under documented limits (ADR 0017) | +| aienos | #161 | Capability observer | MERGED | `d39dd5b` | Observer hook pinned by omega#72 | +| aienos | #162 | ARGUS-1 spec + plan (I1-I5), no code | CLOSED | head `246fc64` | Closed without merge; spec pre-registered in ADR 0017 §17 | | aien-architecture | #53 | ADR 0017 (ARGUS) | MERGED | `b19b4ac` | Accepted by operator Drake Stapleton | +| aien-architecture | #54 | Record AR1 pass and FORGE seam closure | MERGED | `d86c3d8` | AR1 closed | +| aien-architecture | #55 | Governance synchronization | MERGED | `91c0f65` | Reconciled roadmap, architecture doctrine, ADR index, arena spec | -`omega` `main` = `f308ac7`; `physics` `main` = `5969159`. +`omega` `main` = `e5159fa`; `physics` `main` = `f63a6ef`; `aienos` `main` = `6e2cd3d`; `aien-architecture` `main` = `91c0f65`. ## 2. Discrepancies found -1. **Roadmap R15/R16 rows were stale.** `doctrine/ROADMAP.md` said R15 "Not qualified" and R16 "Not started". Live evidence: R15 PASS (omega#67), R16 in progress (omega#68 draft). Corrected in this change. -2. **physics#13 receipts are not digest-named.** `evidence/m19r_gate3_forge_seam_evidence.json` and `evidence/m19r_gate4_forge_hwid_evidence.json` are flat, gate-named, hand-authored (both timestamped `2026-09-27T15:30:00Z`); the live descriptor digest they record cannot be recomputed from their contents; no JSON emitter exists in `forge/`. -3. **omega#60 is merged** with `main` at 2026-09-29T12:56:58Z (`c0edef0`). -4. **omega#70 vs R16 loop collision.** `rx_argus.c` contains `for (;;)` and `while (!stop) { ... nanosleep }`; #70 also edits `rx_world.c` and `rx_generation.c`, which carry R16 map rows. If #70 merges before R16's final G2 scan, R16 G2 fails. This collision exists independently of analog work. -5. **ARGUS performance numbers disagree.** aienos#160 and the ARGUS-0 handoff report +6.2% (FAIL vs 5%); omega#70's speed2 round reports +3.87% [+3.27, +4.47] (PASS vs 5%, FAIL vs ADR 0017's 2%), not on `main`. Which bar binds is undecided, so the performance gate is treated as **not passed**. +1. **Roadmap R15/R16 rows were stale.** `doctrine/ROADMAP.md` said R15 "Not qualified" and R16 "Not started". Live evidence: R15 PASS (omega#67), R16 in progress (omega#68 draft). Corrected. +2. **physics#13 receipts normalized to digest names.** Historically flat, gate-named receipts in physics#13 were resolved by physics#17 (`fa48b7d`). Canonical digest-named receipts now live under `evidence/M19R/` (`a39269e80dce563be52a5daf6d73d37826e4ee995195af4a8ed064999598d79e.json` and `b81da4e265f5c0770d796423f65a0267d1748eda26bfdcb9a0c1a62493526062.json`), with compatibility symlinks preserved. +3. **omega#60 is merged.** Landed on `main` at 2026-09-29T12:56:58Z (`c0edef0`). +4. **omega#70 landed.** The ARGUS producer v1.1 PR merged (`e853a11`). Omega R16 (#68) remains the primary active gate. +5. **ARGUS performance gate ratified.** During the earlier audit, aienos#160 and handoff documents showed +6.2% on unpinned cores while omega#70 reported +3.87% [3.27, 4.47] with dedicated consumer pinning (`RX_ARGUS_CONSUMER_CPU`). Under accepted ADR 0017 (§5, §7.4, §13), ARGUS-0 is formally complete under documented limits and treats performance as passing with the documented pinning condition. The ratified ADR decision supersedes the pre-ratification audit disagreement. 6. **No-Python rule violations.** omega `tools/qualify_visor.py` (left by omega#69); physics `main` still has 5 `.py` files (`m2_build.py`, `run_milestone2_gates.py`, `generate_physics_audit.py`, `seam1_physics_audit.py`, `seam2_physics_harness.py`). 7. **Shared checkout moved.** The shared checkout `~/workspace/aien-architecture` was switched from `feat/resident-semantic-store-boundary` to `main` during this session; its working tree was clean at the time. This work was done in an isolated worktree. ## 3. What exists for analog realization today -Nothing physical. No analog, neuromorphic, FPGA or photonic code exists on any `main`. The substrate-neutral pieces already present, and the seams that must change later, are listed in ADR 0018 §11 ("Current code facts"). +Nothing physical. No analog, neuromorphic, FPGA or photonic code exists on any `main`. The substrate-neutral pieces already present, and the seams that must change later, are listed in ADR 0018 §11 ("Audit basis at ADR drafting time").