You can't "foil" a terror plot, when you helped set it up and knew about it before it was conceived.
another real good job for the Obama administration too.
Actually, that's exactly how you foil a terror plot. HUMINT is a critical capability, and it's nice to see the CIA using it for a change. However, by leaking that the operative was a plant, the CIA has created an OPSEC problem. AQIAP will now be on guard against infiltration to a far greater degree, and any other agents on the ground will be in greater jeopardy. Whoever leaked this needs to be found and subject to the full penalties of the law.