interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / docs / campaigns / whole-system-e2e / ACCEPTANCE-v1.4-e1.md

101 lines · 9154 bytes Raw Blame History Rendered
1# WHOLE-SYSTEM-E2E, harness v1.4: E1 and CTRL-E1 install rows (RUN-4-INSTALL)
2
3Tracking: aien-dev/aien-sovereign-core#421 (owning issue), aien-dev/aien-architecture#190 milestone R8 (engineering
4readiness). Contract: `ACCEPTANCE_E2E.md` FROZEN at aien-architecture b2400fe, sha256
5`9e3d5f4e23d65ac17be8f2f4ca48355f0aaa486f67ff5a8a8044dcdd646d34e8`. This file is committed before the harness change
6that implements it. `ACCEPTANCE-v1.md` to `-v1.3.1-e3m.md` stay as written; RUN-1, RUN-2-GB10 and RUN-3-GB10 stay as recorded.
7
8## Scope statement (read first)
9
10**ENGINEERING READINESS ONLY.** A run whose E1 receipt says `signature_check: dry-run-key` is never a public PASS. The
11public-release key ceremony (`docs/release/KEY_CEREMONY.md`) has not happened, `docs/release/allowed_signers` is a
12placeholder, and a dry-run artifact is labelled `candidate = "NOT-RELEASABLE"`. The contract allows `dry-run-key` "stated as
13a gap" when no offline key exists; this file states it. No outcome of RUN-4-INSTALL is a release claim, a RUN-3
14(public-model) claim, or a program PASS. Every note about the run says so.
15
16## Contract rows, as frozen (quoted, not changed)
17
18E1 install: "install offline from the release artifact into a clean home and start". Receipt fields `artifact_sha256`,
19`signature_check` (`verified`, `dry-run-key`, or `none`), `signer`, `files_verified` (count), `daemon_sha256`,
20`cli_sha256`. Rule: "signature check `verified` or, when no offline key exists, `dry-run-key` stated as a gap; every file
21in `release.toml` verified; daemon up". CTRL-E1: "an artifact with one byte changed installs nothing and names `checksum`
22or `signature` as the reason".
23
24## What changes, and what does not
25
26New mode: `WSE2E_ARTIFACT=<path to sovereign-<os>-<arch>.tar.gz>`. Next to the archive sit `SHA256SUMS.txt` and
27`SHA256SUMS.txt.sig` (the three assets `install.sh` release mode reads). Without the variable the harness behaves exactly
28as v1.3.1 (cpu and gb10 modes unchanged, `selftest` still passes).
29
30In artifact mode:
31
321. **No source build of the system under test.** The harness does not build `aien-cli`. The CLI and the daemon are the
33 binaries the installer puts in the run's clean home. (The test-only ALLEN fixture subject is still built from this tree
34 with `cargo test`, as in v1.2 and v1.3; that helper file is not part of the installed system.)
352. **E1.** The archive's own `install.sh` (taken out of the archive into the run folder, so no source tree is used) is run
36 with `HOME=$RUN/home`, `AIEN_RELEASE_TAG` set, `AIEN_RELEASE_BASE_URL=file://<archive dir>`, and
37 `AIEN_DRY_RUN_SIGNERS=<signers file>` (default `<archive dir>/dry-run-signers`, when that file exists), in an otherwise
38 empty environment. Offline by construction: the only URL is `file://`, and `http_proxy`/`https_proxy`/`all_proxy` point at
39 a closed local port so any network fetch would fail and be recorded. The installer runs before any daemon starts; the E1
40 receipt is written at its usual place in the chain (after PRE and CTRL-E3a), so the chain order is unchanged.
413. **From then on** `cli()` and every daemon start use `$RUN/home/.local/bin/aien`. `daemon_sha256` and `cli_sha256` in
42 every receipt are the sha256 of that installed file (the contract names one binary, `aien`, for both).
434. **E1 receipt.** The contract fields, from `install-receipt.json`: `artifact_sha256`; `signature_check` (installer class
44 `release` is written `verified`, `dry-run-key` stays `dry-run-key`; any other class, including `internal-test-key`, is
45 outside the contract set and makes E1 FAIL); `signer` (the signer key fingerprint the installer recorded); `files_verified`;
46 `daemon_sha256`; `cli_sha256`. Extra fields: `installer_signature_check` (raw class), `dry_run`, `candidate`, `tag`,
47 `release_id`, `install_receipt_sha256`, `installer_sha256`, `install_exit`, `install_log`, `files_recheck` (see rule),
48 `offline_method`, `readiness_scope` (`ENGINEERING READINESS only, not a public PASS` whenever `signature_check` is not
49 `verified`), `public_pass` (`false` unless `signature_check` is `verified` and `dry_run` is false).
505. **E1 rule (all must hold for PASS).** installer exit 0; `signature_check` is `verified` or `dry-run-key`;
51 `files_verified` equals the number of `[files]` entries in the installed `release.toml` and every one of them was
52 re-hashed by the harness itself and matches (`files_recheck`: `N of N`); the installed `bin/aien` sha256 equals the
53 receipt's `cli_sha256`; the daemon started from it (PRE reached "daemon up"). A failed install aborts the chain: every later
54 row is NOT_RUN and E1 is FAIL.
556. **CTRL-E1.** Three scratch copies of the artifact, each installed into its own empty home with the same installer:
56 (a) one byte of the archive changed (offset 100, flipped); (b) one byte of `SHA256SUMS.txt` changed (its first
57 character); (c) `SHA256SUMS.txt.sig` removed. PASS only if all three: installer exit non-zero, the refusal text names
58 `checksum` (a) or `signature` (b, c), and nothing was installed (no `releases/`, no `installed.toml`, no
59 `install-receipt.json`, no file in `.local/bin`). Receipt fields: `install_refused` (all three refused), `refusal_reason`
60 (part a's refusal line), `nothing_installed`, `mutation` (file, offset, before and after byte for a and b), `parts` (each
61 part: name, exit, refusal line, reason word, nothing_installed). The independent verifier reads `install_refused` and
62 `refusal_reason`.
637. **Backend.** The backend rule is the mode's rule, unchanged. The aarch64 release build links the native Omega engine
64 (its binary carries `OmegaGb10Backend` and no `CPU-reference` string, checked with `grep -a -c` on the installed binary),
65 so an install run on that artifact is run with `WSE2E_BACKEND=gb10`: the installed daemon must print the native Omega
66 GB10 backend line, the strict start line, every model call needs `gpu_executions >= 1`, and any fallback marks the row
67 FAIL (`ACCEPTANCE-v1.3-gb10.md` G2 to G5). The zero-CUDA gate runs on the installed binary. In artifact mode `pins` is
68 `null` (the engine pins belong to a source build) and each receipt names the archive instead. RUN-4-INSTALL therefore uses
69 the GB10 chip and must not overlap another chip run.
708. Every other row (PRE, CTRL-E3a, E2, CTRL-E2, E3, E3m, E4, CTRL-E4, CTRL-E4b, E6, CTRL-E3b, NET, CTRL-E6, E5, CTRL-E5) is
71 unchanged from v1.3.1, and the verifier is not changed by this file.
72
73## Disclosure: the artifact is older than main
74
75The dry-run artifact available when this was written is GitHub Actions run 38105672607 (workflow "Multi-OS Cross-Platform
76Release", `workflow_dispatch` with `dry_run`, main 46c4e0d). Main has moved on since: sc#412 (objective identity on grants,
77daemon re-reads the objective record after a restart) and sc#418 (start refusal, durable provenance default) are **not** in
78that build. Rows that touch those behaviours (E6, CTRL-E6, the objective rows) may differ from RUN-3-GB10, and that would be
79a finding about the artifact, not a harness defect. If a newer dry-run artifact exists when RUN-4-INSTALL is declared, it is
80used and its run URL and main commit are recorded.
81
82## Predictions for RUN-4-INSTALL (written before the run)
83
84| row | prediction | why |
85|---|---|---|
86| E1 | PASS, `signature_check: dry-run-key`, `files_verified: 17`, `public_pass: false` | UNVERIFIED for the run (confidence high): the same artifact installed on this Spark with these values before this file was written |
87| CTRL-E1 | PASS (three parts refused) | UNVERIFIED (confidence high): `scripts/test-install-release.sh` has the same negative rows and passes |
88| PRE, CTRL-E3a, E2, CTRL-E2, E3, E3m, NET, CTRL-E3b, CTRL-E5 | PASS | UNVERIFIED (confidence moderate): PASS in RUN-3-GB10 on a source build; this binary is older (see disclosure) |
89| E4 | FAIL | UNVERIFIED (confidence moderate to high): RUN-3-GB10 E4 failed because the daemon refused the model's edit on a `./report.md` path rule; the fix is being made on a separate lane and cannot be in this older artifact. A finding about the artifact build, not about install |
90| CTRL-E4b | RECORDED, likely a path-rule refusal as in RUN-3-GB10 | same cause; not judged |
91| E6, CTRL-E6, CTRL-E4 | PASS or FAIL as measured | the older build lacks sc#412 and sc#418 behaviour (E6 and the restart refusals are the rows most exposed) |
92| E5 | NOT_RUN | R7 |
93| G4, G5 | `fallback_detected: false`, `gpu_executions >= 1` on model rows | as RUN-2/3-GB10; the engine in the artifact is whatever its build pinned (UNVERIFIED which) |
94| independent verifier | agrees with the harness on E1 and CTRL-E1 | the verifier already reads exactly these fields (`tools/aien-verify` `e1_row`, `ctrl_e1`) |
95
96## Rules of this run
97
98One declared attempt, folder `runs/RUN-4-INSTALL-<utc>/`, run from a clean tree at the merged main commit that contains
99v1.4, started detached, never killed, `quietlock check` first, the chip free of other runs, nothing under `runs/` edited
100afterwards. The result note says ENGINEERING READINESS only, names the artifact run URL, main commit and sha256, and claims
101no program PASS.