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/patches/a8a82314edb221bb # 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 ## GitHub aien-dev/physics-mv#90 (code only) closed derived `a8a82314edb221bb` #90 Imported from GitHub aien-dev/physics-mv#90 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `0c1b1e507dccad528003c473f1c8cbca9268436b` · Head `1ab5da07a8eb4e80a40f007f2702fe6dc4764560` drakestapleton reviewed (COMMENTED) on 2026-10-30 21:49 UTC Verdict: hold, author intent. The title says (draft) and the body says "Draft on purpose". Before this merges, Drake also needs to OK publishing drake@aienos.com as the security contact in SECURITY.md, and the audit scope text. This pass found no code must-fix; it is docs plus CI hygiene, with no gate, anchor or receipt changes. — Grokbot ### Fetch it A git bundle of the pull request's head, 10365 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/physics-mv/patches/a8a82314edb221bb.bundle -o a8a82314edb221bb.bundle git fetch a8a82314edb221bb.bundle refs/pull/90/head ``` Raw bundle · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/physics-mv 90 1ab5da07a8eb4e80a40f007f2702fe6dc4764560 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"physics-mv","number":90,"url":"https://github.com/aien-dev/physics-mv/pull/90","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:30Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..54dc308 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +# Dependabot: monthly version updates for the pinned GitHub Actions. +# Pull requests only; nothing merges itself. Security advisories are handled by GitHub +# Dependabot security updates on the repository settings. +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: monthly diff --git a/.github/workflows/aien-verification.yml b/.github/workflows/aien-verification.yml index 1192e41..0136783 100644 --- a/.github/workflows/aien-verification.yml +++ b/.github/workflows/aien-verification.yml @@ -30,7 +30,7 @@ jobs: RECEIPTS_RAW: https://raw.githubusercontent.com/aien-dev/aien-receipts/main steps: - name: Checkout the head under test - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: fetch-depth: 0 @@ -52,7 +52,7 @@ jobs: fi - name: Checkout the pinned crumb tool source (aien-architecture @ 12ad0141b41ec67ef5aa51cb4e1815894c1083bb) - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: repository: aien-spark/aien-architecture ref: 12ad0141b41ec67ef5aa51cb4e1815894c1083bb @@ -69,13 +69,13 @@ jobs: run: crumb verify . - name: Install Stable Rust Toolchain (for the pinned aien-test build) - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable branch head 2026-10-26 if: steps.anchors.outputs.enrolled == 'true' with: components: rustfmt - name: Checkout the pinned aien-test source (aien-sovereign-core @ ${{ env.AIEN_TEST_PIN }}) - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 if: steps.anchors.outputs.enrolled == 'true' with: repository: aien-spark/aien-sovereign-core @@ -83,7 +83,7 @@ jobs: path: .aien-test-src - name: Cache the pinned aien-test build - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 if: steps.anchors.outputs.enrolled == 'true' with: path: | @@ -134,7 +134,7 @@ jobs: RECEIPTS_RAW: https://raw.githubusercontent.com/aien-dev/aien-receipts/main steps: - name: Checkout the tagged commit - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: fetch-depth: 0 @@ -161,19 +161,19 @@ jobs: echo "verify.pub (origin/main): $(cat "$RUNNER_TEMP/anchors/verify.pub")" - name: Install Stable Rust Toolchain (for the pinned aien-test build) - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable branch head 2026-10-26 with: components: rustfmt - name: Checkout the pinned aien-test source (aien-sovereign-core @ ${{ env.AIEN_TEST_PIN }}) - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: repository: aien-spark/aien-sovereign-core ref: ${{ env.AIEN_TEST_PIN }} path: .aien-test-src - name: Cache the pinned aien-test build - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: | ~/.cargo/registry diff --git a/.github/workflows/sbom.yml b/.github/workflows/sbom.yml new file mode 100644 index 0000000..8b8c9df --- /dev/null +++ b/.github/workflows/sbom.yml @@ -0,0 +1,23 @@ +# SBOM: writes an SPDX JSON inventory of the tree at every push to main and on pull requests, as +# a workflow artifact, so outside auditors can diff what a commit contains. Read-only token; +# every action pinned by full commit sha. It judges nothing and gates nothing. +name: SBOM +on: + pull_request: + push: + branches: [main] +permissions: + contents: read +jobs: + sbom: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + with: + persist-credentials: false + - uses: anchore/sbom-action@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3 + with: + path: . + format: spdx-json + artifact-name: sbom-${{ github.sha }}.spdx.json diff --git a/AUDIT_SCOPE.md b/AUDIT_SCOPE.md new file mode 100644 index 0000000..2d34c28 --- /dev/null +++ b/AUDIT_SCOPE.md @@ -0,0 +1,125 @@ +# Audit scope + +Written for an outside, independent security audit. Revision described: +`8e92aa629c945d9574952b49ac4a2b04ef52ab06` on `main`, 2026-10-26. Everything below is taken from +the repository's own files at that revision; items marked NOT_RUN were not executed while writing +this document. + +## What this repository is + +Two things live here. FORGE (C, `forge/`) turns a verified Omega meaning into a realization on the +CPU, the NVIDIA GB10 GPU, or a simulated analog provider. `nvrm/` is a small C client that drives +the GB10 directly through the open NVIDIA kernel interface, with no CUDA. The root `*.s` files, +`physics.bin`, `atlas*.bin` and `m3/` are the historical Atlas and PHYSICS boot artifacts +(AArch64 assembly), qualified in QEMU only. Status (README, 2026-10-19): research grade, +pre-alpha. FORGE is realization and lowering, not a security gatekeeper; AEGIS verifies. + +## What to review, in priority order + +1. `nvrm/nvrm.c`, `nvrm/nvrm.h`: ioctl construction and result handling, memory mapping, + channel creation (`nvrm_channel_n`), the bounded allocation retry + (`NVRM_CHANNEL_NO_MEMORY_RETRIES`, `NVRM_CHANNEL_NO_MEMORY_RETRY_MS`). Runs with access to the + GPU device nodes. +2. `m15/`, `m16/`: sysfs access, native submission, the GPU wait primitive. +3. `forge/` and `forge/v2/`: descriptor parsing and serialization; the AEGIS check that refuses a + result realized for a different request (`tests/run_forge_aegis_host_gates.sh`). +4. `m3/`: effect broker and receipt ledger. +5. Boot artifacts: `physics.s`, `vector_table.s`, `capability.s`, `memory_alloc.s`, `atlas_m2.s`, + `physics.ld`, `build.sh`, `m2_build.sh`, and the committed `physics.bin` and `atlas.bin` + against `physics.sha256` and `atlas.sha256`. +6. `tests/gates/run.sh`, `tests/gb10_lock.sh`, `run_m2_gates.sh` (`--write-receipt` rewrites the + committed receipt), `tools/`. +7. `.github/workflows/aien-verification.yml`: pull request and push, `contents: read`, advisory; + on `alpha/*` tags verifies the Spark's signed bundle. Builds nothing from this repository. +8. `.aien/always`, `.aien/unmapped-ok`, `.aien/verify.pub`. + +AGENTS.md: 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. + +## Trust boundaries + +- Untrusted: pull request heads (run by the Spark judge in its sandbox); descriptors and requests + passed into FORGE. +- Trusted: the NVIDIA kernel driver and its device interface; the vendored headers (with their + `SHA256SUMS`); sibling checkouts of omega and aien-architecture; `.aien/verify.pub` on `main`. +- The DGX Spark is the only test judge; nothing on GitHub gates a merge (AGENTS.md, + `docs/PIPELINE.md`). + +## Threat model summary + +- Assets: GPU and host memory reachable through the driver interface; correctness of realized + results; receipt integrity. +- Attackers considered: a malicious pull request; a mismatched or substituted realization result; + malformed descriptors. +- Defended: AEGIS binding of result to request; submit refusals before any GPU call; GPU lock + serializing hardware gates; `nvrm/` and `m16/` frozen by the unchanged-since-base check in + `tests/test_forge_seam.c`; zero-disk-secrets gate. +- Not defended / explicitly out of scope: native boot on the DGX Spark + (`PHYSICS_BOOT_NATIVE_PASS` not earned); the native frame authority design is not implemented; + the analog provider is a simulation. + +## Build from source at a pin + +Host `gcc` and `make`, `aarch64-linux-gnu-gcc`, `-ld`, `-objcopy`, `qemu-system-aarch64`, +`socat`, `jq`. Sibling checkouts: `../omega` for `analog-sim`, `form0`, `gate34-writer`; +`../aien-architecture` for `m3` and `crumb-verify` (crumb tool at `crumb.lock` +`12ad0141b41ec67ef5aa51cb4e1815894c1083bb`). + +```sh +git clone https://github.com/aien-dev/physics-mv physics +git clone https://github.com/aien-dev/omega-mv omega +git clone https://github.com/aien-dev/aien-architecture-mv aien-architecture +cd physics +git checkout 8e92aa629c945d9574952b49ac4a2b04ef52ab06 +``` + +## Run every test + +```sh +tests/gates/run.sh forge-v2 +tests/gates/run.sh forge-aegis +tests/gates/run.sh analog-sim +tests/gates/run.sh form0 +tests/gates/run.sh gate34-writer +tests/gates/run.sh gb10-lock +tests/gates/run.sh zero-disk-secrets +tests/gates/run.sh m2 +tests/gates/run.sh m3 +tests/gates/run.sh crumb-verify +make host-tests-m16 +``` + +- README, main `aecb9d3`, DGX Spark, 2026-10-19 (not recorded as receipts): forge-v2 6 passed, + forge-aegis 13 of 13, analog-sim 14, form0 16, gate34-writer 47, gb10-lock 9, m2 15 gates, m3 19 + of 19, `make host-tests-m16` killed 3 of 3 mutants. +- GB10 gates `forge-gate34`, `m15`, `m16-requal`, `nvrm-lifecycle`, `submission-visibility` need + the real GB10 on the DGX Spark: NOT_RUN. All commands above: NOT_RUN while writing this document. + +## Known limitations and NOT_RUN + +- Boot artifacts qualified in QEMU only; native boot NOT_RUN. +- `qualification_receipt.json` is historical evidence from a retired Python test driver, kept + unchanged. +- `evidence/m16-blackwell-native-path-receipt.json` is superseded and must not be cited as a + qualification (AGENTS.md). +- `aien-verification.yml` sets `REPO_SLUG: aien-dev/physics` while this repository is + `aien-dev/physics-mv`. GitHub redirects the old name (HTTP 301 to `aien-dev/physics-mv`, + observed 2026-10-31), but the slug is not fetched: it is passed as + `aien-test verify-bundle --repo github.com/aien-dev/physics`, so a tagged release verifies only + if the Spark judge signs its bundle under that name. Not exercised: no `alpha/*` tag was run. +- omega pins an older commit of this repository in its `physics.lock` (README). + +## Dependencies and provenance + +- NVIDIA open driver headers 580.173.02, vendored with `COPYING` and `SHA256SUMS`. +- Toolchain: gcc, make, AArch64 cross binutils, QEMU, socat, jq; versions not pinned in the + repository. No Python, no CUDA. +- Committed binaries: `physics.bin`, `atlas.bin`, `atlas_m2.bin`, `nvrm/lifecycle_gates`. +- Licence: Apache-2.0 (`LICENSE`, `NOTICE`). + +## Evidence + +- `evidence/`: receipts and raw logs, additions only (`AR2`, `FORM0`, `M19R`, `PD0B`, + `m15-boundary`, `m16-requalification` and JSON receipts). +- Signed Spark bundles: `aien-dev/aien-receipts` at `physics//bundle.json` (workflow path). + Receipts are append-only and never edited. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..257754a --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,52 @@ +# Security policy + +## Reporting a vulnerability + +Report privately. Do not open a public issue, pull request or discussion about it. + +1. GitHub: open this repository's Security tab and choose "Report a vulnerability". This + creates a private advisory that only the maintainers can see. If that option is not shown, + private vulnerability reporting has not been enabled for this repository yet; use email. +2. Email: drake@aienos.com with the subject `[physics-mv] security report`. + +Include the commit or release you tested, the component (path), steps to reproduce, and what an +attacker gains. If the report involves a secret, say where it was exposed and do not send the +secret itself. Encrypted mail is not required; do not post proof-of-concept payloads publicly. + +## Response targets + +This project has one maintainer; the targets below are best effort and stated honestly. + +- Acknowledgement: within 3 working days. +- Triage and severity: within 7 days of acknowledgement. +- Fix or mitigation for confirmed issues: aim for 30 days for high and critical, 90 days + otherwise, with a status update at least every 14 days until closed. +- Disclosure: coordinated. An advisory is published with credit (unless you ask otherwise) + once the fix is on the default branch. Default embargo 90 days, negotiable. + +## Scope + +In scope: + +- `nvrm/`: the native GB10 client over the open NVIDIA kernel interface (ioctl argument + handling, memory mapping, channel and object lifetime, retry bounds). +- `m15/`, `m16/`: GB10 sysfs access, native submission and the GPU wait primitive. +- `forge/`: descriptor parsing, the V2 substrate serializer, and the AEGIS check that binds a + realized result to its request. +- `m3/` effect broker and receipt ledger; the boot artifacts (`*.s`, `physics.bin`, `atlas*.bin`) + as they run in QEMU. +- `tests/gates/run.sh`, `tests/gb10_lock.sh`, `.aien/`, `.github/workflows/`. + +Out of scope: the NVIDIA kernel driver and the vendored headers in +`third_party/nvidia-open-580.173.02/` (report upstream); the Spark test judge `aien-test` (report +to aien-sovereign-core-mv). FORGE is realization, not a security gatekeeper (README). + +## Supported versions + +Only the default branch `main`; there is no release. Fixes land on the default branch only. + +## Status + +Research grade and pre-alpha; boot artifacts are qualified in QEMU only, never natively (README). +There is no certification and no bug bounty. See AUDIT_SCOPE.md for what to review and how to +build and test it. ```