Explicit states instead of flags and nested ifs: a turnstile by hand with an enum and match, then @deckyard/fsm for an order life cycle with guards, hooks, a definition check, TOML loading, Mermaid diagrams, tests and pitfalls. Based on Jennifer 0.27.0.