Maybe we're just over thinking this?
Buy an Ethereal Reaver or four just in case (CP).
A rod of negation (to get rid of walls of force/prismatic).
A rod of absorption (why not).
An Anti-magic Torc or forty with a custom activation that is somantic based only.
Have access to White Raven Hammer.
Glue an Anti-magic Torc to the sword's blade and plane shift to the ethereal plane before battle.
Show up to battle and trigger one of the torcs, now everything around you loses it's magical effect and you're immune to nonmagical effects from the material plane, fun times. Ignore the dragons, fly over to the caster and smack him senseless. All of his contingencies must trigger before he enters an anti-magic field and you ignore pretty much all of them that are not meant for his buffs or flee tactics.
If it's a buff, you'll render it worthless when you get close.
If it's a planes shift, he ran, you won.
If it's a teleport but not leave battle, chase him, use a belt of battle to help ensure to get to use white raven hammer on him. You can buy more torcs than he has 7th, 8th, & 9th level spell slots since fleeing to his plane would count as running away.
A winning tactic most of the time. Fallible by the wizard spending his standard action shifting into the ethereal plane (in which case you removed one of his standard actions at the cost of using a sword in combat, it's so worth it), or setting up multiple contingencies strictly meant to DDoor him away from melee. Which may not work anyway depending on it's wording since ethereal creatures may very well be trying to attack you all the time and your contingency does not fire off randomly while you take your morning stroll.