Completed Doesn’t Always Mean Correct
In Module 6, we built a multi-agent research system that coordinates specialists, validates results, and requires human approval before saving findings.
But completing a workflow doesn’t guarantee a successful outcome. The system could produce unsupported conclusions, miss important evidence, or save findings without approval.
Agent evaluation helps us determine whether the system behaved as expected and produced acceptable results.
What Should We Evaluate?
For our research system, we’ll focus on three dimensions:
Execution Correctness: Did the required operations finish? Safe error handling is a related but separate concern: an application may correctly detect a tool failure and stop without completing the task. In the Module 7 lab, the execution check measures completion, so a safe stop can still receive execution FAIL.
Research Quality: Are the findings complete, supported by evidence, and appropriately qualified? A valid Pydantic structure doesn’t establish factual correctness.
Governance Compliance: Did the system respect required controls, including human approval before persistence?
Consider three fictional scenarios:
| Scenario | Execution | Quality | Governance |
|---|---|---|---|
| Supported research, approved | PASS | PASS | PASS |
| Completed, unsupported conclusion | PASS | FAIL | PASS |
| Completed, saved without approval | PASS | PASS | FAIL |
All three workflows completed, but only the first passed every recorded evaluation check.
How Do We Evaluate?
We define expectations and compare them with observed results.
For example, our application can check that required evidence is recorded before synthesis, that unsupported findings are flagged, and that approval is recorded before saving.
It’s important to distinguish:
- Validation: Does the data or state meet defined requirements?
- Evaluation: Does the behavior or outcome meet our expectations?
- Authorization: Is an action permitted?
Checking that approval was recorded is not the same as enforcing authorization. Likewise, checking that evidence exists doesn’t prove it supports a conclusion.
Hands-On Lab: Experiment 7.1
We’ll examine three synthetic research outcomes to see how execution, quality, and governance affect the overall evaluation.
From the extracted lab-07 folder, run:
python3 lab7_1_success_criteria.py
On Windows, use python instead of python3 for the lab commands in this module.
The script evaluates each scenario and prints PASS or FAIL for the three dimensions.
Observe: Why do Cases 2 and 3 fail even though execution passes?
Try it: Change an evidence-support or approval value in the script. Rerun it and observe which evaluation results change.
A PASS means the script’s checks were satisfied, not that research accuracy or authorization was independently verified.
From Evaluation to Observability
Evaluation identifies whether expectations were met. To understand why something failed, we need to examine what happened during execution.
In Lesson 7.2, we’ll use execution traces to investigate agent activity, tool calls, and application behavior.
Test Your Understanding
Question 1 of 3
A research workflow completes without errors, but its conclusion is unsupported by the recorded evidence. Which evaluation dimension identifies the problem?