The Research Report
Microsoft Just Shipped the Missing Half of Agent Infrastructure
Microsoft released two open-source tools this week that solve different halves of the same problem. ASSERT turns your written policies into executable tests. The Agent Governance Toolkit v4.0.0 enforces those policies at runtime. Together, they form a governance loop: evaluate, enforce, re-evaluate.
If you are running agents in production, or thinking about it, this stack matters. Here is what each tool does, how they connect, and why production agent governance is no longer optional.
The Problem: Policies Without Teeth
Every team that deploys AI agents writes policies. "The agent must not reveal PII." "The agent must not execute destructive SQL." "The agent must escalate fraud cases."
These policies sit in documents. They influence system prompts. They get discussed in design reviews. Then they rot.
Two gaps make this happen. First, policies are prose. Prose does not run. A policy document that says "the agent must not reveal PII" has zero enforcement weight unless it becomes a test that actually runs against the agent. Second, even if you write tests, the runtime does not enforce the policy. An agent that passes a PII test in staging can leak data in production if no control intercepts the call before it reaches the wire.
Microsoft's two releases attack both gaps. ASSERT closes the evaluation gap. The Agent Governance Toolkit closes the enforcement gap.
ASSERT: From Prose to Provable
ASSERT stands for Adaptive Spec-driven Scoring for Evaluation and Regression Testing. It is an open-source framework under the responsibleai GitHub org, released at Build 2026, and available under the MIT license.
What ASSERT actually does
ASSERT takes a natural language behavior specification as input. That specification can be a product requirement, a policy document, a system prompt, or a launch checklist. It describes what the agent should and should not do.
The pipeline runs five stages:
- Systematization. ASSERT turns a broad concept like "harmful financial advice" or "tool-use governance" into a structured concept specification. It grounds the concept in prior work, reconciles multiple definitions, and produces an explicit, reviewable artifact.
- Taxonomization. That specification becomes a draft taxonomy of permissible and impermissible behaviors. Policy experts review and edit the taxonomy before test generation begins.
- Test-set generation. ASSERT instantiates the taxonomy into stratified test cases. Single-turn prompts and multi-turn scenarios. Benign interactions and adversarial probes. The cases span the dimensions that matter for your application: task type, persona, tool availability, request class.
- Inference. Test cases run against the target. The target can be a hosted model, a callable wrapper, or an OTel-traced agent. ASSERT records full traces including tool calls, routing decisions, and intermediate state.
- Scoring. Each trace gets scored against the associated behavior policy. The output includes a verdict, a rationale, and a policy citation pointing to the specific taxonomy behavior or rule that triggered the verdict.
Why this is different from generic benchmarks
Most evaluation tools give you a generic helpfulness or toxicity score. Those are weak proxies for whether your specific agent follows your specific policies. A customer support agent should issue refunds below a threshold, escalate likely fraud, and decline out-of-policy requests. A generic "relevance" score does not tell you whether the agent actually did any of those things.
ASSERT generates tests from your requirements, not from a benchmark. This means the coverage maps to your actual risk surface. Microsoft's internal validation showed that ASSERT covered 1.2x more of the intended behavior space and surfaced 1.5x more inspectable failure cases compared to a direct-generation baseline. The generated tests also produced 4x stronger separation between stronger and weaker systems, with half as many saturated cases.
The trace-grounded judge
This is the part that matters for agents specifically. When an agent fails, the final text response rarely tells you why. The failure is in the tool call, the routing decision, or the intermediate state. ASSERT captures OpenTelemetry spans through OpenInference, which auto-instruments 33-plus frameworks in two lines of code. The judge cites the specific action responsible for the verdict, not just the final reply.
Framework-agnostic
ASSERT works with LangChain, CrewAI, OpenAI Agents SDK, LangGraph, DSPy, LlamaIndex, AutoGen, and any model endpoint through LiteLLM. You do not have to move your agent into Microsoft Foundry to use it. The artifacts are all local JSON and JSONL files. No telemetry ships to Microsoft by default.
The evidence limits
Microsoft reports 80 to 90 percent agreement between LLM judges and human annotators across more than 10 behavior concepts. Human inter-annotator agreement was around 90 percent. These are first-party measurements. The judge quality also depends on the underlying LLM: different models vary in strictness and boundary sensitivity. ASSERT makes the artifacts inspectable so you can audit the judge's calls directly. Treat the scores as a signal, not a certification.
Agent Governance Toolkit v4.0.0: Enforcement at the Wire
While ASSERT tells you whether your agent is violating policy, the Agent Governance Toolkit (AGT) stops the violation before it happens. AGT v4.0.0, at 3,960 GitHub stars, is a pip-installable runtime governance layer.
The core idea
AGT intercepts every tool call, message send, and delegation in deterministic application code before the model's intent reaches the wire. Actions the governance kernel denies are not "unlikely." They are structurally impossible.
This is a deliberate architectural choice. The AGT README quotes the OWASP LLM01:2025 finding directly: prompt-level safety ("please follow the rules") is not a control surface. It is a polite request to a stochastic system. Microsoft's own AI Red Teaming Agent measures Attack Success Rate, and their published research reports 100 percent attack success rates on GPT-4o, GPT-3.5, Claude 3, and Llama-3 using adaptive attacks. AGT does not try to win that fight inside the prompt. It moves the control point to where the agent actually touches infrastructure.
What v4.0.0 adds
The v4.0.0 release consolidates 45 Python packages into 5 clean distributions:
- agent-governance-toolkit-core: Policy engine, capability model, audit logging, MCP security gateway, identity, trust scoring
- agent-governance-toolkit-runtime: Privilege rings, saga orchestration, termination control
- agent-governance-toolkit-sre: SLOs, error budgets, chaos engineering, circuit breakers
- agent-governance-toolkit-cli:
agtCLI, OWASP verification, integrity checks, policy linting - agent-governance-toolkit[full]: Meta-package with all of the above
New capabilities include:
- TEE keystore abstraction: Async key management with hardware-backed trusted execution environments
- Entra-signed JWT verification: For mesh-relay WebSocket connections and agent verification
- Wire-protocol-aware policy evaluation: For SQL and Kubernetes across TypeScript, Rust, Go, and .NET
- Credential injection and offload: Across all four SDK languages
- Expanded credential redaction: In C#, Python, TypeScript, and Rust
- Sandbox subprocess code scanner: With OpenShell shell interception
- LangGraph v1.0 governance adapter: Including stale-auth fingerprinting
- AGT test replay engine: For policy regression testing
- CLI governance packages: For OpenCode, Antigravity CLI, and Claude Code
The release also includes 15-plus security fixes: authorization bypass closures in the stateless kernel and execute API, proof-of-possession enforcement on registry endpoints, trust boundary hardening, JWKS/revocation fixes, and sandbox hardening against stdlib escape paths.
The Agent Control Specification
ACS is the specification layer inside AGT. Think of it as the MCP or A2A of agent safety. MCP standardized how agents connect to tools. A2A standardized how agents communicate with each other. ACS standardizes how safety controls are expressed and enforced.
ACS defines eight policy interception points across the agent lifecycle: startup, inbound requests, model-call stages, tool-call stages, output, and shutdown. Each call passes a snapshot to evidence providers and returns a normalized verdict. Security teams maintain approval rules in one place. Product teams keep their preferred runtime. The policy travels with the agent, not locked to any infrastructure.
The specification is expressed as standard YAML:
apiVersion: governance.toolkit/v1
name: production-policy
default_action: allow
rules:
- name: block-destructive
condition: "action.type in ['drop', 'delete', 'truncate']"
action: deny
description: "Destructive operations require human approval"
- name: require-approval-for-send
condition: "action.type == 'send_email'"
action: require_approval
approvers: ["security-team"]
That is two lines to wrap any tool function:
from agentmesh.governance import govern
safe_tool = govern(my_tool, policy="policy.yaml")
Every call is checked, logged, and enforced. Denied calls raise GovernanceDenied. No exceptions, no soft landings.
OWASP Agentic Top 10 coverage
AGT maps to 10 of the 11 OWASP Agentic Security Initiative risks with full or partial coverage:
- ASI01 Agent Goal Hijack: Full. Governance middleware blocks adversarial patterns before they reach the LLM.
- ASI02 Tool Misuse and Exploitation: Full. Governed tools enforce allow/deny lists and per-tool rate limits.
- ASI03 Identity and Privilege Abuse: Full. PII redaction and RBAC in policy YAML.
- ASI04 Agentic Supply Chain: Partial. Tool pinning via policy YAML, but no SBOM generation or dependency vulnerability scanning.
- ASI05 Unexpected Code Execution: Full. Static reviewer detects unsafe deserialization and eval/exec calls.
- ASI06 Memory and Context Poisoning: Partial. Audit hash-chain provides tamper detection, but no memory sandboxing.
- ASI07 Insecure Inter-Agent Communication: Full. DID-based trust gates with verification before agent handoffs.
- ASI08 Cascading Agent Failures: Full. Circuit breakers and rate limiting prevent cascade propagation.
- ASI09 Human-Agent Trust Exploitation: Partial. Audit trails exist, but no UI-level approval workflows built in.
- ASI10 Rogue Agents: Full. Behavior monitoring quarantines agents that exceed thresholds.
- ASI11 Agent Untraceability: Full. Tamper-evident hash-chain audit logs.
Eight full, three partial, zero gaps. The partial coverages acknowledge real limitations honestly. ASI04 needs dependency scanning tools like Dependabot. ASI06 needs a memory integrity module. ASI09 needs human-in-the-loop middleware for high-risk actions.
Multi-language, multi-framework
AGT ships SDKs for Python, TypeScript, .NET, and Rust, with a Go module in progress. The Python package installs with pip install agent-governance-toolkit[full]. The governance layer sits outside the agent loop. It does not replace your orchestration, manage your memory, or select your tools. It intercepts at the boundaries where the agent touches infrastructure.
How ASSERT and AGT Work Together
Microsoft designed these tools as a closed loop:
- Run ASSERT to identify where your agent fails policy requirements. Get structured artifacts: taxonomy, test set, inference traces, scores, metrics.
- Use AGT to place controls at the right checkpoints. Deny destructive operations. Require approval for email sends. Enforce identity verification.
- Re-run ASSERT to confirm improvement. Compare before-and-after metrics. The stratified test set keeps coverage consistent across runs.
This is not a vague integration. ASSERT produces the evaluation artifacts. AGT produces the enforcement artifacts. They share the same policy vocabulary. The YAML policy that AGT enforces at runtime is the same specification that ASSERT uses to generate test cases. One policy, two enforcement points.
The loop is continuous. Product requirements change. Policies evolve. Models update. The regression testing capability in ASSERT lets you re-run the same stratified test set against the updated agent and compare scores. The AGT test replay engine lets you replay policy decisions against new policy versions to check for regressions in the control plane.
Why Production Agent Governance Matters Now
Agents are not chatbots
A chatbot generates text. An agent takes action. It calls tools, queries databases, sends emails, delegates to other agents. When a chatbot hallucinates, you get a wrong answer. When an agent hallucinates, you get a wrong transaction executed against real infrastructure.
The OWASP Agentic Top 10 exists because the attack surface of autonomous agents is fundamentally different from the attack surface of chatbots. Goal hijacking, tool misuse, privilege escalation, cascading failures, and rogue agents are not theoretical risks. They are the predictable consequences of giving a stochastic system autonomous access to tools and infrastructure.
Prompt-level safety is not enough
The research is clear. Andriushchenko et al. (ICLR 2025) achieved 100 percent attack success rates on GPT-4o, GPT-3.5, Claude 3, and Llama-3 using adaptive attacks. Microsoft's own Lessons from Red Teaming 100 Generative AI Products states that mitigations do not eliminate risk entirely and that red teaming must be continuous because model-layer defenses are probabilistic by construction.
If your only defense is a system prompt that says "do not do X," you are relying on a stochastic system to behave. That is a request, not a control. AGT enforces at the application layer, where the action reaches the wire. Denied actions are structurally impossible, not merely improbable.
Compliance is becoming a requirement
OWASP published the Agentic Top 10 in 2026. The EU AI Act is in force. NIST AI RMF alignment is standard practice in enterprise procurement. SOC 2 auditors ask about agent controls. AGT ships compliance mappings for all of these frameworks. The agt verify --evidence command produces OWASP compliance evidence that you can hand to an auditor.
This is not a nice-to-have category anymore. If you are deploying agents that touch customer data, financial systems, or infrastructure, governance tooling is a procurement requirement, not a technical aspiration.
The market is converging on this problem
ASSERT enters a space that includes Langfuse, Arize Phoenix, and Anthropic's Bloom. AGT enters a space that includes NVIDIA NeMo Guardrails, Guardrails AI, Lakera Guard, and Galileo. The difference is scope. ASSERT and AGT together cover the full lifecycle: evaluate, enforce, and re-evaluate. Most alternatives cover one piece.
ACS specifically is positioned as an open standard, not a Microsoft product. The specification is at agentcontrolstandard.ai. Partners endorsing or integrating ACS include KPMG, Zscaler, Arize AI, CrewAI, IBM, and HoneyHive. If ACS gains traction the way MCP did for tool connectivity, it becomes the de facto standard for agent safety controls.
Getting Started
ASSERT
pip install -e ".[otel,langgraph]"
cp .env.example .env # add your provider key
assert-ai run --config examples/travel_planner_langgraph/eval_config.yaml
The travel planner example demonstrates multi-agent evaluation with tool use, budget constraints, stereotyping, and prompt injection from tool outputs.
Repository: https://github.com/responsibleai/ASSERT
Agent Governance Toolkit
pip install agent-governance-toolkit[full]
agt doctor # check installation
agt verify # OWASP compliance check
agt verify --evidence ./agt-evidence.json --strict # fail CI on weak evidence
agt lint-policy policies/ # validate policy files
agt red-team scan ./prompts/ --min-grade B # prompt injection audit
Wrap a tool function in two lines:
from agentmesh.governance import govern
safe_tool = govern(my_tool, policy="policy.yaml")
Repository: https://github.com/microsoft/agent-governance-toolkit
What to Watch
Both tools are in public preview. AGT v4.0.0 is described as "production-quality, Microsoft-signed releases" but with possible breaking changes before GA. ASSERT is a new release under the responsibleai org with 67 stars as of this writing.
The evidence limits matter. ASSERT's judge-human agreement numbers are first-party. AGT's OWASP mapping is self-assessed, not third-party audited. The partial coverages in ASI04, ASI06, and ASI09 are honest acknowledgments, not spin, but they are real gaps that teams need to fill with other tooling.
The adoption test is whether these tools block releases and flag deployed agents before users see policy failures. If ASSERT checks run in CI and AGT enforcement runs in production, you have a governance loop. If they sit in a README and nobody runs them, you have documentation.
The trajectory is clear. Agent governance is moving from "nice to have" to "necessary for production." Microsoft just made it installable in one pip command.
Citations
- Microsoft ASSERT repository: https://github.com/responsibleai/ASSERT
- Microsoft Command Line blog post on ASSERT: https://commandline.microsoft.com/assert-written-intent-executable-evals/
- Microsoft Foundry blog (Build 2026): https://devblogs.microsoft.com/foundry/build-2026-open-trust-stack-ai-agents/
- Winbuzzer coverage of ASSERT: https://winbuzzer.com/2026/06/03/microsoft-assert-turns-ai-agent-policies-into-tests-xcxwbn/
- Agent Governance Toolkit repository: https://github.com/microsoft/agent-governance-toolkit
- AGT v4.0.0 release notes: https://github.com/microsoft/agent-governance-toolkit/releases/tag/v4.0.0
- Winbuzzer coverage of ACS: https://winbuzzer.com/2026/06/04/microsoft-acs-adds-runtime-governance-for-ai-agents-xcxwbn/
- OWASP ASI 2026 compliance mapping: https://microsoft.github.io/agent-governance-toolkit/compliance/owasp-agentic-top10-architecture/
- Agent Control Specification website: https://agentcontrolstandard.ai/
- Andriushchenko et al. (ICLR 2025) jailbreak research: https://arxiv.org/abs/2404.02151
- OWASP LLM Top 10 (prompt injection): https://genai.owasp.org/llmrisk/llm01-prompt-injection/
- Microsoft AI Red Teaming Agent: https://learn.microsoft.com/azure/ai-foundry/concepts/ai-red-teaming-agent
- Microsoft "Lessons from Red Teaming 100 Generative AI Products": https://www.microsoft.com/en-us/security/blog/2025/01/13/3-takeaways-from-red-teaming-100-generative-ai-products/
Suggested Title
Microsoft ASSERT + Agent Governance Toolkit: The Production Agent Governance Stack
Word Count
2,950
Fact-Check Notes
- ASSERT star count (67) is from the GitHub repo at time of writing. Will change.
- AGT star count (3,960) is from the GitHub repo at time of writing. Will change.
- The "10/10 OWASP Agentic Top 10" claim in the task refers to the OWASP ASI taxonomy which has 11 risks (ASI01-ASI11). AGT covers 8/11 fully and 3/11 partially. The README headline says "10/10" which may refer to an earlier OWASP LLM Top 10 mapping or a different counting convention. The article reflects the detailed ASI01-ASI11 mapping from the official docs.
- ASSERT's 80-90% judge-human agreement and 1.2x/1.5x/4x coverage figures are first-party Microsoft measurements. The article notes this limitation.
- AGT v4.0.0 "public preview" status with possible breaking changes before GA is noted in the release.
- The Andriushchenko et al. paper reports 100% ASR on specific models with specific attack methods (logprob access, suffix optimization). The article accurately represents this as "using adaptive attacks" rather than claiming all jailbreaks succeed on all models.
- ACS partner endorsements (KPMG, Zscaler, Arize AI, CrewAI, IBM, HoneyHive) are from the Microsoft Foundry blog post. These are announced partnerships, not necessarily shipping integrations.