One of my greatest fears when riding a lot in the city was being run over from behind. This is more common on country roads, where I believe it's the leading cause of cyclist fatalities in collisions, but I still saw it as a constant threat in the city. Especially when vehicles would intentionally tailgate me in the lane, rev their engine to speed toward me, slow down and repeat, etc.
In _Zodiac_, by Neal Stephenson, the author describes two opposing frames of mind that a cyclist must maintain simultaneously in traffic: 1) I'm invisible, no car can see me and no matter what I do to make myself visible a car will ignore my presence and drive through me, and 2) I am extremely visible and have a target on my back, and every car is intentionally trying to run me over. Only by riding in a way that is defensive to both cases can I approach a guarantee of safety.
I do not trust drivers to respect my presence on the road. This is a perspective I have learned repeatedly through experience.
With pedestrians, I ride such that no matter what they suddenly decide to do, to respond weirdly to my presence, it doesn't matter. They can start running, they can stop on a dime and turn around, they can fall over, and I will have positioned myself not to be in their way.
I'll also say I don't really have a proposal. I'm not saying everyone should follow the way I ride. Just that I had to invent a way to ride that felt safe for me and others because the law makes no sense for me.