Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-architecture-mv/patches/ef66414f5e10c664 # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/aien-architecture-mv#339 (code only) closed derived `ef66414f5e10c664` #339 Imported from GitHub aien-dev/aien-architecture-mv#339 (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 `12e8c7de510f85c61ae8809a9b15467c51233783` · Head `177170d5c23d79e1a05b914e3c9f538c889c2ade` drakestapleton reviewed (COMMENTED) on 2026-10-30 11:15 UTC ArchReview triage: blocked (draft by intent; the workflow commit is BLOCKED_OPERATOR under the verification gate). The content looks good: actions pinned to full SHAs, an SBOM job with a read-only token, and fixed archive links. Before it leaves draft it needs operator approval of the workflow commit, confirmation of the SECURITY.md contact address and the Dependabot setup, and the Scorecard score after the change. Checks are green, including sbom. ### Fetch it A git bundle of the pull request's head, 12497 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/ef66414f5e10c664.bundle -o ef66414f5e10c664.bundle git fetch ef66414f5e10c664.bundle refs/pull/339/head ``` Raw bundle · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/aien-architecture-mv 339 177170d5c23d79e1a05b914e3c9f538c889c2ade ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":339,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/339","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:02Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index c51d981..95152c4 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -8,7 +8,7 @@ - [ ] This PR documents remaining unrun/failed gates. - [ ] Issue ledger will be reconciled when this PR merges. -See [`docs/process/ISSUE_FIRST_DELIVERY.md`](docs/process/ISSUE_FIRST_DELIVERY.md). +See [`docs/process/ISSUE_FIRST_DELIVERY.md`](https://github.com/aien-dev/aien-architecture-mv/blob/main/docs/process/ISSUE_FIRST_DELIVERY.md). ## Architecture change 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 f6d20ea..e1a2567 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 @@ -62,13 +62,13 @@ jobs: run: crumb verify . - 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 @@ -80,7 +80,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: | @@ -135,7 +135,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 @@ -162,12 +162,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 }} @@ -177,7 +177,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..c8f3e97 --- /dev/null +++ b/AUDIT_SCOPE.md @@ -0,0 +1,117 @@ +# 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: + +- `tools/crumb/` (`crumb.c`, 2,380 lines of C11, with `Makefile` and three test scripts). +- `tools/candidate/check_candidate.om`, `check_pins.om` and a parity oracle with 477 case files and 117 expected outputs. +- `tools/doctrine/doctrine.om`, `gate.om`; `tools/zero-legacy/closure.om`, `expect.om`, + `gate.om`, `sha256.om`, with fixtures. +- `scripts/` shell tools and `scripts/pipeline-proofs/`. + +## What an auditor can and cannot check here + +- Can check: the crumb tool and its tests, the Omega checkers and their fixtures, the gate + scripts, and whether each status line in `doctrine/ROADMAP.md` and `CURRENT_EXECUTION_PLAN.md` + cites a receipt. +- Cannot check here: the receipts themselves, which live mostly in omega-mv `evidence/` and in + aien-dev/aien-receipts; any hardware result. + +## 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 `); 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 + +- Untrusted input to the tools: `.crumb` files and store records, candidate manifests and + amendments, trees scanned by the zero-legacy checker, GitHub API responses. +- Trusted: the pinned seed compiler in `tools/zero-legacy/omega.pin`, `gh` and `git`, and + `.aien/verify.pub` as the Alpha trust anchor. +- Workflow header: GitHub-hosted compute builds only the pinned verifier tools, never this + repository's code. + +## Threat model summary + +- Assets: the honesty of the status of record; the integrity of qualification manifests and pins. +- Attackers considered: hostile store files (FIFOs, unbounded reads per `test-hostile.sh`), forged + or zero digests in manifests, amendments that change frozen fields, legacy sources hidden in a + tree. +- Defended: refusal exit codes in crumb, manifest rules in `docs/qualification/CANDIDATE.md`, + byte-for-byte parity of the Omega checkers against recorded outputs, a watchdog and 1 GiB + address-space limit in the hostile tests. +- Not defended / explicitly out of scope: the truth of receipts held elsewhere; GitHub account + security. README: hosted checks are advisory and do not gate a merge. + +## 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`. + +```sh +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`: + +```sh +./tools/crumb/crumb verify . +bash tests/gates/run.sh crumb-verify +bash tests/gates/run.sh crumb-tool-test +bash tests/gates/run.sh script-tests +AIEN_OMC= bash tests/gates/run.sh doctrine +AIEN_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 +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 + +- `tools/zero-legacy/README.md`: v0; release mode implemented and gate-tested on fixtures, not yet + wired into any release decision. +- README: the Aienux kernel is not physically qualified; CAND-3 as a whole is not claimed + qualified; CAND-4 has no R15 or R16 rerun. +- The crumb tool is C, outside the Omega rule; README describes it as the one program. +- `omega.pin` names an SSH clone URL (`git@github.com:...`); an outside auditor will use HTTPS. + +## Dependencies and provenance + +- Crumb tool: libc only (C11, `make`). +- Omega tools: the omc pin above. Lean models: `lakefile.toml` and `lean-toolchain`. +- Workflow: `aien-test` built from `aien-spark/aien-sovereign-core` at + `a51042b61b87355c0850ef82ba409a46e153a1ff`; actions pinned by full commit sha (tag noted in a comment). + +## Evidence + +- `qualification/candidates/` (manifests and `*.gates.md` results) and `qualification/exceptions/`. +- `scripts/pipeline-proofs/RESULTS-2026-10-11.md`. +- `tools/candidate/parity/cases/` and `expected/`: recorded checker outputs. +- Run receipts cited from `CURRENT_EXECUTION_PLAN.md` and `doctrine/ROADMAP.md` live in other + repositories. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..2863252 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,54 @@ +# Security policy + +## Reporting a vulnerability + +Report privately. Do not open a public issue, pull request or discussion about it. + +1. GitHub: open this repository's Security tab and choose "Report a vulnerability". This + creates a private advisory that only the maintainers can see. If that option is not shown, + private vulnerability reporting has not been enabled for this repository yet; use email. +2. Email: drake@aienos.com with the subject `[aien-architecture-mv] security report`. + +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. Encrypted mail is not required; 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 is the architecture and status authority for AIEN: documents, plans, ADRs, +qualification candidate manifests, and a few checking tools. README: there is no product to build +here. + +In scope: + +- The crumb tool `tools/crumb/crumb.c` (C11), which reads `.crumb` files and coordination-store + records, including hostile ones (`tools/crumb/test-hostile.sh`). +- The seeded Omega checkers in `tools/candidate/`, `tools/doctrine/` and `tools/zero-legacy/` + accepting a manifest, pin or tree they should refuse. +- `scripts/pr-gate.sh`, which reads GitHub state and can squash-merge, and the other scripts. +- The tracked workflow `.github/workflows/aien-verification.yml`. +- A status claim in this repository that its cited receipt does not support. + +Out of scope: the repositories whose design is described here; report those in their own +repository. + +## Supported versions + +Only the default branch `main`. There are no releases. Reports against older commits are welcome but fixes land on the default branch only. + +## Status + +README (2026-10-26): AienOS is in alpha testing; the rest of the stack is research-grade and +pre-alpha. Nothing in AIEN is described as qualified unless a receipt says so. No certification, +no bug bounty. See AUDIT_SCOPE.md for what to review and how to build and test it. diff --git a/docs/archive/plans/2026-09-22/12-roadmap.md b/docs/archive/plans/2026-09-22/12-roadmap.md index 416c925..b5c3cbc 100644 --- a/docs/archive/plans/2026-09-22/12-roadmap.md +++ b/docs/archive/plans/2026-09-22/12-roadmap.md @@ -2,7 +2,7 @@ > > Original path: `docs/12-roadmap.md` > -> Archived on 2026-09-27 during plan consolidation. The active cross-project execution plan is [CURRENT_EXECUTION_PLAN.md](../../../CURRENT_EXECUTION_PLAN.md), governed by [PLAN_AUTHORITY.md](../../../PLAN_AUTHORITY.md). +> Archived on 2026-09-27 during plan consolidation. The active cross-project execution plan is [CURRENT_EXECUTION_PLAN.md](../../../../CURRENT_EXECUTION_PLAN.md), governed by [PLAN_AUTHORITY.md](../../../../PLAN_AUTHORITY.md). > > Retained for provenance only. diff --git a/docs/archive/plans/2026-09-22/AIEN_COMPLETE_SYSTEM_ARCHITECTURE.md b/docs/archive/plans/2026-09-22/AIEN_COMPLETE_SYSTEM_ARCHITECTURE.md index 84581bf..722bdf3 100644 --- a/docs/archive/plans/2026-09-22/AIEN_COMPLETE_SYSTEM_ARCHITECTURE.md +++ b/docs/archive/plans/2026-09-22/AIEN_COMPLETE_SYSTEM_ARCHITECTURE.md @@ -2,7 +2,7 @@ > > Original path: `AIEN_COMPLETE_SYSTEM_ARCHITECTURE.md` > -> Archived on 2026-09-27 during plan consolidation. The active cross-project execution plan is [CURRENT_EXECUTION_PLAN.md](../../../CURRENT_EXECUTION_PLAN.md), governed by [PLAN_AUTHORITY.md](../../../PLAN_AUTHORITY.md). +> Archived on 2026-09-27 during plan consolidation. The active cross-project execution plan is [CURRENT_EXECUTION_PLAN.md](../../../../CURRENT_EXECUTION_PLAN.md), governed by [PLAN_AUTHORITY.md](../../../../PLAN_AUTHORITY.md). > > Retained for provenance only. diff --git a/docs/archive/plans/2026-09-25/14-master-architectural-plan.md b/docs/archive/plans/2026-09-25/14-master-architectural-plan.md index b0d2dcc..86d8606 100644 --- a/docs/archive/plans/2026-09-25/14-master-architectural-plan.md +++ b/docs/archive/plans/2026-09-25/14-master-architectural-plan.md @@ -2,7 +2,7 @@ > > Original path: `docs/14-master-architectural-plan.md` > -> Archived on 2026-09-27 during plan consolidation. The active cross-project execution plan is [CURRENT_EXECUTION_PLAN.md](../../../CURRENT_EXECUTION_PLAN.md), governed by [PLAN_AUTHORITY.md](../../../PLAN_AUTHORITY.md). +> Archived on 2026-09-27 during plan consolidation. The active cross-project execution plan is [CURRENT_EXECUTION_PLAN.md](../../../../CURRENT_EXECUTION_PLAN.md), governed by [PLAN_AUTHORITY.md](../../../../PLAN_AUTHORITY.md). > > Retained for provenance only. diff --git a/docs/archive/plans/2026-09-25/AIEN_MASTER_ARCHITECTURAL_PLAN.md b/docs/archive/plans/2026-09-25/AIEN_MASTER_ARCHITECTURAL_PLAN.md index 35d33c7..9b71ac8 100644 --- a/docs/archive/plans/2026-09-25/AIEN_MASTER_ARCHITECTURAL_PLAN.md +++ b/docs/archive/plans/2026-09-25/AIEN_MASTER_ARCHITECTURAL_PLAN.md @@ -2,7 +2,7 @@ > > Original path: `AIEN_MASTER_ARCHITECTURAL_PLAN.md` > -> Archived on 2026-09-27 during plan consolidation. The active cross-project execution plan is [CURRENT_EXECUTION_PLAN.md](../../../CURRENT_EXECUTION_PLAN.md), governed by [PLAN_AUTHORITY.md](../../../PLAN_AUTHORITY.md). +> Archived on 2026-09-27 during plan consolidation. The active cross-project execution plan is [CURRENT_EXECUTION_PLAN.md](../../../../CURRENT_EXECUTION_PLAN.md), governed by [PLAN_AUTHORITY.md](../../../../PLAN_AUTHORITY.md). > > Retained for provenance only. ```