Urgent.News

What's breaking now, across thousands of outlets.

AI

Silent Regressions Have No Stack Trace: A Minimal Prompt Eval Harness

A prompt regression is the only production bug that never throws an exception and never writes to your error log. When you change a prompt, the API still returns 200, the JSON still parses, and the latency chart still looks healthy, but the model quietly stops honoring a constraint it used to follow. The reliable fix is not more careful diff reading; it is a small eval harness with golden cases,…

A prompt regression is an insidious production defect that goes unnoticed because it does not generate any error messages or log entries. When a prompt changes, the API continues to respond with a 200 status code, the JSON still parses properly, and the system maintains its normal latency. However, the model starts disregarding constraints it previously followed, resulting in subtle quality issues.

The only reliable solution is not to perform a meticulous review of prompt changes, but rather to implement a minimal test harness that includes a set of golden cases, grading functions, and a baseline comparison mechanism. This approach catches regressions that manual testing often overlooks, as humans tend to focus on typical use cases while the problematic regressions manifest in edge cases and constraints.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Turn Agent Tool Calls Into Run Receipts

The fastest way to debug a failing agent is not a better prompt; it's a better record of what the tools changed. Chat logs capture what the model said. A run receipt captures what the workspace did.

  • Record run receipts after each tool call to prevent transcript loss.
  • Wrapper around tool-call boundary provides auditable action tracking.
  • Minimal implementation needs stable run ID, git workspace, and wrapper.

More from Friday 28 August →