David Hare addresses one aspect of this in his BAFTA Guru Screenwriters interview when he talks about
"Who is the third who always walks beside you?"--one valid function for a character in a scene is to be a third party complicator who makes the scene more difficult for your protagonist.