Polygraph
Open-source governance tooling for agentic AI systems.
Status: active development, pre-1.0. Created May 29, 2026. Targeting v1.0 in late September 2026. Built in the open — star this repository to follow along.
What this is
Polygraph is a Python library and CLI that ingests execution traces from agentic AI systems and produces structured governance assessments: which policies were violated, which regulatory clauses each violation maps to, and an audit-ready evidence bundle that can be imported into existing GRC platforms.
It is designed to fill a specific gap in the current AI governance stack. Today's platforms (Credo, VerifyWise, Holistic AI, Fairly) are sophisticated document repositories — excellent at storing, organizing, and presenting evidence to auditors, but the evidence still has to be generated by humans running scripts and writing memos. Polygraph is the evidence-generating engine that feeds into those platforms, not a replacement for them.
Why agents need their own governance layer
The traditional AI governance model — risk assessment before deployment, fairness testing at model promotion, monitoring at the metrics layer — was designed for static models that produce predictions. It breaks down when the subject of governance is an agent that:
- Reasons over many steps, where each step is benign but the composite trajectory is risky
- Uses tools dynamically, potentially outside its declared scope
- Spawns or coordinates other agents, multiplying the surface area faster than any review process can keep up
- Operates against open-ended objectives, making "goal drift" a meaningful failure mode
Pre-deployment review cannot enumerate this state space. The governance function has to migrate from a gate to continuous, trajectory-level evaluation. Polygraph is one piece of the tooling that makes that migration possible.
Planned v1.0 scope
Trace ingestion
- OpenTelemetry GenAI semantic conventions
- LangSmith trace exports
- Langfuse trace exports
Built-in detectors
- Tool-scope violations
- Unauthorized tool sequences
- Loop and runaway-behavior detection
- PII exposure in tool arguments and model context
- Prompt-injection patterns in tool outputs
- Goal drift
- Dynamic scope creep
- Multi-step risk accumulation scoring
Policy and reporting
- YAML policy DSL for declaring detectors, severity thresholds, allowlists, and regulatory profile
- Regulatory mapping for EU AI Act (high-risk obligations, Annex III and Article 50) and the NIST AI RMF Generative AI Profile (NIST.AI.600-1)
- OSCAL-compatible evidence bundle export for ingestion into existing GRC platforms
- Extension API for writing custom detectors
Installation
pip install polygraph-gov
(Coming with v1.0. The current repository is a placeholder.)
Status
| Field | Value |
|---|---|
| Created | May 29, 2026 |
| v1.0 target | Late September 2026 |
| License | Apache-2.0 |
| Maintainer | @jodyb |
Follow along
Star this repository to follow progress. The Discussions tab is open for design feedback, use-case suggestions, and requests for additional detectors or trace-format support.
This repository is under active construction. APIs, scope, and design decisions will change before v1.0. If you are working on the same problem space and want to compare notes, open a Discussion.
Metadata
Release files for polygraph-gov 0.0.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 |
|---|---|---|---|---|
| polygraph_gov-0.0.0.tar.gz | 8.2 kB | Without provenance | Details for polygraph_gov-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polygraph_gov-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for polygraph_gov-0.0.0-py3-none-any.whl |
Total release size: 16.6 kB
Release files / polygraph_gov-0.0.0.tar.gz
| Download URL | polygraph_gov-0.0.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e6551203a5f439f629ac273ef75ed31d8b26468fd1f644e2c3641a2b7c78ab9
|
|
BLAKE2b-256 checksum How to use checksums |
f80221b7b8966c98d08df227805a7523f494d49d99baf2bc5948d06e0e0ed887
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.20
|
Release files / polygraph_gov-0.0.0-py3-none-any.whl
| Download URL | polygraph_gov-0.0.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62925332366a4d0b202c8b612970c8aaaa2a002cde19935a2e0620e9efea6949
|
|
BLAKE2b-256 checksum How to use checksums |
002fc344abf867dcdb9dc214f8b93f771eba2e1b2d399db7dbd474c83c57c5f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.20
|
Security for polygraph-gov 0.0.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.