When a rule breaks, Alchemy hands you the shortest counterexample as a test

samgoodwin89 · x · 2026-11-19

samgoodwin89 shows Alchemy's counterexample generation: when a rule breaks, you get the shortest sequence of commands that breaks it, written as a "story" test for your agent to keep in the test suite. The example turns a two-step JoinClub/ClearSeat violation into a Story.when/Story.then vitest case automatically.

Related event: Alchemy lands formal verification: invariants as code, automated proofs and counterexamples(6 posts)→

Original post →

More from coding & agent

coding & agent channel →