It is true that I had not anticipated the foolishness of the Grey Wardens but as for you defeating Corypheus, no, I did not know but I had confidence that you would. You were more powerful than him by then and he knew it. Why else would he rush to the Breach instead of falling back and reestablishing his power? There were endless things he could have done to destabilise Thedas again while he recovered.