At first I thought it might have been triggered by a certain Caravan card but then I realized the script usually takes a second or two to fire.
Here's what I did..
EDE loaded down with loot...enter Primm Casino..hostility.
EDE with nothing in inventory...enter Primm Casino...nothing. ( Stood around for 30 minutes RLT )
Start transferring items to EDE in Casino...hostility.
Tested 3x each...
Rebooted OS..
And I know I put stolen items in his inventory...but I don't remember what exactly what it is was though.
I don't have time to try each item...but it seems logical that a glitch is allowing the NPCs to see EDE as a criminal caught in the act or something. Thus triggering the hostility script.