I'd rather that the software sense it's surroundings and make an assessment of risk for various possible actions. In this case, backing up a bit since there was no one behind it would have been the safest option.
And what if the truck keeps backing into it? Does the car just keep avoiding it forever? When is the truck driver expected to take responsibility for doing something technically illegal.