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.3-ctrl-e5.md

59 lines · 4407 bytes Raw Blame History Rendered
1# WHOLE-SYSTEM-E2E, addendum v1.3-ctrl-e5: the verifier judges CTRL-E5 itself
2
3Tracking: aien-spark/aien-sovereign-core#403, aien-spark/aien-architecture#190 (L4). Contract `ACCEPTANCE_E2E.md` stays FROZEN
4(aien-architecture b2400fe, sha256 `9e3d5f4e23d65ac17be8f2f4ca48355f0aaa486f67ff5a8a8044dcdd646d34e8`). `ACCEPTANCE-v1.md`,
5`-v1.1.md`, `-v1.2.md` and every recorded run stay as written. This file is committed before the code that implements it.
6
7## Why
8
9RUN-1 and R7 judged CTRL-E5 by hand (`RESULT-RUN-1-R7.md`, `r7/`): one byte of `artifacts/E3-report.md` changed on a scratch
10copy gave E3 FAIL DIGEST_MISMATCH, chain_unbroken false and a different verdict_id, on both machines. The harness wrote no
11CTRL-E5 receipt, so the verifier's own CTRL-E5 row stayed NOT_RUN. This addendum puts the same check inside the chain.
12
13## Rule (harness tail, after the verifier)
14
151. The chain is closed as before (receipts 001..N, console transcript, `VERDICT_ROWS.txt`, `chain/SHA256SUMS`). The harness no
16 longer writes a `CTRL-E5 NOT_RUN` placeholder receipt.
172. The verifier runs over the real folder with `--write` (no peer). Its verdict is the PRE-CTRL-E5 verdict: CTRL-E5 NOT_RUN
18 (receipt absent), E5 NOT_RUN. Its `verdict_id` is `original_verdict_id`. The harness copies that file to
19 `artifacts/VERIFIER_VERDICT.pre-ctrl-e5.txt`.
203. The harness copies the run folder to scratch, changes one byte of `artifacts/E3-report.md` (offset 3; the byte becomes `X`,
21 or `Y` if it already was `X`), and runs the verifier on the copy (no `--write`). Its output is kept as
22 `artifacts/CTRL-E5-mutated-verdict.txt`.
234. The harness appends one receipt, step `CTRL-E5`, to the chain (linked to the previous receipt as every receipt is), with
24 the fields: `mutated_file`, `mutation` {`offset`, `before_byte_hex`, `after_byte_hex`}, `original_verdict_id`,
25 `mutated_verdict_id`, `mutated_chain_unbroken`, `mutated_e3_row` (the verifier's E3 line on the copy),
26 `mutated_output_rejected` (true iff the copy's E3 row is FAIL with `DIGEST_MISMATCH` and `chain_unbroken` is false),
27 `verifier_reason`, `verifier_sha256`, `verifier_source_sha256`. If `E3-report.md` is absent or shorter than 4 bytes the
28 receipt is `NOT_RUN` with `mutated_output_rejected` omitted.
295. `VERDICT_ROWS.txt` is rewritten to include the CTRL-E5 row, `chain/SHA256SUMS` is rewritten (it now lists the new receipt,
30 the two new artifacts, the longer console transcript and the new `VERDICT_ROWS.txt`), and the verifier runs again over the
31 real folder with `--write`. That FINAL `VERIFIER_VERDICT.txt` is the run's verdict.
32
33## What the verifier judges (CTRL-E5)
34
35From the LAST `CTRL-E5` receipt in the chain, facts only (the status word is never trusted):
36- absent, or lacking any of `mutated_output_rejected`, `mutated_chain_unbroken`, `original_verdict_id`, `mutated_verdict_id`,
37 `verifier_reason`: **NOT_RUN**;
38- **PASS** iff `mutated_output_rejected` true, `mutated_chain_unbroken` false, `verifier_reason` names `DIGEST_MISMATCH`,
39 `mutated_verdict_id` differs from `original_verdict_id`, and `original_verdict_id` equals the id the verifier itself
40 computes from this folder with CTRL-E5 and E5 forced to NOT_RUN (so a receipt cannot cite a verdict it never saw);
41- otherwise **FAIL**, with the reason naming which fact failed.
42
43## Verdict ids
44
45`verdict_id` hashes the rows including CTRL-E5. So the final `verdict_id` differs from the pre-CTRL-E5 one by exactly the
46CTRL-E5 row (NOT_RUN to PASS). Both are recorded: the pre id inside the CTRL-E5 receipt and `artifacts/VERIFIER_VERDICT.pre-ctrl-e5.txt`,
47the final one in `VERIFIER_VERDICT.txt`. `base_verdict_id` (E5 forced NOT_RUN, the id peers exchange) now includes the CTRL-E5 row,
48so a peer machine verifying a v1.3 folder agrees with the harness machine on it.
49Folders without a facts-bearing CTRL-E5 receipt (every run before v1.3) verify exactly as before: RUN-1-20261010T154724Z
50gives `verdict_id` 437467db4149b013738578c10ef68b7168dfb95feae8dea882de17a6118fc5fd with the Spark base id as peer, and
51base `a50fccb63363ef9224a19bd8bf4f249754abf5d88667ba0fd6ce93dfb8d63d80`.
52
53## Predictions
54
55| row | prediction |
56|---|---|
57| CTRL-E5 on a new run | PASS (the same check passed by hand on both machines) |
58| verifier tests | present+PASS, present+FAIL (rejected false), absent NOT_RUN, wrong original id FAIL, all green |
59| RUN-1 regression | ids unchanged |