Alphalemming
Recruit
If the AI is attacking a castle you or your faction owns (not just a siege camp, but actually attacking) and you go to assist the defenders the game spawns you inside the castle with your troops, however both your faction and the enemy faction AI behave as if it was an open world battle. They will not interact with any siege related objects, attack gates, etc., instead choosing to pile up near the gate or walls.
Also, after the battle resolves, any enemies you don't take prisoner will become prisoners in the castle, however you cannot interact with or retrieve them even if you own the castle.
Also, after the battle resolves, any enemies you don't take prisoner will become prisoners in the castle, however you cannot interact with or retrieve them even if you own the castle.