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/9642a37578a370f9 # 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 ## ADR 0033: amendment 2026-11-06, receipt index on the receipts shelf merged `9642a37578a370f9` #379 · opened 2026-11-06 21:45 UTC · closed 2026-11-06 21:48 UTC · merged 2026-11-06 21:48 UTC Imported from GitHub aien-dev/aien-architecture-mv#379, by drakestapleton Base `ad8d1eb359e7ae86a8ef6613cd3c4479f5676db9` · Head `59872c9b1354d92d6219ebcefdf7f7f00c11f49f` Merged on GitHub as `c9dd6f37b6b83fad5e45662ee6ab423a8b74551d`; reachable from main `bccab5ea7a17be6c9ab30b1bd05db4898a4601be` (observed 2026-11-18T16:37:25Z) drakestapleton wrote on 2026-11-06 21:45 UTC Title: ADR 0033: amendment 2026-11-06, receipt index on the receipts shelf DRAFT. This PR amends ADR 0033 to admit the aien-receipts layout change in aien-dev/aien-receipts#12 (Linear DRA-167). That PR adds `index/`, `tools/` and `tests/`, and the shelf's AGENTS.md requires an ADR 0033 change plus maintainer approval before a layout change. Queen gives the maintainer approval under Drake's delegation of merge judgment (DRA-162, `59767dce`). Queen approves by merging, after independent reviews of this PR and of aien-receipts#12. Neither review has run yet. ## Issue-first tracking Tracking issue: Refs Linear DRA-167 and aien-dev/aien-receipts#12. The approval route is DRA-162. Gates advanced and status: All seven local gates PASS (host-local, Spark). Hosted CI: NOT_RUN. Independent review: NOT_RUN. Source, test and qualification evidence: listed below. - Base: main @ `ad8d1eb359e7ae86a8ef6613cd3c4479f5676db9`. - Head: hive/adr-0033-receipt-index @ `59872c9b1354d92d6219ebcefdf7f7f00c11f49f`. ## Architecture change ### Responsibility changed This PR changes no subsystem responsibility. It adds a citation aid to the receipts shelf: a correction-aware index of citable receipts, and a replay tool that recomputes every entry. ### ADR This PR adds the section "Amendment 2026-11-06 (receipt index on the receipts shelf)" to `docs/adr/0033-aien-verification-pipeline.md`. The diff is 10 added lines and touches no other text. The amendment does five things: - Admits the three new directories. - States that only `admit` writes the index, and that `replay` recomputes every entry. Replay rejects drift, unknown fields, and a correction that differs between the indexed commit and the shelf HEAD. - States that a correction outranks historical status. - Leaves bundles unchanged. It also records that the tool reads trust anchors from the source commit's first parent, which stands in for the base ref at gating time. - States that the index is not a gate and adds no workflow. ### Implementation evidence The implementation is aien-dev/aien-receipts#12, head `a1be26668506862b616bb9d93e417143a6ebc574`. Spark host-local runs at that head: - unit tests: 28 OK - `replay --all`: 16/16 entries reproduce, rc=0 Negative controls, all rc=3: - editing M4 to say "hardware qualified on GB10": INDEX_DRIFT - an unknown field: UNKNOWN_FIELD - M8 pinned before its correction: STALE_CORRECTION - corrupted bytes: DIGEST_MISMATCH ### Security boundary - No key is added and no trust path is added. - No signature check is relaxed. - No workflow is added. The 2026-10-26 rule that workflows run only for `audit/` still stands. - The index is not an input to `aien-test verify-bundle` or to any merge gate. ### Failure behavior If a fetch or other input fails, replay is NOT_RUN with rc=2. Drift, unknown fields and stale corrections are REJECTED with rc=3. A nonzero exit never counts as a pass. ### Diagrams No diagram is affected. ## Gates (Spark, `taskset -c 6,8,9 nice -n 10 bwrap --ro-bind / / --dev /dev --proc /proc --tmpfs /tmp --bind --unshare-all`, 2026-11-06) Gate (`tests/gates/run.sh `) rc Last line crumb-verify (CRUMB-VERIFY), at exact head `59872c9` 0 `crumb verify: OK: 28 crumbs current at HEAD 59872c9` doctrine (ARCH-DOCTRINE), at exact head 0 `AIEN-OBS doctrine_exit 0` (`check_doctrine: PASS`) qualification-status (ARCH-QUALIFICATION-STATUS) 0 R16 qualified receipt found. Sibling omega is `fd3751b3`. crumb-tool-test (ARCH-CRUMB-TOOL-TEST) 0 `hostile/identity: ALL PASS` script-tests (ARCH-SCRIPT-TESTS) 0 `AIEN-OBS script_tests_run 4` zero-legacy (ARCH-ZERO-LEGACY-CLOSURE) 0 `AIEN-OBS directory_error_exit 0` capreg (ARCH-CAPABILITY-REGISTER) 0 `AIEN-OBS capreg_planted_row_exit 1`, as expected The steps that use the Omega compiler ran with `AIEN_OMC` set to a seeded omc with sha256 `734f0a39`…6b61, the value in `tools/zero-legacy/omega.pin`. The last four gates ran on the identical file content before the commit. This repository has no action-pins gate; `sbom.yml` already pins actions by sha. Labels: PROPOSED (ADR amendment). Local gates: PASS (host-local). CI: NOT_RUN. Independent review: NOT_RUN. Maintainer approval (Queen, DRA-162): pending. ### Apply it ``` git checkout -b patch-9642a37578a370f9 ad8d1eb359e7ae86a8ef6613cd3c4479f5676db9 curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/9642a37578a370f9.patch | git am ``` Raw patch (mbox) · 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 379 59872c9b1354d92d6219ebcefdf7f7f00c11f49f ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":379,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/379","export_sha256":"e0ab76730762f7bd707f3b0c07e133f83d4287854fada828261004f8d4bcaa1a","imported_utc":"2026-11-18T16:37:25Z"} ``` ### Changes ``` diff --git a/docs/adr/0033-aien-verification-pipeline.md b/docs/adr/0033-aien-verification-pipeline.md index 2f97476..1e278fc 100644 --- a/docs/adr/0033-aien-verification-pipeline.md +++ b/docs/adr/0033-aien-verification-pipeline.md @@ -97,5 +97,15 @@ Approved by the maintainer, Drake Stapleton, on 2026-10-26 (relayed to the audit 5. **Private repositories** appear only under anonymous ids (`private-01` and so on) with a salted SHA-256 commitment to the name; the salts stay off the shelf. Their counts and checks are labelled self-reported by the owner's machine, not independently reproducible. 6. **Append-only.** A published stamp is never edited; a correction is a new file beside it (the `.correction.json` convention used by omega-evidence). The live files `audit/loc/latest.json` and `audit/status.json` are mutable pointers by design; their history is appended to `audit/loc/history.jsonl`. +## Amendment 2026-11-06 (receipt index on the receipts shelf) + +Approved for the maintainer by Queen, the Completion Hive coordinator, under Drake Stapleton's delegation of merge judgment (Linear DRA-162, 59767dce), by merging this amendment after an independent review of it and of the change it covers, aien-dev/aien-receipts#12 (Linear DRA-167). Nothing in Decisions 1 to 14 or in the earlier amendments changes, and published `//bundle.json` files keep their bytes, layout and meaning. + +1. **A receipt index on the same shelf.** `aien-dev/aien-receipts` gains three top-level directories: `index/` (`index/receipt_index.json`), `tools/` (the replay tool `tools/replay_receipt.py`) and `tests/` (its offline tests), plus the description `docs/receipt-index.md`. The index lists the receipts that may be cited: signed bundles from this shelf and Omega qualification receipts from `aien-dev/omega-evidence`. Each entry records the pinned shelf commit, the SHA-256 of the receipt bytes, the correction that applies and the effective verdict. +2. **Written only by the tool, replayed in full.** Entries are written only by `tools/replay_receipt.py admit`. `replay` recomputes every field of every entry except its id and its replay command, and rejects any difference, any field it does not check, and any correction file that differs between the indexed commit and the current HEAD of the shelf repository. The values the tool cannot recompute (an Omega receipt's source repository, and the bundle basis "this shelf has no correction records") are listed in `docs/receipt-index.md` as taken on trust. +3. **Corrections outrank historical status.** A `.correction.json` bound to the exact receipt SHA-256 that supersedes its historical status decides the effective verdict; a historical `QUALIFIED / PASS` is never admitted on its own text. An Omega receipt without a superseding correction must also match its named source commit. +4. **Bundles unchanged.** Signed bundles are checked as Decision 6 and the 2026-10-11 amendment require (signature against `.aien/verify.pub`, `.aien/always` required gates, verdict algebra of Decision 7). For a published bundle the tool reads the trust anchors from the source commit's first parent, which stands in for the base ref at gating time. The index does not re-sign, move or edit bundles, and a `bundle.correction.json` is refused until a rule for bundle corrections is decided. +5. **Not a gate, and no workflow.** The index is a citation aid. It is not an input to `aien-test verify-bundle`, the AIEN Alpha job or any merge gate, and it adds no workflow (the 2026-10-26 rule that workflows run only for `audit/` stands). A replay by the index's author is not an independent review. + ## Not decided here The analog device itself; the final receipt wire contract (ARCH-0029 Decision 6 owns it); whether `aien-verify` later runs as its own daemon under the Spark supervisor or stays a cron-driven poller; pool sizes beyond the ARCH-0028 defaults. ```