[feature] Scanner knows state machine and evaluation.