> and all of a sudden it’s ok to conclude someone is a spy and fire someone based on their interactions with the spy.
That is not social cohesion.
It's national security law and immigration law. You will find that in most countries, the question of whether someone is a spy for a foreign country and should be imprisoned for it in the country rests on them being a citizen. If they are not a citizen, they are just sent home.
It's very difficult to prove someone is a spy in a court of law without the admission of their home country — which will never be given.
But that doesn't make them innocent of being a spy in a way that you can just tolerate them milling around.
Alice Huang would be wise not to visit the USA; she will be detained for national security reasons, and it might be a while before she is swapped.
Jensen Huang will not have been fired because of his interactions with a spy. If it had to do with her, he will have been fired because he was warned by the security services she might be a spy and carried on.
(Indeed, it's irrelevant, since he could be and ultimately perhaps was fired for conducting a romantic relationship with a subordinate without telling the board, or other issues of simply lacking candour with the board.)