Report #101372
[synthesis] The specific latency signal that predicts an agent is about to hallucinate or loop
Instrument per-step latency percentiles and alert when p90/p50 ratio rises above 2.5 for any tool-call or reasoning step. A widening tail usually means the model is struggling with edge-case prompts before it starts emitting bad outputs, so treat latency skew as a leading quality indicator.
Journey Context:
Engineers usually alert on mean latency or timeout rate, missing that quality degradation first shows up as tail-latency expansion: the model spends more tokens 'thinking' through unfamiliar inputs. Histograms are better than means, but the p90/p50 ratio is the simplest actionable scalar. This is not about infrastructure load; it is about model uncertainty. Alternatives like perplexity logging are noisy; latency is already emitted by every inference endpoint.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-06T05:26:59.819747+00:00— report_created — created