Inside Alchemy PR #3260: invariants-as-code, 27 commits bringing Z3 proofs to domain models
samgoodwin89 · x · 2026-11-19
samgoodwin89 shares the merged alchemy-run/alchemy PR #3260 (27 commits) implementing formal verification. Invariants and transition rules are declared directly on Aggregate/Model definitions (NeverOverdrawn, AClosedAccountStaysClosed, OnlyAnAgentChangesTheOwner, cross-aggregate relations like NoTransferLeftPending). Core idea per the PR: write down what must always be true, and one test proves it or finds the breaking command sequence.
More from coding & agent
- Open-Source EggLab Brings Local Image Gen, Editing and an AI Design Agent to PhotoCraft — AdditionCorrect2929 · 2026-11-19
- 40+ Free AI Learning Resources: Videos, GitHub Repos and a Full Roadmap — nikola_mr64990 · 2026-11-19
- Alchemy merges Z3-based formal verification: declare invariants, get proofs of correctness — samgoodwin89 · 2026-11-19
- One test to prove your model never violates its invariants, via Z3 — samgoodwin89 · 2026-11-19
- Who Authorized the Agent? Reddit Debate on Proving AI Agent Actions in Court — icccpda · 2026-11-19
- GPT 6.2 Astra builds interactive 3D web app of Singapore Chinatown in one shot — OpenAIDevs · 2026-11-19