{"slug": "what-self-driving-cars-taught-me-about-reliable-ai-agents", "title": "What self-driving cars taught me about reliable AI agents", "summary": "A developer who previously built perception systems for autonomous vehicles is presenting five reliability practices from robotics that apply to AI agents at Build Stuff 2026 in Vilnius on 3 December. The practices include nested timeouts and step/cost budgets, watchdog-driven fallback modes with circuit breakers, schema and range validation of tool outputs, per-step tracing for reproducibility, and human approval gates for costly or irreversible actions. In a live demo at Apidays Munich, the developer's agent made six calls to a poorly designed API and received six bare 500 errors, illustrating that \"the model is rarely the problem\" and reliability lives in the surrounding system.", "body_md": "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.\n\nA 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.\n\nWhen 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.\n\nRobotics 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.\n\nOn 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.\n\nIn 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.\n\nEvery 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.\n\nAgents 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.\n\nA tracker that sees a car jump across the road between two frames treats it as a detection error and keeps the last trusted state.\n\nIn 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\".\n\nRobotics teams record whole drives and replay the minute around a failure on their desk until they understand it.\n\nThe 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.\n\nTest vehicles drive with a safety driver, an emergency stop, and clear operating limits.\n\nFor 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.\n\nAt 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.\n\nThat is the core of my talk: the model is rarely the problem. The reliability lives in the system around it.\n\nI 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.\n\nTickets are at [https://buildstuff.events](https://buildstuff.events), and the code 2026SPEAKER_20 gives 20% off.", "url": "https://wpnews.pro/news/what-self-driving-cars-taught-me-about-reliable-ai-agents", "canonical_source": "https://dev.to/hussein_loubani/what-self-driving-cars-taught-me-about-reliable-ai-agents-42m8", "published_at": "2026-11-29 17:09:31+00:00", "updated_at": "2026-11-29 17:15:24.596099+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "artificial-intelligence"], "entities": ["Build Stuff 2026", "Apidays Munich", "Vilnius", "Radisson Blu Hotel Lietuva"], "also_reported_by": [], "takeaway": "Wrap every agent tool call in a timeout plus per-step and per-run budgets, define cancel/fallback behavior in advance, validate tool outputs against schema and range checks, and trace each step so failures are reproducible.", "recommendation": {"advice": "Add nested timeouts, step and cost caps, circuit breakers and schema checks to every agent tool call, and gate irreversible actions behind human approval.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/what-self-driving-cars-taught-me-about-reliable-ai-agents", "markdown": "https://wpnews.pro/news/what-self-driving-cars-taught-me-about-reliable-ai-agents.md", "text": "https://wpnews.pro/news/what-self-driving-cars-taught-me-about-reliable-ai-agents.txt", "jsonld": "https://wpnews.pro/news/what-self-driving-cars-taught-me-about-reliable-ai-agents.jsonld"}}