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

from probity_records import Journal, Signer, verify_journal
from probity_records.clock import SystemClock

signer = Signer.generate()
journal = Journal("records", signer, clock=SystemClock())
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.

Every producer takes its time from a probity_records.clock.Clock passed in at construction; a test or a verifier passes a FixedClock, and python -m probity_records.clock_lint SRC refuses any direct clock read.

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 can live in Vault transit, AWS KMS or Cloud KMS, and the customer runs the witness key. Key custody and the witness has the details. A root certifies short-lived session keys for one hierarchy, custody, tenant and half-open window; the certificate format is probity-key-delegation/v2.

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, and the holder confirmation key (cnf, RFC 7800) every grant must name
possession Proof that the presenter holds the grant's key, checked statelessly: DPoP proofs (RFC 9449, ES256 or EdDSA) or a mutual TLS client certificate (RFC 8705) against the issuer-signed cnf; the possession record an allow carries; and the offline check that no DPoP proof was spent by two permits inside its lifetime, so any verifier catches replay from the journal alone
quorum M-of-N approvals, one key per approver, bound to the request hash, fetched and retried while pending
revocation Signed revocation lists for keys, permits and grants, each list carrying only what it newly revokes; 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.

Where each identity piece lives

identity, canonical_identity, grants, possession, revocation and quorum each have one module, and a TypeScript twin in node/probity-records-verify where one exists. The table names every file.

Metadata

Release files for probity-records 0.12.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.12.0
File Size Uploaded Provenance Actions
probity_records-0.12.0.tar.gz 283.1 kB Without provenance Details for probity_records-0.12.0.tar.gz

Built distribution (wheel)

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

Total release size: 501.9 kB

Release files / probity_records-0.12.0.tar.gz

Download URL probity_records-0.12.0.tar.gz
Size 283.1 kB
Tags Source
SHA-256 checksum
How to use checksums
819e3c6a07ac52aa9dfea554df0b80997864adbdb23e35418980c76daf42e3a0
BLAKE2b-256 checksum
How to use checksums
11a3834367f72512c872fb89f006dd19b8e6a54622c883f2fb9c667aa797da30
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.12.0-py3-none-any.whl

Download URL probity_records-0.12.0-py3-none-any.whl
Size 218.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edc0d04714a1c109c652183706efc23419c3da71eabf50d86bc7ec5299890227
BLAKE2b-256 checksum
How to use checksums
eb78e0b0892fac3019c1a71bfc846a4e1bdea87c4b2a454d4dafe48f620afe12
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.12.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