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 Source # Audit scope Written for an outside, independent security audit. Revision described: `0f369dbc852b2e9364ed55c6e19a7e285cd424c1` 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 Performance measurements from one NVIDIA DGX Spark (GB10, aarch64) and the Rust tools that take and check them. Two crates, both Apache-2.0: - `prime-drag-race/` (`prime-race` 0.1.0): the Prime Drag Race suite runner (`prime_race`) with its frozen contract (`CONTRACT.md`), an independent reference, validation, the trial protocol and receipts, plus 1,038 sealed evidence files under `prime-drag-race/evidence/`. - The root crate `aien-benchmarks`: the measurement harness (`src/harness/`), the record format and status words (`src/evidence.rs`), and the programs `bench_canonical_suite`, `bench_branching_neutral`, `bench_verify_records` and `bench_index`. `data/` and `artifacts/gb10_canonical_1789907893_4d762/` hold withdrawn historical datasets kept as recorded. ## What to review, in priority order - `src/evidence.rs` and `src/bin/bench_verify_records.rs`: the offline checker for `aien-bench-record/1` records and artifact bundles. `tests/evidence_records.rs` with `tests/fixtures/records/bad/` (malformed records, each asserted by its own test with the exact defect lines it must produce) and `good/` exercises it. - `prime-drag-race/src/exec.rs`, `runner.rs`, `validate.rs`, `receipt.rs`: the runner executes the implementation binary it is given (`Command::new(imp)` with `--limit` and `--audit-passes`), reads its `report.json`, and validates results against `reference.rs` before any speed number (`CONTRACT.md`, "Correctness gates"). - `src/harness/llm_stream.rs` and `src/harness/sse.rs`: streaming client; parses server-sent events from the endpoint named by `--llm-host` and `--llm-port`. Tokens are counted only from the server's `usage.completion_tokens`. - `src/harness/standalone.rs`, `http_bench.rs`: the harness's own HTTP server on `127.0.0.1:0`. - `src/harness/memory.rs`, `smaps.rs`, `system.rs`: reads `/proc` and runs system commands (`uname -r`, `rustc --version`). - `src/perf_index.rs`, `src/svg_chart.rs`, `sync-docs`: writers that rewrite tracked files. README: `measure` overwrites `data/benchmarks_latest.json` and `assets/*.svg` by default, and `sync-docs` with no `--target` writes `../README.md` and `../docs/STATE_OF_AIEN.md` outside this repository. ## Trust boundaries - Untrusted: replies from measured endpoints; implementation binaries and their `report.json`; records and bundles given to the checker. - Trusted: committed evidence and `SHA256SUMS` files once sealed; the five runtime crates at their pinned commit; the host. - The harness was built for the Spark's live service layout and reads loopback services on that host (README). ## Threat model summary - Assets: the honesty of published measurements; the integrity of sealed evidence. - Attackers considered: fabricated or placeholder records; a measurement counted from the wrong source (events reported as tokens, p95 from too few samples); an implementation that reports a wrong prime count. - Defended: offline record checker with rejection fixtures, reference validation before timing, `SHA256SUMS` on bundles, `.env` refusal gate, no-Python guard. - Not defended / explicitly out of scope: a hostile implementation binary (it runs with the runner's privileges; no sandbox is described); measurements on any platform other than the one Spark. ## Build from source at a pin README: the Spark used `rustc 1.98.1 (48a229cea 2026-09-01)`. `Cargo.lock` committed for both crates (262 and 69 packages). ``` cd prime-drag-race && cargo build && cargo test && cargo run -- --help ``` The root crate takes five crates (`aien-platform`, `aien-platform-linux`, `aien-kv-cache`, `aien-scheduler`, `aien-inference-abi`) as git dependencies pinned to commit `2eb2bdd82fa5c97f7164b66c812b2ecd14ae9259` of the public repository `https://interplane.io/drakestapleton/aien-sovereign-core-mv.git`; `Cargo.lock` records that commit. No sibling checkout is needed: an outside auditor can build both the main harness and `prime-drag-race/` from public sources. That commit is held in the store by the annotated tag `benchmarks-runtime-pin-2eb2bdd8`, so it stays reachable if the branches that carry it move. ## Run every test NOT_RUN while writing this document. From README and `tests/gates/run.sh`: ``` (cd prime-drag-race && cargo test) cargo test --verbose # fetches the pinned runtime crates first cargo run --release -- verify cargo run --release --bin bench_verify_records -- --tracked records artifacts cargo run --release --bin bench_index -- --check sh scripts/check-no-python.sh tests/gates/run.sh fmt && tests/gates/run.sh check && tests/gates/run.sh clippy && tests/gates/run.sh test && tests/gates/run.sh verify && tests/gates/run.sh generate && tests/gates/run.sh verify-records && tests/gates/run.sh perf-index && tests/gates/run.sh zero-disk-secrets ``` README reports 33 tests passing with 1 ignored for `prime-drag-race` on 2026-10-19. Count the `#[test]` attributes at any revision with `grep -rc '#\[test\]' src tests prime-drag-race`. ## Known limitations and NOT_RUN - The main harness builds from public sources (above); its GPU benchmarks still need the GB10. - `Cargo.lock` still names `spark-max-rs` and `spark-max-cabi`; README says no code here uses them. - The streaming measurement was rewritten on 2026-10-16 and has produced no committed result. - How close the Prime Drag Race result is to the hardware limit has not been measured (README). - A claimed LLM result from `llm-stream` has parity NOT_RUN: no reference comparison of the generated tokens exists yet (README, "Evidence integrity"). - Planned issues #29 to #32 have no results. ## Dependencies and provenance - Root crate: direct dependencies (listed in `Cargo.toml`) include tokio, reqwest 0.12, sha2 and the five runtime crates pinned by git commit. README: rustls was updated for security advisories (#27). - Workflow tracked: `.forgejo/workflows/ci.yml`, written for a self-hosted `spark` runner. It checks out with plain git (no external action) and calls `tests/gates/run.sh` once per step word, so CI and the local gates run the same commands. The GitHub workflows were removed for DRA-166. ## Evidence - `prime-drag-race/CAMPAIGN-2026-10-05.md` and `RESULTS-2026-10-05.md`, with run files under `prime-drag-race/evidence/` (receipt `1a3eafe9`). - `artifacts/gb10_canonical_1789907893_4d762/` with `SHA256SUMS` (withdrawn, historical). - Status words are defined in `src/evidence.rs`: VERIFIED, EXPERIMENTAL, HISTORICAL, NOT_RUN, FAIL, SUPERSEDED. Signed Spark bundles are published in aien-dev/aien-receipts.