dingdawg-governance
Universal governance layer for AI agents — MCP-native, fail-closed, LNN interpretability. Governed receipts, IPFS audit proofs, and rollback for any agent in any framework.
README
DingDawg Governance SDK — Universal governance layer for AI agents
Any agent. Any framework. Governed by default.
What it does
Every AI agent action — writing files, calling APIs, sending emails, modifying data — executes without a receipt. You don't know what ran, what was blocked, or why.
DingDawg Governance adds a pre-execution gate that:
- Blocks policy violations before they execute — fail-closed, not fail-open
- Generates LNN causal traces — interpretable reasoning chain for every decision
- Issues IPFS audit proofs — tamper-evident receipts pinned to distributed storage
- Supports rollback — every governed action carries enough context to reverse it
- Assigns @handle identities — agents get a governed identity (
@billing-agent,@hr-screener) with a full action history tied to that handle
Regulated niches
Built for frameworks where AI agent decisions carry legal weight:
| Industry | Regulation |
|---|---|
| Healthcare | HIPAA — PHI access, treatment decision logging |
| Insurance / Fintech | State regulations, adverse action documentation |
| Employment | CO SB 205, EEOC — automated hiring decision audit |
| Legal | Chain-of-custody, privileged data access controls |
| Edtech | FERPA — student data access receipts |
Install
npm install dingdawg-governance
pip install dingdawg-loop
Quick start — Claude Code (MCP config)
Add to ~/.claude/mcp.json or project-level .mcp.json:
{
"mcpServers": {
"dingdawg-governance": {
"command": "npx",
"args": ["dingdawg-governance"],
"env": {
"DINGDAWG_API_KEY": "your-api-key"
}
}
}
}
Without an API key, all tools work locally. Receipts stored at ~/.dingdawg/governance/receipts/.
Quick start — Python (scheduled governed agents)
from dingdawg_loop import schedule_governed
@schedule_governed(
agent_id="@data-sync-agent",
cron="0 * * * *",
risk_tier="medium"
)
def sync_records():
# Your agent logic here
pass
Two lines. Every execution is pre-checked, receipted, and fail-closed. If governance denies, the function does not run.
MCP tools (6)
| Tool | What it does |
|---|---|
govern_action |
Pre-execution gate — evaluates risk, issues receipt, blocks on violation |
audit_trail |
Retrieve receipts by agent handle, time range, or receipt ID |
compliance_check |
Score against EU AI Act, CO SB 205, NIST AI RMF, ISO 42001 |
rollback_action |
Reverse a governed action using its receipt context |
register_agent |
Assign a governed @handle identity to an agent |
ipfs_proof |
Retrieve or pin IPFS audit proof for a receipt |
Open-core model
| Layer | License | Where |
|---|---|---|
| SDK core (govern, audit, compliance) | Apache 2.0 | This repo |
| LNN causal trace engine | Cloud only | dingdawg.com/harness |
| IPFS proof pinning | Cloud only | dingdawg.com/harness |
| Team audit trail + cross-agent history | Cloud only | dingdawg.com |
| Compliance report PDFs (certified) | Paid tier | dingdawg.com/compliance |
The core gate runs fully offline. Cloud unlocks team visibility, IPFS pinning, and certified compliance reports.
Examples
Runnable examples in examples/:
| File | What it shows | Regulated use case |
|---|---|---|
01-basic-governance.js |
govern_action via MCP JSON-RPC subprocess |
Fintech — payment transfer gate |
02-python-scheduled-agent.py |
@schedule_governed decorator with cron |
Healthcare — HIPAA PHI sync |
03-crewai-integration.py |
CrewAI agents wrapped with governance | Employment — CO SB 205 hiring audit |
04-claude-code-mcp-config.json |
Drop-in .mcp.json config |
All regulated verticals |
Each example includes expected output as comments and the governance receipt structure.
Links
- dingdawg.com — platform, pricing, API keys
- dingdawg.com/docs/integrations — CrewAI, LangGraph, Cursor, Claude Code
- dingdawg.com/harness — LNN engine, IPFS proofs, advanced governance
- dingdawg.com/compliance — CO SB 205 gap report ($199)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.