QWED

Type to search pages, engines and advisories.

    Looking for API details?Search the docs

    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 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. Requestfrom a user
    2. AGTinput policy
    3. Agentcalls a tool
    4. AGTpre_tool_call policy
    5. QWEDworks the claim out again
    6. Actionthe refund is paid

    A destructive call. Request: drop_table("orders") · the user asked to tidy old orders. Denied by AGTA 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 falseVERIFIED · DENYAGT 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 holdVERIFIED · ADMITBoth 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

    • 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 sideFrom each project’s own documentation and code
    QuestionAgent Governance ToolkitQWED
    What it checksAgent 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 decidesA 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 failsStopped 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 decisionThe 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 hostingMIT. 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.
    Statusv5.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

    19 sourcesCode and docs at a pinned release or commit, checked on 28 November 2026
    • 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 and it will be corrected.
    • 5 more tools, set beside QWED on the comparison page.