Receipts
What a run’s proof report contains, field by field, with a real one — and the line between what it proves and what it does not.
Last updated 2026-09-14 · Markdown
Every run can write a proof report: whether it passed, the checks behind that, a privacy score, and a receipt block carrying the content hash and engine version.
What is checked
- The data matched every declaration the engine executed: formulas, identifier checksums, ranges, allowed values, unique fields.
- No real source data entered the pipeline (the recipe is data-free).
- The content hash covers the generated data, so any change afterwards is detectable.
- Whether your application, pipeline or model behaves correctly on the data.
- Relationships between two separately generated files.
A real one, abbreviated
{
"schema": "worklens.proof.v1",
"passed": true,
"realism": {
"overall": 100,
"metrics": [
{
"label": "No real source data",
"status": "green"
},
{
"label": "Formulas consistent",
"status": "green",
"detail": "12 of 12 \u2014 derived columns match their formula"
},
{
"label": "Within range",
"status": "green",
"detail": "24 of 24 \u2014 numbers inside their declared min/max"
},
{
"label": "Allowed values",
"status": "green",
"detail": "18 of 18 \u2014 category fields use only declared values"
},
{
"label": "Unique fields unique",
"status": "green",
"detail": "2 of 2 \u2014 fields marked unique have no duplicates"
}
]
},
"privacy": {
"risk": "low",
"safety": 95
},
"receipt": {
"content_hash": "sha256:5d906d3b320f\u2026",
"engine_version": "0.1.0",
"kind": "proof",
"tamper_evident": true,
"verification": {
"calculations_valid": true,
"ids_valid": true,
"leaked_values": 0,
"no_real_data_remains": true,
"passed": true,
"structure_intact": true
}
}
}From the run behind the homepage preview: examples/homepage-demo.wl.json with its own seed. The full report is what `worklens prove` prints.
Reading it
passed is the headline. realism.metrics is where to look when it is not green: each entry names the check, how many rows it covered and how many held. privacy scores re-identification risk on the generated rows themselves — quasi-identifiers and k-anonymity — which matters when the data will be shared. receipt is the part to keep: the content hash is what /verify recomputes.
Common questions
How do I check a receipt someone sends me?
Open /verify on the website and drop in the evidence bundle. It recomputes the hash and reports what still holds. In code, the SDK’s verifyReceipt does the same. The standalone verifier is being released as a separate Apache 2.0 tool.
What does the realism score mean?
A percentage of checks passed, weighted across formulas, identifiers, ranges, allowed values and uniqueness. 100 means every executed check held on every row it applied to. An amber or red check names exactly which rows did not.
Limitations
- A string-valued calculated column (a derive that builds text) is currently counted as a formula mismatch even when its value is exactly right; the fix is pending. Numeric derives are checked correctly.
- Neither the CLI’s proof.json nor the studio’s receipt is signed. Both carry SHA-256 hashes — of the receipt body, and of the recipe, packs and engine that produced the data — and anyone can recompute them offline. If your organisation needs a signature, your CI signs the receipt hash with its own identity.