From f61b49f19f3855803bf7db1ebd3b3370cbae3211 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sat, 10 Oct 2026 08:10:34 -0500 Subject: [PATCH 1/2] Release readiness R3: ACCEPTANCE_E2E contract, PROPOSED (#190) WHOLE-SYSTEM-E2E v1: claim classes, objective and run identities, receipt chain shape (wrapping the existing aien compose receipts), verdict identity over rows only (the AT-1 rule, machine-independent), the six steps with receipt fields, PASS conditions and negative controls, the fixed v1 run objective and output checks, platforms and run order (RUN-1 CPU, RUN-2 GB10, MacBook verifier, RUN-3 installed), rules of the run, what a PASS does not show, and the freeze procedure. Status PROPOSED; frozen by a one-line commit once lanes L1, L2 and L6 reference it. Co-authored-by: Drake Stapleton Co-Authored-By: Claude Fable 5.1 --- .../plans/release-readiness/ACCEPTANCE_E2E.md | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 docs/plans/release-readiness/ACCEPTANCE_E2E.md diff --git a/docs/plans/release-readiness/ACCEPTANCE_E2E.md b/docs/plans/release-readiness/ACCEPTANCE_E2E.md new file mode 100644 index 0000000..4fc7762 --- /dev/null +++ b/docs/plans/release-readiness/ACCEPTANCE_E2E.md @@ -0,0 +1,76 @@ +# ACCEPTANCE_E2E: the whole-system acceptance test (WHOLE-SYSTEM-E2E v1) + +**Status: PROPOSED (not frozen).** Tracking: aien-dev/aien-architecture#190, deliverable R3 (lane L0 of `INTEGRATION_PLAN.md`). **NOT A MASTER PLAN.** This file becomes FROZEN when its commit and sha256 are posted on #190 as milestone R3; after that it is never edited, and changes go to a v2 file. Until then every status word in it is NOT_RUN. + +Written 2026-10-10 by the coordinating session (Claude Code 85679b2b). Shapes below reuse what exists in code on 2026-10-10 (`GAP_ASSESSMENT.md` section 2); nothing new is invented where an identity rule already exists. + +## 0. Claim classes + +Every statement in a run report carries one class, as the AT-1 reports did: + +- **OBSERVED**: read from a receipt or an output file of the run. +- **INFERRED**: follows from observed lines by a stated rule. +- **NOT CLAIMED**: explicitly outside what the run shows. + +A PASS here means the installation did what this file says, on the machine named, with the model named. It is not a claim about general reliability, security against an adversary, or fitness for anyone else's purpose. + +## 1. Definitions + +- **Installation**: one host user account, one home directory, the AIEN runtime daemon and the `aien` CLI from one build, one local model, no network during the run. +- **Objective**: an operator's free-form request in plain text, at most 2000 bytes UTF-8, that the installation must carry out. The run objective of v1 is fixed in section 3. +- **Objective identity** `objective_id`: the lowercase hex SHA-256 of the UTF-8 bytes of the objective text, prefixed by the domain tag `AIEN_E2E_OBJECTIVE_V1` and a newline. Identical text gives an identical identity on every machine. +- **Run identity** `run_id`: the lowercase hex SHA-256 over `objective_id`, newline, the installation's daemon binary sha256, newline, the model weights sha256, newline, the host name. It differs across machines and builds by design; it never enters a verdict. +- **Receipt**: a JSON object written by the installation or the harness during the run. Every receipt carries `objective_id`, `run_id`, `step` (one of E1 to E6 or `CTRL-`), `utc`, and `prev_receipt_sha256` (the sha256 of the previous receipt file in the chain, or 64 zeros for the first). Receipts written by `aien compose` keep their existing fields (`tool`, `success`, `arguments_digest`, `result_digest`, as `crates/aien-cli/src/compose.rs` `receipt()` writes them); the harness wraps them with the chain fields rather than changing them. +- **Chain**: the ordered receipts of one run. The chain is unbroken if every `prev_receipt_sha256` equals the sha256 of the preceding file and no file is missing from the manifest. +- **Verdict identity** `verdict_id`: the lowercase hex SHA-256, domain tag `AIEN_E2E_VERDICT_V1`, over the LF-joined lines `objective_id `, `contract_sha256 `, then one line per step `E1 PASS|FAIL|NOT_RUN`, then one line per control `CTRL-E1 PASS|FAIL|NOT_RUN`. Nothing with a timestamp, host name or path enters it, so two machines that agree on every row produce the same `verdict_id` (the AT-1 rule, `evaluator/src/result.rs compute_verdict_id`). +- **Verifier**: a separate program (lane L4) that reads only the chain and the output files, never the daemon, and writes the verdict. Verifier and executor share no code beyond the standard library and the hash routine. + +## 2. The six steps, their receipts and their negative controls + +| step | the installation must | receipt fields (beyond the common ones) | PASS when | negative control (must FAIL as predicted) | +|---|---|---|---|---| +| E1 install | install offline from the release artifact into a clean home and start | `artifact_sha256`, `signature_check` (`verified`, `dry-run-key`, or `none`), `signer`, `files_verified` (count), `daemon_sha256`, `cli_sha256` | signature check `verified` or, when no offline key exists, `dry-run-key` stated as a gap; every file in `release.toml` verified; daemon up | CTRL-E1: an artifact with one byte changed installs nothing and names `checksum` or `signature` as the reason | +| E2 objective | accept the objective text from the operator through the CLI and record it before any work | `objective_text_sha256`, `recorded_before_work` (true), `operator_surface` (`aien-cli`) | the objective record exists with `objective_id` and no effect receipt predates it | CTRL-E2: an objective that names a forbidden effect class (`EXTERNAL_IRREVERSIBLE`) is refused before execution with a named refusal | +| E3 execute | plan, route capabilities, run the local model, perform the file-writing effect through the approval desk | per effect: the `aien compose` receipt (`tool`, `success`, `arguments_digest`, `result_digest`), `grant_id`, `desk` (`required`), `model_weights_digest`, `backend_line` | the output file exists, matches `result_digest`, and every effect has a grant spent exactly once | CTRL-E3: with the desk key absent the daemon refuses to start (sc#342 behaviour); with a grant revoked before spend the effect is refused `Revoked` | +| E4 memory | write at least one memory item during E3; after a full daemon stop and start, carry out a second objective that needs that item | `memory_store` (the store named by lane L3), `item_sha256`, `recall_after_restart` (true), `restart_kind` (`graceful` or `sigkill`) | the second objective's output contains the recalled item and the recall receipt postdates the restart | CTRL-E4: with the store's files removed between stop and start, the second objective fails with a named refusal, never a silently wrong output | +| E5 verify | nothing; the verifier judges the chain and the outputs | verifier receipt: `verifier_sha256`, `verifier_build_host`, `chain_unbroken`, per-row verdicts, `verdict_id` | verifier reports every row and the chain unbroken; on a second machine, same `verdict_id` | CTRL-E5: one output file with one byte changed is rejected by the verifier (`result_digest` mismatch) | +| E6 recover | survive SIGKILL of the daemon between the approval and the effect, restart, finish the same objective | `kill_point` (the hold name), `restart_count`, `effects_before_kill`, `effects_after_restart`, `duplicates` (0) | the objective finishes, the output appears once, `duplicates` 0, chain unbroken through the restart | CTRL-E6: restart with the durable objective state removed gives a named refusal (`ReconciliationRequired` or the objective's own refusal), not a second effect | + +Refusal names used above exist in code today: `Stopped`, `NotAuthorized`, `AlreadySpent`, `ReconciliationRequired`, `Revoked`, `Stale` (aien-sovereign-core#227 effect boundary) and the desk-key startup refusal (sc#342). A step that needs a refusal not yet in code says so in its lane's pre-registered acceptance rows; this contract does not invent refusal text. + +## 3. The v1 run objective (fixed) + +Objective text, exactly: `Read the three text files in the inbox folder and write a Markdown report under 200 words named report.md in the outbox folder; begin it with a heading line; mention each file by name.` + +Fixture: an `inbox/` with three UTF-8 text files whose names and sha256 are listed in the chain's first receipt; an empty `outbox/`. The second objective for E4, exactly: `Append one line to report.md naming the file you reported on first.` The memory item E4 depends on is the first file's name as recorded by the installation during E3. + +Output checks (used by the verifier, OBSERVED): `report.md` exists, UTF-8, first line starts with `# `, at most 200 words, contains all three file names; after E4, one appended line names the first file. These are the document checker rules of the ALLEN demo (`scripts/allen_e2e_demo.sh` `check_doc`, C1 to C5) extended by the file-name rule; the verifier reimplements them, it does not call the script. + +## 4. Platforms and the order of runs + +| run | machine | model path | counts as | +|---|---|---|---| +| RUN-1 | Spark, CPU-reference backend | the release model (default assumption: the CAND-4 model until Drake rules) | first measurement of E2 to E6 | +| RUN-2 | Spark, GB10 through the native Omega engine, no CUDA, under a quiet hold | same | E3 with the accelerator backend line | +| second-machine verdict | MacBook, verifier built from a clean checkout with `rustc` directly | n/a (verifier only) | E5 cross-machine agreement | +| RUN-3 | Spark, installed from the release artifact into a clean user | same | E1 plus the whole chain | + +Native AIENOS is NOT_RUN in v1 and is not a row here; v2 of this file adds it when NEXT-PHASE-3 step 5 closes. + +## 5. Rules of the run + +1. No network: the harness records `ip route` and the daemon's bound sockets before the run; any non-loopback connection fails the run. +2. No Python, no systemd, no CUDA, no GPU except in RUN-2. +3. Real model weights; the weights sha256 is in every receipt. +4. The harness is shell plus `jq`; the verifier is Rust standard library only. +5. Evidence folder immutable once written; the chain manifest lists every file with its sha256. +6. NOT_RUN is never PASS. A step whose control was not run is NOT_RUN even if its positive row passed. +7. One attempt per declared run. A failed run stays recorded; a new attempt is a new run with its own folder. + +## 6. What a PASS does not show + +Not claimed by any PASS of this test: security against a hostile operator or model, behaviour under concurrent operators, long-running stability, correctness of the model's prose beyond the output checks, anything on the native AIENOS target, anything about the research programs. + +## 7. Freeze procedure + +When lanes L1, L2, L6 have pre-registered rows that reference this file, the coordinating session posts on #190: this file's path, commit and sha256, and changes the status line to FROZEN in a one-line commit. The `aien-protocols` evaluation spec is amended in the same milestone to name `AIEN_E2E_VERDICT_V1` as a verdict identity domain. From 5f669906ad0edfb9c4187ce574b9c323c6b619b6 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sat, 10 Oct 2026 08:10:34 -0500 Subject: [PATCH 2/2] crumb: compile after release-readiness R3 Co-authored-by: Drake Stapleton Co-Authored-By: Claude Fable 5.1 --- .crumb | 16 ++++++++-------- docs/.crumb | 16 ++++++++-------- docs/plans/.crumb | 16 ++++++++-------- docs/plans/release-readiness/.crumb | 10 +++++----- 4 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.crumb b/.crumb index f437c75..207664b 100644 --- a/.crumb +++ b/.crumb @@ -21,8 +21,8 @@ "generated": { "children": [ { - "digest": "4fe8af36bb6bbe331b9dceeccfebabaa80fa6dff6bee6f414e945a9c0b2cf345", - "last_commit": "a4c13d3", + "digest": "73224b6c11465bf474b7d49ace35c8fbb2a4d72a95da5bde35e38e227ca987c5", + "last_commit": "f61b49f", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, @@ -45,15 +45,15 @@ "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:bf18e627ab13eba39686f94848c42cd3b15f35b0ddfd814b7eaa892b2e426622", - "compiled_at": "2026-10-10T13:09:05Z", + "children_root": "sha256:589e97886bc5d21a4b78a4dcc637ca58f13bf36531722dd0819947fb4a8c7545", + "compiled_at": "2026-10-10T13:10:34Z", "compiler": "crumb-compile/1", - "digest": "sha256:df0e39a1388822cc1392cfbb7df147db0b6295e69281c20ed930529aedba0132", + "digest": "sha256:e1c63c3b461da22a3f80946cfc1fa8c4207ac7e3a5c907285427fadab393e3d9", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 252, - "generated_at_commit": "ed5116cbc451a1ac16720b5a18af986154d7af12", - "source_tree": "sha256:dc79f06c7a8dcc9adfb3c4221c053cdb3fde7fb5795d9426ae39a93592c75a7d" + "files": 253, + "generated_at_commit": "f61b49f19f3855803bf7db1ebd3b3370cbae3211", + "source_tree": "sha256:e455f4ac2962c710fd33688bb08ba26709ca2d8bdeb20c984ec3e0067d132c11" }, "owner_lane": "", "provenance": { diff --git a/docs/.crumb b/docs/.crumb index 5f326dd..af43c10 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -55,8 +55,8 @@ "purpose": "Directory docs/errata. Purpose not yet described by a human." }, { - "digest": "69c563a568c6070bdd9aaee98a39bf30571caf85159155946e30ba0596b3b1f7", - "last_commit": "174a642", + "digest": "39960a82d2967a425079f3eec114767cfb87aea8eebee8efd43bcb1c0f685d38", + "last_commit": "f61b49f", "name": "plans", "purpose": "Directory docs/plans. Purpose not yet described by a human." }, @@ -73,15 +73,15 @@ "purpose": "Directory docs/specs. Purpose not yet described by a human." } ], - "children_root": "sha256:22d8c33a49034a1b010931c4beafde5d29ff3006bd64ae0c35f6aa22304199bb", - "compiled_at": "2026-10-10T13:07:00Z", + "children_root": "sha256:a2de0bbfa6cdbfdfc9504dd0a96f8e33df4aa755ce1ba84f8ecad8191022e5f4", + "compiled_at": "2026-10-10T13:10:34Z", "compiler": "crumb-compile/1", - "digest": "sha256:4fe8af36bb6bbe331b9dceeccfebabaa80fa6dff6bee6f414e945a9c0b2cf345", + "digest": "sha256:73224b6c11465bf474b7d49ace35c8fbb2a4d72a95da5bde35e38e227ca987c5", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 144, - "generated_at_commit": "174a6425064c59cf2ef21cdb6ef5e746bcf6f2bc", - "source_tree": "sha256:d2cb3dd5525aaf90a892dac35ee2b7bb71ee0e3539abbacc355d94e0fc8fe5d7" + "files": 145, + "generated_at_commit": "f61b49f19f3855803bf7db1ebd3b3370cbae3211", + "source_tree": "sha256:37e59ed66147a709a6b2cf434d3259ec96dd6ba721abee6733d54ff4c08a3b71" }, "owner_lane": "", "provenance": { diff --git a/docs/plans/.crumb b/docs/plans/.crumb index 2318f4f..247bef8 100644 --- a/docs/plans/.crumb +++ b/docs/plans/.crumb @@ -95,8 +95,8 @@ "purpose": "Directory docs/plans/physics-zero. Purpose not yet described by a human." }, { - "digest": "2e72445657eb4731b2cbe9430839e8bcb0023be97339d8e1caf0c0cac776d028", - "last_commit": "174a642", + "digest": "5a7c871932efb85c979409c89add7e77b5ec586eb9f7383d9a232f6f1ccd16dd", + "last_commit": "f61b49f", "name": "release-readiness", "purpose": "Release-readiness finite workstream (aien-architecture#190): gap assessment, integration plan an" }, @@ -107,15 +107,15 @@ "purpose": "VAC (Verifiable Autonomous Computing) finite workstream plan. NOT A MASTER PLAN." } ], - "children_root": "sha256:89bd294fa90beb2415a5c5b5d335fa36e6edf68534998c48abfad27de222f979", - "compiled_at": "2026-10-10T13:07:00Z", + "children_root": "sha256:a76a5fe4820a4d2c33299373ca4e85d950793b83c0b98e455a5ffde5c972851f", + "compiled_at": "2026-10-10T13:10:34Z", "compiler": "crumb-compile/1", - "digest": "sha256:69c563a568c6070bdd9aaee98a39bf30571caf85159155946e30ba0596b3b1f7", + "digest": "sha256:39960a82d2967a425079f3eec114767cfb87aea8eebee8efd43bcb1c0f685d38", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 49, - "generated_at_commit": "174a6425064c59cf2ef21cdb6ef5e746bcf6f2bc", - "source_tree": "sha256:67e323f6a3be064c17623cf95185c4686ce660f07bbdacbaaad2c1999482a05c" + "files": 50, + "generated_at_commit": "f61b49f19f3855803bf7db1ebd3b3370cbae3211", + "source_tree": "sha256:2dac5e79675b5f0b7f4272f5c9694de5a6b65c12ead9600baa98fc447b74d70a" }, "owner_lane": "", "provenance": { diff --git a/docs/plans/release-readiness/.crumb b/docs/plans/release-readiness/.crumb index f3b37d7..83d22f9 100644 --- a/docs/plans/release-readiness/.crumb +++ b/docs/plans/release-readiness/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-10T13:07:00Z", + "compiled_at": "2026-10-10T13:10:34Z", "compiler": "crumb-compile/1", - "digest": "sha256:2e72445657eb4731b2cbe9430839e8bcb0023be97339d8e1caf0c0cac776d028", + "digest": "sha256:5a7c871932efb85c979409c89add7e77b5ec586eb9f7383d9a232f6f1ccd16dd", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 2, - "generated_at_commit": "174a6425064c59cf2ef21cdb6ef5e746bcf6f2bc", - "source_tree": "sha256:c2610c7d7bf9e10601ba648f8ca047cbaba55322b1009eece44048a23099f8e5" + "files": 3, + "generated_at_commit": "f61b49f19f3855803bf7db1ebd3b3370cbae3211", + "source_tree": "sha256:f2a349496f37a0db1272f8b28a95274ebbaaaf041f73bc0d9e09d0dc14caac55" } }, "name": "release-readiness",