If you had asked about cognitive distortions, I probably could've answered straight away about one of those!
I think it might be an illusion of transparency. Your example somewhat aligns to the definition provided by Gilovich, Medvec & Savitsky (1998):
"... we refer to this tendency to overestimate the extent to which others can read one's internal states as the illusion of transparency." (p.332)
However it doesn't necessarily meet the criteria for someone expecting another person to know the same things that they do. The illusion of transparency is rather an exaggeration of transparency rather than an exaggeration of being epistemologically levelled.
It could be a projection bias or an assumed similarity bias - both of which might be relevant to your scenario. Projection bias refers to the tendency to assume that others share one's current emotional states and thoughts (Hsee & Reid, 2006). An assumed similarity bias refers to the bias that others are similar to the self (Srivastava, Guglielmo & Beer, 2010). The response - "well, how should have I known that. I'm not inside of your mind." is a product of those biases being invalidated.
Hopefully, these were the ones you were looking for.
- Gilovich, T., Savitsky, K. & Medvec, V.H. (1998). The illusion of transparency: biased assessments of others' ability to read one's emotional states. Journal of Personality and Social Psychology, 75(2), 332-346
- Hsee, C.K., Reid, H. (2006). Decision and experience: why don't we choose what makes us happy? Trends in Cognitive Sciences, 10(1), 31–37
- Srivastava, S., Guglielmo, S. & Beer, J.S. (2010). Perceiving others’ personalities: Examining the dimensionality, assumed similarity to the self, and stability of perceiver effects. Journal of Personality and Social Psychology, 98(3), 520–534