Originally published on LinkedIn on 25 July 2026.
An AI generated 1,700 lines for my weekly intelligence agent in a day. It failed twice—and neither failure broke the build.
Failure #1 was ordinary. promisify(execFile) has no input option; that requires execFileSync. The prompt never reached the model. Every run quietly fell back, while an expired upstream token masked the real bug. Clean code, passed my review, dead on execution.
Failure #2 was worse: it ran, but was quietly wrong. Once fixed, I hand-labeled a 50-case test set from public procurement data to evaluate accuracy.
Recall on high-relevance cases—the ones the system exists to catch—was 7.7%. It missed 12 out of 13 critical opportunities.
Yet the pipeline looked flawless: fired on schedule, classified everything, pushed clean summaries to my phone. Without measurement, I would have relied on flawed data for a month.
The model wasn’t at fault. My prompt described strategy but never explicitly defined “high relevance.” The LLM defaulted to generic heuristics: large budget = high priority. In market strategy, that is dead wrong. A small contract from a target agency carries far more weight than a massive generic bid.
I added a four-level rubric with anchor examples:
-
Recall on high-relevance cases: 7.7% → 92.3%
-
Severe misses: 6 → 0
-
Cost per run: down 30% (the model stopped over-reasoning)
Generating code with AI is trivial now. The real challenge is that agents fail quietly—no stack traces, just plausible outputs that are wrong.
Engineering production AI means defining judgment precisely enough to benchmark, testing against ground truth, and inspecting failure paths instead of trusting happy paths.
Full transparency: My first fully unattended month starts this Monday. It isn’t proven at scale yet, and I will share the metrics—good or bad.
If you’re deploying agents in telecom or mission-critical domains, how do you measure yours? Let’s compare notes.