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/benchmarks-mv/blob/main/AUDIT_SCOPE.md # benchmarks-mv Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS. 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 `benchmarks-mv / AUDIT_SCOPE.md` 132 lines ยท 6983 bytes Raw Blame History Rendered 1 # Audit scope 2 3 Written for an outside, independent security audit. Revision described: 4 ``0f369dbc852b2e9364ed55c6e19a7e285cd424c1`` on `main`, 2026-10-26. Everything below is taken from the repository's own files at 5 that revision; items marked NOT_RUN were not executed while writing this document. 6 7 ## What this repository is 8 9 Performance measurements from one NVIDIA DGX Spark (GB10, aarch64) and the Rust tools that take 10 and check them. Two crates, both Apache-2.0: 11 12 - `prime-drag-race/` (`prime-race` 0.1.0): the Prime Drag Race suite runner (`prime_race`) with 13 its frozen contract (`CONTRACT.md`), an independent reference, validation, the trial protocol 14 and receipts, plus 1,038 sealed evidence files under `prime-drag-race/evidence/`. 15 - The root crate `aien-benchmarks`: the measurement harness (`src/harness/`), the record format 16 and status words (`src/evidence.rs`), and the programs `bench_canonical_suite`, 17 `bench_branching_neutral`, `bench_verify_records` and `bench_index`. 18 19 `data/` and `artifacts/gb10_canonical_`1789907893`_4d762/` hold withdrawn historical datasets kept as 20 recorded. 21 22 ## What to review, in priority order 23 24 1. `src/evidence.rs` and `src/bin/bench_verify_records.rs`: the offline checker for 25 `aien-bench-record/1` records and artifact bundles. `tests/evidence_records.rs` with 26 `tests/fixtures/records/bad/` (malformed records, each asserted by its own test with the exact 27 defect lines it must produce) and `good/` exercises it. 28 2. `prime-drag-race/src/exec.rs`, `runner.rs`, `validate.rs`, `receipt.rs`: the runner executes 29 the implementation binary it is given (`Command::new(imp)` with `--limit` and 30 `--audit-passes`), reads its `report.json`, and validates results against `reference.rs` 31 before any speed number (`CONTRACT.md`, "Correctness gates"). 32 3. `src/harness/llm_stream.rs` and `src/harness/sse.rs`: streaming client; parses server-sent 33 events from the endpoint named by `--llm-host` and `--llm-port`. Tokens are counted only from 34 the server's `usage.completion_tokens`. 35 4. `src/harness/standalone.rs`, `http_bench.rs`: the harness's own HTTP server on 36 `127.0.0.1:0`. 37 5. `src/harness/memory.rs`, `smaps.rs`, `system.rs`: reads `/proc` and runs system commands 38 (`uname -r`, `rustc --version`). 39 6. `src/perf_index.rs`, `src/svg_chart.rs`, `sync-docs`: writers that rewrite tracked files. 40 README: `measure` overwrites `data/benchmarks_latest.json` and `assets/*.svg` by default, and 41 `sync-docs` with no `--target` writes `../README.md` and `../docs/STATE_OF_AIEN.md` outside this 42 repository. 43 44 ## Trust boundaries 45 46 - Untrusted: replies from measured endpoints; implementation binaries and their `report.json`; 47 records and bundles given to the checker. 48 - Trusted: committed evidence and `SHA256SUMS` files once sealed; the five runtime crates at 49 their pinned commit; the host. 50 - The harness was built for the Spark's live service layout and reads loopback services on that 51 host (README). 52 53 ## Threat model summary 54 55 - Assets: the honesty of published measurements; the integrity of sealed evidence. 56 - Attackers considered: fabricated or placeholder records; a measurement counted from the wrong 57 source (events reported as tokens, p95 from too few samples); an implementation that reports a 58 wrong prime count. 59 - Defended: offline record checker with rejection fixtures, reference validation before timing, 60 `SHA256SUMS` on bundles, `.env` refusal gate, no-Python guard. 61 - Not defended / explicitly out of scope: a hostile implementation binary (it runs with the 62 runner's privileges; no sandbox is described); measurements on any platform other than the one 63 Spark. 64 65 ## Build from source at a pin 66 67 README: the Spark used `rustc 1.98.1 (`48a229cea` 2026-09-01)`. `Cargo.lock` committed for both 68 crates (262 and 69 packages). 69 70 ```sh 71 cd prime-drag-race && cargo build && cargo test && cargo run -- --help 72 ``` 73 74 The root crate takes five crates (`aien-platform`, `aien-platform-linux`, `aien-kv-cache`, 75 `aien-scheduler`, `aien-inference-abi`) as git dependencies pinned to commit 76 ``2eb2bdd82fa5c97f7164b66c812b2ecd14ae9259`` of the public repository 77 `https://interplane.io/drakestapleton/aien-sovereign-core-mv.git`; `Cargo.lock` records that commit. No sibling checkout is 78 needed: an outside auditor can build both the main harness and `prime-drag-race/` from public sources. 79 That commit is held in the store by the annotated tag `benchmarks-runtime-pin-`2eb2bdd8``, so it stays 80 reachable if the branches that carry it move. 81 82 ## Run every test 83 84 NOT_RUN while writing this document. From README and `tests/gates/run.sh`: 85 86 ```sh 87 (cd prime-drag-race && cargo test) 88 cargo test --verbose # fetches the pinned runtime crates first 89 cargo run --release -- verify 90 cargo run --release --bin bench_verify_records -- --tracked records artifacts 91 cargo run --release --bin bench_index -- --check 92 sh scripts/check-no-python.sh 93 tests/gates/run.sh fmt && 94 tests/gates/run.sh check && 95 tests/gates/run.sh clippy && 96 tests/gates/run.sh test && 97 tests/gates/run.sh verify && 98 tests/gates/run.sh generate && 99 tests/gates/run.sh verify-records && 100 tests/gates/run.sh perf-index && 101 tests/gates/run.sh zero-disk-secrets 102 ``` 103 104 README reports 33 tests passing with 1 ignored for `prime-drag-race` on 2026-10-19. Count the 105 `#[test]` attributes at any revision with `grep -rc '#\[test\]' src tests prime-drag-race`. 106 107 ## Known limitations and NOT_RUN 108 109 - The main harness builds from public sources (above); its GPU benchmarks still need the GB10. 110 - `Cargo.lock` still names `spark-max-rs` and `spark-max-cabi`; README says no code here uses them. 111 - The streaming measurement was rewritten on 2026-10-16 and has produced no committed result. 112 - How close the Prime Drag Race result is to the hardware limit has not been measured (README). 113 - A claimed LLM result from `llm-stream` has parity NOT_RUN: no reference comparison of the 114 generated tokens exists yet (README, "Evidence integrity"). 115 - Planned issues #29 to #32 have no results. 116 117 ## Dependencies and provenance 118 119 - Root crate: direct dependencies (listed in `Cargo.toml`) include tokio, reqwest 0.12, sha2 and the five runtime 120 crates pinned by git commit. README: rustls was updated for security advisories (#27). 121 - Workflow tracked: `.forgejo/workflows/ci.yml`, written for a self-hosted `spark` runner. It 122 checks out with plain git (no external action) and calls `tests/gates/run.sh` once per step 123 word, so CI and the local gates run the same commands. The GitHub workflows were removed for 124 DRA-166. 125 126 ## Evidence 127 128 - `prime-drag-race/CAMPAIGN-2026-10-05.md` and `RESULTS-2026-10-05.md`, with run files under 129 `prime-drag-race/evidence/` (receipt ``1a3eafe9``). 130 - `artifacts/gb10_canonical_`1789907893`_4d762/` with `SHA256SUMS` (withdrawn, historical). 131 - Status words are defined in `src/evidence.rs`: VERIFIED, EXPERIMENTAL, HISTORICAL, NOT_RUN, 132 FAIL, SUPERSEDED. Signed Spark bundles are published in aien-dev/aien-receipts.