interplane.Get Omega
Read in your language

aien-protocols-mv

Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem

Brought by drakestapleton

branch main Branches Tags History

aien-protocols-mv / AUDIT_SCOPE.md

118 lines · 6166 bytes Raw Blame History Source

Audit scope

Written for an outside, independent security audit. Revision described: f3785177fcaaab7c0f2ce1126616e9fecb4e47b4 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

The written contracts the parts of AIEN agree on: byte formats and rules for agent state, inference, evaluation, evidence receipts, crumbs, execution transcripts, compiled Omega units, the Omega shell platform boundary, and task messages between a Raspberry Pi and the DGX Spark. Each contract is a specification in specs/, often with test vectors and a small C checker. Ten reference Rust crates live in crates/. Implementations live with their owners, not here. Status (README, 2026-10-19): research grade, pre-alpha. osc-unit-artifact v1 is FROZEN, crumb-visible is Stable, the rest are drafts. No protocol is claimed as qualified on hardware.

What to review, in priority order

  1. specs/osc-unit-artifact/: the signed container for a compiled Omega unit (frozen; consumers carry copies of its vectors). Signature coverage, canonical encoding, the committed public keys keys/owner1.pub and keys/test1.pub, tools/check-vectors.sh.
  2. crates/aien-provenance: digests, Merkle trees, signature checks.
  3. crates/aien-action-protocol: actions, capability grants, confinement authorization; SourceGrant::compute_unsigned_digest (the V2 transcript described in the README, a breaking change approved 2026-10-26).
  4. specs/verified-crumb/ (VC1) and specs/evidence-receipt/, specs/evidence/ (AEI1), crates/aien-evaluation-protocol.
  5. specs/execution-transcript/ (TRN1) C verifier; specs/pi-spark-task/ (PST1) C checker and crates/aien-pi-spark-task reader and writer.
  6. specs/osh-platform/, specs/crumb-visible/, remaining crates.
  7. tests/gates/run.sh (steps fmt, check, clippy, test, zero-disk-secrets, anti-slop, c-vectors), .aien/always, .aien/unmapped-ok, .aien/verify.pub.
  8. Workflows: aien-verification.yml (pull request and push, contents: read, advisory; checks the Spark's signed result) and sbom.yml (SPDX inventory artifact, contents: read, actions pinned by commit sha, gates nothing).

AGENTS.md: a change to .aien/, tests/gates/ or .github/workflows/ is BLOCKED_OPERATOR and runs only when the operator starts it by hand.

Trust boundaries

Threat model summary

Build from source at a pin

Stable Rust (no rust-toolchain.toml); bash, coreutils and a C99 compiler for the checkers. Cargo.lock is committed.

git clone https://github.com/aien-dev/aien-protocols-mv.git
cd aien-protocols-mv
git checkout f3785177fcaaab7c0f2ce1126616e9fecb4e47b4
cargo check --workspace --all-targets

Run every test

cargo fmt --all -- --check
cargo check --workspace --all-targets
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
bash specs/verified-crumb/tools/check-golden.sh
bash specs/osc-unit-artifact/tools/check-vectors.sh
bash specs/execution-transcript/tools/check-corpus.sh
bash specs/pi-spark-task/tools/check-vectors.sh
bash specs/osh-platform/tools/check-stream-vectors.sh
tests/gates/run.sh c-vectors
tests/gates/run.sh zero-disk-secrets
tests/gates/run.sh anti-slop

Known limitations and NOT_RUN

Dependencies and provenance

Evidence