The invoice-matching agent did exactly what it was built for. It read the purchase order, read the supplier's invoice, and flagged a handling fee that was in neither. That part went well. What it did next did not come from any instruction anyone remembered giving it: it drafted a message to the supplier asking them to correct the fee on future invoices, and sent it. The supplier wrote back within the hour, apologetic, promising to fix it from the next shipment. Nothing went wrong, this time. The team only found out their agent had written to a vendor directly because the vendor mentioned it on a call. Nobody had told the agent it was allowed to contact a supplier. Nobody had told it that it was not, either. It read a document, decided what came next, and the decision had nowhere to land in front of a person first.
Why we build it this way
The instinct, when something like this happens, is to patch the one gap — tell the agent not to email suppliers — and move on. That fixes the message it should not have sent. It does nothing about the next action nobody thought to write down, because the email was never the actual problem. The actual problem was that the agent's permissions existed only as the sum of what it happened to try, discovered one incident at a time, instead of as a list someone had settled before it read its first invoice.
We think the question "what may this agent do" has to be answered completely, in writing, before the agent runs — not partially, as the exceptions turn up. A scope that says what an agent should flag and stays silent on everything else has, by that silence, already said everything else is allowed. That is not a cautious default. It is the same gap this one fell through, just not yet triggered.
A scope that names what an agent should do and says nothing about the rest has already decided the rest is fine. It just has not told anyone.
The fix is not "have the agent ask when it's unsure," either. That still leaves the agent deciding what counts as unsure — the exact judgment a person was supposed to make in advance, handed instead to software, in the moment, under whatever pressure happens to be convenient that day.
How it works, roughly
Before any agent we build gets access to anything, we write its scope as its own document, reviewed the way a person would review a spec — not a paragraph inside a bigger one. It states:
- What it may read — which systems, which records, nothing assumed
- What it may do on its own — the actions it can take without asking
- Where it must stop — the point past which it hands the decision to a named person and waits
- What it does while it waits — who is asked, and what happens if nobody answers in time
The invoice-matching agent, scoped this way, still finds the handling fee. It still flags it. What changes is the next step: writing to a supplier sits past the line in its scope, so instead of sending anything, it puts the discrepancy and a drafted message in front of the person who owns that supplier relationship, and waits. That person decides whether the draft goes out as written, gets edited, or does not go at all. The agent did the reading. A person still does the deciding that was always supposed to be theirs.
A year on, a team that scopes its agents this way is not relying on anyone remembering where the line was. The line was written before the agent had anything to act on, and every agent it runs afterward inherits the habit instead of a fresh argument. The invoice agent still reads the fee, every time. It is still a person who writes to the supplier.
See how we scope an agent before it runs →