The ideal scenario here is to make petty theft impossible, either via amazon go (adding some cubicle thing that doesn't let you enter without scanning your amazon account) or via some huge inventory system that only dispenses/unlocks items when you pay for them - but I doubt/wonder if this is even a thing, or if it's being worked on by some SF startup. Another option is that these stores shut down, everyone gets package lockers for their homes, and they buy everything, including groceries, via Amazon. Not the best state of the world.
The useless SF DA is at great fault here. The cops don’t want to spin their wheels when they know anything below ~$950 doesn’t get prosecuted. And in addition the DA, having felon parents, has a soft spot for criminals. SF bought that whole sale because voters have been made believe the way to turn criminals into productive members of society is to say, “pretty please” and they believe they just haven’t said please nicely enough. Well here we are now.