Skip to main content

Trace-level governance analysis for agentic AI systems, mapped to EU AI Act and NIST AI RMF.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polygraph_gov-0.0.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polygraph_gov-0.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file polygraph_gov-0.0.0.tar.gz.

File metadata

  • Download URL: polygraph_gov-0.0.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.20

File hashes

Hashes for polygraph_gov-0.0.0.tar.gz
Algorithm Hash digest
SHA256 5e6551203a5f439f629ac273ef75ed31d8b26468fd1f644e2c3641a2b7c78ab9
MD5 fafb88e6a62812441715f7fb17f0a4db
BLAKE2b-256 f80221b7b8966c98d08df227805a7523f494d49d99baf2bc5948d06e0e0ed887

See more details on using hashes here.

File details

Details for the file polygraph_gov-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for polygraph_gov-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62925332366a4d0b202c8b612970c8aaaa2a002cde19935a2e0620e9efea6949
MD5 8e1cc06377268337326f93d4a400c999
BLAKE2b-256 002fc344abf867dcdb9dc214f8b93f771eba2e1b2d399db7dbd474c83c57c5f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page