Everyone is racing to give AI more autonomy. Who's building the brakes?
Part 4 of our AI agent governance series. In our view, companies hand AI agents authority faster than they build ways to take it back. We walk through six questions to ask of every agent and an operating model we call continuous enterprise trust and containment, including what to do when an action can't be undone.
part 12 of 18 · Identity security, from the ground upthe ideaFind the agent and stop it first. Undoing what it did comes after
after reading, you can- Explain to your board why agents get new powers faster than anyone builds the brakes
- Work out where your agents hand tasks on, and where the rights grow when they do
- Work out which of an agent's actions you could roll back, and which you'd have to correct instead
Your AI agents probably do more than answer questions now. They pull data and change records, and some hand jobs to other agents while nobody watches. Before you give the next one more authority, make sure you could find it and stop it. Then check you could undo its work without breaking something bigger.
We keep giving AI agents more power to act. Far less goes into being able to stop them
An AI agent is software that takes a goal and works out the steps itself. It signs in to your systems and changes records, and it can ask other agents for help. That's useful, and in our view it's where the money is going. The catch, as we see it, is that much of it goes into what agents can do. Much less goes into who answers for them and how you'd stop one halfway through a job. And once an agent has done something wrong, someone still has to pull that work back.
Think of a car. Nobody buys one for its brakes, but brakes are why you dare drive fast at all. An agent with plenty of authority and no tested way to stop it is a fast car whose brakes nobody has checked.
- Executives approving AI agent projects
- CISOs and security leads
- Risk, audit and compliance teams
- Business owners whose teams run agents
- IT and platform teams
If you need the detail behind any step, part 1 covers ownership and discovery, part 2 covers kill switches, token revocation and agents calling agents, and part 3 covers the agent lifecycle from design to retirement. We won't repeat them here.
We keep handing agents new powers. Has anyone budgeted for stopping them?
Our starting point for this series is a simple imbalance. Enterprises are spending real money giving AI authority, on connectors, tool access, service accounts and agent platforms. They spend far less keeping control of that authority once it's out. We think that gap is where the next round of AI incidents will come from.
OWASP already has a name for the result. Its LLM Top 10 calls it excessive agency, damaging actions taken in response to unexpected, ambiguous or manipulated output from the model, and it traces the root cause to too much functionality, too many permissions or too much autonomy. Each of those is a decision someone made when the agent went live, often, we'd argue, in a hurry.
The agents themselves are now worth attacking, too. A CVE published on 30 October covers TAKO, an AI agent that helps Okta admins query their tenant in plain language. Before version 3.0.1-beta, anyone who reached it on the network first could make themselves its sole administrator, then read the Okta-synced user data and API tokens it held. It carries a CVSS score of 9.8, critical. Whatever an agent can reach, someone who takes over the agent can reach too.
- More connectors and tools per agent
- Service accounts and API keys so it can act
- Agents that call other agents
- Faster go-live for each new use case
- A named owner for every agent
- Permissions someone approved and reviews
- Limits on what an agent can pass on
- Logs that rebuild what it did and why
- A tested way to stop it mid-task
-
01 Spots a mismatch
The agent spots a customer record that doesn't match billing and fixes it. Nobody told it to check which system was right first.
-
02 Updates the record
It overwrites the customer record. Its account has write access, so as far as the system's concerned, nothing happened worth flagging.
-
03 Sends a notification
Updating the record fires off an email to the customer. Nobody can unsend it, whatever happens next.
-
04 Hands off to agent B
It asks a second agent to change the customer's entitlements. That agent has broader rights than the first one ever had.
-
05 Nobody can pull it back
By now the business owner has left. Security can see the chain, but there's no switch for the downstream workflow.
Every step was authorised. So what went wrong?
Nobody hacked anything in that chain, and no model went rogue. Every system it touched saw a request it was allowed to accept. Taken one at a time, they probably were fine. The trouble is in the hand-offs.
| Where it can fail | What happens | Which question it fails |
|---|---|---|
| The instruction | The agent may have misread which system was right, so the fix makes the data worse | Can its behaviour be reconstructed? |
| The hand-off | Agent B holds broader privileges than agent A, so the task gains rights as it moves | Can it delegate authority? |
| The owner | The person who signed off the agent has left, so nobody can say what it was meant to do | Who owns the agent? |
| The stop | Security can disable agent A, but agent B keeps working on the task it was given | Can its execution be interrupted? |
We'd call this autonomy without accountability. Malice needn't come into it. What would have caught it is dull stuff, like an owner who's still around, a cap on what one agent can hand another and a way to contain the work. Part 2 has how agent-to-agent chains go wrong at the token level. The executive question is whether anyone in your company knows where these chains run.
OWASP's agentic Top 10, out since December 2025, has entries for both halves of this. ASI08 covers cascading failures, where false signals spread through automated pipelines and get worse at each hop. ASI03 covers identity and privilege abuse. A chain like ours could trip both with every step inside its rights.
Six questions to ask of every agent you run. The last two are the hard ones
These are our six questions. Ask them of each agent that can change something, starting with the ones closest to money or customer data. If an answer takes a meeting to find, write it down as a gap.
| Question | A good answer | Evidence to ask for |
|---|---|---|
| Who owns the agent? | A named business owner who's still here, plus a technical owner | Agent register entry with both names and a review date |
| Which credentials does it use? | Its own identity, never a person's login or a shared service account | The identity record and every secret or key tied to it |
| Who approved its permissions? | A person who isn't the builder signed off each permission | Approval record and the last access review |
| Can it delegate authority? | Only to named agents, and never with more rights than it holds | Delegation rules and a log of hand-offs |
| Can its behaviour be reconstructed? | You can replay what it was told, what it decided and what it changed | Logs that join the request, the tool calls and the changes |
| Can its execution be interrupted? | Someone has stopped it in a drill and timed how long it took | Drill notes with the time per system |
The first two you can usually answer from records. The last two need engineering done before an incident, and no amount of paperwork afterwards fills that in.
Continuous enterprise trust and containment: what would your team actually have to build?
Continuous enterprise trust and containmentdefinitionWe use it as shorthand for continuous enterprise trust and containment. It's the setup you build so you can stop an agent, undo what it did and keep the evidence. is our name for an operating model your company builds for itself. You can't buy it off the shelf. The idea is that the way you run AI should include the means to take an action back, the same way a change process includes a rollback plan. You design it in from the start, and nobody has to improvise it during an incident.
- 01Identify the agents
Know every agent acting for you, who owns it and what it runs as. You can't stop what you can't name, and part 1 covers how to find the ones nobody registered.
- 02Restrict permissions
Cut an agent's rights down to the task in front of it, quickly and without redeploying it. Keep a pre-approved narrower profile ready, so restricting doesn't need an emergency change.
- 03Suspend execution
Pause the agent and any jobs it has queued, ideally at the gateway its tool calls pass through. A pause you can lift beats a delete you can't undo.
- 04Revoke delegated authority
Pull back whatever it handed to other agents, including tasks already running downstream. This step is easy to leave out of a stop procedure.
- 05Preserve evidence
Freeze the logs, prompts, tool calls and the identity record before anyone cleans up. You'll need them to work out what to reverse and to explain it later.
- 06Restore operations safely
Restore what you can and compensate for the rest. Then run the process without the agent until its owner agrees it can come back.
The frameworks already lean this way. NIST's AI RMF, under MANAGE 2.4, wants someone assigned and a mechanism in place to disengage or deactivate AI that behaves outside its intended use.
The EU AI Act goes further for high-risk systems. Article 14 says whoever oversees one has to be able to stop it, with a stop button or something like it that halts it safely. Neither NIST nor the Act explains how you'd stop a five-step agent chain safely, though. Your engineers have to work that out.
Before: agents act straight on business systems
In the made-up chain, agent A writes to the customer record and hands work to agent B, which changes entitlements. Nothing sits in the path, so there's no single place to pause the chain or see what it did.
After: every call passes a control point you own
Here both agents call through one gateway that you run. Nothing writes until the old value is logged, and the customer email waits for a person. If something looks off, security pauses agent A and the task it handed to agent B without touching other workloads.
What can you undo, what needs a compensating action, and what can't be taken back?
Pulling the plug on an agent stops what it does next. Whatever it did before is still sitting in your systems. We sort those actions by what you can still do about them.
| Kind | What it means | Example from the chain | What you need ready |
|---|---|---|---|
| Reversible | You can put the old state back | The customer record update, if nobody else changed the record since | The old value logged before every write |
| Compensable | You can't rewind it, but a new action cancels its effect | The entitlement change agent B made | A tested counter-action, such as revoking the entitlement and logging why |
| Irreversible | Once it happens, it stays happened | The notification email to the customer | Approval before it runs, and a plan for a correction message |
None of this is new to software architects. Microsoft's write-up of the compensating transaction pattern points out you can't always roll data back, since other processes may have changed it, and putting back the old state can overwrite their work. So you record each step and how to undo it while it runs, and undo in reverse order if it fails. In Microsoft's saga pattern the point of no return is called a pivot transaction. Past it, the saga has to finish going forward rather than undo.
Agent tools don't always carry that information. The Model Context Protocol lets a tool server mark tools as read-only, destructive or idempotent, which is close to the split above. The specification is blunt that these are hints. Clients must treat them as untrusted unless they come from a trusted server, so a tool that says it's harmless still needs checking.
Logs have the same gap. A developer who built an undo trail for coding agents put it plainly on Hacker News: git diff shows what changed, but not why the agent changed it or how to roll back one specific action. In business systems the record of why can live only in the agent's context, which may not outlast the session.
Switching an agent off stops its next action. It does nothing about the last ten.
Could you name every agent acting for you, and stop one without causing a bigger outage?
That's the question we'd put to executives, and it's a fair one to ask at the next board or risk committee. It has two halves. Can you name every agent? And can you stop one without the cure doing more damage than the agent did?
If the honest answer is "we don't know", that's an assurance gapdefinitionThe gap between thinking you're in control and being able to prove it. If nobody knows the answer, that counts.. You may well be fine. But if nobody can show it, an auditor or a regulator may treat it the same as not being fine.
| Ask your team | Good sign | Warning sign |
|---|---|---|
| How many agents act for us today? | A number from a register, with owners | An estimate, or "it depends who you ask" |
| Which can move money or change customer data? | A short list with approvals attached | Nobody's sorted agents by impact |
| Which ones can call other agents? | A map of the hand-offs | "Probably a few" |
| When did we last stop one in a drill? | A date and a time-to-stop per system | Never, or only in a demo |
| What couldn't we undo? | A list of irreversible actions with approvals in front | The question gets a blank look |
What to do now, by who you are
- Ask the five assurance questions above and ask for the evidence, not a slide.
- Make one named executive accountable for agent control, separate from whoever owns agent delivery.
- Hold new agent authority until the ones already running have an owner and a tested stop.
- Run a stop drill on one agent that writes to a business system and time each step.
- Draw the hand-offs between agents. Wherever the receiving agent holds more rights, that's a gap.
- Put irreversible actions behind an approval checked at the gateway.
- Put our six questions into the next AI or identity audit as test steps. Then the answers get checked, not just asked for.
- Treat an agent nobody can stop as a finding, even if nothing has gone wrong yet.
- Check how long agent logs are kept. If they're gone before anyone asks, nobody can rebuild what the agent decided.
- Go through each tool your agents can call and mark whether its effect can be undone. You'll need that list on the day something goes wrong.
- Have every agent write log the value it replaced. That log is your undo button.
- Write a compensating action for each compensable tool, and test it. One that's never been run won't help on the day.
If an agent chain does something nobody asked for, work in this order
Same steps as above, in incident order. For token revocation and kill switch detail per identity platform, see part 2.
- 01Containfirst hour
- Suspend the agent at its gateway first, then pause the jobs it has queued. That stops new damage while you work out the old.
- Find every downstream agent it handed work to and suspend those tasks too.
- Move it to a restricted permission profile, or disable its identity. Don't delete it.
- 02Preservefirst hour
- Freeze the logs, prompts and tool calls, and the agent's identity record with them. Cleanup can wait until you have copies.
- Write down when each system last accepted a call from the agent or anything it delegated to. That tells you how far back to look.
- 03Sort the damagefirst day
- Go through everything the chain did. Mark which actions you can restore, which need a counter-action and which you can only correct.
- Find who owns each affected system now, since the agent's own owner may be gone.
- 04Reverse and compensatefirst days
- Restore old values where nobody has changed the record since. Check before overwriting.
- Run the compensating actions, usually in reverse order, and log each one.
- Where an action can't be undone, send a correction. Then tell the people it affected before they find out some other way.
- 05Restore and learnfirst weeks
- Bring the process back without the agent first. It only returns once an owner signs off.
- Run the six questions on this agent again. Fix the one that failed before it goes back into service.
- Work out whether the chain touched data or money you're obliged to report. If it did, you may owe your regulator, customers or insurer a call.
Three made-up situations
- the setup
- A retailer's service agent can edit customer records. When a billing complaint comes in, it asks a billing agent for a credit. Nobody ever put a cap on what that billing agent can pay out.
- what happens
- It gets the complaint wrong and asks for a much bigger credit. The billing agent is allowed to pay that, so it does, and the money's gone before anyone checks.
- what to do
- Cap what one agent can ask another to do, and put credits above a set amount behind human approval at the gateway. Treat a settled payment as irreversible and plan for it.
- the setup
- A mid-size firm's HR team built an agent that sets up access for new joiners. The manager who sponsored it left months ago, and nobody picked it up.
- what happens
- A process change means it now grants a role that was retired. Nobody notices for weeks, because nobody is looking at its output or knows they should.
- what to do
- Move sponsorship when an owner leaves, and suspend agents that have no owner. Treat role grants as compensable, with a tested revoke that runs from the agent's own log.
- the setup
- An enterprise runs a reconciliation agent that several finance jobs now lean on. It starts writing bad values, so security disables its service account.
- what happens
- Disabling the account also breaks two batch jobs that shared it, and month-end close stalls. The fix made the incident bigger than the agent did.
- what to do
- Give each agent its own identity so you can stop it alone. Drill the stop before you need it, and keep a pause at the gateway that leaves other workloads running.
How Cohash helps
We'd start by running that assurance check against your own agents. Then we'd pick the agent that sits closest to money or customer data and work out which of its actions can actually be undone. After that, your team drills the stop with us until it works. If you'd rather see where you stand before talking to anyone, start with an assessment.
That runs through our AI agent identity and AI governance work, and it isn't tied to one vendor. An agent's reach rarely stops at the identity provider, so we follow it wherever it goes:
- Sign-in and directories, like Microsoft Entra, Okta or Ping Identity. That's where the agent's identity lives and where you cut it off
- Governance, privileged access and secrets, like SailPoint, CyberArk or HashiCorp Vault. Someone has to own what the agent was granted and rotate what it held
- Where the agent actually runs, on Microsoft Foundry, AWS Bedrock or Databricks. Pause it there and the batch jobs sharing its account usually keep going
- The business systems agents act in, like ServiceNow, Salesforce or SAP. This is where the undo, the compensating fix or the clean-up actually happens
Coming next in the series: Microsoft 365, cloud dependency, and what you're left with when an autonomous workflow stops partway through.
What to take from this
- 01
Check whether you're funding agent authority faster than agent control. The gap between the two is the risk.
- 02
Ask our six questions of every agent that can change something, and treat a slow answer as a gap.
- 03
Find the hand-offs. A task that moves from one agent to another can pick up rights on the way.
- 04
Ask of every agent tool: could we undo this? Plan for the ones where the answer is no.
- 05
Put approvals in front of irreversible actions. No stop switch brings a sent payment back.
- 06
Drill the stop. If nobody can say how long it takes, you don't have one yet.
- How Cohash delivers Microsoft Entra ID: scope, roles and architecture
- How Cohash delivers Okta: scope, roles and architecture
- How Cohash delivers Ping Identity: scope, roles and architecture
- Hire vetted Microsoft Entra ID engineers
- AI agent identity
- Book a 30-minute working session with a senior engineer
01Is this about AI going rogue?
Mostly no. The risk we describe comes from agents doing what they were allowed to do, in a chain nobody owns or can stop. Malicious behaviour is possible, but the failure we expect is ordinary authority with no accountability around it.
02Can we buy continuous enterprise trust and containment, or do we have to build it?
You build it. It's our name for an operating model your company runs for itself. Taking an AI action back gets designed in from the start, the way a change plan has a rollback, so you can pause each agent and pull back what it delegated without losing the evidence.
03Can't we just switch the agent off?
That stops what it does next, and nothing more. Work it already finished stays finished, and other agents may still be running tasks it gave them. If the account is shared, other jobs go down with it.
04What if an agent's action can't be undone?
Then reversibility is the wrong control for it. Put an approval in front of the action and enforce it at the gateway, so the action can't run without one. Plan the correction, such as a follow-up message, before you need it.
05Where should we start?
Ask our six questions of the agent closest to money or customer data. Then run a stop drill on it and time each step. The answers tell you which of parts 1 to 3 of this series to read next.
Three questions, about a minute
Pick an answer and we'll tell you if it's right, and why it is or isn't. The score stays in this browser.
-
Q1Your agent updates a record, emails the customer, then asks another agent to change entitlements. Which of those can't you roll back?
show the answer
C. The email to the customer That email is already in the customer's inbox. You'd usually be able to restore the record and revoke the entitlement, but the email only gets a follow-up correction.
-
Q2You disable an agent mid-job. What keeps running after you've done it?
show the answer
A. Tasks it already handed to other agents Delegated work often runs under the other agent's own rights, so stopping the first agent doesn't reach it. Revoking delegated authority is a separate step.
-
Q3At the risk committee, someone asks whether every agent acting for you could be stopped. Nobody knows. What is that?
show the answer
B. An assurance gap If nobody can show the answer with evidence, you have an assurance gap, whether or not anything has gone wrong yet.