aien-train
AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.
Brought by drakestapleton
aien-train / AUDIT_SCOPE.md
| 1 | # Audit scope |
| 2 | |
| 3 | Written for an outside, independent security audit. Revision described: |
| 4 | `3481e8c84cb95bd3ec0aa3c0171e294c685ed954` on `main`, 2026-10-30 (751 tracked files). Later merges |
| 5 | add units; check `git log` for anything newer. Items marked NOT_RUN were not executed while |
| 6 | writing this document. |
| 7 | |
| 8 | ## What this repository is |
| 9 | |
| 10 | Native training work for AIEN's own engine (Omega, no CUDA, no third-party training |
| 11 | framework). The product code is handwritten seeded Omega (`.om`) compiled by the pinned `omc` |
| 12 | seed compiler; every check and verdict lives in the `.om` units. All results so far are host |
| 13 | CPU (aarch64) runs. No unit has run on a GPU or the DGX Spark (GB10); that work stays NOT_RUN and |
| 14 | needs an authorised hardware window (AGENTS.md). |
| 15 | |
| 16 | ## Inventory |
| 17 | |
| 18 | Native `.om` units and their tests, each with a contract under `docs/<area>/` and receipts under |
| 19 | `evidence/<AREA>/`: |
| 20 | |
| 21 | | Area | Units | Tests | Contract | Evidence | |
| 22 | | --- | --- | --- | --- | --- | |
| 23 | | distributed7 (admission over the shared tensor contract, #14) | `native/distributed7/` | `tests/distributed7/admission.om`, `mutate.om` | `docs/distributed7/CONTRACT.md` | `evidence/DISTRIBUTED7/` | |
| 24 | | ecosystem5 (PACK5 training-example packing, #16) | `native/ecosystem5/` | `tests/ecosystem5/pack-test.om`, `mutate.om` | `docs/ecosystem5/CONTRACT.md` | `evidence/ECOSYSTEM5/` | |
| 25 | | ecosystem6 (FP32 forward, backward and SGD step, #15) | `native/ecosystem6/` | `tests/ecosystem6/step-test.om`, `mutate.om` | `docs/ecosystem6/CONTRACT.md` | `evidence/ECOSYSTEM6/` | |
| 26 | | si19 (offline experiential world model, #22) | `native/si19/` | `tests/si19/world-test.om` | `docs/si19/CONTRACT.md` | `evidence/SI19/` | |
| 27 | | collective (shared-base specialist pilot, #27) | `native/collective/` | self-test inside `shared_bank_p0.om` | `native/collective/README.md` | host record in that README | |
| 28 | | neuralese NL1 (numerical channel experiment, #36) | `native/neuralese/*.om`, `mutants/` | `check.om`, `gradientcheck.om` | `native/neuralese/README.md` | `native/neuralese/evidence/` | |
| 29 | |
| 30 | Non-`.om` tracked files that execute: `tests/si19/run.sh` (disclosed POSIX host glue that |
| 31 | materialises pinned sources, checks hashes, builds and runs; no verdict logic) and the Wolfram |
| 32 | Language oracles `native/neuralese/*.wl` (independent reference only, never in the product |
| 33 | path). |
| 34 | |
| 35 | ## Pinned external `.om` dependencies |
| 36 | |
| 37 | `docs/ecosystem6/dependencies.json` pins the compiler (omega-bridge `0fc7d866`, binary sha256 |
| 38 | `191b776e...98e9`, aarch64 static ELF) and three external sources by commit and sha256: |
| 39 | `native/ref32/add32.om` and `native/ref32/mul32.om` from omega-bridge `7e1d0d61`, and |
| 40 | `native/ecosystem663/metadata.om` from omega-mv `3a995ba8`. `docs/si19/dependencies.json` pins |
| 41 | the same three plus `native/ecosystem6/affine.om` from this repository at `c9782bfd`, with |
| 42 | hashes in `docs/si19/deps.sha256`. |
| 43 | |
| 44 | ## What an auditor can check here |
| 45 | |
| 46 | - That no tracked file carries tokens, credentials or private data. |
| 47 | - That every pinned dependency materialises from its commit with the recorded sha256. |
| 48 | - That the `.om` tests pass and the mutants fail, by replaying the contracts (below). |
| 49 | - That no number is presented as measured without a receipt in `evidence/` or the unit's |
| 50 | README, and that GPU/Spark results are labelled NOT_RUN. |
| 51 | |
| 52 | Cannot be checked here: any GPU kernel, device measurement or real-model training. None exists. |
| 53 | |
| 54 | ## What to review, in priority order |
| 55 | |
| 56 | 1. Inputs the `.om` units read (images, records, fixtures) and their refusal paths: damaged or |
| 57 | truncated images, out-of-range ids, denied candidates. |
| 58 | 2. Dependency pinning: the commits and sha256 values above, and that runners refuse a mismatch. |
| 59 | 3. `tests/si19/run.sh`: the only shell in the tree; it reads only pinned Git objects and the |
| 60 | compiler path given in the environment. |
| 61 | 4. All tracked files for secrets or private data. |
| 62 | 5. `docs/PLAN.md` and `AGENTS.md`: the rules that govern the code (no CUDA or third-party |
| 63 | training framework in the product path; every number names its chip; GPU work only in an |
| 64 | authorised hardware window). |
| 65 | |
| 66 | There is no `.github/workflows/` directory and no GitHub check runs on pull requests. |
| 67 | |
| 68 | ## Trust boundaries |
| 69 | |
| 70 | - Untrusted: pull requests from outside contributors; any input file given to a `.om` driver. |
| 71 | - Trusted: the maintainer's review; the pinned compiler binary, identified by sha256. |
| 72 | `main` receives merges and tags only (AGENTS.md). |
| 73 | - Planned GPU work needs an authorised window on the hardware (AGENTS.md). |
| 74 | |
| 75 | ## Threat model summary |
| 76 | |
| 77 | - Assets: the honesty of measurements and receipts; absence of secrets in a public repository; |
| 78 | integrity of pinned dependencies. |
| 79 | - Attackers considered: accidental commit of private data; unreceipted numbers; a swapped |
| 80 | dependency or compiler; malformed input images. |
| 81 | - Defended: sha256 checks of every pinned source and of the compiler; refusal paths in the `.om` |
| 82 | units; mutant runs that must fail; pull-request review. |
| 83 | - Not defended / out of scope: the Omega compiler itself (report to `aien-dev/omega-mv`), the host |
| 84 | operating system, and the absence of CI. |
| 85 | |
| 86 | ## Build from source at a pin and run every test |
| 87 | |
| 88 | Each contract states its replay recipe: `docs/distributed7/CONTRACT.md` (Consumed interfaces, |
| 89 | Qualification), `docs/ecosystem5/CONTRACT.md` (Frozen dependencies and caller), |
| 90 | `docs/ecosystem6/CONTRACT.md` (Dependency and build freeze), `docs/si19/CONTRACT.md` (Build and |
| 91 | run: `sh tests/si19/run.sh`), and the collective and neuralese READMEs. The recipes need the |
| 92 | pinned `omc` (sha256 in the dependency files), clones of omega-bridge and omega-mv containing the |
| 93 | pinned commits, and an aarch64 Linux host. NOT_RUN while writing this document: a full replay of |
| 94 | every area. |
| 95 | |
| 96 | ## Known limitations and NOT_RUN |
| 97 | |
| 98 | - GPU, DGX Spark and real-model training: NOT_RUN for every area. |
| 99 | - `docs/history/`, `docs/LESSONS.md`, `docs/physics/`: planned, not written. |
| 100 | - `streams/*/`: empty placeholders. |
| 101 | - First-party shell glue `tests/si19/run.sh` remains; its OM2 conductor replacement is recorded |
| 102 | in `docs/si19/CONTRACT.md`. |
| 103 | |
| 104 | ## Dependencies and provenance |
| 105 | |
| 106 | No lockfile, no vendored third-party code, no package manager dependencies, no GitHub Actions. |
| 107 | External code is limited to the pinned `.om` sources listed above, all first-party AIEN |
| 108 | repositories. PyTorch, JAX and similar are yardsticks and oracles only, never shipped |
| 109 | (AGENTS.md); Wolfram Language files are oracles only. |
| 110 | |
| 111 | ## Evidence |
| 112 | |
| 113 | Receipts live in `evidence/DISTRIBUTED7/`, `evidence/ECOSYSTEM5/`, `evidence/ECOSYSTEM6/`, |
| 114 | `evidence/SI19/` and `native/neuralese/evidence/`. Receipts are append-only and are not edited |
| 115 | after the fact. |