Skip to main content

agent-gov

AI agent governance and compliance engine with policy enforcement

CI PyPI version Python versions License

Part of the AumOS open-source agent infrastructure portfolio.


Features

  • Declarative YAML policy schema (PolicyConfig) with versioned rules, per-rule severity, enable/disable flags, and arbitrary metadata for audit trails
  • PolicyEngine evaluates action contexts against ordered rule lists using AND/OR condition logic with operators including contains_pii, matches, greater_than, and in_list
  • Four built-in rule types — PII check, role check, cost limit, and keyword block — each implementing the PolicyRule ABC and registered via the plugin system
  • Compliance framework stubs for EU AI Act, GDPR, HIPAA, and SOC 2 that map rule violations to specific regulatory articles and controls
  • Append-only audit logger with structured JSON entries and a search API for querying the audit trail by agent ID, policy name, and time range
  • Compliance report generator producing JSON and Markdown summaries grouped by framework and severity
  • agentcore bridge that hooks PolicyEngine evaluation into the EventBus lifecycle so governance runs transparently alongside agent execution

Quick Start

Install from PyPI:

pip install agent-gov

Verify the installation:

agent-gov version

Basic usage:

import agent_gov

# See examples/01_quickstart.py for a working example

Documentation

Enterprise Upgrade

For production deployments requiring SLA-backed support and advanced integrations, contact the maintainers or see the commercial extensions documentation.

Contributing

Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.

License

Apache 2.0 — see LICENSE for full terms.


Part of AumOS — open-source agent infrastructure.

Metadata

Release files for agent-gov 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 agent-gov 0.2.0
File Size Uploaded Provenance
agent_gov-0.2.0.tar.gz 151.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-gov 0.2.0
File Interpreter ABI Platform
agent_gov-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 276.3 kB

Release files / agent_gov-0.2.0.tar.gz

Download URL agent_gov-0.2.0.tar.gz
Size 151.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ba8441735fe0ae3f9c6c690cbbba43a07683093afb1a59e9c55161cdb66311aa
BLAKE2b-256 checksum
How to use checksums
d3314b03c75b136763bf2d68cd0c98e4fc20ecae4423a76ee14259789fe42143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

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

Download URL agent_gov-0.2.0-py3-none-any.whl
Size 125.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4112e83aeb07d2ef503c8e8fb8c3175c14bbbdba1d780f650077e9bc2f58df44
BLAKE2b-256 checksum
How to use checksums
2a3f31bbbf0fe47e850a8cf32445bfb91b507722a9bc27a9f5b42a9664c1e725
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for agent-gov 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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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