The TVTropes Trope Finder is where you can come to ask questions like "Do we have this one?" and "What's the trope about...?" Trying to rediscover a long lost show or other medium but need a little help? Head to Media Finder and try your luck there. Want to propose a new trope? You should be over at You Know, That Thing Where.
Sounds like The Window or the Stairs; since Alice doesn't exactly sound at all nice in this situation, it could be taken from that that this was the "better" outcome for the team, as opposed to them catching him in the act and being done with it.
Edited by Coachpill Silver and gold, silver and goldI think it's just Right for the Wrong Reasons. Or Moral Luck.
Edited by MetaFour I didn't write any of that.This is what Kick The Son Of A Bitch used to mean, but it got deleted and disambiguated because it got misused as Pay Evil unto Evil too much.
Alice does something morally reprehensible to Bob. However, it's revealed that Bob was Evil All Along, so Alice's actions could be taken as Pay Evil unto Evil... except it's made clear Alice had no idea Bob was evil.
e.g. Bob the Chew Toy (his possessions keep getting stolen, his car graffitied, his house vandalized) is revealed as The Mole. Alice asks if he joined the team with the intent of bringing it down from inside. Bob smugly confirms this, gloating that the rest of the team never suspected him.
Alice merely looks relieved before revealing that she was behind Bob's woes, and even more than those seen onscreen: his lunch routinely being eaten, his car stolen, multiple fetishistic pornographic magazines getting sent to his address, that time he woke up in an alleyway behind a gay bar with no memory of last night and trouble sitting down, etc.
But since Bob was a traitor before joining the team, it's not a Mistreatment-Induced Betrayal and so Alice can claim the moral high ground. Bob is left sputtering in outrage at the reveal and Alice's sociopathic detachment (the rest of the team isn't exactly happy either).