One Developer Built a 131-Test AI Eval Harness After a Chatbot Hallucinated a Discount
A solo developer building AI agents for WhatsApp discovered that passing all unit tests was no guarantee of safe production behavior after a lead qualification bot invented a non-existent 15% discount for a client. The incident caused no direct revenue loss but damaged trust, and the root cause was traced to subtle drift in the LLM's internal reasoning rather than any code bug. In response, the developer built a four-layer evaluation harness now comprising 131 tests, running on Oracle Cloud Infrastructure at just $0.03 per full run. Unlike standard unit tests, which verify deterministic code outputs, the harness also evaluates semantic intent, catching cases where an LLM might misclassify user messages after a model update. The developer now mandates that no new AI agent feature ships without first passing through this evaluation framework.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in