Offline verifier for Query Fanout tamper-evident AI agent audit evidence bundles and evidence packs
Independent, offline verifier for Query Fanout AI agent audit evidence bundles (.json) and evidence packs (.zip).
It is small and dependency-light (only cryptography; asn1crypto is optional and needed for RFC 3161 timestamps), so an auditor can read it and run it without trusting the Query Fanout service that produced the evidence. It makes no network calls.
pip install "qf-verify[tsa]" # from PyPI, with RFC 3161 timestamp support pip install ./qf-verify # or from a checkout of the Query Fanout repo qf-verify --version Python 3.10 or newer.
# 1. Get the publisher's public keys from a source other than the evidence itself curl -s "https:// /audit/keys" > keys.json # public endpoint, no API key # 2. Verify an evidence bundle or an evidence pack curl -H "X-API-Key: $QF_API_KEY" "https:// /audit/export?run_id=r1" > bundle.json qf-verify bundle.json --trusted-keys-file keys.json curl -H "X-API-Key: $QF_API_KEY" "https:// /audit/evidence-pack?run_id=r1" -o pack.zip qf-verify pack.zip --trusted-keys-file keys.json # 3. Also check who issued the RFC 3161 timestamps: pass the timestamp # authority's CA certificate, downloaded from the authority itself curl -s https://freetsa.org/files/cacert.pem > freetsa-ca.pem qf-verify pack.zip --trusted-keys-file keys.json --tsa-ca freetsa-ca.pem Exit codes: 0 verified, 1 verification failed, 2 unreadable input. Add --json for machine-readable output (it includes a timestamps list).
See docs/audit-schema.md in the Query Fanout repository for the format.
Packs are read in memory and never extracted. Names containing paths, duplicate entries, and oversized archives are rejected.
Pin keys (--trusted-key / --trusted-keys-file) obtained out of band; without pinning, the verifier trusts the keys embedded in the bundle and says so. In the same way, without --tsa-ca or --pin-tsa-cert a timestamp's signature is checked but the identity of the authority is only reported, with a warning.
Limits: certificate revocation (CRL/OCSP) is not checked, because the verifier works offline. Chains are evaluated at the timestamp's generation time.
ai-agents audit audit-log ed25519 evidence merkle rfc3161 tamper-evident verification
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




