Your Agent Endpoint Is a Distributed System Pretending to Be a Function Call
The most dangerous line of code in a modern AI application looks completely innocent:
result = await agent.run(user_query)
It reads like a function call. It has a name, it takes an argument, it returns a value. Your IDE autocompletes it. Your type checker is satisfied. And that single await is hiding a remote, multi-hop, partially-failing distributed system behind the syntax of a local procedure. The gap between what the code looks like and what it actually does is where most production agent incidents live.
