inspect-receipts
Emit ZAP1 verifiable attestation receipts from Inspect AI evals. Install the package, run any eval, and a signed-evidence receipt for the run lands next to your logs with no fork and no code change to your tasks.
What this is: the missing signed-evidence layer for agent evals. Inspect (and the broader agentskills.io ecosystem) produce rich results but ship them as trust-on-read JSON.
inspect-receiptsturns each eval into a hash-commitment:input_hash(what was evaluated),output_hash(the verdict), andlocked_harness_hash(the frozen judge), so a third party can recompute without trusting the runner.What this is NOT: a proof that the eval, the scorer, or the system-under-test is correct. It is a tamper-evident commitment, not a correctness SNARK. No prompts, completions, transcripts, or secrets ever enter a receipt: only canonical SHA-256 hashes, numeric metrics, and coarse identifiers.
Install
pip install inspect-receipts # plus: pip install inspect_ai
Inspect auto-discovers the hook via its inspect_ai entry-point group. There is
nothing to import in your eval.
Use
inspect eval my_task.py --model anthropic/claude-opus
# -> ./zap1-receipts/receipt-<task_id>.json
Each completed task writes a receipt like:
{
"schema": "zap1.vwc.v0/attestation",
"receipt_family": "AGENT_EVAL_VERDICT",
"vwc_profile": "attestation",
"subject": { "kind": "inspect_eval", "task": "ipi_resistance", "model": "..." },
"hashes": {
"input_hash": "sha256:...",
"output_hash": "sha256:...",
"locked_harness_hash": "sha256:..."
},
"score": { "kind": "scalar", "direction": "maximize", "name": "match.accuracy", "value": 0.92 },
"metrics": ["match.accuracy=0.92"],
"status": "success",
"public_boundary": "hash-commitment, NOT a proof of correctness"
}
Verify (without trusting the runner)
The whole point is that a third party can recompute the commitments straight
from the published eval log — with nothing installed but this package (no
inspect_ai needed to verify a JSON-dumped log):
inspect-receipts-verify ./logs/my_run.eval ./zap1-receipts/receipt-<task_id>.json
# [OK ] input_hash
# [OK ] output_hash
# [OK ] locked_harness_hash
#
# MATCH: receipt commits to this eval log (hash-commitment verified).
Exit code is 0 on a full match, 1 on any mismatch — so it drops straight
into CI. If someone edits the verdict after the fact, the output_hash line
flips to XX and prints both the claimed and recomputed digest, localizing the
tamper. The receipt carries the (non-secret) judge identity in cleartext, so the
locked_harness_hash pre-image is reconstructable without the runner's help.
This verifies the commitment — that the receipt is bound to this log — not that the eval's verdict is correct. From Python:
from inspect_receipts import verify_receipt
verify_receipt(eval_log, receipt)["ok"] # True / False
Configuration (env)
| Variable | Default | Effect |
|---|---|---|
INSPECT_RECEIPTS |
1 |
Set 0 to disable receipt emission. |
ZAP1_RECEIPT_DIR |
./zap1-receipts |
Where receipts are written. |
ZAP1_RECEIPT_ISSUER |
inspect-receipts |
Issuer label in the receipt. |
ZAP1_RECEIPTS_ANCHOR |
0 (off) |
Opt-in: POST the receipt to a ZAP1 endpoint. |
ZAP1_ENDPOINT / ZAP1_API_KEY |
unset | Required only if anchoring is enabled. |
Default is local-only / no network. Anchoring is opt-in and transmits only the bounded receipt (hashes + metrics), never eval content. Verify locally before you anchor.
Receipt format
Receipts use the ZAP1 attestation schema (zap1.vwc.v0/attestation): a locked,
hashed judge (the Inspect task, model, and config), a recomputable verdict, and
three bound hashes. The same envelope is reused for benchmark and gate receipts,
so one verification path covers all of them.
License
MIT.
Metadata
Release files for inspect-receipts 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inspect_receipts-0.2.0.tar.gz | 10.2 kB | Without provenance | Details for inspect_receipts-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inspect_receipts-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for inspect_receipts-0.2.0-py3-none-any.whl |
Total release size: 22.1 kB
Release files / inspect_receipts-0.2.0.tar.gz
| Download URL | inspect_receipts-0.2.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1ae24d1886fcdc4bb3bde4710c6608753817f7719eb625dcb99aa8e4afe18b2
|
|
BLAKE2b-256 checksum How to use checksums |
768dd75760514a969e666ce85ba4fd21949d9a869dc03f1b22349d0579c1db21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / inspect_receipts-0.2.0-py3-none-any.whl
| Download URL | inspect_receipts-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1d0abd5fbb08b1ebf77c4fcb545c845fe1aa7bc92834da75c057c427ca11bf0
|
|
BLAKE2b-256 checksum How to use checksums |
ebe39a9ab10d23a6e3a65841a21ff5755bf93156030961545816444308dcfce6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for inspect-receipts 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.