Jamie KNEW they were coming to Castlery Rock and made planned accordingly. I would think Cersi and Jamie would expect an all out frontal assault on KL.The fact that he knerw of thier plans beyond a shadow of a doubt and HAD known of them makes me think Varys let it slip