physics-mv
FORGE: request-bound machine realization, providers and verification for AienOS. Host, simulated and GB10 hardware paths have separate evidence.
Brought by drakestapleton
physics-mv / AUDIT_SCOPE.md
| 1 | # Audit scope |
| 2 | |
| 3 | Written for an outside, independent security audit. Revision described: |
| 4 | `8e92aa629c945d9574952b49ac4a2b04ef52ab06` on `main`, 2026-10-26. Everything below is taken from |
| 5 | the repository's own files at that revision; items marked NOT_RUN were not executed while writing |
| 6 | this document. |
| 7 | |
| 8 | ## What this repository is |
| 9 | |
| 10 | Two things live here. FORGE (C, `forge/`) turns a verified Omega meaning into a realization on the |
| 11 | CPU, the NVIDIA GB10 GPU, or a simulated analog provider. `nvrm/` is a small C client that drives |
| 12 | the GB10 directly through the open NVIDIA kernel interface, with no CUDA. The root `*.s` files, |
| 13 | `physics.bin`, `atlas*.bin` and `m3/` are the historical Atlas and PHYSICS boot artifacts |
| 14 | (AArch64 assembly), qualified in QEMU only. Status (README, 2026-10-19): research grade, |
| 15 | pre-alpha. FORGE is realization (its lowering is a labelled IR-copy simulation today, DRA-176), not a security gatekeeper; AEGIS verifies. |
| 16 | |
| 17 | ## What to review, in priority order |
| 18 | |
| 19 | 1. `nvrm/nvrm.c`, `nvrm/nvrm.h`: ioctl construction and result handling, memory mapping, |
| 20 | channel creation (`nvrm_channel_n`), the bounded allocation retry |
| 21 | (`NVRM_CHANNEL_NO_MEMORY_RETRIES`, `NVRM_CHANNEL_NO_MEMORY_RETRY_MS`). Runs with access to the |
| 22 | GPU device nodes. |
| 23 | 2. `m15/`, `m16/`: sysfs access, native submission, the GPU wait primitive. |
| 24 | 3. `forge/` and `forge/v2/`: descriptor parsing and serialization; the AEGIS check that refuses a |
| 25 | result realized for a different request (`tests/run_forge_aegis_host_gates.sh`). |
| 26 | 4. `m3/`: effect broker and receipt ledger. |
| 27 | 5. Boot artifacts: `physics.s`, `vector_table.s`, `capability.s`, `memory_alloc.s`, `atlas_m2.s`, |
| 28 | `physics.ld`, `build.sh`, `m2_build.sh`, and the committed `physics.bin` and `atlas.bin` |
| 29 | against `physics.sha256` and `atlas.sha256`. |
| 30 | 6. `tests/gates/run.sh`, `tests/gb10_lock.sh`, `run_m2_gates.sh` (`--write-receipt` rewrites the |
| 31 | committed receipt), `tools/`. |
| 32 | 7. `.github/workflows/aien-verification.yml`: pull request and push, `contents: read`, advisory; |
| 33 | on `alpha/*` tags verifies the Spark's signed bundle. Builds nothing from this repository. |
| 34 | 8. `.aien/always`, `.aien/unmapped-ok`, `.aien/verify.pub`. |
| 35 | |
| 36 | AGENTS.md: a head that changes `.aien/`, `tests/gates/`, `.github/workflows/`, `.forgejo/` or |
| 37 | `tools/aien-test/` is `BLOCKED_OPERATOR` and needs an operator run on the Spark. |
| 38 | |
| 39 | ## Trust boundaries |
| 40 | |
| 41 | - Untrusted: pull request heads (run by the Spark judge in its sandbox); descriptors and requests |
| 42 | passed into FORGE. |
| 43 | - Trusted: the NVIDIA kernel driver and its device interface; the vendored headers (with their |
| 44 | `SHA256SUMS`); sibling checkouts of omega and aien-architecture; `.aien/verify.pub` on `main`. |
| 45 | - The DGX Spark is the only test judge; nothing on GitHub gates a merge (AGENTS.md, |
| 46 | `docs/PIPELINE.md`). |
| 47 | |
| 48 | ## Threat model summary |
| 49 | |
| 50 | - Assets: GPU and host memory reachable through the driver interface; correctness of realized |
| 51 | results; receipt integrity. |
| 52 | - Attackers considered: a malicious pull request; a mismatched or substituted realization result; |
| 53 | malformed descriptors. |
| 54 | - Defended: AEGIS binding of result to request; submit refusals before any GPU call; GPU lock |
| 55 | serializing hardware gates; `nvrm/` and `m16/` frozen by the unchanged-since-base check in |
| 56 | `tests/test_forge_seam.c`; zero-disk-secrets gate. |
| 57 | - Not defended / explicitly out of scope: native boot on the DGX Spark |
| 58 | (`PHYSICS_BOOT_NATIVE_PASS` not earned); the native frame authority design is not implemented; |
| 59 | the analog provider is a simulation. |
| 60 | |
| 61 | ## Build from source at a pin |
| 62 | |
| 63 | Host `gcc` and `make`, `aarch64-linux-gnu-gcc`, `-ld`, `-objcopy`, `qemu-system-aarch64`, |
| 64 | `socat`, `jq`. Sibling checkouts: `../omega` for `analog-sim`, `form0`, `gate34-writer`; |
| 65 | `../aien-architecture` for `m3`. |
| 66 | |
| 67 | ```sh |
| 68 | git clone https://github.com/aien-dev/physics-mv physics |
| 69 | git clone https://github.com/aien-dev/omega-mv omega |
| 70 | git clone https://github.com/aien-dev/aien-architecture-mv aien-architecture |
| 71 | cd physics |
| 72 | git checkout 8e92aa629c945d9574952b49ac4a2b04ef52ab06 |
| 73 | ``` |
| 74 | |
| 75 | ## Run every test |
| 76 | |
| 77 | ```sh |
| 78 | tests/gates/run.sh forge-v2 |
| 79 | tests/gates/run.sh forge-aegis |
| 80 | tests/gates/run.sh analog-sim |
| 81 | tests/gates/run.sh form0 |
| 82 | tests/gates/run.sh gate34-writer |
| 83 | tests/gates/run.sh gb10-lock |
| 84 | tests/gates/run.sh zero-disk-secrets |
| 85 | tests/gates/run.sh m2 |
| 86 | tests/gates/run.sh m3 |
| 87 | make host-tests-m16 |
| 88 | ``` |
| 89 | |
| 90 | - README, main `aecb9d3`, DGX Spark, 2026-10-19 (not recorded as receipts): forge-v2 6 passed, |
| 91 | forge-aegis 13 of 13, analog-sim 14, form0 16, gate34-writer 47, gb10-lock 9, m2 15 gates, m3 19 |
| 92 | of 19, `make host-tests-m16` killed 3 of 3 mutants. |
| 93 | - GB10 gates `forge-gate34`, `m15`, `m16-requal`, `nvrm-lifecycle`, `submission-visibility` need |
| 94 | the real GB10 on the DGX Spark: NOT_RUN. All commands above: NOT_RUN while writing this document. |
| 95 | |
| 96 | ## Known limitations and NOT_RUN |
| 97 | |
| 98 | - Boot artifacts qualified in QEMU only; native boot NOT_RUN. |
| 99 | - `qualification_receipt.json` is historical evidence from a retired Python test driver, kept |
| 100 | unchanged. |
| 101 | - `evidence/m16-blackwell-native-path-receipt.json` is superseded and must not be cited as a |
| 102 | qualification (AGENTS.md). |
| 103 | - `aien-verification.yml` sets `REPO_SLUG: aien-dev/physics` while this repository is |
| 104 | `aien-dev/physics-mv`. GitHub redirects the old name (HTTP 301 to `aien-dev/physics-mv`, |
| 105 | observed 2026-10-31), but the slug is not fetched: it is passed as |
| 106 | `aien-test verify-bundle --repo github.com/aien-dev/physics`, so a tagged release verifies only |
| 107 | if the Spark judge signs its bundle under that name. Not exercised: no `alpha/*` tag was run. |
| 108 | - omega pins an older commit of this repository in its `physics.lock` (README). |
| 109 | |
| 110 | ## Dependencies and provenance |
| 111 | |
| 112 | - NVIDIA open driver headers 580.173.02, vendored with `COPYING` and `SHA256SUMS`. |
| 113 | - Toolchain: gcc, make, AArch64 cross binutils, QEMU, socat, jq; versions not pinned in the |
| 114 | repository. No Python, no CUDA. |
| 115 | - Committed binaries: `physics.bin`, `atlas.bin`, `atlas_m2.bin`, `nvrm/lifecycle_gates`. |
| 116 | - Licence: Apache-2.0 (`LICENSE`, `NOTICE`). |
| 117 | |
| 118 | ## Evidence |
| 119 | |
| 120 | - `evidence/`: receipts and raw logs, additions only (`AR2`, `FORM0`, `M19R`, `PD0B`, |
| 121 | `m15-boundary`, `m16-requalification` and JSON receipts). |
| 122 | - Signed Spark bundles: `aien-dev/aien-receipts` at `physics/<sha>/bundle.json` (workflow path). |
| 123 | Receipts are append-only and never edited. |