agent-governance-toolkit / policy-engine
AGENTS.md6.4k starsChanged 2 months agoMITView on GitHub
The policy decision runtime now ships from the registry as agent-control-spec, rebased on the agent-hooks control contract. This tree is what AGT layers on top of it. core/ is a deprecation shim that keeps the historical agent_control_specification_core symbols importable for one release cycle, and sdk/rust/ is AGT's host SDK. Read docs/acs-retarget.md before changing anything here. Use ACS terms when writing issues, docs, tests, and code comments. Do not introduce predecessor project concepts that ACS removed, and do not reintroduce the…
- Installs packages
Trending
Less talk lately.about the whole repository
Who's talking about microsoft/agent-governance-toolkit
- @pythonhub.dev“microsoft / agent-governance-toolkit AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, …”Bluesky · May 6, 2026 · 9 likes
- aaif/project-proposals“[Project Proposal] Agent Governance Toolkit”GitHub · Apr 26, 2026 · 6 reactions
- A Hacker News story“Agent Governance Toolkit”Hacker News · May 27, 2026 · 5 points
- @qdrddr.bsky.social“#OPA #Rego policies for #agents Integrates with most frameworks. #Python · #TypeScript · .NET · Rust · Go …”Bluesky · May 24, 2026 · 5 likes
- @alexmg.dev“Today's random GitHub ⭐! microsoft/agent-governance-toolkit Posted using Starrysky”Bluesky · Oct 1, 2026 · 2 likes
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub, Bluesky and Hacker News (53 times).
On GitHub · 43
- Apr 26, 2026[Project Proposal] Agent Governance Toolkit — aaif/project-proposals6 reactions · 33 comments
- Apr 20, 2026[Feature] Governance hooks for AI SDK — policy enforcement before tool execution — vercel/ai2 reactions · 17 comments
- Jul 22, 2026[Feature]: Integrate Microsoft Agent Governance Toolkit (AGT) as optional governance plugin — consolidate 53+ governance-related issues — NousResearch/hermes-agent1 reaction · 3 comments
- Jul 2, 2026🔄 Refresh `foundry-agt` — aiappsgbb/awesome-gbb1 reaction · 1 comment
- Jun 1, 2026🔄 Refresh `foundry-agt` — aiappsgbb/awesome-gbb1 reaction · 2 comments
38 more on GitHub
- May 29, 2026🔄 Refresh `foundry-agt` — aiappsgbb/awesome-gbb1 reaction · 1 comment
- May 26, 2026[Feature Request] GOVERNANCE_PROXY: native AGT sidecar integration for deterministic tool-call governance — openclaw/openclaw1 reaction · 1 comment
- May 26, 2026🔄 Refresh `foundry-agt` — 7 signal(s), impact: high — aiappsgbb/awesome-gbb1 reaction
- May 16, 2026feat(governance): phase 0 — agentmesh build spike — wildcard/caro1 reaction · 5 comments
- Apr 26, 2026Propose Agent Governance Toolkit for Sandbox stage — ossf/tac1 reaction · 22 comments
- Apr 20, 2026Proposal: Agent Governance Toolkit — Runtime Governance for Agentic AI (Sandbox) — lfai/proposing-projects1 reaction · 3 comments
- Mar 25, 2026Collaboration: Governance middleware for Mastra agents — mastra-ai/mastra1 reaction · 5 comments
- Oct 4, 2026agent-plugins.github.microsoft.agent-governance-toolkit: init at 5.0.0 — sudosubin/agents.nix0 reactions
- Oct 2, 2026External institutional authority binding for sandbox policy activation — anthropics/sandbox-runtime0 reactions
- Aug 13, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-antigravity-cli — baoqger/agt-fork0 reactions
- Aug 13, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-claude-code — baoqger/agt-fork0 reactions
- Aug 12, 2026Opportunity: optional external policy verdict input at the guard seam — ucsandman/DashClaw0 reactions · 10 comments
- Aug 12, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-copilot-cli — VLPraneeth/praneeth-agent-governance-toolkit0 reactions · 2 comments
- Aug 12, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-antigravity-cli — VLPraneeth/praneeth-agent-governance-toolkit0 reactions · 2 comments
- Aug 12, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-claude-code — VLPraneeth/praneeth-agent-governance-toolkit0 reactions · 2 comments
- Aug 11, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-antigravity-cli — guden/agent-governance-toolkit0 reactions · 3 comments
- Aug 11, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-claude-code — guden/agent-governance-toolkit0 reactions · 3 comments
- Aug 11, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-copilot-cli — guden/agent-governance-toolkit0 reactions · 3 comments
- Aug 11, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-claude-code — dzungttfci/ms_agent-governance-toolkit0 reactions · 1 comment
- Aug 11, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-copilot-cli — dzungttfci/ms_agent-governance-toolkit0 reactions · 1 comment
- Aug 11, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-antigravity-cli — dzungttfci/ms_agent-governance-toolkit0 reactions · 1 comment
- Aug 10, 2026[Discussion] Asago — asago-ai/asago-policy-mapper0 reactions · 1 comment
- Aug 6, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-copilot-cli — baoqger/agt-fork0 reactions
- Jul 20, 2026[LinkedIn Post] 2026-07-20 - Daily Post — rajshevde-01/Linkedin-Daily-Post0 reactions
- Jul 5, 2026[arXiv] Verifiable agent-memory provenance gate — ContextNest: Verifiable Context Governance for Autonomous AI Agent — mnemonik-dev/nightly-research0 reactions · 2 comments
- Jun 30, 2026Update agent-sre requirement from <2.0,>=1.0.0 to >=1.0.0,<4.0 in /packages/agent-compliance — igordjuric404/ophanix-platform0 reactions
- Jun 16, 2026Update agent-governance-toolkit requirement from >=3.7.0 to >=4.1.0 in /packages/agent-compliance — igordjuric404/ophanix-platform0 reactions
- Jun 8, 2026Limit agent execution by tokens consumed — microsoft/agent-framework0 reactions · 1 comment
- May 25, 2026Explore optional Microsoft Agent Governance Toolkit integration — sure-scale/hey-jude0 reactions
- May 19, 2026build(deps): Update agent-hypervisor requirement from >=3.5.0 to >=3.7.0 in /packages/agent-hypervisor — igordjuric404/ophanix-platform0 reactions
- May 15, 2026<h1>Dependency Review</h1> — nexoracontrol-ops/upgraded-guide0 reactions
- May 14, 2026[Project Proposal] Agent Governance Toolkit — guildaidev/aaif-project-proposals-demo0 reactions · 1 comment
- May 14, 2026[Project Proposal] Agent Governance Toolkit — guildaidev/aaif-project-proposals-demo0 reactions · 2 comments
- May 8, 2026[Project Proposal] Agent Governance Toolkit — guildaidev/aaif-project-proposals-demo0 reactions
- May 8, 2026Microsoft Agent Framework: Agent Governance Toolkit — phongnguyend/Practical.AI0 reactions
- May 8, 2026<!-- ai-pr-summary --> — selutions/Github0 reactions
- May 8, 2026<!-- ai-pr-summary --> — selutions/Github0 reactions
- May 6, 2026<!-- ai-agent:docs-sync-checker --> — selutions/Github0 reactions
On Bluesky · 8
- May 6, 2026microsoft / agent-governance-toolkit AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, execution sandboxing, and… — @pythonhub.dev9 likes and reposts · 2 replies
- May 24, 2026#OPA #Rego policies for #agents Integrates with most frameworks. #Python · #TypeScript · .NET · Rust · Go #OpenSource MIT lic… — @qdrddr.bsky.social5 likes and reposts
- Oct 1, 2026Today's random GitHub ⭐! microsoft/agent-governance-toolkit Posted using Starrysky — @alexmg.dev2 likes and reposts
- Apr 4, 2026github.com/microsoft/ag... — @tommis.fi2 likes and reposts
- Jul 28, 2026📦 microsoft / agent-governance-toolkit ⭐ 4,981 (+17) 🗒 Python AI Agent Governance Toolkit — Policy enforcement, zero-trust identity,… — @github-trending.bsky.social1 likes and repost
3 more on Bluesky
- May 16, 2026On that - @h.olysh.it I was wondering if you’d seen AGT and had opinions - I love the ambition and scope. At the moment it’s fairly… — @ahrkrak.bsky.social1 likes and repost · 1 reply
- Apr 9, 2026microsoft/agent-governance-toolkit: AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, execution sandboxing, and… — @fluid.sublimer.me1 likes and repost
- Apr 8, 2026Together, these tell you Microsoft is betting that governance and evaluation infrastructure will matter more than model capability for… — @nik-kale.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- May 27, 2026Agent Governance Toolkit5 points
- May 26, 2026AI Agent Governance Toolkit2 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository17 other files it gives its agents.
- agent-governance-claude-code/AGENTS.mdAGENTS.md
- agent-governance-dotnet/AGENTS.mdAGENTS.md
- agent-governance-opencode/AGENTS.mdAGENTS.md
- agent-governance-python/agent-compliance/AGENTS.mdAGENTS.md
- agent-governance-python/agent-mesh/AGENTS.mdAGENTS.md
- agent-governance-python/agent-mesh/sdks/AGENTS.mdAGENTS.md
- agent-governance-python/agent-os/AGENTS.mdAGENTS.md
- agent-governance-python/AGENTS.mdAGENTS.md
- agent-governance-python/agent-sre/AGENTS.mdAGENTS.md
- agent-governance-rust/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- examples/AGENTS.mdAGENTS.md
- examples/demos/AGENTS.mdAGENTS.md
- .github/pipelines/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agt-policy-authoringSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 1 is common, 7 are distinctive, and 1 is very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 7
Read docs/acs-retarget.md before changing anything here.
- Distinctive: line 27
Use ACS terms when writing issues, docs, tests, and code comments.
- Distinctive: line 39
Do not introduce predecessor project concepts that ACS removed, and do not reintroduce the five verdict model.
- Distinctive: line 43
Run the narrow command for the area you changed, then run the broader command before merging when behavior spans SDKs.
- Distinctive: line 69
Keep changes focused and avoid unrelated cleanup.
- Distinctive: line 71
Keep SDK code responsible for host async orchestration and idiomatic adapter shapes.
- Distinctive: line 72
Update parity fixtures when a cross SDK contract changes.
- Distinctive: line 73
Update specification text only when the normative contract changes.
- Common: line 74
Never commit secrets, credentials, or raw sensitive payloads in logs or fixtures.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Repository overview
The policy decision runtime now ships from the registry as agent-control-spec, rebased on the agent-hooks control contract. This tree is what AGT layers on top of it. core/ is a deprecation shim that keeps the historical agent_control_specification_core symbols importable for one release cycle, and sdk/rust/ is AGT's host SDK.
Read docs/acs-retarget.md before changing anything here.
Layout
| Path | Purpose |
core/ | Deprecation shim over agent-control-spec, plus the surface that crate does not carry. That surface is artifact validation, the bounded manifest YAML parser, the richer telemetry sinks, and the policy input digest. |
sdk/rust/ | AGT's host SDK. Owns the host obligations under AGENT-HOOKS-0.1 sections 8 to 10, which are transform application, evaluate_only, approval resolution, and identity. |
sdk/python/ | Retargeted PyO3 binding over AGT's Rust host SDK, preserving the legacy Python host API. |
sdk/node/ | Retargeted napi binding over AGT's Rust host SDK, preserving the legacy Node host API. |
sdk/dotnet/ | .NET SDK over the native core plus framework adapter shapes and tests. |
integrations/ | Reference annotators, OpenTelemetry, and Rig integration crates. |
generator/ | ACS policy artifact generator. |
spec/ | Normative specification and JSON schemas. |
docs/ | Design notes, security model, deployment notes, runbooks, and SDK surface guidance. |
examples/ | Runnable ACS host examples and generated demo agents. |
tests/ | Parity fixtures, formal model, performance harness, and conformance assets. |
Vocabulary
Use ACS terms when writing issues, docs, tests, and code comments.
- Interception point. The agent-hooks name.
InterventionPointis the retired AGT spelling. - Snapshot.
- Policy input.
- Verdict with
allow,deny, ortransform. The set is closed at three under AGENT-HOOKS-0.1 section 5.1. A formerwarnis anallowcarryingwarnings[], and a formerescalateis a liftabledenycarrying anapprovalblock. - Transform scoped to the policy target. This is the only value changing decision. The effects plane is gone.
- Annotator.
- Manifest with
extends. Paths root at$target, not$policy_target. - Fail closed runtime error. The engine emits
runtime_error:*. Thehost_error:*namespace is reserved for hosts and an interceptor must never emit it. - Host approval handling for a liftable
deny.
Do not introduce predecessor project concepts that ACS removed, and do not reintroduce the five verdict model.
Build and test
Run the narrow command for the area you changed, then run the broader command before merging when behavior spans SDKs.
| Area | Commands |
| Rust workspace | cargo fmt --all -- --check and cargo clippy --workspace --all-targets -- -D warnings and cargo test --workspace |
| Core example | cargo run -p agent_control_specification --example basic_host --quiet |
| Generator | python -m pip install ./generator pytest then pytest generator |
| Node SDK | cd sdk/node && npm ci && npm test |
| .NET SDK | cd sdk/dotnet && dotnet build AgentControlSpecification.sln then dotnet run --project tests/AgentControlSpecification.Tests |
| Formal model | quint test tests/formal/acs_mediation.qnt when Quint is available |
| Rego policies | cd policy/lib && opa test . |
OPA backed tests and examples need opa on PATH. Use AGENT_CONTROL_REQUIRE_OPA=1 when validating CI parity locally.
Runtime invariants
- The runtime is stateless. Hosts provide the complete snapshot for every evaluation.
- Runtime errors fail closed to
denywith a reservedruntime_error:*reason. - A
transformis the only value changing decision and is scoped to the policy target. - Applying a transform, honouring
evaluate_only, resolving approvals, and computing identity are host obligations under AGENT-HOOKS-0.1 sections 8 to 10. They live insdk/rust/src/host/, never in the policy plane. - Annotator output is isolated under
annotations.<name>. - File based
extendsresolution is confined to the top level manifest root. - Approval identity must bind to the canonical policy input for the action being approved.
Change rules
- Keep changes focused and avoid unrelated cleanup.
- Pure decision behavior belongs upstream in
agent-control-spec, not here. File a proposal on that repository rather than forking semantics intocore/. - Keep SDK code responsible for host async orchestration and idiomatic adapter shapes.
- Update parity fixtures when a cross SDK contract changes.
- Update specification text only when the normative contract changes.
- Never commit secrets, credentials, or raw sensitive payloads in logs or fixtures.
Prose style
Documentation prose must be dense and technical. Do not use em dashes. Do not use colons inside prose sentences. Colons are acceptable in headings, tables, code blocks, YAML, and JSON.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

