Lenny’s Newsletter · Subscriber post · Metrics, data & experimentation · Building AI products

Advanced evals: How to find (and fix) hidden AI failures in your product

Why you should never skip error discovery

Lenny RachitskySep 22, 202614 min♥ 377
SourceLenny’s Newsletter
KindSubscriber post
PublishedSep 22, 2026
Readers♥ 377
Originallennysnewsletter.com ↗
N:

Hamel Husain and Shreya Shankar argue that most teams skip error discovery and jump straight to writing eval metrics, which leads to measuring the wrong things. The post presents error discovery as the eval equivalent of product discovery, walks through a three-step workflow using a coding agent and a free eval skills plugin, and cautions about criteria drift and the limits of automated detection.

Subscriber post — summary only

01Key takeaways

  • Error discovery should come before writing metrics, since early metrics often rest on unexamined assumptions about what matters.
  • Reviewing examples shifts your definition of good, so define success criteria after reviewing failures rather than before.
  • Agents catch obvious in-trace failures but miss product-judgment issues and produce false positives, so keep a human in the loop.
  • Use diverse samples, follow up on each failure type, and annotate roughly 100 traces before trusting automated suggestions.
  • Render outputs the way users see them and expose metadata like channel so reviewers can filter and spot patterns.
“This is why error discovery is the eval equivalent of product discovery.”Hamel Husain and Shreya Shankar · Lenny’s Newsletter
“Good error discovery identifies which failures are worth measuring and tracking over time.”Hamel Husain and Shreya Shankar · Lenny’s Newsletter

02Frameworks mentioned

Summary and takeaways written by PM Atlas; quotes are short excerpts. © the original author.