I was watching "Molly's Game" where a conversation between Molly and her psychologist dad appears in the later life of Molly (Molly didn't have very good relationship with her dad and wanted to piss him off often when she was young).
The transcript:
Dad: I knew that you know that I cheated with mom
Molly: I didn't know that till I was 20 years old
Dad: You knew it when you saw me with someone in my car, you were 5 years old, you didn't know what you saw but you have known since then
What is this psychological effect where one doesn't yet know that he/she knows something and perhaps acts out something to its effect?