Consider: Containerized city. 0-population cities where rapid transit brings people in during active-hours only? Walkable areas being vehicles themselves, forceably removing people after N-hours and dumping them in to less-dense habitation areas?
And I have trouble understanding what you are actually suggesting, but it seems to be an entirely technocratic take ignoring what actually makes cities liveable, with possibly some dehumanisation of homeless people thrown in for extra discredit?
That said my interactions with strangers are still hit or miss, but people tend to be very open regardless and now I have a lot of crazy random interaction stories to tell.
People lament a loss of community and then without irony, get on FB and worry that every unfamiliar vehicle passing through the neighborhood is a potential burglar.
We can try to meet everyone who comes through and have a community, or we can think every stranger is dangerous, but we can't do both. Having a community requires some vulnerability, as you say.
Think about it - as a potential burglar, which is a more attractive target? A neighborhood where everyone silently ignores you or one where people notice you, make eye contact, wave, and say hello?
tl;dr: Saying 'hello' is a just as effective defensive strategy as it is being friendly to your fellow neighbor.
Elevators are a great example, just a quick “have a great day / night” seems to make people happy.
I've noticed that consciously thinking about something that makes me very happy, or something I find funny, will make that happy emotion show on my face. When I project happy into the world, I get a lot more happy back - people (I'm talking about adults here) seem drawn to strangers in a good mood. When I'm consciously trying to be happy, people are much more likely to smile and say hello.
And maybe it's confirmation bias, but when I'm trying to project happiness, and when I try to really smile at people and say good morning and mean it, I notice a lot of times that people seem to walk away with a little more pep. Almost like "wow, some stranger just genuinely wished me a good morning."
This all could be cause I live in Santa Monica and people out here tend to be happier than they did in NYC.