Make your system more predictable by using idempotent interfaces
Do your interfaces always produce the same result, even if they are invoked repeatedly? https://patrykbak.com/2021/04/30/idempotent-interfaces-make-system-predictable.html
Read next Finite Automata with Tarearbol