Failure codes
Every code constant in aee/codes.go, grouped under the heading its const block sits under, read at build time. The codes are this suite's closed set, compared as a set by the harness; message text carries nothing. scripts/code-contract-gate.py holds the corpus and both first-party rails to this set.
GATE 0 — statement well-formedness codes
statement-malformedstatement-type-unsupportedpredicate-type-unsupportedmember-spellingresult-vocabularyenvironment-incompleteposture-vocabularyvocabulary-missingvocabulary-not-canonicalvocabulary-caught-not-subsetvocabulary-digest-mismatchcorpus-digest-mismatchmanifest-duplicate-attackcorpus-manifest-no-attacksmanifest-expected-payloads-malformedcoverage-missingcoverage-incompleterow-attack-unknownmalformed-missing-actual-layerclean-row-layer-not-nonesubject-cardinalitysubject-sha256-missingdigest-not-canonicalrun-entropy-missingissued-at-missingissued-at-malformed
GATE 1 — statement-level observation-record codes (evaluated whenever observationRecords is non-empty, BEFORE any per-row logic)
batch-root-missingbatch-root-mismatchbatch-root-orphanedduplicate-recordrecords-absentrecord-undecodablerecord-signatures-empty
GATE 1 — per-row coverage-validity codes
refs-emptyref-malformedref-out-of-rangefail-closed-substrate-rowpayload-not-ijsonpayload-not-canonicalpayload-media-typepayload-missing-reservedrun-binding-mismatchmethod-cap-exceededcaught-row-uncoveredreconstructed-row-uncoveredclean-row-uncoveredarming-covers-nothingsealed-covers-nothingexamination-covers-nothingrecord-kind-unknown-covers-nothingmoat-drop-covers-nothinguncommitted-observation-covers-nothingpayload-commitment-malformed
GATE 1 — statement-level coverage validity requirements added at 0.7
clean-row-contradictedinterception-record-orphanedsealed-record-absentobserved-set-mismatchobserved-attack-uncaughtassessed-set-exceeds-declaration
GATE 1 — attribution binding codes
attribution-pinned-recordlessattribution-unpinnableattribution-pin-unmatched
Recompute-equality gate
result-recompute-mismatch
Consumer-policy stage codes
corpus-anchor-mismatchsubstrate-anchor-mismatch