Agent Permissions Need to Be Queryable

 The review question is simple until you try to answer it:

What can this agent actually do in this repository?

A human reviewer can open a pull request and inspect the diff. That is a familiar shape of work. The reviewer can ask whether the code is correct, whether the migration is risky, whether the test coverage is real, and whether the change belongs in this release.

Agent authority is harder to see. Some of it lives in repository settings. Some of it lives in product configuration. Some of it sits in MCP server definitions, enabled tools, workflow policy, browser automation surfaces, extension state, firewall rules, shell access, and credentials. A reviewer may be looking at a neat pull request while the more important question sits outside the diff.

The uncomfortable part is that "somewhere else" is now the system.

Permissions are product state until they become inventory

GitHub's May 2026 Copilot cloud agent changelog is easy to read as a small API update. Repository owners can audit Copilot cloud agent configuration through the REST API. The exposed surfaces include MCP server configuration, enabled tools, workflow policy, and firewall configuration.

That sounds boring in exactly the right way.

Once an agent can use tools, call MCP servers, operate under workflow rules, and reach or not reach the network, permission review cannot stay inside a policy document. A policy document can say what should be true. An API can tell you what is true.

Those are different things.

At that point, agent governance starts to look less like prompt design and more like inventory management. Which repositories allow the agent to use which tools? Which MCP servers are configured? Which policies changed this week? Which firewall rules are different between production and a side project? Which teams are using the default setup because nobody had time to look?

Without queryability, the answers depend on someone clicking through settings screens and hoping the state has not drifted. That does not scale. It also does not create a useful review trail.

AI tooling discussions tend to make "governance" sound bigger than it is. The first version is usually plain and mechanical. List the surfaces. Compare the state. Notice drift. Assign ownership. Repeat.

If a team cannot query an agent's authority, it cannot govern that authority with much honesty.

The old review model is too narrow

Code review works because the unit of review is visible. A developer proposes a change. The diff exists. Comments attach to lines. Tests run. The merge decision has a place to happen.

Agents disturb that model because the risk is not only in the final diff.

The agent may have had access to a browser session. It may have called a tool that reads local files. It may have been allowed to fetch dependencies, inspect secrets by accident, or send data through a path nobody expected. It may have used a configured MCP server that made sense for one workflow and too much sense for another.

None of that necessarily appears in the pull request.

Agents are not uniquely dangerous. Human developers have permissions too, and plenty of human mistakes never show up neatly in a diff. The difference is that agents make permission surfaces more programmable, more repeatable, and easier to accidentally spread across many repositories.

That is why the configuration matters. The diff tells you what changed in the code. The agent configuration tells you what the system was allowed to do before that diff existed.

Both need to be reviewable.

Browser agents show the better pattern

The Chrome DevTools MCP project points at the same problem from a different angle. Browser automation for agents is much more useful when it runs through developer surfaces people already understand: page state, console output, network requests, screenshots, performance traces, and controlled actions.

That matters because a browser agent is not safer simply because it can "see" a webpage. Raw visibility is not the same as inspectable control.

If an agent guesses from a screenshot, the human is left to trust the guess. If it works through DevTools-style primitives, the system can expose what page it saw, which request failed, which console error appeared, and what action it took next. The agent may still make a bad decision, but at least the work leaves behind evidence that developers know how to read.

Agent infrastructure needs more of that pattern.

Tools should make agent behavior easier to inspect, not only more capable. A browser control surface that can report console and network state is better than a vague visual instruction loop. A repository configuration API is better than hidden settings. A tool registry with explicit permissions is better than a pile of implicit helper functions.

The point is not to wrap every action in ceremony. The point is to make authority visible enough that a team can reason about it after the excitement of a demo has worn off.

The IDE is already part of the trust boundary

The security pressure behind all of this is not theoretical. The recent reporting around a malicious VS Code extension affecting thousands of repositories is a useful reminder that developer tooling is no longer a harmless local convenience.

Extensions can sit close to source code, credentials, package managers, terminals, browsers, and repository access. That is already a large trust boundary before coding agents enter the picture.

Agents make the boundary feel larger because they combine several surfaces at once. A useful coding agent wants repository access, tool access, execution access, browser access, and enough context to make changes. Those capabilities are what make it productive. They are also what make vague permission models unacceptable.

The npm supply-chain response around the TanStack incident belongs in the same mental bucket. It is not an agent story in the narrow sense. It is about package publishing paths, maintainer identity, secrets, compromise response, and downstream blast radius. Those are the systems an agent-adjacent development environment can touch or influence.

The mistake is to split these into separate worlds: extension security over here, package security over there, agent governance somewhere else. In a real developer workflow, they meet at the same desk.

The IDE, the package manager, the browser, the repository, and the agent are part of one operational surface now. Treating one of them as "just a productivity tool" is how teams end up surprised.

Queryability is not safety

There is a tempting overcorrection here. Once a team gets an API or a structured tool surface, it can start pretending the problem is solved.

No.

An API that exposes agent configuration gives you visibility. It does not decide whether the configuration is good. A browser MCP surface can expose what happened. It does not guarantee the agent chose the right action. A list of enabled tools can tell you the agent's reach, but it cannot tell you whether anyone has reviewed that reach in the context of a specific repository.

Queryability is the start of governance, not the whole thing.

The team still has to define defaults. Some repositories should probably have narrow network access. Some tools should be read-only by default. Some MCP servers should be approved centrally because they cross sensitive boundaries. Some risky actions should require human approval. Some drift should page a platform owner, and some drift can be handled in a weekly review.

That work is less glamorous than arguing about model quality. It is also more useful.

Good agent governance will probably feel like a mix of security engineering and platform operations. The questions are practical:

  • Which tools are enabled?
  • Which MCP servers are trusted?
  • Which network paths are allowed?
  • Which credentials are reachable?
  • Which browser or debugging surfaces can the agent use?
  • Who owns each decision?
  • When did the answers change?

If those questions are hard to answer, the agent setup is running on faith.

Small teams still need a lighter version

Not every team needs a full audit pipeline on day one. A two-person project does not need the same process as a regulated enterprise. If every local experiment requires a governance meeting, people will route around the process and the policy will become theater.

The useful version starts smaller.

Write down the tool surfaces the agent can use. Keep MCP configuration in a place reviewers can see. Prefer read-only defaults when a tool does not need write access. Separate local experiments from production repositories. Make network access a conscious choice instead of an ambient assumption. Keep a short record of why a tool was enabled.

This can stay lightweight. The test is whether someone can come back later and understand what authority the agent had when it produced a change.

For larger teams, that same habit turns into automation. Query the configuration. Compare it against expected policy. Alert on strange drift. Review exceptions. Make the default path easy enough that developers do not need to invent their own shadow workflows.

The shape changes with scale. The principle does not.

The next serious agent feature is boring

The agent industry still likes flashy demos: bigger tasks, longer loops, more files changed, more tools called. Some of that is genuinely useful. But the next serious feature may be much less dramatic.

It is the ability to ask, automatically and repeatedly:

What authority did we give this system?

That question should not require a tour through product settings, tribal memory, and half-remembered setup notes. It should be answerable from the system itself.

Agent permissions need to be queryable because agent work is becoming normal work. Normal work needs inventory, audit trails, ownership, and drift detection. The alternative is a governance story that sounds responsible in a slide deck and falls apart the moment someone asks what the agent was actually allowed to do.

The future of agent governance is not another reminder in a prompt that says "be careful."

It is a boring API, a readable configuration surface, and a review habit that treats agent authority as part of the codebase's operational reality.

That is less exciting than a demo. It is also the part that decides whether anyone should trust the demo on Monday morning.

Source notes

Comments

Popular posts from this blog

The Agent Shift Is Showing Up in Workflows, Not Prompts

The Invisible Wall of Vibe Coding: The Rise of Control Debt

Code Review Is Becoming a Routing Problem