interplane.Get Omega
Read in your language

aien-protocols-mv

Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem

Brought by drakestapleton

branch main Branches Tags History

aien-protocols-mv / specs / evidence-receipt / SUBSET.md

49 lines · 4955 bytes Raw Blame History Source

Evidence Receipt (EvidenceReceiptV1): the subset VC1 needs

Status: Partial extraction, 2026-10-02 (VC1-FMT). This is NOT the full wire specification of the receipt. It records only what Verified Crumb V1 binds to. The full extraction (decode rules, tier and mutation rules, ledger and lease store checks, JSON rendering) is owed. Contract version: 0.1.0 (major zero, see VERSIONING.md) License: Community Specification License 1.0 Authority: the Rust source below. Where this file and the source differ, the source (as pinned) wins and this file is wrong. Pinned source: aien-dev/aien-sovereign-core commit 40dd373, crates/aien-proof/src/ (read 2026-10-02). Line numbers are for that commit.

1. Receipt identity (what VC1 binds to)

2. Canonical field order (evidence.rs:545-619)

domain tag, u32 version (1), kind, tier (string), result (1 byte: PASS 0, FAIL 1, BLOCKED 2, INCOMPLETE 3, SKIPPED 4; evidence.rs:61-69), repo, commit, dirty (1 byte), toolchain, procedure, machine, env_class, input_artifacts (count then strings), output_artifacts (count then strings), assertions (count then id, expected, observed, pass byte, source, note), dependencies (count then raw 32-byte ids), declared_mutation byte, observed_mutation byte, authority, output_digest (32 raw bytes), external_refs, ledger (0, or 1 then u64 index and 32 raw bytes), lease (0, or 1 then 32 raw bytes and resource), timestamp u64, required_features, trailing u32 zero (evidence.rs:619).

3. Fields VC1 reads

Struct Receipt, evidence.rs:294-343:

FieldTypeVC1 use
idBLAKE3 hexmust equal verification.receipt_id
kindstringmust equal verification.verifier_profile
tierenum, evidence.rs:85-102, rank at evidence.rs:133-143must satisfy the profile minimum; TEST_ONLY_TRUST satisfies nothing but itself (chain.rs:259-267)
resultverdictmust be PASS
input_artifacts<algo>:<hex> strings, algos blake3, sha256, sha512 (evidence.rs:412-431)must list the VC's semantic_id and source_or_ir_digest as sha256:<hex>
output_digest64 hex digits, BLAKE3 of the captured output (evidence.rs:130-131, checked at evidence.rs:490-494)must equal verification.evidence_root
dependenciesreceipt idsmust equal the receipt ids of the VC's dependencies

4. Verification entry points VC1 relies on

5. A second, different "EvidenceReceiptV1" exists

tools/aien-test in the same repo writes a receipt with schema string aien-test/EvidenceReceiptV1, canonical JSON, SHA-256 digest, stored as <digest>.json (tools/aien-test/src/evidence.rs:1, :16, :23, :127-134). It is NOT the aien-proof receipt (BLAKE3 over binary canonical bytes). VC1 binds only to the aien-proof id until the two converge. A VC whose receipt_id is an aien-test digest is refused as RECEIPT_HASH_MISMATCH by any resolver that uses the aien-proof store.

6. Owed

Full extraction of: decode_canonical rules (evidence.rs:721-848), tier/mutation limits (evidence.rs:624-654), ledger and lease store checks (ledger_bind.rs, lease.rs), the JSON field renderings, and golden vectors for the receipt itself. Convergence of the aien-test receipt with this one needs an owner decision.