There was a bug with invisibility. Its fixed now, and the AI unit will not walk towards an invisible unit unless the AI unit has illusions immunity.
Today I noticed the upvote button, because I took a massive malus to Perception as a flaw at character creation.