When your auditor asks who authorized that database write, application logs don't answer. Diplomat writes a tamper-proof receipt the moment the action happens, before it reaches your tool.
76% of tool calls unguarded across 16 open-source agent repos 1,992 Python + 11,379 TS files benchmarked CERTFR-2026-ACT-016 Apache 2.0
These are not hypothetical scenarios. Both were publicly documented. Both share the same root cause: a tool call executed before anyone asked whether it was authorized.
Select your framework and what your agent does. Get the typical risk profile from our benchmark - zero upload, zero network call, everything is pre-calculated.
Risk profile report
For a LangChain (Python) agent doing agent that pays via stripe / processes payments, here's what we found in production code:
Typical patterns found:
Run `diplomat-agent scan` on your real code to see your own numbers.
Stripe governs Stripe. SLAs, audit logs, role-based access - all native to the platform.
Salesforce governs Salesforce. Einstein Trust Layer, action approvals, lineage. Same story.
Your team built an agent that calls all three. Who governs that one?
Diplomat sits in your agent's process. Zero network calls. Decision in < 1 ms. Receipt written to a hash chain you own.
Each verdict generates an immutable receipt - action, policy, outcome, timestamp. Hash-chained so modifying one breaks the entire trail. No LLM in the path. Decision in <1 ms. Receipt written to a hash chain you own.
Know what your agents can do before they do it. Govern what they're allowed to do at runtime. Prove what they did after the fact.
diplomat-agent and diplomat-gate are Apache 2.0 and self-sufficient. You can run them forever without us. diplomat.run is what you need the day your auditor, your procurement team, or your board asks for cross-tenant evidence — not the technology, the paperwork.
diplomat-agent runs locally. Apache 2.0. Zero dependencies. Reads your Python or TypeScript repo, maps every side-effecting tool call, tells you which ones have no guards. No data leaves your machine.
pip install diplomat-agent
diplomat-agent scan .diplomat-gate is an open-source Python library that runs inside your agent's process - zero network calls, sub-millisecond decisions. diplomat.run is the hosted control plane on top of it: cross-tenant audit, dashboard, compliance exports. You can run gate alone forever without diplomat.run if you want. The hosted plane is the value-add for teams that need cross-team visibility or EU AI Act Article 12 exports.diplomat-agent (scanner) runs locally - static AST analysis, no network. diplomat-gate (runtime) runs inside your agent process - no network. Only diplomat.run (hosted) receives data, and only what you explicitly push: receipts, metadata, never source code.Run the scanner on your repo, or talk to Josselin for 30 minutes.