Proof of Edition: verify that an inference API serves the model edition it claims (fingerprints, signed manifests and receipts, re-execution audits).
pip install proof-of-edition Copy PIP instructions
An open standard and toolset for one question: is this API really serving the model edition it says it is? Weights, quantization, engine and all.
Providers publish; anyone verifies. Nothing here depends on trusting the provider's word or on confidential-computing hardware, although hardware attestation can be layered on top (layer 5).
The full specification is in SPEC.md. This repository is the reference implementation Lebrel runs in production: the receipts and manifests served at api.lebrel.ai, the registry behind models.lebrel.ai, and the watch behind models.lebrel.ai/watch. Not here: the fingerprint training pipeline, every private question set, and Lebrel's operational notes.
uv tool install git+https://github.com/LEBREL-AI/proof-of-edition # or, from a checkout: uv run poe-verify-receipt ... curl -s https://api.lebrel.ai/.well-known/proof-of-edition > manifest.json curl -s https://api.lebrel.ai/v1/receipts/$REQUEST_ID > receipt.json poe-verify-receipt --public-key $PROVIDER_SIGNING_KEY \ --manifest-file manifest.json --receipt-file receipt.json \ --prompt-file request.json --response-file answer.txt Exit code 0 means: both documents are signed by the pinned key, the manifest is current, the receipt references that manifest, and the digests match the request you sent and the answer you received.
poe-verify-fingerprint --base-url https://api.lebrel.ai/v1 --model lebrel/ \ --fingerprint fingerprint.private.json --k 10 --tau 2 The fingerprint file is private to whoever trained the edition; only the sampled questions are sent to the deployment. With k = 10 questions and a threshold of 2 hits, the false-positive rate against an unrelated model is negligible (see proof_of_edition/fingerprint/chainhash.py).
poe-audit --samples exchanges.jsonl --manifest manifest.json --public-key $KEY \ --reference-url https://your-reference-deployment/v1 --reference-model \ --out report.json Deterministic requests are compared by exact match and shared prefix; sampled requests use a paired permutation test over a Hamming kernel. See proof_of_edition/audit/reexecute.py.
poe-check-manifest --manifest manifest.json --runtime-key $RUNTIME_KEY \ --record record.json --publisher-key $PUBLISHER_KEY --log log.jsonl --checkpoint checkpoint.json Exit code 0 means the runtime serves exactly the files the registry published for that edition revision, and the record is in the transparency log.
poe-build-manifest --edition manifest/editions/ .json \ --weights-manifest /path/to/model_manifest.json --out manifest/out/ .manifest.json The output is the manifest base a runtime signs at serving time. The Lebrel encrypted runtime (Go) reads it from LEBREL_SERVING_MANIFEST_JSON.
proof_of_edition/watch/ probes the labs' own APIs and every host of the same model on a schedule, compares them with each other and with Lebrel's own run of the published weights, and publishes a signed board at https://models.lebrel.ai/watch: the battery, the hourly first-word fingerprint (by log-probabilities, or by sampling where a lab returns none), the published-weights references and every threshold. How each status is computed, and what it can and cannot mean, is in watch/README.md.
uv run --group dev --extra reference python -m pytest The fingerprint training pipeline and the private fingerprint files are not part of this repository; they never leave the publisher.
Questions, findings and security reports: contact@lebrel.ai. Lebrel AI LLC.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




