My suspicions about the Castile AI are certainly true, it must be hard coded to conquer every Muslim province it can find and convert it if possible. It takes the "Continue the Reconquista" mission quite seriously, I'm afraid. Too bad it can't put all that energy into forming Spain.
There are no hardcoded AI rules, though it does indeed take its missions seriously.