runback-verify
Verify the integrity of a Runback audit record offline, with nothing but Python's standard library.
pip install runback-verify
runback-verify record.json
from runback_verify import verify_json
result = verify_json(open("record.json").read())
print(result["verdict"]) # "valid" | "unverified" | "invalid"
Evidence packs (the signed PDF from GET /api/compliance/pack, 2.2.0) are
detected by their %PDF- header:
python -m runback_verify runback-evidence-pack-2026-10-01-2026-10-31.pdf
from runback_verify import verify_pack
verify_pack(open("pack.pdf", "rb").read())["verdict"]
Same checks and exit codes as @runback/verify 3.1: every byte outside the
embedded manifest must match its SHA-256, the manifest must carry Runback's
Ed25519 signature, and a SAMPLE pack is never valid.
Zero dependencies, on purpose
This package is separate from runback-sdk because the SDK needs requests and
python-ulid to do its job, and an auditor needs neither. Ed25519 verification
is implemented here from RFC 8032 in plain Python, so the package installs and
runs on a stock interpreter in a locked-down environment.
What the verdicts mean
| verdict | meaning |
|---|---|
valid |
integrity holds and the signer is a key you pinned |
unverified |
self-consistent, but the origin is unproven |
invalid |
something failed — it is not the record it claims to be |
The chain algorithm is public, so anyone can author a self-consistent record from nothing, or edit a real one and re-chain it. Integrity alone proves only internal coherence; provenance is a separate question, answered only by a signature that verifies against a key you pinned out of band.
Exit codes: 0 valid, 1 invalid, 2 unverified. The CLI also exits 2 when
the file cannot be read or is not a Runback record, so a CI step should read
the printed verdict (or --json) before treating 2 as "unverified".
The CLI takes --json and nothing else. By default it pins Runback's published
Ed25519 keys, so a record signed by a self-hosted deployment's own key reports
unverified. Pin your key from Python instead:
result = verify_json(raw, expected_public_key=open("audit_public.pem").read())
Legacy HMAC-signed records verify only with the shared secret:
verify_json(raw, signing_key=...).
The format
runback.cassette/v1 is specified at https://runback.dev/spec. The reference
implementation is @runback/verify
on npm; this package is a port held to the same generated conformance fixture,
and where the two disagree the reference is authoritative.
Metadata
Release files for runback-verify 2.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 |
|---|---|---|---|---|
| runback_verify-2.2.0.tar.gz | 16.6 kB | Without provenance | Details for runback_verify-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| runback_verify-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for runback_verify-2.2.0-py3-none-any.whl |
Total release size: 30.6 kB
Release files / runback_verify-2.2.0.tar.gz
| Download URL | runback_verify-2.2.0.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7a552e5fb3b0a6d8a1f482e5ac35f119c3d1a1b634d68cbfe188ddd50b97b01
|
|
BLAKE2b-256 checksum How to use checksums |
e9b9ccfeec4cbc2871d35738ae2fe452d6ef3674335a1cf0b4a8bebd85fc004f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Release files / runback_verify-2.2.0-py3-none-any.whl
| Download URL | runback_verify-2.2.0-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8ed1e5e384999654ee6994020b1b96200f76c47bf3e39dad76d610eebbdf922
|
|
BLAKE2b-256 checksum How to use checksums |
368981fedce546ebe0095b8fb4cf55162d71d23b413963fbce6a6f09e106686b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Security for runback-verify 2.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.