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 / VERIFIER-v1.md

133 lines · 10872 bytes Raw Blame History Source

WHOLE-SYSTEM-E2E, verifier v1 (lane L4): pre-registration

Tracking: aien-spark/aien-sovereign-core#381, aien-spark/aien-architecture#190. Contract read: ACCEPTANCE_E2E.md sections 1, 2, 3, 5 (aien-architecture main 3c584a49, sha256 8ba653848287bc77db253466f6d3ff37c70a42be55601ad47eb1f838a41d20f0). The frozen digest is passed on the command line (--contract-sha256), never compiled in. This file is committed before the verifier and its tests exist. The fixtures below are never edited and never written to.

What the verifier is

tools/aien-verify/src/main.rs: one file, Rust standard library only, its own sha256. It reads a run folder (the chain/ receipts, chain/SHA256SUMS, the output files under artifacts/) and nothing else. It does not call the daemon, the CLI or the harness, and it does not copy the harness status word of any receipt: every row is re-derived from receipt facts and files. Where a receipt lacks the facts a row needs, the row is NOT_RUN with a stated reason. Where the facts show the required behaviour did not happen, the row is FAIL. PASS needs every listed fact.

Chain checks (all must hold for chain_unbroken)

  1. chain/NNN-*.json numbered 001 upward with no gap; the step in each file equals the step in its name.
  2. prev_receipt_sha256 of the first file is 64 zeros; of each later file the sha256 of the previous file's bytes.
  3. objective_id and run_id identical in every receipt.
  4. chain/SHA256SUMS lists every file of the run folder except itself and the verifier's own two output files, and every listed digest matches the file. A file in the folder but not in the manifest is a break. A listed file that is missing is a break, except a missing *.log path, which is recorded as a note (daemon and console logs are never an input to a row, and the committed fixtures omit them because the repository ignores *.log).
  5. objective_id recomputes as sha256 of AIEN_E2E_OBJECTIVE_V1, LF, objective text (text taken from the E2 receipt). --objective-id if given must equal it. run_id recomputes from objective_id, daemon_sha256 and model_weights_digest of the PRE receipt, and host, joined by LF.
  6. No symlinks in the run folder.

Row derivation (verdict rows E1..E6, CTRL-E1..CTRL-E6; supplementary PRE, E3m, CTRL-E3a, CTRL-E3b, NET, CTRL-E4 detail)

Expected rows for the two fixtures (derived from the receipts, not from VERDICT_ROWS.txt)

Fixture A RUN-1-dry-20261010T133749Z, fixture B RUN-1-dry-20261010T134202Z. Both: chain unbroken (16 receipts, links hold, manifest digests match, 4 and 6 absent *.log entries noted), exit code non-zero because of FAIL rows.

rowABnote
E1NOT_RUNNOT_RUNsignature_check none, no artifact
E2NOT_RUNNOT_RUNharness-side record, operator_surface not aien-cli
E3FAILFAILA: refusal before the model, effect_state none. B: no effect, none written
E4NOT_RUNFAILA: no facts. B: effect_state none, no recall recorded
E5NOT_RUNNOT_RUNno peer verdict id
E6PASSPASS
CTRL-E1, CTRL-E2, CTRL-E5, CTRL-E6NOT_RUNNOT_RUNno facts
CTRL-E3NOT_RUNNOT_RUNE3a PASS, E3b has no refusal fact
CTRL-E4NOT_RUNNOT_RUNB differs from the harness (PASS): E4 recalled nothing, see CTRL-E4 rule
supplementary PRE / E3m / CTRL-E3a / NETPASS / FAIL / PASS / PASSPASS / PASS / PASS / PASS

Where the verifier differs from the harness VERDICT_ROWS.txt: A has no difference in a verdict row except the aggregate row CTRL-E3 (the harness lists CTRL-E3a PASS and CTRL-E3b FAIL; the verifier reports NOT_RUN for CTRL-E3b because the receipt has no refusal fact, so CTRL-E3 is NOT_RUN, not FAIL; the contract says a row without its facts is never PASS and says nothing that makes a missing fact a FAIL). B differs in CTRL-E4 (harness PASS, verifier NOT_RUN) for the reason in the CTRL-E4 rule, and in CTRL-E3b likewise. The verdict_id of each fixture is printed below after the first run of the tests (it depends on the contract digest passed; the tests use the 3c584a49 digest above).

Mutation tests (on copies in a scratch folder, never on the fixtures)

Each must be detected with a named reason: M1 one byte changed in artifacts/E3m-report.md (fixture B): MANIFEST_DIGEST and E3m DIGEST_MISMATCH; M2 one chain link broken (a prev_receipt_sha256 edited): LINK_BROKEN; M3 one file dropped from SHA256SUMS: MANIFEST_UNLISTED; M4 receipt status edited from FAIL to PASS without the facts with links and manifest repaired: the row stays FAIL and status_disagreement names it; also the unrepaired form is caught by LINK_BROKEN. In every case the exit code is non-zero.

Measured on the first run of the tests

Contract digest passed: 8ba653848287bc77db253466f6d3ff37c70a42be55601ad47eb1f838a41d20f0. Rows came out exactly as registered above, with chain_unbroken true and exit code 1 for both fixtures.

fixtureverdict_id
A RUN-1-dry-20261010T133749Z728ae9152ef546ab4ccf1b7619fd22d21acb2914870197ac58e8843f9afaaf77
B RUN-1-dry-20261010T134202Zd7d57162ac318ec05f2d97ad9530d9d3a571275409b040f65ccd0e391f6c9615

Test file also covers: unknown-peer E5 FAIL, matching-peer E5 PASS (changes the final id), --write on a copy, a wrong --objective-id, an unlisted extra file (MANIFEST_UNLISTED) and a dropped receipt (SEQUENCE_GAP), and that the fixture tree hash is unchanged after the tests.

Limits

The E1, E2, E4 and CTRL-E1, CTRL-E2, CTRL-E5, CTRL-E6 PASS paths and the E3 contract-objective PASS path are implemented from the contract text but have no fixture that reaches them yet; they are exercised only as NOT_RUN or FAIL here. The CTRL-E1, CTRL-E2, CTRL-E5 and CTRL-E6 field names are provisional until lanes L5, L6, L4 and L2 pre-register theirs. The second-machine agreement (E5) is a procedure (each machine passes the other's base id) that this folder has not yet been run through on a MacBook. Run folders are not signed: an adversary who rewrites receipts, links and manifest consistently defeats the chain check; the verifier still re-derives every row from facts and files, which is what this lane promises.

CTRL-E5 (v1.3-ctrl-e5, sc#403)

The verifier judges CTRL-E5 from the last CTRL-E5 receipt's facts (rule: ACCEPTANCE-v1.3-ctrl-e5.md). It also derives the pre-CTRL-E5 verdict id itself (CTRL-E5 and E5 forced to NOT_RUN) and requires the receipt's original_verdict_id to equal it. Folders without a facts-bearing receipt give NOT_RUN and the ids recorded before v1.3.