DET-187 · agent · confidence Medium
Comparing Test Behavior with Real Behavior
Use the agent's pre-release test results as a yardstick for how it behaves in production.
An agent that behaves well in tests and differently in production is a problem whether the cause is drift, a missing test case, or a model that detects it is being evaluated. This detection stores the evaluation record, including prompts, tool use, refusal rates and metrics, and ties it to the exact deployed configuration.
It then builds the same measurements from live traffic and compares. Look for lower refusal rates, more tool calls, fewer escalations, or weaker results on known tasks. Replaying real, sanitized production prompts through the test harness makes the comparison fair.
- Data sources
- Evaluation harness resultsAgent gateway logsModel registryChange management records
- Platforms
- AI Platform
Logic
Per release, store eval metrics m_eval = {refusal_rate, tool_calls_per_task, escalation_rate}. Weekly compute m_prod from live logs. Alert when |m_prod - m_eval| / m_eval > 0.25 for any metric, then replay 100 sampled prod prompts in the harness and compare outputs.False positives
Real users ask different things than test sets. Weight production samples by task type before comparing.