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-race0.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 underprime-drag-race/evidence/.- The root crate
aien-benchmarks: the measurement harness (src/harness/), the record format and status words (src/evidence.rs), and the programsbench_canonical_suite,bench_branching_neutral,bench_verify_recordsandbench_index.
data/ and artifacts/gb10_canonical_1789907893_4d762/ hold withdrawn historical datasets kept as
recorded.
What to review, in priority order
src/evidence.rsandsrc/bin/bench_verify_records.rs: the offline checker foraien-bench-record/1records and artifact bundles.tests/evidence_records.rswithtests/fixtures/records/bad/(malformed records, each asserted by its own test with the exact defect lines it must produce) andgood/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--limitand--audit-passes), reads itsreport.json, and validates results againstreference.rsbefore any speed number (CONTRACT.md, "Correctness gates").src/harness/llm_stream.rsandsrc/harness/sse.rs: streaming client; parses server-sent events from the endpoint named by--llm-hostand--llm-port. Tokens are counted only from the server'susage.completion_tokens.src/harness/standalone.rs,http_bench.rs: the harness's own HTTP server on127.0.0.1:0.src/harness/memory.rs,smaps.rs,system.rs: reads/procand runs system commands (uname -r,rustc --version).src/perf_index.rs,src/svg_chart.rs,sync-docs: writers that rewrite tracked files. README:measureoverwritesdata/benchmarks_latest.jsonandassets/*.svgby default, andsync-docswith no--targetwrites../README.mdand../docs/STATE_OF_AIEN.mdoutside 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
SHA256SUMSfiles 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,
SHA256SUMSon bundles,.envrefusal 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.lockstill namesspark-max-rsandspark-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-streamhas 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-hostedsparkrunner. It checks out with plain git (no external action) and callstests/gates/run.shonce 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.mdandRESULTS-2026-10-05.md, with run files underprime-drag-race/evidence/(receipt1a3eafe9).artifacts/gb10_canonical_1789907893_4d762/withSHA256SUMS(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.