agentleFS
MicrosoftKnown publishermicrosoft/agent-governance-toolkit/policy-engine/AGENTS.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 7 mentionsMay 2026: 19 mentionsJun 2026: 4 mentionsJul 2026: 5 mentionsAug 2026: 14 mentionsSep 2026: 0 mentionsOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/agent-governance-toolkit repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/agent-governance-toolkit

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

38 more on GitHub

On Bluesky · 8

3 more on Bluesky

On Hacker News · 2

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
  1. Very specific:

    Read docs/acs-retarget.md before changing anything here.

    line 7
  2. Distinctive:

    Use ACS terms when writing issues, docs, tests, and code comments.

    line 27
  3. Distinctive:

    Do not introduce predecessor project concepts that ACS removed, and do not reintroduce the five verdict model.

    line 39
  4. Distinctive:

    Run the narrow command for the area you changed, then run the broader command before merging when behavior spans SDKs.

    line 43
  5. Distinctive:

    Keep changes focused and avoid unrelated cleanup.

    line 69
  6. Distinctive:

    Keep SDK code responsible for host async orchestration and idiomatic adapter shapes.

    line 71
  7. Distinctive:

    Update parity fixtures when a cross SDK contract changes.

    line 72
  8. Distinctive:

    Update specification text only when the normative contract changes.

    line 73
  9. Common:

    Never commit secrets, credentials, or raw sensitive payloads in logs or fixtures.

    line 74

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

PathPurpose
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. InterventionPoint is the retired AGT spelling.
  • Snapshot.
  • Policy input.
  • Verdict with allow, deny, or transform. The set is closed at three under AGENT-HOOKS-0.1 section 5.1. A former warn is an allow carrying warnings[], and a former escalate is a liftable deny carrying an approval block.
  • 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:*. The host_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.

AreaCommands
Rust workspacecargo fmt --all -- --check and cargo clippy --workspace --all-targets -- -D warnings and cargo test --workspace
Core examplecargo run -p agent_control_specification --example basic_host --quiet
Generatorpython -m pip install ./generator pytest then pytest generator
Node SDKcd sdk/node && npm ci && npm test
.NET SDKcd sdk/dotnet && dotnet build AgentControlSpecification.sln then dotnet run --project tests/AgentControlSpecification.Tests
Formal modelquint test tests/formal/acs_mediation.qnt when Quint is available
Rego policiescd 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 deny with a reserved runtime_error:* reason.
  • A transform is 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 in sdk/rust/src/host/, never in the policy plane.
  • Annotator output is isolated under annotations.<name>.
  • File based extends resolution 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 into core/.
  • 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.