WhoBuilt

Spec-Driven Testing for Agents With A Brain the Size of A Planet

May 31, 2026· 13 min· 3.4K views·Watch on YouTube

Speaker

Steven Willmott, CEO of Safe Intelligence, discusses how to specify and test AI agents at the AI Engineer event.

Why bigger agents can be harder to trust

Willmott challenges the assumption that a smarter, larger model is always better or safer. A capable model may understand harmful instructions hidden in a poem, while an agent with a broad remit has more ways to be exploited and more behavior to test. For deployment, he says, teams need to balance capability, safety, cost, and speed.

Define the agent’s specification

A useful specification goes beyond input and output examples. It can include ground-truth datasets, business rules such as discount and refund limits, relevant destinations or terminology, domain knowledge, user permissions, and robustness requirements. For example, a customer-facing agent should be tested against typos and rephrasings, not only clean inputs.

Build task-specific tests beyond the eval set

Willmott recommends benchmarks tailored to the agent’s task and role, including the context needed to judge its answers. He relates these to integration tests and says implicit requirements should be made explicit. Agent cards and prompt-management context can help describe an agent, but teams still need to define which variations in a request are valid.

Use the specification for security and robustness

Willmott describes using an agent’s intended tasks and capabilities to guide security checks, since the agent may be most vulnerable in the domains it is designed to handle. Teams can also vary inputs to see how reliably it performs across a range of requests. He says these ideas apply regardless of the testing platform.

Keep tests independent and versionable

Willmott recommends specifying behavior independently of the agent implementation so tests can carry across platforms such as LangSmith and Vertex AI Agents. Running those tests can reveal robustness gaps and support iteration, a process he compares to a makeshift form of reinforcement learning around the model. He sees potential in keeping specifications in a version-controlled repository and importing them into different tools.

Takeaways

  • A larger model can understand harmful instructions that a smaller one misses, so test capability and risk together.
  • Write down business rules, domain terms, permissions, and task context as part of the agent specification.
  • Test realistic variation, including typos and rephrasing, alongside standard evaluation examples.
  • Use the agent’s intended tasks and tools to identify where security testing should focus.
  • Keep behavioral tests independent of the model platform so they remain useful when infrastructure changes.

Mentioned in this talk

Search inside this talk

What was claimed 7

Related talks