~/talk

You Can't assertEquals an Agent: A Tester's Guide to Agentic Quality

Talkat TestMu Conference 2026 · 2026-08-19..08-21· [ai-assisted-development, testing]
slides:none on file

Shows that assertEquals fails for agentic workflows and gives a five‑layer playbook implemented in demo code: a refund bot that logs tool calls and a refund ledger. Tests count model turns to check reasoning / count model turns, detect missing or out‑of‑order tool calls, catch session leaks by running two users, and enforce a recursion limit (8) to avoid burning tokens. Uses Agent Evals, Microsoft Agent Framework and DeepEval; validates outcomes against the backend ledger and uses an LLM judge to flag mismatches (e.g., claimed ₹100 vs actual ₹52).

AI-written summary · about

  1. 0:00You Can't assertEquals an Agent
  2. 1:39Speaker Intro - Gaurav Khurana, Senior Test Consultant, Microsoft
  3. 2:45Everyone Has Used assertEquals - Why It Breaks Here
  4. 3:46Testing Systems That Think for Themselves
  5. 4:48Non-Determinism: The Same Question, a Different Answer
  6. 5:50A Five-Layer Model You Can Remember in One Sentence
  7. 6:51How a Traditional Deterministic Booking System Works
  8. 8:24What Changed: The Model Decides Which Tools to Call, at Runtime
  9. 10:29The Non-Returnable Biscuit: Would You Approve This Refund?
  10. 12:00Correct Agent vs Broken Agent - Identical Outputs
  11. 13:02The Agent That Skipped the Policy Check and Refunded Anyway
  12. 14:02Why You Cannot Rely on the Response - the Path Is What Matters
  13. 15:06An Agent Is a Model in a Loop With Tools
  14. 16:07The Refund Agent Scenario and the Irreversible Step
  15. 17:38"Real Teams Make Outcomes Outstanding" - the Mnemonic
  16. 19:09R - Reasoning: Counting How Many Times the Model Was Called
  17. 21:12T - Tools: Detecting a Required Tool That Was Never Called
  18. 22:45Checking Tool Call Order, Not Just Presence
  19. 23:46M - Memory: When Alice's Thread Leaks Into Bob's
  20. 26:24Always Test With At Least Two Users
  21. 26:55O - Orchestration: What Happens When a Service Returns 500
  22. 28:29Handling Failure Gracefully and Watching the Telemetry
  23. 29:32Setting a Recursion Limit So the Agent Doesn't Burn Tokens Forever
  24. 32:06Existing Eval Libraries: Agent Evals, Microsoft Agent Framework, DeepEval
  25. 33:37Orchestration Also Means Junk Tool Data and Multi-Agent Routing
  26. 37:10O - Outcomes: The Refund It Claimed vs the Refund Ledger
  27. 39:15Checking the Backend, Not the Agent's Own Report
  28. 40:46LLM as a Judge for Grounding vs Tone
  29. 42:18Recapping the Five Layers
  30. 44:07The "Are You Sure?" Trick for Finding Issues
  31. 45:22Assert the Path, Not Just the Destination - Test Like Grey Box
  32. 46:52Q&A: Measuring Consistency Without Forcing Determinism
  33. 48:54Q&A: How to Check for Drift in Agent Testing
  34. 50:25Q&A: Comparing Different Agent Responses Using Golden Data Sets
  35. 52:00Q&A: Why the Execution Sequence Beats the Final Response
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.