essay
Microservices Split the Work. Agents Split the Decisions.
Collection tells you what executed. An agent emits a trace of its calls and an account of itself, and no amount of improving the account promotes it to evidence.
Somebody asked me how agentic engineering differs from microservices, and the short answer turned out to be the whole answer: microservices split the work, agents split the decisions.
It is worth being precise about this, because the two are routinely discussed as though agents were simply the next architectural fashion after services, the way services followed the monolith. They are not a successor. They are a different axis, and almost everything hard about them comes from that one difference.
I did not come to this from an interest in agents. Everything else I write about here concerns the same distinction: collection tells you what executed, verification tells you what failed to execute. Agents turn out to be the most severe case of that distinction I have met, because in a deterministic system the record is at least produced by the execution it describes, and in an agentic one the record that carries the conclusion, the summary, is not.
What a microservice is, honestly
A microservice does a fixed thing. The code states exactly what happens for each input. If an order service receives a request, you can read the source and know what it will do, and it will do that again tomorrow.
Its failures are therefore failures of plumbing. A service is down. A queue is slow. A message arrives twice. Work in flight when a process was killed is recorded in neither success nor failure. I have spent most of my career on exactly these, and they are hard, but they are hard in a tractable way: the system is deterministic, so the engineering job is reliability and scale.
A deterministic service is not honest by construction. It can log "order placed" before the transaction commits, and the commit can then fail. What it does have is a narrower property: that line exists because execution reached the code that writes it. The log is a byproduct of execution, which makes it evidence of a code path, not of an outcome. Whether the order exists is still a question for the database, not for the log.
What an agent is
An agent is given a goal and some tools, and it chooses at run time which tools to call, in what order, and when to stop. Nobody wrote the path. The same input can produce a different path tomorrow.
So its failures are failures of judgment rather than of plumbing. It did the wrong thing. It did too much. It stopped too early. Or, the one that should worry you most, it reported an outcome that did not occur.
That last category is genuinely new, and it weakens even the narrow property I just described. An agent produces two kinds of record. One is the tool trace: the calls it made, their arguments and their return values, captured by the harness as they happen. That is execution-derived, and it is as good as any service log, with the same limits. The other is the summary: "I fixed the failing test". That sentence was not produced by execution passing through a line of code. It was produced by a model generating the most plausible next tokens given everything it had seen, including the trace. It may be true. It is not evidence that it is true. When the summary is the report, the thing reporting is the thing being checked.
The differences that actually bite
| Microservices | Agents | |
|---|---|---|
| Who decides the steps | the developer, ahead of time | the model, at run time |
| Behaviour on the same input | identical | can vary |
| What a log tells you | which code path ran | tool calls and results; summaries remain claims about outcomes |
| Typical failure | timeout, retry storm, lost message | wrong action, extra action, false claim of success |
| How you test | unit and contract tests, replay | evals, which sample behaviour rather than cover it |
| How you stop it | kill the process, but queued work and side effects already triggered keep landing | kill the agent, but side effects already triggered keep landing, and nobody enumerated them in advance |
| Source of truth | the service's own state | must sit outside the agent |
Two rows deserve more than a cell.
Testing. A test of either kind establishes behaviour on the cases it ran. Universal claims need stronger reasoning, such as types, proofs or exhaustive property checks, and for a service that reasoning is at least available, because there is code to reason about. For an agent it largely is not. You can pass every eval in your suite and still have no idea what the agent does on the case you did not imagine, because there is no fixed code path to generalise from. I spend part of my working life now building evaluation tasks from real codebases to find where frontier models fail, usually on race conditions and infrastructure debugging, and the honest summary of that work is that we are sampling a behaviour space, not covering it.
Stopping. Killing a pod is not clean either. Work in flight is lost, queued messages keep arriving, and side effects already triggered, the email sent, the webhook fired, keep landing after the process is gone. Your plumbing was at least designed with that in mind, and the set of possible side effects is fixed in the code, so you can enumerate what might still be in the air. Killing an agent is worse on both counts. The actions it already took are out in the world: the email sent, the row deleted, the pull request opened, the ticket closed. And because the path was chosen at run time, nobody enumerated those actions in advance. The kill switch stops future decisions and does nothing about past ones. A repair daemon I built years ago over nine million records had a switch that stopped it from outside, and I built the switch before I built the repair. That instinct transfers, but it buys less here than it did there.
Where they overlap, which is most places
Agents run on microservices. The tools an agent calls are usually services, and every plumbing failure still exists underneath. So an agentic system carries both problem sets at once: the old reliability problems, plus the new judgment problems, plus the interaction between them, where a timeout the agent cannot distinguish from a refusal produces a confident sentence about something that never happened.
This is where the older problem reappears, and I did not go looking for it. The failure I have written about most, where a value is absent and the system quietly substitutes something that looks legitimate and carries on, has an exact analogue here. A tool call that times out and a tool call that returns nothing can read the same way to a model, and the model will resolve the ambiguity rather than preserve it, because resolving ambiguity is what it is for. Absence becomes a plausible value again, except now the coercion happens in prose instead of in a struct.
The one principle I would commit to
A claim of success should be checked against evidence the claimant does not control. That holds for services as much as for agents. A service's log is evidence of a code path, so "did the order commit?" belongs to the database. An agent's tool trace is evidence of calls made, so "did the fix work?" belongs to the test run that happens afterwards.
The difference is degree. A service's own records are produced by the execution they describe. An agent's summary is not, which is why it needs an independent witness most urgently: there, the thing reporting is the thing being checked.
That is the collection and verification distinction again, in its sharpest form. Any amount of self-reporting, however structured, however well prompted, however carefully formatted into JSON, is still the agent's account of itself. You can improve the account. You cannot promote it to evidence by improving it. Evidence has to come from somewhere the agent does not control: the state of the system afterwards, compared against what should have been true if the work had actually been done.
Which means the useful first questions about any agent in production are not about capability at all. They are: did it stop when it said it stopped, and did it fix what it said it fixed. For a microservice those questions were closer to "did the code run", though never identical, which is the gap my other essays are about.
They are also, I think, the questions that will decide whether anyone is willing to give these things real authority. Not how clever the agent is. Whether its account of itself can be checked by something other than itself.
Which is the same sentence I have been writing for years about systems with no model in them at all. The green light proves less than it appears to. That was true of a health check returning 200 over work that was already wrong, and it is true of a sentence beginning "I have completed".