Before You Let AI Take Control: Who's Watching the Agents?

Image: Vamshi Vangapally

Most firms give AI agents real access long before anyone can explain what those agents are allowed to do. An agent gets read access to a codebase, then write access to a ticketing system, then a key to an internal API, and each step feels small. Nobody signs off on the total.

The gap usually shows up after an agent does something surprising. A ticket gets closed that should have stayed open. A document is edited in a way nobody asked for. A batch job runs far more often than anyone expected. Then a leader asks a simple question, and the room goes quiet.

Before you widen any agent's access, make sure you can answer four questions for every action it takes:

1. Which agent did this?
2. Under whose authority?
3. With what permissions?
4. Within what spend limit?

If you can't answer all four quickly, from records rather than from memory, the agent isn't ready for more access. None of this needs new research. It is the discipline firms already apply to employees and contractors, applied to a new kind of worker.

A checklist before you widen access

1. Every agent has a named owner and its own identity.
An agent should never act as "the integration" or as whichever engineer set it up. Give it its own account or credential and attach a person's name to it: someone who answers for what it does and who decides when it gets switched off. From any log entry, you should reach an accountable human in one step.

2. Permissions are scoped to the task, not inherited from the person who set it up.
This is the most common shortcut. Someone connects an agent using their own login or token because it's fast, and now the agent can do everything that person can do. Picture an agent meant to summarize open support tickets that, because of how it was connected, can also delete projects. Start from the task instead. If the job is to read tickets and draft comments, grant read access and comment access, and nothing else. Widen later, deliberately, when the task changes.

3. Spend has a ceiling the agent cannot override.
Agents consume model calls, compute, and paid APIs, and they can loop. Set a budget per agent at the level where it is enforced, such as the API key, the account, or the billing system, not in a prompt or a configuration file the agent can edit. At the ceiling, the agent should stop and tell someone. Earlier in my career, I built API-key infrastructure, usage metering, and billing for an AI developer platform. The main lesson was that limits only count if they are enforced outside the thing being limited.

4. Every action leaves an audit trail a reviewer can actually read.
Raw logs are not an audit trail if nobody can make sense of them. A useful record says which agent acted, on whose behalf, what it touched, what it changed, and why it believed the change was correct. Test this directly: hand the trail to someone who wasn't involved and ask them to explain what happened last Tuesday. If they can't, the trail isn't doing its job.

5. A human approves before anything becomes irreversible.
Drafting, summarizing, and proposing are cheap to undo. Sending an external message, deleting data, moving money, merging to production, or changing someone's access are not. Draw that line explicitly, and require a named person to approve anything on the irreversible side of it. The agent can prepare the work. A person commits it.

Failure modes to watch for

Shared service credentials.
Giving several agents one shared service account keeps setup simple. It also erases the answer to "which agent did this?" When something goes wrong, you can't tell which actor caused it, and you can't revoke one without breaking all of them. One identity per agent costs a little more to set up and saves a lot during the first incident.

Review steps that turn into rubber stamps.
A human-in-the-loop step only protects you if the human is actually looking. Picture a reviewer who gets forty approval requests a day, nearly all of them fine. Within a week they are clicking "approve" without reading. Keep approvals rare by reserving them for irreversible actions. Make each request short and specific: what will change, where, and what it costs. And watch your approval rates. A queue where almost everything is approved within seconds is a sign the review has stopped working, not a sign the agent is perfect.

Costs that only show up on the monthly invoice.
If the first time you see an agent's cost is when the bill arrives, you have lost weeks of chances to catch a runaway loop or a badly scoped job. Track spend per agent and per owner daily, alert on unusual jumps, and make the owner the person who sees those alerts. Cost is often the earliest signal that an agent is doing something other than what you intended.

Start small, then widen

None of this argues against using agents. Teams that get real value from them tend to start narrow: one task, one owner, read-mostly access, a small budget, and a clear approval rule. They widen access as the record shows the agent behaves as expected.

In my own work, helping teams use AI across documentation, knowledge bases, codebases, and backend APIs, the hard part is rarely the model. It's the plumbing around it: identity, permissions, budgets, records, and approvals. Firms that build that plumbing first can say yes to agents with confidence. Firms that skip it end up answering the four questions after the fact, under pressure, with incomplete records.

So before you let AI take control of anything that matters, ask the four questions. If the answers are clear, widen access. If they aren't, you know what to build next.


About the author

Vamshi Vangapally

Vamshi Vangapally is a Staff Engineer at Magnit Global, where he leads the Magnit Pulse experience and AI enablement for product teams. Previously he was AI Platform Product Lead at SambaNova Systems, building the 0-to-1 AI Developer Cloud, including its API-key infrastructure, usage metering, and billing.

Vamshi VangapallyAI, Agents, Control