Could you please let us know which castle it is the next time the AI walks through walls so we can fix the pathing? And with gates they only work if you close them during the preparation timer. It is something we are working on fixing but is not quite as simple as one may think. Thank you for your understanding and if there is anything else I can do for you please let me know.
If I always appear prepared, it is because before entering on an undertaking, I have meditated for long and foreseen what may occur.
--Napoleon Bonaparte, 1831