---
title: "QWED vs Microsoft Agent Governance Toolkit"
description: "How Microsoft’s Agent Governance Toolkit 5.0 and QWED decide, what each does when a check fails, where both decide deterministically, and how they fit together."
url: https://qwedai.tech/compare/agent-governance-toolkit
---

[Compare](https://qwedai.tech/compare) · Agent Governance Toolkit

# QWED vs Microsoft Agent Governance Toolkit

Microsoft’s Agent Governance Toolkit (AGT) runs a policy at each step of an agent, from start to shutdown, and decides whether an action is allowed. QWED works out again whether the claims in AI output hold.

Checked on 28 November 2026 against Agent Governance Toolkit v5.0.0

At a glance

What decides

Agent Governance ToolkitPolicies: Rego, Cedar or YAML rules

QWEDSolvers and parsers

If the check fails

Agent Governance ToolkitSpec: errors deny; no match takes the policy’s default

QWEDDenied

Made for

Agent Governance ToolkitWhich actions an agent may take, and which agent took them

QWEDFigures, logic, SQL, code

The short answer

AGT decides with policies, written in Rego for Open Policy Agent, in Cedar, or as YAML rules, over the agent’s input, model calls, tool calls and output. Its specification makes the runtime deterministic and fail-closed: any error is a deny. A call no rule matches takes the policy’s default, which is allow in the quick start. QWED decides with solvers and parsers, and denies a claim it cannot prove. AGT fits deciding which actions an agent may take and keeping a record of them; QWED fits checking whether the content of an action, a figure, a query or a piece of code, is right.

Alternative

**Is QWED an alternative to Agent Governance Toolkit?** Not as a replacement, because they answer different questions. AGT decides by policy which actions an agent may take, and keeps a record of them; QWED works out whether the content of an action, a figure, a query or a piece of code, is right, and denies what it cannot prove. Both are open source, AGT under MIT and QWED under Apache-2.0, and the two can run together: AGT on whether an action is allowed, QWED on whether its content holds.

## Send a request through both

There is no packaged integration between them; each runs on its own. On one request path they catch different things.

1.  **Request** from a user
2.  **AGT** input policy
3.  **Agent** calls a tool
4.  **AGT** pre\_tool\_call policy
5.  **QWED** works the claim out again
6.  **Action** the refund is paid

A destructive call. Request: drop\_table("orders") · the user asked to tidy old orders. Denied by AGT A rule in the pre\_tool\_call policy matches the tool and denies the call. QWED has no part here: a rule on the tool’s name decides it.

A refund with a wrong total. Request: refund(amount=1240) · 3 items at 412. Proven false `VERIFIED · DENY` AGT allows it: refunds up to 5,000 are within the policy. QWED proves 3 × 412 = 1,236, not 1,240, and denies the refund.

A correct refund. Request: refund(amount=1236) · 3 items at 412. Proven to hold `VERIFIED · ADMIT` Both let it through. QWED proves 3 × 412 = 1,236, and the refund goes ahead.

Drawn with an AGT policy that denies destructive tools and allows refunds up to 5,000. A Rego policy could recompute this total if it were given the item count and price and written to do so, one rule per calculation. The host acts on each verdict, so your application acts on both decisions.

## Where they overlap: deterministic decisions and records

Both decide in code rather than with a model, and both produce evidence of a decision that someone else can check. Where it is kept is up to you.

-   Agent Governance Toolkit

    ### A policy at each step

    At eight points, from agent start to shutdown, a Rego, Cedar or YAML policy returns allow, warn, transform, escalate or deny. The specification requires the same inputs to give the same verdict.

-   Agent Governance Toolkit

    ### Command and code checks

    The hypervisor’s command denylist refuses denied commands, and the sandbox refuses code that spawns processes, such as subprocess and os.system, before it runs.

-   Agent Governance Toolkit

    ### Decision records

    Each successful evaluation returns SHA-256 identities of the policy input and of what was enforced. Keeping them is up to the host; AGT’s audit layer describes its log as tamper-evident.

-   QWED

    ### Where QWED differs

    QWED’s engines check the content inside an action that is allowed: the figure, the query or the code. Its policy guards cover unsafe commands, leaked secrets and untrusted tool calls. In the library, each engine can produce a full Verification Context record, and a verdict can carry a signed attestation.

## Where Agent Governance Toolkit goes _further_

A fair comparison says where the other tool covers more. A system may need it for these.

-   ### Agent identity

    Each agent gets a cryptographic identity, a DID with an Ed25519 key, SPIFFE and mTLS, with trust scores and delegation chains.

-   ### Eight intervention points

    Agent start, input, before and after each model call, before and after each tool call, output and shutdown.

-   ### Escalate and transform

    Besides allow and deny, a policy can warn, send an action to a person for approval, or rewrite the value it governs.

-   ### Information-flow labels

    A lattice from public to secret; a no-write-down policy denies data flowing to a sink cleared below its sources.

-   ### Rings and a kill switch

    Agent Runtime runs agents in four privilege rings; Agent SRE adds a kill switch, SLOs and chaos tests.

-   ### MCP security gateway

    Scans MCP tools for poisoning, drift, typosquatting and hidden instructions.

-   ### Framework adapters

    Microsoft Agent Framework, Semantic Kernel, AutoGen, LangChain, CrewAI, the OpenAI Agents SDK, Claude Code, Google ADK and more.

-   ### Five languages

    Packages for Python, TypeScript, .NET, Rust and Go, plus Docker and sidecar deployment.

## Where QWED goes further

What QWED does not verify has its own page. [Limits](https://qwedai.tech/limits)

-   ### It works the answer out again

    Arithmetic and algebra with SymPy, logic with Z3, SQL with SQLGlot and code with AST rules. The engine computes the result itself rather than judging the text.

-   ### It checks the content, not only the action

    AGT’s policies are rules you write over names, arguments, labels and limits; one can recompute a total if you write that arithmetic into it. QWED’s engines work out arithmetic, logic, SQL and code without a rule for each calculation.

-   ### Unprovable means denied

    A claim no engine can prove comes back UNVERIFIABLE · DENY. In AGT, a call no rule matches takes the policy’s default, which is allow in the quick start.

## Every detail

Six questions side by side, and every source, for anyone who wants to check.

Six questions, side by side From each project’s own documentation and code

| Question | Agent Governance Toolkit | QWED |
| --- | --- | --- |
| What it checks | Agent actions at eight points, from startup to shutdown: input, model calls, tool calls and their results, and final output. | Claims in AI output that its engines can put into formal terms: arithmetic, logic, SQL, code and JSON schemas. Policy guards flag unsafe commands, leaked secrets and untrusted tool calls. |
| What decides | A policy engine: Open Policy Agent Rego, Cedar, or one the host supplies. Optional annotators, including an LLM, add labels that the policy reads. | Deterministic engines: SymPy, Z3, SQLGlot, AST rules and JSON Schema. On the natural-language paths a model translates the text into a formal statement; that step is not verified, and no model decides the verdict. |
| When a check fails | Stopped by defaultThe specification says any error during evaluation yields a deny, and an annotator timeout fails closed. When no rule matches, the policy’s own default decides; the quick-start example allows. Two cases in the v5.0.0 code let a call through, and are fixed on main but not yet released: a deny rule using ne or not\_in when the checked field is missing, and a Python run\_tool that ran the tool when post\_tool\_call was not bound. | Stopped by defaultAn error comes back BLOCKED · DENY. A claim that no engine can prove comes back UNVERIFIABLE · DENY. Only a proven claim is admitted. |
| Who acts on the decision | The host, through AGT’s SDKs, adapters or govern() wrapper. The specification calls a host that ignores a deny non-conformant. The engine runs in the agent’s process. | Your integration, or a QWED product such as QWED Security, acts on the decision. QWED does not stop anything by itself. |
| Licence and hosting | MIT. Self-hosted packages for Python, TypeScript, .NET, Rust and Go, plus Docker and sidecar deployment. | Apache-2.0. Self-hosted: Python library, CLI, API server or Docker image. |
| Status | v5.0.0, tagged 27 July 2026 and labelled Public Preview, with no GitHub release; the agent-governance-toolkit package on PyPI is 4.1.0. Main has since dropped the Public Preview label. Its charter sets out a move to a foundation, if one accepts it. | Single maintainer. Versions and status on the ecosystem page. |

A default is not enforcement. For both, the application or a gateway has to act on the result. [What fail-closed means for AI checks](https://qwedai.tech/guides/fail-closed)

19 sources Code and docs at a pinned release or commit, checked on 28 November 2026

-   [Agent Control Specification: the runtime fails closed](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/policy-engine/spec/SPECIFICATION.md#L15-L23)
-   [Agent Control Specification: security considerations](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/policy-engine/spec/SPECIFICATION.md#L428-L431)
-   [README at v5.0.0](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/README.md)
-   [Unreleased fix on main: run\_tool without post\_tool\_call](https://github.com/microsoft/agent-governance-toolkit/blob/3233be2338816257700a8dbdf531a21b9f359582/CHANGELOG.md#L16)
-   [Unreleased fix on main: ne/not\_in deny rules](https://github.com/microsoft/agent-governance-toolkit/blob/3233be2338816257700a8dbdf531a21b9f359582/CHANGELOG.md#L23)
-   [Charter: foundation transition](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/CHARTER.md#L80-L86)
-   [Intervention points](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/policy-engine/spec/SPECIFICATION.md#L113-L128)
-   [Annotators](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/policy-engine/spec/SPECIFICATION.md#L190-L203)
-   [Information flow control](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/policy-engine/spec/SPECIFICATION.md#L204-L219)
-   [Verdicts and action identities](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/policy-engine/spec/SPECIFICATION.md#L283-L303)
-   [Quick start: default\_action allow](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/README.md#L59-L114)
-   [How it works and packages](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/README.md#L223-L264)
-   [Framework support](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/README.md#L310-L332)
-   [Agent Mesh: identity and trust](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/agent-governance-python/agent-mesh/README.md)
-   [MCP Security Gateway specification](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/docs/specs/MCP-SECURITY-GATEWAY-1.0.md)
-   [Hypervisor command denylist](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/agent-governance-python/agent-hypervisor/src/hypervisor/rings/enforcer.py#L236)
-   [Sandbox code scan](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/agent-governance-python/agent-sandbox/src/agent_sandbox/code_scanner.py)
-   [Agent Runtime](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/agent-governance-python/agent-runtime/README.md)
-   [Agent SRE](https://github.com/microsoft/agent-governance-toolkit/blob/v5.0.0/agent-governance-python/agent-sre/README.md)

-   There are no accuracy, speed or popularity figures here, for either tool. Those depend on the workload; measure them on yours.
-   Projects change. If something here is out of date or wrong, [tell us](https://qwedai.tech/contact) and it will be corrected.
-   [5 more tools, set beside QWED](https://qwedai.tech/compare) on the comparison page.
