From 59872c9b1354d92d6219ebcefdf7f7f00c11f49f Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Fri, 6 Nov 2026 15:45:05 -0600 Subject: [PATCH] ADR 0033: amendment 2026-11-06, receipt index on the receipts shelf Admits the aien-receipts layout change of aien-dev/aien-receipts#12 (Linear DRA-167): index/, tools/ and tests/ for the correction-aware receipt index and its replay tool. Maintainer approval by Queen under Drake Stapleton's delegation (DRA-162, 59767dce), given by merging after independent review. No decision of ADR 0033 changes. --- docs/adr/0033-aien-verification-pipeline.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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.