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.
Imported from GitHub aien-dev/benchmarks-mv#53 (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 7e38f3c087a84ae30cc293d583e6eaa80bc7591d · Head 952a761effd5b41a02036baca5cb1362a85544b2
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, 9854 bytes.
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 1d4311f..44180bc 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,13 +52,13 @@ jobs:
fi
- 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
@@ -70,7 +70,7 @@ jobs:
run: mv .aien-test-src "$RUNNER_TEMP/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: |
@@ -122,7 +122,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
@@ -149,12 +149,12 @@ 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 }}
@@ -164,7 +164,7 @@ jobs:
run: mv .aien-test-src "$RUNNER_TEMP/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..e6988eb
--- /dev/null
+++ b/AUDIT_SCOPE.md
@@ -0,0 +1,120 @@
+# 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
+
+1. `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/` (nine malformed records) and `good/` exercises it.
+2. `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").
+3. `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`.
+4. `src/harness/standalone.rs`, `http_bench.rs`: the harness's own HTTP server on
+ `127.0.0.1:0`.
+5. `src/harness/memory.rs`, `smaps.rs`, `system.rs`: reads `/proc` and runs system commands
+ (`uname -r`, `rustc --version`).
+6. `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 sibling crates; 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).
+
+```sh
+cd prime-drag-race && cargo build && cargo test && cargo run -- --help
+```
+
+The root crate depends by path on five crates under `../canonical-branch-native-runtime/crates/`
+(`aien-platform`, `aien-platform-linux`, `aien-kv-cache`, `aien-scheduler`, `aien-inference-abi`).
+README: that directory is a branch of aien-sovereign-core that was not on GitHub on 2026-10-19, so
+the main harness does not build from public sources. An outside auditor can build only
+`prime-drag-race/`.
+
+## Run every test
+
+NOT_RUN while writing this document. From README and `tests/gates/run.sh`:
+
+```sh
+(cd prime-drag-race && cargo test)
+cargo test --verbose # needs the sibling
+cargo run --release -- verify
+cargo run --release --bin bench_verify_records -- records artifacts tests/fixtures/records/good
+cargo run --release --bin bench_index -- --check
+sh scripts/check-no-python.sh
+tests/gates/run.sh fmt|check|test|verify|generate|verify-records|perf-index|zero-disk-secrets
+```
+
+README reports 33 tests passing with 1 ignored for `prime-drag-race` on 2026-10-19. `#[test]`
+attributes in `src/`, `tests/` and `prime-drag-race/` at this revision: 81.
+
+## Known limitations and NOT_RUN
+
+- The main harness does not build from public sources (above).
+- `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).
+- The comment in `tests/gates/run.sh` mentions `.github/workflows/ci.yml`; no such file is
+ tracked at this revision.
+- Planned issues #29 to #32 have no results.
+
+## Dependencies and provenance
+
+- Root crate: 14 direct dependencies including tokio, reqwest 0.12, sha2 and the five path crates.
+ README: rustls was updated for security advisories (#27).
+- Workflows tracked: `.forgejo/workflows/ci.yml` (runs on a self-hosted `spark` runner:
+ no-Python guard, fmt, check, test, verify) and `.github/workflows/aien-verification.yml`, which
+ builds `aien-test` from `aien-spark/aien-sovereign-core` at
+ `a51042b61b87355c0850ef82ba409a46e153a1ff`. Actions are referenced by tag, not commit sha.
+
+## 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.
diff --git a/CONSTITUTION.md b/CONSTITUTION.md
index ef20ef5..11488b0 100644
--- a/CONSTITUTION.md
+++ b/CONSTITUTION.md
@@ -33,7 +33,7 @@ This Constitution establishes our foundational principles, our engineering stand
### Section 3. Upstream Architectural Charter and Downstream Freedom
1. This Constitution serves as the internal architectural charter, technical doctrine, and engineering standard for the upstream AIEN Sovereign AI Ecosystem and its core repositories.
2. Downstream forks, independent applications, client libraries, and commercial distributions are governed strictly and exclusively by the terms of the Apache License, Version 2.0 (see [LICENSE](LICENSE)). Downstream developers possess complete freedom to innovate, customize, brand, and extend the software without obligation to adopt or enforce this internal development charter.
-3. Legal Decoupling: Legal rights, grants, and warranties reside exclusively within the formal LICENSE and NOTICE documents, and artifact licensing policies outlined in [ARTIFACT_LICENSING.md](ARTIFACT_LICENSING.md). This Constitution imposes zero behavioral covenants or philosophical constraints on downstream users, ensuring standard open-source compatibility across public package registries, corporate environments, and independent commercial deployments.
+3. Legal Decoupling: Legal rights, grants, and warranties reside exclusively within the formal LICENSE and NOTICE documents, and artifact licensing policies outlined in [ARTIFACT_LICENSING.md](https://github.com/aien-dev/aien-sovereign-core-mv/blob/main/ARTIFACT_LICENSING.md). This Constitution imposes zero behavioral covenants or philosophical constraints on downstream users, ensuring standard open-source compatibility across public package registries, corporate environments, and independent commercial deployments.
### Section 4. The Zero-Surveillance Invariant
Privacy and mutual trust form the basis of open cooperation.
@@ -47,7 +47,7 @@ Privacy and mutual trust form the basis of open cooperation.
3. Upstream contributions are foundational: any public open-source project adapted to run on our stack is contributed back upstream. We never hoard fixes or improvements.
4. Voluntary Bilateral Cooperation and Reciprocal Commons:
Hardware manufacturers (including NVIDIA, AMD, Intel, Apple) and compute providers (such as RunPod, Lambda, and independent data centers) possess complete freedom to adopt, embed, and deploy our runtime stack under the Apache License, Version 2.0 to improve hardware efficiency, eliminate memory overhead, and expand bandwidth for developers.
-For organizations seeking deeper bilateral research cooperation, model weight transparency, distillation reciprocity, or joint compute pooling, the voluntary terms of [OPEN_COOPERATION_COVENANT.md](OPEN_COOPERATION_COVENANT.md) provide a collaborative framework.
+For organizations seeking deeper bilateral research cooperation, model weight transparency, distillation reciprocity, or joint compute pooling, the voluntary terms of [OPEN_COOPERATION_COVENANT.md](https://github.com/aien-dev/aien-sovereign-core-mv/blob/main/OPEN_COOPERATION_COVENANT.md) provide a collaborative framework.
### Section 6. The Contributor Oath
Anyone contributing to our repositories, whether human operator or autonomous agent, ratifies the Developer Certificate of Origin (DCO 1.1) and the following stewardship covenant:
diff --git a/SECURITY.md b/SECURITY.md
index 9ce103b..83a393a 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -1,10 +1,57 @@
-# Security Policy
+# Security policy
-## Zero Disk Secrets Invariant
+## Reporting a vulnerability
-This repository maintains a clean disk state. API keys, hardware tokens, and credentials must never reside on disk in plaintext. All secrets resolve in-memory from hardware TPM-bound key vaults.
+Report privately. Do not open a public issue, pull request or discussion about it.
-## Reporting Vulnerabilities
+Report vulnerabilities privately through the repository's Security tab, "Report a vulnerability",
+at https://github.com/aien-dev/benchmarks-mv/security/advisories/new.
-To report a vulnerability or telemetry leak, contact:
-`aien@aienos.com`
+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. 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
+
+This repository holds AIEN's performance measurements and the Rust tools that take and check
+them: the Prime Drag Race suite runner in `prime-drag-race/` (a standalone crate), and the
+`aien-benchmarks` measurement harness at the root with four helper programs.
+
+In scope:
+
+- A record or artifact bundle that passes `bench_verify_records` while it carries placeholder
+ values, short commit ids, missing evidence files or percentiles from too few samples.
+- Tampering with committed evidence (`artifacts/*/SHA256SUMS`, `prime-drag-race/evidence/`)
+ that the checks do not detect.
+- Telemetry leaks: the harness reads system details and live-service memory; report a path that
+ publishes more than the record format names.
+- Secrets in benchmark configurations or fixtures. This repository's rule: API keys, hardware
+ tokens and credentials must never reside on disk in plaintext; secrets and tokens must never be
+ written to disk in benchmark configurations or test fixtures.
+- The harness's standalone HTTP server (bound to `127.0.0.1` on an ephemeral port) or the
+ streaming client mishandling hostile server replies.
+
+Out of scope:
+
+- The implementations under test in other repositories, the model and embedding services the
+ harness measures, the sibling runtime crates, and the host operating system.
+
+## Supported versions
+
+Only the default branch `main`; there is no release (both crates are version `0.1.0`). Reports against older commits are welcome but fixes land on the default branch only.
+
+## Status
+
+README (status 2026-10-19): one evidence-backed result, the Prime Drag Race campaign of
+5 October 2026; all older figures are withdrawn. No certification, no bug bounty. See AUDIT_SCOPE.md for what to review and how to build and test it.