Before I built AI agents, I built perception for autonomous vehicles. I work with LiDAR, on-board cameras and semantic segmentation, and the first thing a vehicle teaches you is that time is part of correctness.

A typical automotive LiDAR spins at 10 Hz. That gives the whole pipeline about 100 ms per frame: capture, preprocessing, inference, planning. If one stage runs late, the car does not wait for it. The next frame arrives, and the vehicle has already moved.

When I started connecting AI agents to real tools, I kept running into failures I had seen before on the robot. A tool call hangs and the whole run freezes. An API goes down and the agent keeps calling it. A model returns garbage and the next step acts on it anyway. Nobody can say what happened, because nothing was recorded.

Robotics solved these problems years ago, because a failure on a vehicle costs more than a bad demo. On Thursday 3 December, I present five of those habits at Build Stuff 2026 in Vilnius. Here is the short version.

1. Give every run a deadline budget

On a robot, every stage owns a share of the cycle, and a stage that runs over its share gets cut so the loop can move on.

In an agent, the same idea becomes three nested limits: a timeout on every tool call, a budget for each step, and a total budget for the run, plus a cap on steps and cost. The part people forget is the last one: decide in advance what the agent does when the timer fires. Cancel, fall back, and say what was skipped.

2. Add health checks and fallbacks

Every sensor on a vehicle sends a heartbeat. When it goes quiet, a watchdog switches the system into a named mode: degraded, minimal, or safe stop. Nobody writes that logic during the incident.

Agents need the same ladder. One retry with backoff, then a backup tool or a cached answer, then a human. Add a circuit breaker, so the agent stops calling a dead service after a few failures.

3. Reject noise before you act on it

A tracker that sees a car jump across the road between two frames treats it as a detection error and keeps the last trusted state.

In an agent, every tool result and every model output should pass a schema and range check before the next step reads it. Empty, malformed or out of range means "no data", never "use it anyway".

4. Trace every step

Robotics teams record whole drives and replay the minute around a failure on their desk until they understand it.

The agent version is a trace for each step: the input, the prompt version, the tool and its arguments, the raw output, the latency and cost, and the decision taken next. With it, "the agent was slow and weird" turns into a bug you can reproduce.

5. Put humans where errors cost the most

Test vehicles drive with a safety driver, an emergency stop, and clear operating limits.

For agents, sort actions by two questions: how much does a mistake cost, and how hard is it to undo? Reading and drafting run alone. Payments, deletions and production deploys wait for a person.

The failure that convinced me

At Apidays Munich, I ran a live demo of an agent calling a badly designed API. It made six calls and got six bare 500 errors, with nothing it could recover from. The model was fine. The system around it gave it no deadline, no fallback and no useful error.

That is the core of my talk: the model is rarely the problem. The reliability lives in the system around it.

Come say hi

I speak on Thursday 3 December at 17:15 in room Zeta 1 at Build Stuff 2026, the 15th edition of the conference, at the Radisson Blu Hotel Lietuva in Vilnius. The theme this year is The Age of Agency, which fits this topic well: building software that acts, and deciding where it should stop.

Tickets are at https://buildstuff.events, and the code 2026SPEAKER_20 gives 20% off.

BuildStuff15 @buildstuffconf