Skip to content

Receipt schema

receipt.json is validated against a fixed schema (RECEIPT_SCHEMA_VERSION, currently 1.1). The full Zod definition lives in packages/receipt/src/schema.ts and the generated JSON Schemas under schemas/ in the repository.

The load-bearing fields:

  • caseId, manifestHash, generatedAt which case, and the exact manifest it was run from.
  • bundleDigest the deterministic digest over the whole indexed artifact set. This anchors artifact-index.json, which cannot cover itself.
  • repository the baseline and patched commit SHAs.
  • environment the toolchain, compiler, EVM version and fuzz seed, and enforced: whether the checkout was confirmed to pin them. When false, the receipt drops the exact-replay wording rather than claiming more than the evidence supports.
  • gates the four gate results, each with its status, evidence references, and explanation.
  • variantDenominator how many valid variants the neighborhood ran. A nonzero value obliges the bundle to carry variants/ledger.json.
  • causalDivergence whether a causal seam was found, or explicitly not. A found status obliges the bundle to carry alignment.json and divergence.json, and those must agree with it.
  • scope the claim and its stated limitations, in plain language.

Every one of these is re-checked by the checker.