Most internal mental states that have any impact on the actions of an individual are leaky. That is because they affect actual real world actions.
So given a set of actions you can infer a likely set of mental states — this is also done in the court room. Can you always infer with 100% accuracy and with every colorful detail fleshed out? No. Do you typically need to? No.