Verdict receipt v1

A verdict receipt records one decision about one AI change: was the candidate setup (a model, prompt, tool or host) as good as the baseline on the same cases, and at what cost. Anyone can check it without trusting the tool that produced it. This format is open: anyone may write or check receipts in it.

Format

  • Envelope: DSSE, with payloadType: application/vnd.in-toto+json. The signature covers the DSSE pre-authentication encoding.
  • Payload: an in-toto Statement v1 whose predicateType is this page’s address, https://trymargin.io/verdict-receipt/v1.
  • Subjects: the SHA-256 of each side’s setup string, named baseline and candidate.
  • Signature: Ed25519. A receipt Margin issues names its key by keyid, the SHA-256 of the raw public key, served at https://trymargin.io/.well-known/margin-receipt-key.
  • Unsigned receipts have an empty signatures list and say assuranceLevel: self-run. margin-referee writes one with --receipt out.json. It is your own record, in the same format.

The JSON Schema for the statement: https://trymargin.io/verdict-receipt/v1/schema.json. The same file ships in the margin-referee source.

Predicate fields

fieldmeaning
decisionship, ship_if_worth_the_cost, do_not_ship or not_enough_evidence
whythe reason in one sentence
decisionRulethe metric, the bar (0.97 of the baseline's pass rate, a relative bar), the one-sided 95% bound it is shown by, and how that confidence rises with each candidate tried while the bar stays fixed
pairedcases compared on both sides, cases won and lost, pass counts, and the quality gap: estimate, worst case at the gate's confidence, and what the bar allows
candidatesTriedhow many setups were tried on these cases; the bar is corrected for it
costPerCaseeach side's mean cost per case, or null when no cost was logged
segmentsper labelled segment: cases, lost, won, and whether it is proven worse or, for a release-critical segment, proven to hold
worseCasesthe first cases the candidate got wrong that passed before
releaseRulesthe release rules declared before the comparison: the SHA-256 of their canonical JSON, each rule's name and type, the rules that vetoed, and how many cases could not be checked; null when none were declared
rerunVariancepresent only when the verdict was taken over repeated runs: included (the bound adds the variance between re-runs of each side), runsPerSide, and sdPoints (the standard deviation of one run's gap from reruns, in points). Absent means the bound counts case-to-case variation only
notCoveredpresent only when Margin meters the project and the verdict's cases left some of its metered steps out: steps (the step names) and note. The verdict says nothing about these steps. Absent on a self-run receipt, where no meter is read
casesDigesta digest of the case set when known, else null
assuranceLevelrun-by-margin (Margin replayed the cases), scored-by-customer (Margin judged two experiments the team ran), self-run, or unknown
nonClaimswhat the receipt does not establish, inside the signed bytes

What a receipt is not

A valid signature shows who issued the receipt and that nobody edited it since. It does not show that the grader was fit for purpose, that the cases cover production, or that a person decided to ship. It is not a certification or an attestation of compliance. A team’s reported outcome after shipping is kept out of the receipt on purpose: a receipt is never edited.

Check one yourself

pip install "margin-referee[verify]"
margin-referee verify receipt.json --key-url https://trymargin.io/.well-known/margin-receipt-key

A real signed receipt is on /sample-record, and what to ask of one is on /for-reviewers. To check one without installing anything, paste it into /verify; it runs in your browser.