https://github.com/Alexofp/BDCC/blob/main/Game/InteractionSystem/PawnInteraction...
That will take you to the code for NPC decision making and their are is a lot of math in it.
Exposed status looks like it is only apart of the attacking us interaction.
The rest are based on accounting their personality scores.