They need to program for two distinct behaviors, depending on the geographical area the car is in.
Or actually maybe 10-20, but the idea is the same.
California has a very pedestrian friendly law.
Other states are more friendly to the driver. It all depends on where you are.
This is still evolving. They will get it right, sometime soon.
They need to ban these cars. As long as a pedestrian steps off the curb into a crosswalk, a vehicle must stop to let the pedestrian continue to the next curb. (Of course if there is a light signal, the pedestrian must obey it.) Years ago, my wife got ticketed in SF for continuing through an open lane when the adjoining lane had a stopped car. Now she comes to a stop to see the other car had stopped for a pedestrian to cross.
If you look at pedestrian accident videos on YouTube, it seems the majority of injured pedestrians happen due to a car blowing through an open lane next to another vehicle that stopped. That's the primary reason this law exists. It doesn't matter that the pedestrian was almost 11 feet away from the vehicle; the law says the vehicle must stop for the pedestrian in the crosswalk no matter how far away from the vehicle. Bad programming in this self-driving car; if they can't reprogram it to follow the law, then it should not be allowed on public streets.