Teach Your Agent to Prove It's Done — Nick Nisi & Zack Proser, WorkOS
Summary
An agent deleted a production database in 9 seconds, highlighting a critical trust problem in AI automation. WorkOS engineers teach agents to self-verify their work through browser testing and persistent state checks, enabling safe autonomous code generation without manual code review bottlenecks.
Key Takeaways
- Agents can generate code faster than humans review it, creating a signal-to-noise ratio problem that makes traditional code review unsustainable at scale. Shift verification from manual PR review to automated self-reporting mechanisms.
- Teach agents to verify their own work using browser automation tools like Playwright—checking for UI success messages, form submissions, and page state changes. This self-reporting creates an auditable trail without requiring human review.
- Distinguish between UI-level changes and persistent state verification. An agent may update the UI successfully, but if data doesn't persist after a page reload, the action failed—agents must check both layers.
- Trust agents gradually through cumulative verification reports rather than all-or-nothing human oversight. Each successful self-verified action builds confidence in the agent's reliability over time.
- Provide agents with a workbench repository containing interactive examples, step-by-step guides, glossaries, and AI-trained support to enable hands-on experimentation and knowledge transfer without constant human supervision.
Related topics
Transcript Excerpt
[music] >> Hey, welcome. Welcome to Beyond Done. Uh we're going to get started here with this workshop. We got a lot to pack in and uh we want to make sure that we have time for questions and um uh getting getting like everyone situated. So, we're going to go ahead and get started. >> [clears throat and cough] >> So, what we mean by Beyond Done, just to like jump straight into it, um you probably saw a tweet about this incident that happened a while back uh where an agent just started deleting production databases. And in 9 seconds, everything was gone. Um that is what we want to help you prevent here today uh while still trusting your agents and not having to look at every line, even look at every PR. Like this is where we think things are going and how do we get there? How do we make thi…
More from ai.engineer
- The AI Content System Behind 200M Views — Sarah Chieng, Cerebras & Cova Lee, OpenAI
- Does Code Quality Still Matter? It Depends on This — Max Kanat-Alexander, Capital One
- Insurance Claims Are AI's Messiest Data Problem — Denys Linkov, Wisedocs
- Stop Telling Agents How — Dan Barrett, Raymond Weitekamp & Jose Montes de Oca, OpenProse
- Memory-Aware Agent Harnesses for Anti-Money Laundering — Nacho Martinez, Oracle