On a self-driving car, a sensor reading is never trusted just because it arrived. A tracker following a car on the road expects it to move a little between two frames. If a detection suddenly jumps three lanes in 100 milliseconds, the tracker does not steer around a ghost. It flags the reading as noise and keeps the last state it trusted.
I work on perception for autonomous vehicles, and this rule is so basic in robotics that nobody writes blog posts about it. In AI agents, it is often missing.
Where agents trust too much
An agent chains steps. A tool returns something, the model reads it, and the next step acts on it. When the tool returns an empty list, a half-parsed JSON or an error page with status 200, many agents read it as real data and keep going. The bad value travels three steps down the chain and turns into a confident, wrong answer.
The model did nothing wrong. It received noise and nobody filtered it.
Three checks before the next step reads anything
- Shape. Validate every tool result and every structured model output against a schema. Missing fields, wrong types or truncated JSON fail here.
- Range. Check values against what is physically or logically possible. A price below zero, a date in 1970, a delivery time of four years: all of these pass a schema and all of them are wrong.
- Consistency. Compare the new value with what the agent already knows. If the customer had three orders one step ago and has 3,000 now, treat it like the jumping car: suspicious until proven otherwise.
"No data" is a valid answer
The most important rule from the tracker: a rejected reading becomes "no data", never "use it anyway". For an agent, "no data" triggers the fallback path: retry the tool, use a cached value, or tell the user what is missing.
An agent that says "I could not get a reliable price from the supplier" is more useful than one that quotes a negative price with full confidence.
See the full set in Vilnius
Output validation is one of five habits from self-driving cars I apply to AI agents, and I present all five at Build Stuff 2026 in Vilnius on Thursday 3 December at 17:15 in Zeta 1.
Tickets are at https://buildstuff.events, and the code 2026SPEAKER_20 gives 20% off.