They definitely a bit wonky.
I had some cases when instead of my attacking the enemy it used an AoO against me.
And I saw another thread with complaints about friendlies beeing targeted with AoO.