The worker that knows when to stop
By Andrew GarcellEngineering judgment4 min read
Contents
One of the most useful things a software agent can say is that it needs a dependency. It sounds almost embarrassingly ordinary. Then you picture the alternative, where thousands of workers each get to decide what goes into your supply chain.
This essay is about a kind of judgment that rarely shows up in demos of what agents can do, because most of it consists of not doing things. I want to describe how Hyperfide is set up to support it, why I think it matters more as the number of agents grows, and what I look for in a model that's supposed to have it.
Thousands of workers, one supply chain
Every dependency a project takes on is a decision about trust. It pulls in code someone else wrote and maintains on their own schedule, with whatever vulnerabilities and license terms come along with it. On a team of people, that decision usually goes through a few experienced hands, and the friction of talking it over keeps the list short.
Now give the same codebase to thousands of autonomous workers, each focused on its own task and each able to install whatever helps. Every individual choice might be reasonable. A library that saves an hour is a sensible thing to want. Add them all up, though, and you get a supply chain nobody designed, nobody reviewed and nobody fully understands. The risk doesn't come from one worker behaving badly. It comes from nobody having the job of saying no.1
Recovering without asking
I also want agents to sort themselves out when they already have what they need. A tool that says exactly why a call failed lets the worker fix the next attempt. A generic failure teaches it almost nothing. And if every malformed request got sent up the chain, the decisions that really need a person would get buried.
Escalation isn't free. Every request that reaches a manager or a person takes their attention, and attention is the scarcest thing in a big system. If workers escalate everything, the few requests that need human judgment show up buried in hundreds that didn't. The reviewer starts approving out of habit, and the approval step stops protecting anything.
So the quality of tool errors turns out to be a coordination problem, not a nicety. An error that says exactly what was wrong with the call (which parameter, what was expected, what came in) lets the worker fix its own mistake and keeps the escalation channel clear for real decisions.
Two kinds of blocked
That distinction is part of what I look for in a model. Can it tell the difference between having made a mistake and having hit the limit of its authority? Both can look like a blocked task. Only one calls for another try.
In practice the signals usually point one way or the other. A mistake points back at the request: a malformed argument, a misread spec, a wrong guess about what's in a file. The worker has what it needs to fix it. A boundary points at something the worker doesn't control, like a permission, a policy, a resource someone else owns or a decision reserved for a person. Retrying won't help, and clever workarounds are exactly the wrong move. Then there's ambiguity, which points at the task itself. The spec can be read two ways and the worker can't tell which was meant. The right move there is to ask a specific question instead of guessing and hoping.
The failure I worry about most is a worker that treats a boundary like a mistake. It retries with small variations, or worse, finds a way around the boundary that technically works. From outside that can look like persistence and initiative. From inside the system it's a worker going past its authority because nobody told it, in a way it understood, that it had reached the edge.
Escalation as a skill
If escalation is going to be rare, it should also be good. A useful escalation says what the worker was trying to do, what stopped it, what decision is needed and what options it can see. The person reading it should be able to answer in a sentence.
Writing that kind of request is a skill, and like any skill it can be done well or badly. A worker that asks "can I add this library? It handles date parsing, here are the two alternatives and here's why I'd pick this one" is a lot easier to supervise than one that asks "I'm blocked, what should I do?"
We usually judge agents by what they get done. In a big system, some of the most valuable behavior is the work a worker chooses not to do on its own, and how clearly it asks for help. Knowing when to stop is a kind of competence, and I think it deserves to be measured like one.2
Notes
- 1
This isn't a worry unique to agents. Supply chain attacks on human-maintained software are well documented. Large numbers of autonomous contributors just make the same exposure bigger and faster. Back to the text
- 2
The general version is in my principles: a machine can be trusted to act without being handed unlimited authority. Back to the text