Whenever your eyes connects with a random passer-by you instinctively shift the focus elsewhere. Is this merely a part of the 'politeness' social construct or a form of mirroring?

Making eye contact would be a break from mirroring and going back to an unfocused gaze would be a return to mirroring, a comfortable state where there is no tension or expectation to interact.