Simple request: When a passive mob sees you, it will try to evade. If possible, add line of sight. If not, mobs see you at 20 blocks, or 8 if you shift. Mobs who see you will run away. Wolves dont do this. When they first see you they will start to walk away, but if you are holding a bow or melee weapon (axe or sword) they will run away a lot faster.