Alchemy proves domain relations across aggregates on every write

samgoodwin89 · x · 2026-11-19

samgoodwin89 demonstrates that Alchemy rules can span aggregates: a relation states what holds between two instances and is proved across every command and decision that writes to either one. Example: AClaimedNameBelongsToItsCustomer ties a UsernameClaim to its Customer. Introducing a one-line bug is immediately flagged as a violated invariant.

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

Original post →

More from coding & agent

coding & agent channel →