Skip to main content

The Governance-First Framework for Agentic AI

Project description

govAgent: Enterprise-Grade AI Governance Framework

The Governance-First Framework for Production-Grade Autonomous Systems.

GovAgent provides a high-abstraction Control Plane for agentic AI. With a clear chain of accountability, this lightweight framework helps move autonomous systems from experimental sandboxes into governed, production environments.

ImagegoV

The v0.5.1 "Federated Judiciary" update introduces M-of-N Multi-Signature Approval and Vector-Based Semantic Guardrails, allowing for the deployment of ultra-high-risk agent swarms with absolute institutional consensus and self-healing forensic audit trails.


⚡ 60-Second Quickstart: Institutional Sovereignty

Achieve Article 12 and 14 compliance in three commands. This setup orchestrates a containerized environment with native support for AWS CloudWatch, Pydantic V2 validation, and Recursive TCO tracking.

  1. Initialize the Control Plane Ensure your .env file contains your OPENAI_API_KEY and Slack credentials in the root directory.
# Clone the Sovereign Repository
git clone https://github.com/thekakodkar/govagent.git
cd govagent

# Launch the Governed Container Stack
docker-compose up -d
  1. Verify the Governance Loop Execute the Institutional Demo to witness real-time PII redaction and fiscal gating.
docker-compose exec govagent-demo python examples/demo.py

🏗️ Core Pillars: The v0.5.1 Sovereign Architecture

GovAgent utilizes a modular package structure to ensure a clean "Separation of Duties":

  1. govagent.context (The State): Manages thread-safe session isolation and Recursive TCO tracking across swarms.
  2. govagent.registry (The Law): A centralized ledger where all tools must be legislated before execution.
  3. govagent.telemetry (The Evidence): Forensic-grade audit trails dispatched to multi-cloud SOC sinks (AWS/Azure).
  4. govagent.guards (The Enforcement): Real-time Stage 0 (Privacy) and Stage 1 (Fiscal) circuit breakers.

⚖️ Comparative Analysis: Governance Superiority

In an institutional setting, "State Management" is insufficient; you need Sovereignty. GovAgent v0.5.1 is engineered to meet the strict requirements for audit and compliance, transforming "Black Box" reasoning into a transparent, governed lifecycle.

Feature GovAgent LangGraph CrewAI
Architectural Scope Modular Control Pane ⚠️ Local State Graph ❌ Role Play Swarm
State Management Isolated Fiscal Ledger ⚠️ Shared Thread State ❌ Global context
Tool Legislation Global Registry Singleton ⚠️ Function Decorators ❌ String-based Tools
Forensic Audit Inherited Trace IDs ❌ Per-run only ❌ Console Prints
Regulatory Status EU AI Act Article 9,12,14 Ready ❌ Experimental ❌ Experimental

Strategic Directive: While LangGraph and CrewAI focus on graph-based execution and task delegation, GovAgent v0.5.1 operates as the Sovereign Infrastructure that ensures every action across a multi-agent swarm is legislated by a central registry, evaluated by isolated fiscal guards, and forensically recorded for institutional audit.


⚖️ Regulatory Compliance: EU AI Act (Regulation 2024/1689)

GovAgent satisfies key mandates for High-Risk AI Systems:

  • Article 9: Risk Management & Privacy: Automated Stage 0 PII redaction and proactive semantic intent interception.
  • Article 12: Record-Keeping & Traceability: Immutable Forensic Telemetry with local failover (DLQ) for 100% audit continuity.
  • Article 14: Human Oversight: Physical gating of high-risk actions through Federated M-of-N Consensus.

🛠️ Key Capabilities (v0.5.1)

  • ⚖️Federated M-of-N Quorum: Require $M$ approvals from a board of $N$ reviewers before high-risk execution.
  • 🧠 Semantic Alignment Judge: Vector-based Similarity Checks to ensure agent reasoning adheres to qualitative "Mission Statements".
  • 💸 Recursive Fiscal Ceilings: Aggregate TCO tracking across parent and sub-agents to prevent budget fragmentation.
  • 📡 Self-Healing Telemetry: Automated local buffering (DLQ) if Cloud SOC sinks (AWS/Azure) are unreachable.

📖 Advanced Usage: High-Abstraction Governance

In an enterprise environment, GovAgent acts as your digital "Control Plane" for high-stakes workflows like healthcare claim processing.

1. Define a Legislated Tool (Pillars 2 & 3)

from govagent import tool

@tool(name="execute_financial_transaction", guards=["fiscal", "judiciary"], risk_level="high")
async def process_payment(amount: float, reference_id: str):
    """
    Executes a financial disbursement. 
    Injected guards handle Recursive TCO and M-of-N Judiciary gating automatically.
    """
    return f"SUCCESS: Paid ${amount} for Ref: {reference_id}"

2. The Institutional session (v0.5.1 standard)

import asyncio
from govagent import ExecutiveAgent

async def run_governed_swarm():
    # 1. Bootstrap: Loads Policy & Federated Judiciary Adapters
    agent = ExecutiveAgent.bootstrap(
        policy_path="policies/finance_policy.yaml",
        llm=ChatOpenAI(model="gpt-4o"),
        slack_channel="C082PBLPN9X" # Federated Slack Courtroom
    )

    # 2. Execution (Stage 0 Privacy, Stage 1 Semantic Alignment, Stage 2 Fiscal)
    task = "Process a reimbursement for Marko P at 123 Main St ($1200.00)."
    report = await agent.execute(task)
    
    # 3. Institutional Audit Report (Article 12)
    print(f"🏁 Swarm Status: {report.status.upper()}")
    print(f"💰 Recursive Swarm TCO: ${report.recursive_tco_usd:.4f}")

📊 Forensic Telemetry: Article 12 Readiness

Every session generates an immutable snapshot dispatched to your enrolled cloud SOC or stored locally in /logs/audit_trail.jsonl.

{
  "timestamp": "2026-05-07T15:30:00Z",
  "trace_id": "exec-882-9934",
  "parent_trace_id": "director-main-771", 
  "persona": "Healthcare Finance Director",
  "task": "Process claim #882 for $1200.00",
  "status": "SUCCESS: TRANSACTION FINALIZED",
  "guards_evaluated": ["privacy", "fiscal", "policy", "judiciary"],
  "metrics": {
    "tokens": 850,
    "individual_cost_usd": 0.012,
    "recursive_tco_usd": 0.045,
    "pii_entities_redacted": 2
  },
  "judiciary_audit": {
    "approver": "U12345 (Slack)",
    "decision": "APPROVED",
    "timestamp": "2026-05-07T15:28:45Z"
  }
}

🗺️ Strategic Roadmap

✅ v0.5.0: The Federated Judiciary (Current)

  • M-of-N Consensus: Multi-party board approvals.
  • Semantic Alignment: Vector-based qualitative guardrails.
  • Self-Healing Telemetry: Local DLQ for forensic resilience.

🚀 v0.6.0: The Self-Healing Swarm (Next)

  • Automated Policy Tuning: AI-assisted guardrail calibration.
  • Cross-Org Telemetry: Federated audit trails across different corporate entities.---

⚙️ Installation

GovAgent is designed to be lightweight and modular. You can install the core framework or include specific integrations as needed.

1. Core Installation (Lightweight)

Recommended for users building custom agents or those who only require the Judiciary and Policy layers.

pip install govagent

2. Full Integration (With LangChain & PII Protection)

Includes all dependencies required to run governed LangChain sessions, including the langchain_tool wrappers and OpenAI clients.

pip install "govagent[full]"

3. Development Installation

If you are contributing to the framework or running the examples in this repository, install in editable mode:

git clone [https://github.com/thekakodkar/govagent.git](https://github.com/thekakodkar/govagent.git)
cd govagent
pip install -e ".[langchain]"

🚀 Quick Setup

Ensure your .env file is configured with the necessary tokens for the Judiciary Layer to function:

Code snippet

Slack Credentials (Socket Mode)

SLACK_BOT_TOKEN=xoxb-your-token SLACK_APP_TOKEN=xapp-your-token SLACK_CHANNEL_ID=C12345678

Model Provider

OPENAI_API_KEY=sk-your-key


"Governance is not a constraint; it is the catalyst for enterprise AI adoption."

Author Stamp

  • **Framework: GovAgent v0.5.1 (Federated)
  • **Compliance: Designed for Article 9, 12, and 14 Accountability
  • Status: Active / Open-Source Standard

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

govagent-0.5.1.tar.gz (54.0 kB view details)

Uploaded Source

Built Distribution

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

govagent-0.5.1-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file govagent-0.5.1.tar.gz.

File metadata

  • Download URL: govagent-0.5.1.tar.gz
  • Upload date:
  • Size: 54.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for govagent-0.5.1.tar.gz
Algorithm Hash digest
SHA256 ae7678741a6274fb829621abef389aaefcd074cf651141858d8c124f1b7d7d96
MD5 d3de9296459fa15f437f1626ad5c0e6f
BLAKE2b-256 4c503486928b2923bae49cc226f11d5bd95961fcebeebad22d152dd63c6ebe41

See more details on using hashes here.

File details

Details for the file govagent-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: govagent-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for govagent-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4ad0609885b01deb312458d2ac4d2ead0e61151e7595276cb1f39f2222d7b3e
MD5 11f0fb4b27854708421837f1f99c7df0
BLAKE2b-256 5f85437fc68776136b2d17c709e6df38dea6144241c2b17874097775a39f8279

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