// 01 / About this session
Most teams test agents by reading transcripts or asking an LLM judge. That stops working once agents take actions you can’t undo, like refunds, payments and account changes. An agent can say “done” after it refunded the wrong customer.
This talk teaches state-based testing instead. You run the agent against a replica of the real system, diff the state before and after, and grade on what actually changed. Attendees will learn how to build test environments that match the real API and check them for drift, write state-based assertions instead of transcript-based ones, inject failures and fast-forward time to catch delayed consequences, and generate test cases automatically and run them in CI.
In Sparta’s runs, a transcript-reading judge missed 11 of 80 critical failures that state checks caught, and every miss was money going to the wrong customer. Attendees will leave with a repeatable way to prove an agent is safe to give write access.
Skills you’ll practice
Building agentic systems
Evaluation-driven development
Reviewing the work
// 02 / Speakers

Arya Kanna
CEO & Co-Founder, Sparta
CEO and co-founder of Sparta, an a16z speedrun company building Worlds, a testing platform for AI agents.
AI DEV · BY DEEPLEARNING.AI
Join us at AI Dev
Meet the engineers shipping AI to production, and leave ready to do it yourself.