Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/physics-mv/blob/main/AGENTS.md # physics-mv FORGE: request-bound machine realization, providers and verification for AienOS. Host, simulated and GB10 hardware paths have separate evidence. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `physics-mv / AGENTS.md` 85 lines ยท 7285 bytes Raw Blame History Rendered 1 # PHYSICS (FORGE machine realization, the native GB10 client and the Atlas/PHYSICS boot artifacts) 2 3 > FORGE (C, `forge/`) turns a verified Omega meaning into a concrete realization on the machine at hand: the CPU, the NVIDIA GB10 GPU, and a simulated analog provider for testing. `nvrm/` is the small C client that drives the GB10 directly through the open NVIDIA kernel interface, with no CUDA. The root `*.s` files and `m3/` are the historical Atlas and PHYSICS boot artifacts (AArch64 assembly), qualified in QEMU only. Research-grade, pre-alpha. The repository is still named `physics`; the subsystem role is FORGE. 4 5 Shared rules: read https://www.aienos.com/agents/RULES.md first. This file adds what is specific to this repository; where the two differ, this file wins here. 6 7 ## Scope 8 9 - Applies to the whole repository. 10 - `forge/`: FORGE descriptor, realize, the V2 substrate serializer (`forge/v2/`), realization forms (`forge/form/`), the simulated analog provider (`forge/analog-sim/`). 11 - `nvrm/`: native GB10 client and its lifecycle and submission-visibility gates. `m15/`, `m16/`: Milestone 15 and 16 native accelerator code (sysfs access, native submission, the GPU wait primitive). 12 - Root `*.s`, `physics.bin`, `atlas*.bin`, `build.sh`, `m2_build.sh`, `run_m2_gates.sh`: Milestone 2 boot artifacts and their QEMU gates. `m3/`: Milestone 3 (PHYSICS_EFFECTS). 13 - `third_party/nvidia-open-580.173.02/`: vendored NVIDIA open driver headers with their own `COPYING` and `SHA256SUMS`. Do not edit them. 14 - `evidence/`: receipts and raw logs, add only. `tests/gates/`: the gate manifests the DGX Spark judge runs. 15 - The [omega](https://github.com/aien-dev/omega-mv) repository pins this one by commit in its `physics.lock` and uses `nvrm/` and `m16/`. 16 17 ## Installation 18 19 Needs host `gcc` and `make`, the AArch64 cross binutils and compiler (`aarch64-linux-gnu-gcc`, `-ld`, `-objcopy`; override with `CC`, `LD`, `OBJCOPY`, or `CROSS` for the M3 build), `qemu-system-aarch64`, `socat` and `jq`. There is no Python and no CUDA toolkit. 20 21 Some gates need sibling checkouts next to this one, under these exact directory names: 22 23 ```bash 24 git clone https://github.com/aien-dev/physics-mv physics 25 git clone https://github.com/aien-dev/omega-mv omega 26 git clone https://github.com/aien-dev/aien-architecture-mv aien-architecture 27 cd physics 28 ``` 29 30 `../omega` is needed by `analog-sim`, `form0` and `gate34-writer`; `../aien-architecture` by `m3`. A step whose sibling is missing exits 3 with a message. 31 32 ## Configuration 33 34 - `crumb.lock`: the aien-architecture commit the retired `crumb-verify` step built the crumb tool from; kept as history (DRA-97, 2026-11-07), no gate reads it. 35 - `OMEGA_DIR`: omega checkout used by the omega-dependent gates (default `../omega`). 36 - `nvrm/nvrm.h`: `NVRM_CHANNEL_NO_MEMORY_RETRIES` and `NVRM_CHANNEL_NO_MEMORY_RETRY_MS` bound the compute-object allocation retry. 37 - GB10 gates take the GPU lock through `tests/gb10_lock.sh`. `AIEN_GB10_LOCK_HELD=1` (set by the Spark runner) tells the helper the caller already holds it. 38 - `.aien/always` lists the gates every pull request must pass; `.aien/verify.pub` is the Spark judge's public key. 39 40 ## Usage 41 42 `tests/gates/run.sh ` is the one entry point; each step runs the same script as the gate manifest of that name in `tests/gates/`. 43 44 Host-only steps (no GPU): 45 46 ```bash 47 tests/gates/run.sh forge-v2 # FORGE V2 known-answer tests 48 tests/gates/run.sh forge-aegis # AEGIS binds a result to its request; submit refused before any GPU call 49 tests/gates/run.sh analog-sim # simulated analog provider vs digital oracle (needs ../omega) 50 tests/gates/run.sh form0 # FORM0 realization-form gates (needs ../omega) 51 tests/gates/run.sh gate34-writer # Gate 3/4 receipt writer (needs ../omega) 52 tests/gates/run.sh gb10-lock # GPU lock helper on a scratch lock file 53 tests/gates/run.sh zero-disk-secrets # no plaintext .env files in the tree 54 tests/gates/run.sh m2 # M2 PHYSICS_BOOT in QEMU, rebuilt from source 55 tests/gates/run.sh m3 # M3 PHYSICS_EFFECTS in QEMU, in a temporary copy (needs ../aien-architecture) 56 make host-tests-m16 # m16 GPU wait primitive: host test plus 3 mutants that must be caught 57 make test-nvrm-buddy # nvrm 2 MiB-block count per buddy zone, from a recorded table 58 ``` 59 60 Steps that need the real GB10 on the DGX Spark: `forge-gate34` (`tests/run_forge_gates.sh`), `m15`, `m16-requal`, `nvrm-lifecycle`, `submission-visibility`. Run them only on the Spark, one at a time, and never kill one mid-run. They take the GPU lock (`/tmp/aien-gb10.lock`) through `tests/gb10_lock.sh`. Do not run them on any other machine. 61 62 ## Conventions 63 64 - Language rule (ADR 0024): C only where hardware justifies it (FORGE and `nvrm/`), assembly only where measured, Omega is the destination. No Python; tools are C or shell. No CUDA toolkit or CUDA library dependence. No systemd. Offline builds. 65 - `.crumbignore` keeps the crumb compiler out of `nvrm/` and `m16/`; those directories are frozen by the unchanged-since-base check in `tests/test_forge_seam.c`. 66 - An emulator pass is never a hardware claim. `PHYSICS_BOOT_NATIVE_PASS` has not been earned; do not infer it from QEMU. 67 - Historical `PHYSICS_*` milestone names stay unchanged in evidence. 68 - Record who built what in `CONTRIBUTORS.md`, in the same commit as the work. 69 70 ## Safety and approvals 71 72 - Never edit or delete a committed receipt in `evidence/`. `evidence/m16-blackwell-native-path-receipt.json` is superseded and must not be cited as a qualification; leave it unchanged. 73 - Do not edit committed binaries (`physics.bin`, `atlas*.bin`, tracked `nvrm/` binaries) without the matching rebuilt evidence. 74 - GPU gates run only on the DGX Spark, through the lock helper. A gate that took the lock again under a parent that holds it would wait forever; `tests/test_gb10_lock.sh` checks the helper skips it. 75 - A head that changes `.aien/`, `tests/gates/`, `.github/workflows/`, `.forgejo/` or `tools/aien-test/` is `BLOCKED_OPERATOR` and needs an operator run on the Spark. Ask before touching those paths. 76 - The DGX Spark is the only test judge. The one workflow, `.github/workflows/aien-verification.yml`, builds nothing from this repository: its checks on pull requests are advisory (for enrolled repositories, a portable smoke set; the crumb step is retired, DRA-97), and on `alpha/*` tags it verifies the Spark's signed bundle. Nothing on GitHub gates a merge; `main` requires no status check. The local Spark pipeline merges a pull request only after a maintainer adds the `ready-to-merge` label and its gates pass on the current head (see `docs/PIPELINE.md`). Do not add that label yourself unless a maintainer asked you to. 77 78 ## Further reading 79 80 - `README.md`: current state, layout and the build and verify commands. 81 - `docs/PIPELINE.md`: how a pull request is tested on the Spark and merged. 82 - `docs/FORGE_SUBSTRATE_V2_SPEC.md`, `docs/native-frame-authority.md`: FORGE V2 and the native memory design (design only). 83 - `TRANSITION_PLAN_M2.md`: why the historical `qualification_receipt.json` is kept unchanged. 84 - `CONTRIBUTORS.md`: who built what. 85 - Crumb Protocol: https://github.com/aien-dev/aien-architecture-mv/blob/main/docs/CRUMB_PROTOCOL.md