That's funny, because the goal is often to get at the truth. Is that an agenda you find objectionable? Do you see something noble in people who are harmed by the truth becoming known? "Bad cop" is not far from "devil's advocate" and the tension either creates is often useful to all involved. Is role-playing the same as deception?
> It's a way to behave toward an adversary
"Adversary" is very situational, and doesn't necessarily imply ill feeling - certainly not to the game theorists or jurists who often use the term. It's pretty common to have someone you generally want to work with be an adversary in a particular context. It's a role, and civil people get over it. In fact, codes of conduct - formal or otherwise - are often the very thing making that possible. They keep the adversarial role "in scene" and prevent it from turning it into permanent antipathy. Again, consider the "adversarial" nature of our justice system, one of the most formal and rules-bound environments most of us will ever see, whose participants are often on quite cordial terms outside the courtroom.
Yes, I think that's the wrong agenda to have when you're collaborating on software. A pull request shouldn't normally be an interrogation to figure out whether the person who wrote the code is lying.