Skip to main content Switch to mobile version hornet-cpl 1.0.0 Coordinate Provenance Layer - Model-agnostic, verifiable output attribution
pip install hornet-cpl Copy PIP instructions
Signed, chained provenance receipts for AI work, verifiable offline.
hornet-cpl emits and verifies CPL records: small JSON provenance receipts that say who or what produced an AI output (a model, agent, tool or person), from which inputs, through which operation, and what came out. Every input is bound by hash, prompts are only ever hashed, and records are canonicalized (RFC 8785), hashed (SHA-256) and signed (Ed25519). Records chain into a tamper-evident DAG that anyone holding your public key can verify offline, with no call back to your systems.
This package implements the CPL/PEL v0.2 draft specification. A TypeScript implementation of the same format is published on npm as hornet-cpl.
pip install "hornet-cpl[sign]" Python 3.10 or later. The core has no runtime dependencies: hashing, canonicalization, record building and the checks that precede signature verification use only the standard library. The sign extra adds cryptography, which is needed to generate keys, sign, and run the final Ed25519 check of verification. Without it, hornet_cpl.SIGNING_AVAILABLE is False and those functions raise a clear error.
Everything below imports from hornet_cpl itself. The top-level names are the same set the TypeScript package exports from its index, in snake_case (verifyBundle is verify_bundle); tests/python/test_public_api.py keeps the two lists in step. The submodules hornet_cpl.chain, hornet_cpl.pel, hornet_cpl.signing, hornet_cpl.trust and hornet_cpl.validator hold the rest.
from hornet_cpl import (CPLEmitter, MemoryRecordStore, Signer, collect, generate_keypair, key_id_for, pel, validate_record_bytes, verify_bundle) private_key, public_key = generate_keypair() signer = Signer(private_key, signer_id="example-agent") keys = pel.canonicalize([{"key_id": key_id_for(public_key), "algorithm": "ed25519", "public_key": public_key, "signer_id": "example-agent"}]) emitter = CPLEmitter() draft = emitter.emit(producer_type="local_llm", producer_id="ollama:qwen3:8b", operation="generate", content="A draft.", input_prompt="Write a draft.", signer=signer) final = emitter.emit(producer_type="local_llm", producer_id="ollama:gemma3:4b", operation="summarize", content="Short.", parent_records=[draft], signer=signer) report = validate_record_bytes(pel.canonicalize(final.to_dict()), trust=keys, content=b"Short.") assert report.valid and report.signed store = MemoryRecordStore() store.put(draft) store.put(final) bundle = collect(final, store, name="final.txt") assert verify_bundle(pel.canonicalize(bundle), keys, artifact=b"Short.").valid Command line
The package installs the hornet-cpl command:
Exit status: 0 success or valid, 1 verification failed, 2 usage, input or I/O error. The key-file and spec formats are described in FORMATS.md.
What a record does not claim
A signature attests that the signer observed the producer produce the record; it does not prove that a model actually ran. signed_at is the signer's claim, not a trusted timestamp. CPL signatures are not eIDAS qualified electronic signatures or seals, and nothing here is a conformity assessment: a chain supports evidence for an obligation, it does not comply with one. The full list is in the claims register.
Project README and quickstart
CPL specification (records, chains, bundles) and PEL specification (canonical bytes, hashing, signing, verification)
The documented public SDK and CLI follow semantic versioning. The 1.x verifiers continue to accept existing CPL wire 0.2 bundles and the frozen signed fixtures. Verification dispatches by the declared wire version and rejects unsupported versions.
Python CLI emission specs require origin.producer_version and origin.execution_environment. The TypeScript CLI can default these fields. Set both explicitly in portable emission specs.
Author: HORNET CPL contributors
Both files in this release have provenance metadata.
Apache-2.0 View SPDX License List
ai provenance llm attribution traceability
Development Status 5 - Production/Stable
Intended Audience Developers
Programming Language Python :: 3.10
Topic Software Development :: Libraries :: Python Modules
Release files for hornet-cpl 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 186.6 kB
Release files / hornet_cpl-1.0.0.tar.gz
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Release files / hornet_cpl-1.0.0-py3-none-any.whl
Security for hornet-cpl 1.0.0
Both files in this release have been uploaded with provenance metadata.
With provenance hornet_cpl-1.0.0.tar.gz Dec 2, 2026
With provenance hornet_cpl-1.0.0-py3-none-any.whl Dec 2, 2026
Attestation for hornet_cpl-1.0.0.tar.gz
Attestation for hornet_cpl-1.0.0-py3-none-any.whl
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.
Release history Release notifications | RSS feed
Dec 2, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




