Wayfarer state machine