Skip to main content

probity-records

Signed records of agent tool calls that anyone can check offline: a single-use permit bound to the exact call arguments, the human approval it rests on, and what the call did, including a lost reply.

It is for framework integrations (Temporal, Pydantic AI) that write those records, and for the auditor who verifies them without access to the system that ran the agent.

Install: pip install probity-records==0.2.0

from probity_records import Journal, Signer, verify_journal

signer = Signer.generate()
journal = Journal("records", signer)
journal.append("https://example.org/predicate/v1/note", "note", "00" * 32, {"text": "hello"})
report = verify_journal("records", [signer.public_pem()], journal.checkpoint())
print(report["verdict"], report["verified"], "of", report["records"])

It prints PASS 1 of 1.

Each tool-call record carries two published contracts, and their published readers judge them: approval-binding/v1 by agent_evidence_vectors.approvalbinding, and uncertain_effect/v1 by agent-evidence-verify.

Key custody and the customer-held witness key

The signing key does not have to live next to the agent. VaultTransitKey, AwsKmsKey and GcpKmsKey sign through HashiCorp Vault transit, AWS KMS or Cloud KMS Ed25519, so the private key never leaves the service. Each pins its public key at construction and refuses a service that answers with another one. delegate issues a short-lived session key signed by a root key, and verify_delegation re-checks the certificate offline. The key's provenance travels in every permit and checkpoint it signs.

The witness key belongs to the customer. The journal publishes a C2SP tlog checkpoint feed. A witness the customer runs, with a key we never hold, cosigns each checkpoint over an RFC 9162 consistency proof and refuses a split view with HTTP 422. Witness and serve_witness are the server, Feed the client. The auditor pins a c2sp.org/tlog-policy naming that witness, and verify_journal then fails with witness_quorum_not_met unless the journal carries the cosignature. An independent witness built only from golang.org/x/mod, transparency-dev/formats and transparency-dev/merkle completes the same handshake (interop/go-witness/interop.py).

Authority beyond one approval

Module What it records and checks
grants Signed capability grants: per-tool, closed-world argument constraints (17 types, from range and subpath to url_safe and shlex), delegation that can only narrow, the grant digest in the permit
quorum M-of-N approvals, one key per approver, bound to the request hash, fetched and retried while pending
revocation Signed, append-only revocation lists for keys, permits and grants; root rotation; a last-known-good cache that fails closed
governance Exceptions with owner, rationale and expiry under a quorum; intake, risk routing, approval, attestation and sign-off as signed steps
exports python -m probity_records seal-export: a signed census of a governance platform export that anyone re-checks offline

verify_journal(path, keys, checkpoint, trust=Trust(...)) re-runs the grant, quorum, revocation and governance checks from the records and the trust the auditor pins, and re-counts every human approval (M of N) under the approver keys and threshold the auditor pinned, re-verifying each approver's own signature. An export seal is re-checked with verify_export_seal or python -m probity_records verify-export.

Metadata

Release files for probity-records 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for probity-records 0.2.0
File Size Uploaded Provenance Actions
probity_records-0.2.0.tar.gz 102.5 kB Without provenance Details for probity_records-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for probity-records 0.2.0
File Interpreter ABI Platform Actions
probity_records-0.2.0-py3-none-any.whl Python 3 none any Details for probity_records-0.2.0-py3-none-any.whl

Total release size: 185.1 kB

Release files / probity_records-0.2.0.tar.gz

Download URL probity_records-0.2.0.tar.gz
Size 102.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a861e7a616fede57ec1bc48012f9ec6583a402972a5bde48c202465924ea8fcb
BLAKE2b-256 checksum
How to use checksums
05e5c75a5141eb833040e6d94813efa04735cdb7a319ce9fc4189fb01bfd2199
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / probity_records-0.2.0-py3-none-any.whl

Download URL probity_records-0.2.0-py3-none-any.whl
Size 82.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
669a8522fa7c55a79dfc66afbee90e9ca71833ee7e6219287a9b870b4b4fbcb8
BLAKE2b-256 checksum
How to use checksums
91a9dc4175118df0f56ea1a049d70db8b675dc9b61abcb6f7aba5d8de60f677e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for probity-records 0.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page