interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / AUDIT_SCOPE.md

116 lines · 5950 bytes Raw Blame History Source

Audit scope

Written for an outside, independent security audit. Revision described: fabf7b765a29d1e9b7d45c5b52852ee39bbfad56 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 AIEN architecture authority (AGPL-3.0-or-later): PLAN_AUTHORITY.md, CURRENT_EXECUTION_PLAN.md, doctrine/ (architecture and milestone registry), docs/ (ADRs, plans, research, archive), qualification/ (release candidate manifests and gate results), formal/invariants/ and bootstrap/formal-oracles/lean/ (Lean models). Code that runs:

What an auditor can and cannot check here

What to review, in priority order

  1. tools/crumb/crumb.c: parsing of .crumb files and store records, path handling, the store identity refusal (exit 3) and refused store file (exit 4) paths.
  2. tools/candidate/check_candidate.om and check_pins.om: they spawn processes (gh api ..., or the command in CAND_SHA_CHECK run as $CAND_SHA_CHECK <repo> <sha>); check how repository names and shas from a manifest reach those argument lists.
  3. tools/zero-legacy/gate.om and closure.om: the closure checker; gate.om checks the omc pin with its own SHA-256 (sha256.om).
  4. scripts/pr-gate.sh: merge gate with --dry-run and --admin-authorized-by; check what merges when a step is SKIP.
  5. tests/gates/run.sh and scripts/pipeline-proofs/18-crumb-only-no-rebuild.sh (uses a persistent target cache under XDG_CACHE_HOME).
  6. .github/workflows/aien-verification.yml: advisory AIEN Checks and the AIEN Alpha tag check.

Trust boundaries

Threat model summary

Build from source at a pin

The crumb tool needs a C11 compiler and make. The Omega tools need omc from omega-mv a0eafa39ac9a92786dac68f7aa6d8564a28fa981 with sha256 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 (tools/zero-legacy/omega.pin, built with sh seed/omega-from-seed.sh). The Lean models name leanprover/lean4:v4.34.1.

make -C tools/crumb test
$AIEN_OMC < tools/candidate/check_candidate.om > check_candidate && chmod +x check_candidate

Run every test

NOT_RUN while writing this document. From README and tests/gates/run.sh:

./tools/crumb/crumb verify .                     # optional: Crumbs are retired (DRA-97), no gate runs it
bash tests/gates/run.sh crumb-tool-test
bash tests/gates/run.sh script-tests
AIEN_OMC=<pinned omc> bash tests/gates/run.sh doctrine
AIEN_OMC=<pinned omc> bash tests/gates/run.sh zero-legacy
bash tests/gates/run.sh qualification-status     # needs an omega checkout at ../omega
bash tools/candidate/parity/run.sh <check_candidate-bin> <check_pins-bin>
bash scripts/pipeline-proofs/run-all.sh

doctrine and zero-legacy report NOT_RUN (exit 3) without the pinned compiler.

Known limitations and NOT_RUN

Dependencies and provenance

Evidence