"My automated car is confronted by an 80,000 pound truck in my lane"
Trucks do not just appear out of thin air. The (single) rule is:
Always drive in a manner (allowing for the condition of the road, the vehicle and the driver) which allows you to stop the vehicle on your own side of the road in the distance you can see to be clear.
What would you do if you were a human in such a situation? You'd brake hard and hit the lorry as gently as you could. If you think that swerving, either into pedestrians, or into oncoming traffic, is even an option, I hope you won't be programming any car systems!