Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-protocols-mv/blob/main/specs/evaluation/SPEC.md # aien-protocols-mv Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-protocols-mv / specs / evaluation / SPEC.md` 66 lines ยท 4559 bytes Raw Blame History Rendered 1 # Unified Evaluator Protocol Specification 2 3 **Status**: Draft 4 **Version**: 1.0.0 5 **License**: Community Specification License 1.0 6 7 ## Abstract 8 9 The Unified Evaluator Protocol establishes the verifier boundary for autonomous candidate evaluation, self-modification, and regression testing. 10 11 ## Core Concepts 12 13 1. **Evaluator SPI**: Independent evaluators (static analysis, regression suites, benchmarks) produce native measurements and findings under a frozen `EvaluationPlan`. 14 2. **Immutability Invariant**: Candidate Engine N+1 may propose an artifact but may never evaluate itself or modify evaluator rules, thresholds, or verifier keys. 15 3. **Protected Verifier**: Signed evaluation receipts (`SignedEvaluationReceipt`) are issued exclusively by an isolated verifier identity bound to hardware TPM 2.0 keys. 16 17 ## Verdict identity domains (registry) 18 19 A verdict identity is a lowercase hex SHA-256 over a domain tag, one LF, then lines of exact text joined by LF with no trailing LF. Nothing with a timestamp, host name, path or floating-point value enters it, so two machines that agree on every row produce the same identity. A producer adds its domain here before emitting it; a tag is never reused with a different byte layout. 20 21 | domain tag | names | defined in | status | 22 |---|---|---|---| 23 | `AIEN_E2E_OBJECTIVE_V1` | the objective identity of the WHOLE-SYSTEM-E2E acceptance test (tag, LF, objective text) | aien-architecture `docs/plans/release-readiness/ACCEPTANCE_E2E.md` section 1 | FROZEN 2026-10-10 | 24 | `AIEN_E2E_VERDICT_V1` | the verdict identity of the WHOLE-SYSTEM-E2E acceptance test (tag, LF, `objective_id`, `contract_sha256`, rows E1 to E6, CTRL-E1 to CTRL-E6) | same file, section 1, byte layout pinned at freeze | FROZEN 2026-10-10 | 25 26 Producers: the harness `scripts/whole_system_e2e.sh` and the verifier `tools/aien-verify` in aien-sovereign-core. The verifier, not the executor, computes the verdict identity (aien-architecture#190, lane L4). 27 28 ## Draft digest transcript revision for the next minor release 29 30 The Rust reference uses distinct, versioned SHA-256 transcript domains for 31 `EvaluationPlan`, `EvaluatorOutcome`, and `EvaluationReceipt`. These digests 32 are not a JSON or transport encoding. In this revision, `str` means the 33 string's UTF-8 bytes preceded by its **byte** length as unsigned u64 34 little-endian; `count` is an unsigned u64 little-endian element count; UUID 35 means 16 raw bytes; `digest` means exactly 32 bytes. Integers and IEEE-754 36 `f64` bits are little-endian. Options use one byte: `0` for absent and `1` 37 before a present value. Lists include their count even when empty. No padding 38 or string normalization occurs. 39 40 - Plan: ASCII `AIEN_EVALUATION_PLAN_V2` and a zero byte, evaluation UUID, 41 subject artifact UUID, subject digest, profile str, evaluator count, 42 evaluators sorted by `(evaluator_id, version, required)` (each as ID str, 43 version str, required byte `0`/`1`), baseline option (artifact UUID and 44 digest if present), sandbox profile str, policy digest, manifest digest. 45 - Outcome: ASCII `AIEN_EVALUATOR_OUTCOME_V2` and a zero byte, evaluator ID 46 str, version str, binary digest, config digest, status byte (`0` Passed, 47 `1` Failed, `2` Inconclusive, `3` TimedOut), finding count, each finding's 48 severity str, rule ID str, message str and location option str; measurement 49 count, each metric str, value's `f64::to_bits()` as u64 and unit str; 50 evidence count, then each artifact UUID and digest. 51 - Receipt: ASCII `AIEN_EVALUATION_RECEIPT_V3` and a zero byte, u32 52 `protocol_version`, evaluation UUID, request, subject, plan, evidence-root 53 and outcomes-root digests, verdict byte (`0` Pass, `1` Fail, `2` 54 Indeterminate), verifier principal ID str, key ID str, trust epoch u64, 55 trusted-build digest, policy-bundle digest, start timestamp u64, completion 56 timestamp u64. Timestamps retain the existing `Timestamp` microsecond unit. 57 The only supported signed receipt `protocol_version` is `3`. 58 59 No verifier retries the old unframed digest. Plan and outcome digest values 60 also change without a change to their containing Rust struct's serialized 61 shape. Existing digest-keyed storage and references require an explicit 62 consumer migration, including re-evaluation where old digests cannot be 63 trusted. The AEI1 signed outer receipt includes this base receipt digest and 64 therefore requires `protocol_version` 3 as well. Drake approved this breaking 65 cutover on 2026-10-26; coordinated consumer adoption is recorded in 66 `CONSUMERS.md`. Approval and source adoption do not imply deployment.