Ask AI to find counterexamples to your software’s rules
A recorded Claude workflow reports state-machine models, counterexamples and draft fixes for the Claude Agent SDK. Boris Cherny says he used Opus 5.5 with Lean to find bugs and race conditions.
Use the idea in your work
- Test whether a subscription workflow can charge the same customer twice after a retry.
- Prototype a model of approval and cancellation states before shipping a new business process.
- Create an engineering explainer that walks through one race condition and the rule it violates.