USC computer scientists develop tools to screen agents before they act, block risky actions in real time and trace their decisions after the fact