Agent Systems: Evaluation and Monitoring
Problem
Fluent output is a weak proxy for task success. A system can produce attractive answers while retrieving irrelevant evidence, taking excessive steps, or silently violating a constraint.
Evaluation layers
- Artifact evaluation: correctness, completeness, format, and provenance.
- Trajectory evaluation: tool calls, intermediate artifacts, retries, latency, cost, and stopping decisions.
- System evaluation: reliability, safety, user usefulness, and behavior under degraded models, missing tools, or empty retrieval.
Mathematical metrics
Test hypothesis preservation, citation accuracy, proof-checker acceptance, counterexample detection, useful-gap detection, and reproducibility. Use deterministic tests where possible; use model judges or humans for criteria that cannot be formalized, and record their uncertainty.
Evaluation-driven development
Build a golden set containing ordinary cases, edge cases, and known failures before optimizing prompts or architecture. Monitor drift after deployment and turn recurring failures into regression tests.
Figure
Figure: evaluators inspect both the final artifact and the trajectory that produced it.
