Introspectable, language agnostic, finite state machines