on Message
inline fun <T : AgentMessage> onMessage(noinline predicate: (T) -> Boolean = { true }, noinline block: StateAction.(T) -> Unit)(source)
Handle messages of type T arriving in the owner's mailbox while this state (or any substate) is active. When a message arrives, the runtime walks the active chain leaf-to-root and fires the first matching handler — most-specific wins.