Evaluation & Testing
AI evaluations: what a passing result proves and what it leaves open
Separate application tests, production evaluation and evaluator calibration so passing scores do not hide missing evidence or unseen failures.
An AI evaluation measures behavior on a chosen input under a chosen rule. A passing result is useful only when you know which behavior, data and evaluator produced it.
Separate three evaluations
An application test asks whether the agent handles a case correctly. A production evaluation applies a rule to observed traffic. Evaluator calibration asks whether that rule agrees with trustworthy labels. Passing one does not establish the other two.
For example, a model judge may consistently mark a pending refund as complete. The evaluation pipeline can be operationally reliable while the judgment is wrong.
Give the case an explicit boundary
Use a synthetic refund action with a request ID, tool result and assistant response. At the chosen boundary, state whether the refund is confirmed, rejected, still pending or unobservable because evidence is missing.
Write failure conditions, exclusions and insufficient-evidence rules before reviewing predictions. An agent that honestly reports rejection should not fail a rule intended to detect false claims of completion.
Use different sets for development and assessment
Development cases help you improve prompts and rubrics. Keep separate cases for assessment, including examples collected or written without tailoring them to the current judge. Record who labeled each case, what evidence they saw and how disagreements were resolved.
When you repeatedly inspect a test set while making changes, treat it as development data. Adding more paraphrases of the same case does not necessarily add independent coverage.
Inspect the errors behind the average
Report false alerts, missed failures and unresolved cases by workflow. Keep cases with incomplete capture visible in a separate count instead of removing them from the denominator without explanation. A single aggregate score can hide a regression on a small but important action type.
Phoenix’s documentation connects traces, evaluation and experiments; comparable workflows exist in other tools. Whatever platform you use, the measurement design remains your responsibility.
Write an evaluation contract before choosing a judge
An evaluation contract names the task, the evidence needed, the decision rule and the outcomes the evaluator may return. For “Did the agent cancel the order?”, the final response alone is inadequate. You need the intended order, the cancellation operation and its authoritative state. For “Was the response clear?”, a human rubric may matter more than a database receipt.
| Field | Completion-policy example |
|---|---|
| Scope | A response that claims a specific cancellation completed |
| Required evidence | Matching action, target, operation and outcome available before the claim |
| Supported | The authoritative receipt confirms completion |
| Contradicted | The receipt explicitly rejects the action or says it remains pending |
| Unverified | The relevant receipt is missing, late or for a different operation |
Calibrate on disagreements, then freeze the rule
Have two reviewers label a small development set independently. Discuss disagreements about the completion boundary, not just the final label. “Cancellation requested” may be correct while “order cancelled” is not. Update the rubric with examples and record its version. Then assess a separate set that did not guide those edits.
Keep evaluator errors separate from agent errors. A false alarm is an evaluator defect even if the agent has other problems. Missing evidence is a capture limitation even if the answer happens to be correct. A model judge’s explanation should cite available evidence; fluent reasoning is not independent verification.
Report enough numbers to reveal the failure mode
Suppose a synthetic set contains 20 genuine failures and 80 healthy runs. A detector flags 15 failures and 10 healthy runs. Precision is 15/25 = 60%; recall is 15/20 = 75%. The overall accuracy is 85%, which hides both ten false alerts and five missed failures. Report the underlying counts, sampling method and any abstentions.
Those calculations require trustworthy reference labels for the assessed set. They do not transfer automatically to a different production mix. Use the runnable evidence lab for a deterministic structured example, then add application-specific semantic checks and independently reviewed cases. Passing its ten fixtures is a software check, not evidence of production detector accuracy.
Sentrial’s current general-model detector also needs this calibration. A custom classifier is worth considering when a stable, independently measured gap and training-permitted data justify it. See the sampling and review guide before interpreting production scores as an accuracy claim.