Skip to main content Switch to mobile version traceproof-agent-audit 0.2.0 Local-first deterministic verification of AI agent traces
pip install traceproof-agent-audit Copy PIP instructions
Your agent says it worked. TraceProof checks the evidence.
Quick start · Showcase · Connect an AI agent · Trace format
TraceProof is a local-first, deterministic verifier for AI-agent audit logs. Give it an independently defined policy and a JSONL trace. It checks whether the reported execution obeyed the declared boundaries and returns machine-readable violations with source line numbers.
No LLM, API key, cloud account, or external service is required for the CLI.
A simulated IT support agent reads a ticket, receives independent approval for a write, and cites its retrieved runbook. The unsafe fixture instead retrieves across tenants, makes an out-of-scope tool call, writes without review, cites unobserved evidence and exceeds its token budget.
Valid trace · Unsafe trace · Independent policy
Python 3.10 or newer is sufficient. This is the official standalone TraceProof repository.
git clone https://github.com/shariquefaizi94-beep/traceproof.git cd traceproof python -m traceproof --policy examples/policy.json --trace examples/valid.jsonl python -m traceproof --policy examples/policy.json --trace examples/violations.jsonl The first command exits 0; the second exits 1. Use --format json for CI or programmatic consumption. Exit code 2 means malformed or unreadable input; treat both 1 and 2 as blocked releases.
Optional local package installation: python -m pip install . exposes the traceproof command. The distribution has not been published to PyPI. The MIT-licensed wheel and source archive passed package validation and are available from the standalone release validation artifacts (artifact retention is 14 days). PyPI Trusted Publishing is prepared but requires account-level publisher registration.
flowchart LR A[Agent audit log] --> C[TraceProof] B[Independent policy] --> C C --> D{Invariant checks} D --> E[Pass] D --> F[Findings and line numbers] The checker observes; it never invokes the tools recorded in the trace. In a real deployment, produce events from trusted middleware rather than from model output.
Install the optional MCP integration in a virtual environment:
python -m venv .venv # Activate the environment for your OS python -m pip install ".[mcp]" python -m traceproof.mcp_server Register the server as a local stdio server with your MCP host, using the absolute path to the virtual environment's Python interpreter and the arguments -m traceproof.mcp_server. The exposed tool is verify_agent_trace(policy_json, trace_jsonl). It takes text, not filesystem paths, and returns the same deterministic report. See MCP setup and CI integration.
Try asking your agent: "Check this redacted execution trace against this independently supplied policy. Explain the findings and cite their line numbers."
Framework adapters and interactive playground
Run the playground from the project directory:
python -m traceproof.playground Open http://127.0.0.1:8765. The server is a local development tool, not a public service.
python -m unittest discover -v A scoped GitHub Actions workflow runs the tests when TraceProof files change. The v0.2 GitHub Actions run passed 47 Python tests (including LangGraph and MCP integration) and 3 Java Spring AI tests, plus wheel build and cross-language verification. Verified standalone run. The local suite passed 45 tests and skipped two optional LangGraph tests because the dependency was absent locally. The MCP test is skipped if the optional SDK is absent. The framework examples are synthetic and do not call a live model. The package passed release validation on the new repository. PyPI registration and public Pages hosting remain pending.
A pass does not establish that an agent was safe in the real world. An attacker can fabricate or omit trace events. TraceProof is not a runtime enforcement layer, an authentication provider, a signature verifier, a semantic citation validator, or an end-to-end security scanner. It checks the supplied schema, explicitly declared policy and event ordering. Token accounting relies on the producer. Approval identities are assertions, not cryptographically authenticated evidence. Exact action equality is not a general business-argument validator. The examples use synthetic data.
Contribute responsibly
Read contribution guidelines and trace format. Share minimal, redacted fixtures and reproducible results. Never paste real credentials, customer records, sensitive prompts or proprietary traces into public issues.
Built by Sharique Faizi. Related: Production AI Engineering Playbook.
Released: Dec 5, 2026
Author: Sharique Faizi
Both files in this release have provenance metadata.
View provenance details
MIT View SPDX License List
Release files for traceproof-agent-audit 0.2.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: 38.0 kB
Release files / traceproof_agent_audit-0.2.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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Security for traceproof-agent-audit 0.2.0
Both files in this release have been uploaded with provenance metadata.
With provenance traceproof_agent_audit-0.2.0.tar.gz Dec 5, 2026
Attestation for traceproof_agent_audit-0.2.0.tar.gz
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 5, 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
Deployed from 4d99e05











