Skip to content

Receipt format ​

A receipt is the portable record of one verification. The JSON form is canonical; the Markdown and HTML forms are renderings of it. A machine-readable JSON Schema ships at schemas/receipt.schema.json.

Top level ​

FieldTypeMeaning
receipt_versionintegerReceipt document format version (currently 1).
agentproof_versionstringThe AgentProof build that produced it.
commitstringResolved full commit SHA that was executed.
config_hashstringsha256: of the exact policy bytes.
started_atstringRFC 3339 UTC start timestamp.
runnerstringOptional runner identity from --runner.
statusstringOverall gate: PASS, FAIL, UNVERIFIED, ERROR or SKIPPED.
checksarrayPer-check results.
requirementsarrayPer-requirement results.
warningsstring[]Trust and scope warnings.

checks[] ​

FieldTypeMeaning
idstringThe check id.
commandstring[]The argv that ran.
parserstringcommand, go or junit.
exit_codeintegerProcess exit code (-1 if it never produced one).
duration_msintegerWall-clock duration in milliseconds.
statusstringCheck status.
testsarray{name, status} per test identity (go/junit only).
stdout / stderrstringCaptured output (bounded to 1 MiB each).
diagnosticstringPresent on ERROR, explaining the operational failure.

requirements[] ​

FieldTypeMeaning
idstringThe requirement id.
descriptionstringThe acceptance statement.
checkstringThe check it references.
teststringThe named test identity, if any.
statestringResulting state.
detailstringPlain-language reason when not a pass.

Provenance ​

A receipt is unsigned and editable. config_hash identifies the policy bytes and commit identifies the code, but neither authenticates who produced the receipt. Do not treat a receipt as an attestation. See provenance limits.

See the sample receipt for a real, complete document.

Developer preview. Receipts are unsigned and prove only the declared checks. Apache-2.0 licensed.