The Research Report
Microsoft Releases ASSERT: Open-Source Framework for Testing AI Agent Policies
Source: Winbuzzer
Published: June 4, 2026
For End Users
If you use AI agents at work, those agents follow rules. A support agent should issue refunds below a threshold but escalate fraud. A research assistant should avoid restricted findings. A change-control agent should respect approval boundaries. Until now, testing whether agents actually follow those rules has been mostly manual and mostly incomplete.
Microsoft released ASSERT at Build 2026 to fix that gap. ASSERT is a free, open-source tool that turns your written policies into automated tests. You describe the behavior you want in plain language. ASSERT generates test cases, runs them against your agent, and tells you where the agent breaks the rules.
The key difference from a simple pass/fail test is the output. ASSERT gives you the full reasoning behind each failure. You see what the agent did, which policy it violated, and why the judge flagged it. That makes the results auditable rather than opaque.
This matters because agents change. You swap a model, update a prompt, or add a new tool. ASSERT can run as a regression test to catch whether those changes broke behavior that used to work. Think of it like a unit test suite, but for policy compliance instead of code correctness.
ASSERT works with agents built on LangChain, CrewAI, OpenAI, LangGraph, and others. You do not need to move your application into Microsoft Foundry. It runs locally and writes all results to files on your machine.
For Engineers and Researchers
ASSERT is a spec-driven evaluation harness with a four-stage pipeline: systematize, taxonomize, generate, and score. The repo is at github.com/responsibleai/ASSERT under the MIT license.
Stage 1: Systematization. ASSERT takes a natural-language behavior specification and grounds it in prior work, reconciling multiple definitions into an explicit concept specification. This follows the methodology from Agarwal et al. (2026). The output is a structured representation of patterns, definitions, edge cases, and operational distinctions.
Stage 2: Taxonomization. The concept spec converts into a draft taxonomy of permissible and impermissible behaviors. Policy experts can review and edit this before generation proceeds. This is the key design decision. Coverage is determined upstream. If the behavior is underspecified, the generated dataset will be too.
Stage 3: Test-set generation. ASSERT instantiates the taxonomy into stratified test cases across developer-declared dimensions: task type, persona, tool availability, request class, environment configuration. Both single-turn and multi-turn scenarios, including adversarial probes.
Stage 4: Inference and scoring. Cases run against the target through LiteLLM (100+ model endpoints) or OpenInference integrations. For agentic systems, ASSERT captures OpenTelemetry spans so the judge can cite tool calls, routing decisions, and intermediate actions. The scoring output includes not just a label but a rationale, a policy citation, and the specific turn or action that justified the verdict.
Architecture highlights:
- Local-first. All artifacts write as JSON/JSONL under
artifacts/results/. No telemetry sent to Microsoft by default. - Bundled local viewer for side-by-side run comparison, per-behavior dimension breakdowns, and judge justifications cited against traces.
- Framework-agnostic via OpenInference auto-instrumentation (33+ frameworks in two lines) or custom OTel SDK spans.
- Regression testing support. Re-run evals after model swaps, prompt changes, or tool additions to catch behavioral regressions.
Quick start:
pip install -e ".[otel,langgraph]"
cp .env.example .env # add your provider key
assert-ai run --config examples/travel_planner_langgraph/eval_config.yaml
Validation numbers from Microsoft's internal studies:
- 1.2x intended behavior space coverage versus comparable internal baseline
- 1.5x more cases worth inspecting
- 4x stronger separation between stronger and weaker systems
- Half as many saturated cases where every model behaved the same way
- LLM judge-human agreement: 80-90% across 10+ behavior concepts
- Human inter-annotator agreement: ~90%
These are first-party numbers. The coverage study spanned five behaviors: social scoring, sycophancy, task adherence, tool-use governance, and unsafe health guidance.
ASSERT follows Microsoft's earlier RAMPART and Clarity release as part of its open trust stack for AI agents.
The Skeptical Take
The 80-90% judge-human agreement sounds reasonable, but human annotators agreed with each other at 90%. That gap means the LLM judge is measurably worse than a human reviewer, and Microsoft has not published per-concept breakdowns. Some behaviors likely score much lower. The judge quality also depends on the underlying model. Different judge models vary in strictness, boundary sensitivity, and willingness to treat related behaviors as distinct. Microsoft acknowledges this caveat but does not solve it.
The coverage validation is entirely first-party. The 1.2x improvement over an internal baseline is hard to evaluate without knowing what the baseline was. The 4x separation metric is impressive on its face, but the study covered only five behaviors across three target models. That is a narrow foundation for general claims.
The competitive landscape is real. Langfuse already supports evaluation across live production traces with manual and automated evaluators. Arize Phoenix provides code-based and LLM-as-a-judge evaluators with OpenTelemetry inspection. Anthropic released Bloom in 2025 for generating behavioral evaluations of frontier models. ASSERT's differentiator is the spec-driven pipeline from natural language to structured taxonomy before generation. Whether that upstream systematization step produces enough practical value to displace existing workflows is an open question that adoption numbers will answer.
Word count: 741
Written at: 2026-06-04T01:19:00Z