Language Package Matrix

May 21, 2026 · View on GitHub

Last updated: April 2026

The Agent Governance Toolkit ships language packages in 5 languages. Python is the primary implementation; the other language packages now cover most core governance primitives needed to build governed agents in each ecosystem.

Quick Comparison

CapabilityPythonTypeScript.NETRustGo
Policy Engine
Identity & Auth
Trust Scoring
Audit Logging
MCP Security
Execution Rings
SRE / SLOs
Kill Switch
Lifecycle Management
Framework Integrations
Unified CLI
Governance Dashboard
Shadow AI Discovery
Prompt Defense Evaluator

Legend: ✅ Implemented · ◑ Partial · — Not yet available

Note: .NET remains partial for cross-language identity parity because it now supports stronger native asymmetric identity flows, while the other SDKs still center on Ed25519-based identity material.

For a package-scoped OWASP MCP view, see docs/compliance/mcp-owasp-top10-mapping.md.


Detailed Breakdown

Core Governance (all 5 language packages)

Every language package implements the four foundational governance primitives. These are sufficient to build governed agents in any language:

PrimitiveWhat It DoesPythonTS.NETRustGo
Policy evaluationEvaluate actions against rules before executionPolicyEvaluatorPolicyEnginePolicyEnginePolicyEnginePolicyEngine
Agent identityCryptographic credentialsAgentIdentityAgentIdentityAgentIdentity (.NET 8 compatibility signing, delegation, JWK/JWKS, DID docs)IdentityAgentIdentity
Trust scoring0–1000 score based on behaviorTrustEngineTrustEngineTrustStoreTrustEngineTrustManager
Audit loggingAppend-only action logAuditLoggerAuditLoggerAuditLoggerAuditLoggerAuditLogger

Python-Only Capabilities

These capabilities are only available in Python today. They represent the full governance stack for enterprise deployments:

CapabilityPackageDescription
Replay Debuggingagent-sreDeterministic replay of agent sessions
Governance Dashboarddemo/Real-time fleet visibility (Streamlit)
Unified CLI (agt)agent-complianceagt verify, agt doctor, agt lint-policy
OWASP Verificationagent-complianceASI 2026 compliance attestation
20+ Framework Adaptersagentmesh-integrationsLangChain, CrewAI, AutoGen, OpenAI Agents, Google ADK, etc.

TypeScript package

Package: @microsoft/agent-governance-sdk · Source: agent-governance-typescript/

ModuleFeatures
PolicyEngineRule evaluation, allow/deny decisions, effect-based policies
AgentIdentityEd25519 key generation, DID creation, credential signing/verification
TrustEngineTrust score tracking, tier classification, decay
AuditLoggerStructured audit events, JSON export
McpSecurityScannerTool poisoning, typosquatting, hidden instruction, rug pull detection
LifecycleManager8-state lifecycle with validated transitions and event logging
RingEnforcer / KillSwitchDeny-by-default execution rings, breach handling, and emergency termination hooks
PromptDefenseEvaluator / GovernanceVerifier / ShadowDiscoveryPrompt auditing, control attestation, runtime evidence verification, and local discovery scanning
GovernanceMetrics / SLOTracker / CircuitBreakerMetrics, error-budget tracking, and resilience primitives
GenericFrameworkAdapterGeneric governance adapter for framework integrations
AgentMeshClientHigh-level client combining all primitives

Roadmap: Framework-specific adapters beyond the generic integration surface.

.NET package

Package: Microsoft.AgentGovernance · Source: agent-governance-dotnet/

NamespaceFeatures
PolicyPolicyEngine with YAML/JSON policy loading, organization scope, richer decision metadata, and fail-closed OPA/Rego and Cedar backends
TrustAgentIdentity, IdentityRegistry, FileTrustStore, delegation helpers, JWK/JWKS, DID document export, and native asymmetric ECDSA P-256 support
AuditAuditLogger, AuditEmitter with structured events
HypervisorExecutionRings (4-tier), SagaOrchestrator, KillSwitch
LifecycleLifecycleManager with 8-state machine and validated transitions
SreSloEngine with objectives and error budget tracking
SecurityPrompt injection detection and PromptDefenseEvaluator
DiscoveryConfig scanning, process scanning, reconciliation, inventory, and risk scoring
IntegrationGovernanceMiddleware for ASP.NET / Agent Framework
RateLimitingToken bucket rate limiter
TelemetryOpenTelemetry integration
McpMcpSecurityScanner (poisoning, typosquatting, hidden instructions, rug pull, schema abuse, cross-server), McpResponseSanitizer, McpCredentialRedactor, McpGateway

Roadmap: Native asymmetric Ed25519 signing once the target runtime supports it broadly, plus full lifecycle persistence.

Rust crate

Crate: agentmesh + agentmesh-mcp · Source: agent-governance-rust/

ModuleFeatures
policyRule-based policy evaluation with allow/deny effects plus OPA/Rego and Cedar helper support
identityEd25519 key generation, DID creation, credential signing, delegation, and JWK/JWKS helpers
trustTrust scoring, tier classification, behavioral tracking, and trust-handshake helpers
auditAppend-only audit log with structured events
mcpMCP tool definition scanning, poisoning detection, and the standalone agentmesh-mcp security surface
rings4-tier execution privilege rings with configurable permissions, kill switch, circuit breaker, and SLO helpers
lifecycle8-state lifecycle manager with validated transitions
integration_supportFramework adapters, governance middleware, discovery, and prompt defense helpers

The standalone agentmesh-mcp crate provides MCP-specific security primitives (gateway, rate limiting, redaction, session management) without pulling in the full governance stack.

Roadmap: Additional async-runtime polish and deeper framework-specific integrations.

Go module

Module: github.com/microsoft/agent-governance-toolkit/agent-governance-golang · Source: agent-governance-golang/

Python parity areaGo status
Core governance primitives✅ Parity
MCP security✅ Parity
Execution rings✅ Parity
Kill switch✅ Parity
Lifecycle management✅ Parity
SRE / SLOs✅ Parity
Framework integrations✅ Parity
Shadow AI discovery✅ Parity
Prompt defense✅ Parity
OPA / Rego / Cedar policy backends✅ Parity
Unified CLI and governance dashboard— Python only today
FileFeatures
policy.goRule-based policy evaluation, wildcard/conditional matching, YAML loading, rate limiting, approval gates
identity.goEd25519 identity generation, DID creation, signing/verification, JSON export/import
trust.goTrust scoring, tier classification, peer verification, optional disk persistence
audit.goHash-chained audit logging, filtering, JSON export, retention cap
mcp.goMCP security scanning — tool poisoning, typosquatting, hidden chars/homoglyphs, rug pull
rings.go4-tier execution privilege rings with default-deny access control
kill_switch.goScoped execution kill switches (global, agent, capability) with registry and history
lifecycle.go8-state lifecycle manager with validated transitions and transition history
client.goHigh-level client combining identity, trust, policy, and audit
policy_backends.goOPA/Rego remote + CLI + built-in evaluation, Cedar CLI + built-in evaluation
slo.goSLO objectives, event recording, latency/availability evaluation, error budget tracking
middleware.goComposable governance middleware stack, net/http adapter, capability guards, prompt defense, audit, and optional SLO tracking
discovery.goStructured shadow discovery models plus text, process, config-path, current-host, and GitHub repository scanners
promptdefense.goPrompt injection, prompt exfiltration, credential exfiltration, and approval-bypass detection
metrics.goLightweight governance metrics recorder stubs

Roadmap: Additional transport adapters beyond net/http, plus deeper discovery heuristics and integrations.


Policy Backend Support

BackendPythonTS.NETRustGo
YAML rules
OPA / Rego
Cedar
Programmatic

Install

LanguageCommand
Pythonpip install agent-governance-toolkit[full]
TypeScriptnpm install @microsoft/agent-governance-sdk
.NETdotnet add package Microsoft.AgentGovernance
Rustcargo add agentmesh
Rust (MCP only)cargo add agentmesh-mcp
Gogo get github.com/microsoft/agent-governance-toolkit/agent-governance-golang

Contributing

Want to add a feature to a non-Python SDK? We welcome contributions! See CONTRIBUTING.md for guidelines. The Python implementation serves as the reference — match its behavior and test patterns.