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
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 keyskeys/owner1.pubandkeys/test1.pub,tools/check-vectors.sh.crates/aien-provenance: digests, Merkle trees, signature checks.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).specs/verified-crumb/(VC1) andspecs/evidence-receipt/,specs/evidence/(AEI1),crates/aien-evaluation-protocol.specs/execution-transcript/(TRN1) C verifier;specs/pi-spark-task/(PST1) C checker andcrates/aien-pi-spark-taskreader and writer.specs/osh-platform/,specs/crumb-visible/, remaining crates.tests/gates/run.sh(stepsfmt,check,clippy,test,zero-disk-secrets,anti-slop,c-vectors),.aien/always,.aien/unmapped-ok,.aien/verify.pub.- Workflows:
aien-verification.yml(pull request and push,contents: read, advisory; checks the Spark's signed result) andsbom.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
- Untrusted: every byte stream a conforming reader parses (artifacts, transcripts, PST1 headers, crumb records); pull request heads.
- Trusted: signing keys named by each specification;
.aien/verify.pubonmain. - The DGX Spark is the only test judge and runs
tests/gates/run.sh; GitHub checks are advisory and build nothing from this repository (AGENTS.md,docs/PIPELINE.md). - Rule of direction: protocols point inward to nothing; implementations point downward.
Threat model summary
- Assets: the meaning of each wire format; signature and digest bindings; vectors that consumers copy.
- Attackers considered: a producer of crafted input aiming for a reader to accept it or to parse it differently from another reader; a pull request that edits vectors to make a checker pass.
- Defended: vectors with fixed verdicts and C checkers that must pass in the same pull request as any text change; frozen status for osc-unit-artifact v1; zero-disk-secrets gate.
- Not defended: draft specifications may change; several have no checker in this repository ("nothing yet" in the README table); TRN1 and PST1 are not yet produced by any runtime.
- Explicitly out of scope: owner implementations in other repositories.
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
.aien/always:PROTO-ZERO-DISK-SECRETS,PROTO-ANTI-SLOP. Thecrumb-verifystep and itsCRUMB-VERIFYgate are retired (DRA-97, 2026-11-07); the.crumbfiles stay as history.- README: on 2026-10-19 all of these passed on the Spark on
mainatfb5fca9, andcrumb verify .printedOK: 41 crumbs current. - All commands above: NOT_RUN while writing this document.
Known limitations and NOT_RUN
evidence-receiptis a partial extraction; the full extraction is owed.agent-stateandinferencehave no checker here.- The SourceGrant V2 digest requires reissuing every previously signed grant.
aien-verification.ymlsetsREPO_SLUG: aien-dev/aien-protocolswhile this repository isaien-dev/aien-protocols-mv; whether GitHub redirects this is unknown from the repository.- No fuzzing campaign is recorded in the repository.
Dependencies and provenance
- Crates.io dependencies locked in
Cargo.lock(197 packages). The C checkers use only a C99 compiler and coreutils; no outside dependencies in the trusted base (AGENTS.md). - Licences: specifications under the Community Specification License 1.0 (
LICENSE-SPEC), code under Apache-2.0 (LICENSE-CODE,LICENSE); see alsoNOTICES.md,ANTI_ENCLOSURE.md. - SPDX SBOM produced as a workflow artifact by
sbom.ymlper commit.
Evidence
- There is no
evidence/directory; test vectors live underspecs/*/vectors/. - Signed Spark bundles:
aien-dev/aien-receiptsataien-protocols/<sha>/bundle.json(workflow path). Receipts are append-only and never edited.