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 / docs / plans / release-readiness / ACCEPTANCE_E2E.md

78 lines · 11289 bytes Raw Blame History Source

ACCEPTANCE_E2E: the whole-system acceptance test (WHOLE-SYSTEM-E2E v1)

Status: FROZEN 2026-10-10 (Drake directive: freeze the acceptance contract; lane L1 rows reference this file, aien-sovereign-core#387). From this commit on this file is never edited; changes go to a v2 file. Tracking: aien-spark/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. Every status word in it is NOT_RUN until a declared run reports it.

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:

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

2. The six steps, their receipts and their negative controls

stepthe installation mustreceipt fields (beyond the common ones)PASS whennegative control (must FAIL as predicted)
E1 installinstall offline from the release artifact into a clean home and startartifact_sha256, signature_check (verified, dry-run-key, or none), signer, files_verified (count), daemon_sha256, cli_sha256signature check verified or, when no offline key exists, dry-run-key stated as a gap; every file in release.toml verified; daemon upCTRL-E1: an artifact with one byte changed installs nothing and names checksum or signature as the reason
E2 objectiveaccept the objective text from the operator through the CLI and record it before any workobjective_text_sha256, recorded_before_work (true), operator_surface (aien-cli)the objective record exists with objective_id and no effect receipt predates itCTRL-E2: an objective that names a forbidden effect class (EXTERNAL_IRREVERSIBLE) is refused before execution with a named refusal
E3 executeplan, route capabilities, run the local model, perform the file-writing effect through the approval deskper effect: the aien compose receipt (tool, success, arguments_digest, result_digest), grant_id, desk (required), model_weights_digest, backend_linethe output file exists, matches result_digest, and every effect has a grant spent exactly onceCTRL-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 memorywrite at least one memory item during E3; after a full daemon stop and start, carry out a second objective that needs that itemmemory_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 restartCTRL-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 verifynothing; the verifier judges the chain and the outputsverifier receipt: verifier_sha256, verifier_build_host, chain_unbroken, per-row verdicts, verdict_idverifier reports every row and the chain unbroken; on a second machine, same verdict_idCTRL-E5: one output file with one byte changed is rejected by the verifier (result_digest mismatch)
E6 recoversurvive SIGKILL of the daemon between the approval and the effect, restart, finish the same objectivekill_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 restartCTRL-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 named report.md in the outbox folder. Start with a Markdown heading line that begins with "# ". Use at most 200 words. Mention each file by name.

Wording note (2026-10-10, harness v1 dry run RUN-1-dry-20261010T133749Z): the earlier text said "under 200 words; begin it with a heading line", which the runtime refused as an uncertain requirement before the model ran (aien-sovereign-core issue on goal interpretation). The objective now uses the two requirement phrasings the runtime recognizes; its meaning is unchanged. The objective still asks the installation to read files, which the compose proposer cannot do today (aien-sovereign-core#382); until that lands, step E3 on this objective is expected to FAIL, and that expectation is part of the record.

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

runmachinemodel pathcounts as
RUN-1Spark, CPU-reference backendthe internal model (Llama 3.2, CAND-4; Drake ruling 2 of 2026-10-10 keeps it internal-test only)first measurement of E2 to E6
RUN-2Spark, GB10 through the native Omega engine, no CUDA, under a quiet holdsameE3 with the accelerator backend line
second-machine verdictMacBook, verifier built from a clean checkout with rustc directlyn/a (verifier only)E5 cross-machine agreement
RUN-3Spark, installed from the release artifact into a clean userthe qualified public model (Qwen3-4B-Instruct-2507 after a frozen qualification PASS, lane L10); a dry-run artifact with the internal model is RUN-3-internal and never a public-release claimE1 plus the whole chain

Native Aienux 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 Aienux 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.