Self driving cars are still decades away

Delivery drivers today have to contend with loose dogs, and the recipients with porch pirates.
In the future the incident will be recorded on multiple cameras from the truck and the delivery dog. Amazon (the only remaining place to buy things) will instantly file interfering with commerce charges against the jerky kid (face ID and all), file a complaint against the dog’s owner (again, face ID for dogs plus microchip scanning), and black list your address as unsafe for delivery.

Like I said, in a world where computers are powerful enough and programing is sophisticated enough for true self driving, lots of things will be easy. The truck can already detect dogs and kids, because it knows to watch for them and prepare for them to run into the street, so no problem picking them out of a video when something goes bad.