AgtVerify CI Gate sorted 9 of 9 evidence cases, and agt's --strict flag does nothing
We wrapped agt verify --evidence in a merge check and ran it keyless on 9 cases. Every verdict matched, and --strict turned out to be a no-op in agt 4.1.0.
By David Discua
Measured in the lab
- 9/9
- cases matching expected verdict
- 10/10
- OWASP ASI controls checked
- 6
- evidence checks per manifest
- 36.8 s
- report wall time
- 9 of 9 cases matched the expected verdict
- agt verify without --evidence exits 0, and the gate marks it weak
- An attestation edited to pass is caught by the hash rule
- A wrong-schema manifest fails the attestation rule
- --strict changes nothing at agt 4.1.0 (exit 1 with and without it)
From reports/agtverify-gate.json · run on October 21, 2026. agent-governance-toolkit 4.1.0, gate 0.1.0, Python 3.12.14; 9 cases including 2 good, 4 weak and 1 invalid manifest
How it is wired
01/03A pull request carries the deployment's evidence manifest.
Microsoft's Agent Governance Toolkit ships a CLI, agt verify, that checks an AI agent deployment against the OWASP Agentic controls the toolkit calls "ASI 2026". Run with no arguments, it only checks that the toolkit's own modules import, so it passes on a machine that governs nothing. We built a CI gate around agt verify --evidence, ran it keyless on 9 cases, and every verdict matched what we expected. The catch is that the --strict flag the upstream docs present as the CI switch has no effect in agt 4.1.0, and the evidence file is self-reported.
The catch
Upstream tutorial 18 says --strict fails when runtime evidence is missing or weak. In the 4.1.0 source the flag is hidden and marked deprecated, because strict mode is now the default. We measured it: a weak manifest exits 1 with the flag and exits 1 without it, with the same check statuses. The gate passes --strict to match the docs and does not depend on it.
The bigger limit is what agt can see. It checks that the policy files named in the manifest exist and parse. It cannot prove the running deployment loads them. Deny semantics are only read from top-level keys, so an allow-default policy with one deny rule counts as weak, and deny logic written any other way goes undetected. The attestation hash is a content digest, not a signature. It catches a careless edit, and anyone who can run agt can still produce a valid hash for a different manifest. The composite action's bash step was tested locally, and the GitHub Actions jobs themselves have not run yet.
What we ran (keyless)
git clone https://github.com/SkilledDragonCorp/agtverify-ci-gate.git
cd agtverify-ci-gate
uv sync --frozen
uv run agtverify-gate verify fixtures/good/agt-evidence.json
uv run agtverify-gate verify fixtures/weak-allow-default/agt-evidence.json
uv run python scripts/report.py
From reports/agtverify-gate.json, run on October 21, 2026 with agt 4.1.0:
| Case | Verdict | Evidence checks | Failed gate rules |
|---|---|---|---|
| Good manifest (JSON) | pass | 6/6 | none |
| Good manifest (YAML) | pass | 6/6 | none |
| Allow-default policy | weak | 5/6 | agt-exit, evidence-checks, agt-passed |
| No log sink | weak | 5/6 | agt-exit, evidence-checks, agt-passed |
| Missing policy file | weak | 4/6 | agt-exit, evidence-checks, agt-passed |
| Hollow manifest | weak | 0/6 | agt-exit, evidence-checks, agt-passed |
| Wrong schema | invalid | none | agt-exit, attestation |
agt verify without --evidence | weak | 6 absent | mode, evidence-checks |
| Hollow attestation edited to pass | invalid | 6/6 | hash |
The row that motivated the lab is the import-only run. agt exits 0 and reports 10 of 10 ASI controls, with none of the six evidence checks present. The gate rejects it on the mode rule. In the last row we rewrote a failing attestation to say it passed, and check-attestation caught it because the hash no longer recomputes. Each agt call took between 2,858 and 4,203 ms, and the whole report ran in 36.8 seconds.
How it is wired
The gate is a Python 3.12 CLI that shells out to the real agt --json verify --evidence FILE --strict, parses the attestation and applies nine rules on top of agt's exit code. Those include a minimum of 10 ASI controls, all six evidence checks present and passing, no escape-hatch flags, and an optional freshness window. It prints a Markdown verdict, adds ::error annotations on GitHub and exits 1 on weak or invalid evidence. A composite action and a reusable workflow wrap it, and a missing evidence file fails the job.
Minilab (open source)
Upstream is microsoft/agent-governance-toolkit (6,459 stars, MIT, Python, as of October 24, 2026). Drop your own manifest into fixtures/, re-run uv run python scripts/report.py, and check that matched_expected in reports/agtverify-gate.json still equals cases.
Run it yourself
SkilledDragonCorp/agtverify-ci-gate
Clone, install and run the report with no API keys. The numbers above are what that run writes.
uv sync --frozen && uv run agtverify-gate verify fixtures/good/agt-evidence.jsonSkilledDragon is not affiliated with Microsoft, the OWASP Foundation or GitHub. Numbers are from our own keyless lab run; re-run the report before relying on them. Marks belong to their owners.
All labs