Taiwan has generations on this...
Japan has had pods decades ago. Know limited budget of San Francisco's department of building inspection, but guidance [maybe through other routes] could drive solutions to the stressed ones, instead of conflict and eviction.