Testing an agent you can’t predict
Agents word things differently on every run, so test facts, not sentences. A fixed set of cases is checked in three layers (answer text, tool trajectory and a rubric-based judge model), and a pytest gate in CI fails the build when quality drops below a threshold.