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 / ecosystem303 / COMPATIBILITY.md
| 1 | # Declared compatibility boundaries and audit obligations |
| 2 | |
| 3 | The 27 fixed upstream references in SOURCES.md are specification starting points. |
| 4 | They do not imply27 compatible libraries or complete API inventories. The native |
| 5 | target is handwritten seeded .om with explicit semantics. No component here |
| 6 | executes arbitrary Python, imports PyTorch or hides a foreign runtime. |
| 7 | |
| 8 | | Boundary | Intended contract | Owning issue and release gate | |
| 9 | |---|---|---| |
| 10 | | Native numerical API | Tensor/operator/module/differentiation/optimizer behavior, with declared dtype, rounding, layout, mutation, alias and gradient rules | Omega663/664 and train6; independent numerical tests and actual consumers for every declared operator | |
| 11 | | External file compatibility | Tokenizer/model/config, dataset and checkpoint files including Safetensors, GGUF and ONNX where declared | Train5, Omega651/665; exact format/version, malformed inputs, independent decode and reload-equivalence tests | |
| 12 | | External protocol compatibility | Serving, model retrieval, collective and observability protocols where explicitly selected | Omega666/667, train7; exact protocol/schema, authenticated custody, errors/cancellation and real peer consumers | |
| 13 | | Source translation | Any accepted non-.om source language or graph representation must have a separately enumerated supported subset | Omega665 and existing CUDApp35/36 owner; accepted/refused corpus and independent lowering relation | |
| 14 | | Runtime emulation | No general Python/PyTorch/JAX/TensorFlow runtime emulation is claimed or implemented by this programme slice | A new explicit implementation issue and dedicated gates are required before any such claim; no hidden compatibility engine | |
| 15 | |
| 16 | PyTorch API families, NumPy/SciPy services, JAX transformations and TensorFlow |
| 17 | equivalents map to capabilities rather than requiring duplicate execution |
| 18 | engines. Native operator semantics do not automatically provide source-level |
| 19 | import compatibility. Loading weights does not establish model, tokenizer, |
| 20 | template, optimizer-state or training-resume compatibility. |
| 21 | |
| 22 | The pinned inference engines are comparison and interoperability references for |
| 23 | Omega666, not permission to call their execution engines in the Omega product. |
| 24 | TensorRT/Triton/NCCL are accelerator/compiler/collective reference surfaces for |
| 25 | Omega665/661 and train7; replacing their first-party uses requires exact device, |
| 26 | numerical, transport and cost gates. Driver, OS and firmware boundaries remain |
| 27 | explicit external platform dependencies subject to the existing hardware rules. |
| 28 | No driver change, runtime installation or deployment is part of this batch. |
| 29 | |
| 30 | MLflow maps to registry/tracking Omega667; Ray and KServe to scheduling/lifecycle |
| 31 | Omega649 and serving Omega666; lm-evaluation-harness to evaluator Omega667. |
| 32 | Specific API/protocol selections and actual consumer paths remain to be frozen |
| 33 | in those issues. An upstream tag pin alone does not settle those contracts. |
| 34 | |
| 35 | For each feature admitted to a release denominator, the issue must record: |
| 36 | upstream specification/version, exact local source/branch/owner, current consumer, |
| 37 | native semantics, external format/protocol obligations, transitive dependencies, |
| 38 | numerical or behavioral oracle, hardware tier, priority, acceptance commands, |
| 39 | consumer switch and deletion requirements. Missing values remain open gates; |
| 40 | invented source paths or presumed owner activity are unacceptable. |
| 41 | |
| 42 | ## Current dependency evidence |
| 43 | |
| 44 | The actual numerical component compiles L720 add32/mul32, M20 metadata, the affine |
| 45 | consumer and a handwritten caller into one static AArch64 ELF. The independent |
| 46 | review inspected its program/dynamic headers and traced file/process/network |
| 47 | operations: no child runtime, dynamic library or external model file was observed |
| 48 | in that scoped caller. The independent symbolic oracle is external qualification |
| 49 | software and is absent from the delivered numerical path. This trace is bounded |
| 50 | evidence, not a proof of every possible path or the entire ecosystem. |
| 51 | |
| 52 | The original Core tokenizer still wraps the Rust tokenizers library. Its model |
| 53 | loader still handles BF16 Safetensors through existing foreign implementation. |
| 54 | L491's reusable general trainer/tape/tensor substrate still includes C. These are |
| 55 | active migration obligations, not native replacements. L292's Rust/Python corpus |
| 56 | branch is DROPPED and was not resumed. L689 owns weight-flow scheduling and is |
| 57 | not a dataset-loader/checkpoint owner. Existing native supplied-token validation |
| 58 | and curriculum admission do not replace tokenization or file ingestion. |
| 59 | |
| 60 | Outer build/test operations still use Linux shell/git/checksum/ELF tools and the |
| 61 | existing C-built Crumb gate. They are explicitly unretired. No package manifest |
| 62 | was removed because no production flow in this batch passed complete replacement |
| 63 | acceptance. Architecture300/Omega599 retain first-party deletion responsibility. |
| 64 | |
| 65 | Full build/train/evaluate/serve transitive dependency audits and subprocess traces |
| 66 | must be repeated on the final integrated native paths before any retirement or |
| 67 | full-ecosystem claim. This remains an open architecture301/302 gate. |