Skip to content

Govern your organization

This journey is for a platform or security team. Your job: control and audit what coding agents load across hundreds of repositories and several harnesses (the agent tools that read the files, such as GitHub Copilot, Claude Code and Cursor), roll it out without breaking teams, and answer your CISO honestly.

You need: repositories that commit apm.yml and apm.lock.yaml. If you have none yet, start with Give every teammate the same skills, plugins and MCP servers.

The pattern organizations run today: a central team publishes versioned skills, hooks and MCP servers through its own marketplace; repositories install them with version ranges; an org policy restricts sources; a required CI check replays every lockfile. APM governs what gets installed. Your harness governs what runs.

Security reviews, audits and incidents tend to ask the same questions about coding agents. Once your repositories use APM, each one has a factual answer:

The questionHow you answer itWhere
What does this repository’s agent load, and from which commit?apm.lock.yaml lists every skill, plugin and MCP server with its commit and file hashes; apm find traces any file to its package.Inventory and drift
Which repositories use version 1.2 of our review skill?Every repository commits its lockfile, so a code search across your organization answers it; CI can also keep a CycloneDX or SPDX inventory per release.Inventory and drift
Can a team pull a skill or MCP server from a source we have not approved?Not past CI: under enforcement: block, a required apm audit --ci check fails the pull request.Set an org policy
Did someone edit the agent files after review?apm audit rebuilds what the lockfile describes and reports every file that differs.Gate pull requests
Which hooks and MCP servers run code on developer machines, and who allowed them?With the executables gate on, each one needs an approval. Project approvals live in apm.yml, so git history shows who approved what and when; personal grants and organization recommendations can also admit a package, and apm policy explain <package> shows which layer decided.Control executables
How do we ship a fix to every repository?Release a new version through your marketplace; repositories receive it as a reviewed lockfile change from apm update, Dependabot or Renovate.Build your organization’s marketplace
What do we hand an auditor?The lockfiles, the CI check history and an exported inventory. The inventory lists what was installed; it is not an attestation.Agent supply chain security model

Each stage is reversible. Move on when the exit criteria hold in your pilot repositories.

StageWhat you turn onExit criteria
1. Lockapm.yml and apm.lock.yaml committed in each repositoryA fresh clone passes apm install --frozen
2. CI checkapm install --frozen and apm audit --ci as a required pull-request checkEvery pilot repository shows the check, green
3. Policy in warnapm-policy.yml with enforcement: warn; CI adds --policy orgapm policy status --check passes everywhere; warnings triaged
4. Blockenforcement: block and fetch_failure: block in the policy; policy.fetch_failure_default: block in each apm.ymlA pull request that adds a denied source fails; a run that cannot load the policy fails
5. Executables and inventoryThe executables gate with recommended approvals; apm lock exportEvery hook and MCP server is approved; an inventory per release

New to the idea? Read The agent supply chain.

Copyright (c) Microsoft Corporation. General documentation: CC-BY-4.0. Software, code examples and OpenAPM: Apache-2.0. See scope and exclusions.