All posts

Why your agents should ask before they act

4 min readThe unroster team

Every company that gives an agent real access ends up having the same conversation. The agent is good. It drafts the reply, finds the bug, reconciles the payouts. And then somebody asks the question that decides whether it ever gets turned on in production: what happens when it is wrong about the one thing that cannot be undone?

Our answer is that it does not get to be wrong about that thing on its own. An agent in unroster does the work up to the edge of anything irreversible, then stops and asks a person. Sending an email to a customer, issuing a refund, merging a pull request, granting someone access, rolling back production: the agent prepares all of it, writes down what it is about to do, and waits.

That sounds obvious. Most of the work was in making it hold up.

An approval is for one exact action

The weakest version of approval is a yes to a description. The agent says it will email the customer about their refund, you click approve, and what actually goes out is whatever the agent decides to send at that moment. The approval covered a sentence, not an action.

So in unroster an approval is bound to the exact call: the tool, that particular call, and its exact input. If the agent asks to send a specific email to a specific address and you say yes, that is the only thing the yes can be used for. If anything about the call changes after you approved it, the approval no longer matches and the agent has to ask again.

You are not approving an intention. You are approving the thing that is about to happen, as it will happen.

A yes does not last forever

Approvals expire. By default a pending request is good for a day, and after that it lapses and the run has to ask again. A request you never got to on Friday should not be quietly waiting to fire on Monday, when the situation it described may no longer be true.

Expiry also keeps the queue honest. What is waiting for you in Catch up is what is actually waiting, not a pile of stale asks that everyone has learned to ignore.

When in doubt, the answer is no

The hard part is not the actions you know are dangerous. It is the long tail. A connected app might expose dozens of actions, and some of them do things nobody on your team has thought about. A rule that says which actions need approval will always be missing one.

So we turned it around. Actions on connected apps fail closed: an action runs without asking only when it is known to be read only. Everything else waits for a person unless you decide otherwise. Reading your calendar is fine. Changing it is a question.

You can loosen that per agent, and your approval policy can name who approves what. But the default is the cautious one, because the cost of an unnecessary question is a few seconds, and the cost of an unnecessary action can be a customer.

Asking is part of the work, not an interruption to it

There is a version of this that makes agents useless: one that asks about everything, in a pop up, with no context. Nobody can approve fifty things an hour, and an approval button with nothing behind it trains people to click yes.

We try to make the ask the last line of a finished piece of work. By the time an agent stops, it has done the reading, the drafting and the checking, and it says in plain words what it found and what it would like to do next. The question sits in the thread where the work happened, so the person deciding can see the whole story above it.

  • The draft reply is written, and the ask is whether to send it.
  • The fix is tested, and the ask is whether to merge it.
  • The rollback is ready, and the ask is whether to press the button.

If you would rather see the plan before any of the work starts, an agent can be set to plan first: it writes the steps down and waits for your yes before it touches anything.

The record is the other half

Asking is what lets you trust an agent in the moment. The record is what lets you trust it afterwards. Every run keeps a trace of what it read, which tools it called and through whose account, and every approval is kept with who said yes. When someone asks who sent that email, there is an answer.

None of this makes an agent less capable. It makes it something a company can actually give access to, which is the only way an agent gets to do anything useful at all.