Maybe something like a contract that says that if they quit Google they can't work for a competitor for 18 months. And they will need to leave corporate grounds(GoogleTown) immediately or they will be escorted out. Maybe have some apartment rotation scheme where everything is identical and you move around like if it was a parking lot, classify it as complimentary hotel rooms for employees so technically you never have an apartment, let them work from home now and then and it's also an office space. Oh now you're working on this project at the east side of google town, just book a communal smart car and go to Harriet Tubman Block so you don't have to commute! It will be a five minute walk to work!
I'm just spitballing a nasty future and even with a wife a and kid that would be an upgrade for the bay area pod people.
Last post on this derail, pm/profile if you want to talk more about antfarms for bugmen:
Even if we forget commieformia tenants rights that make it at minimum 90 day process to evict the the unwilling, the company is exposing itself to a whole slew of liability. Not just the usual landlord stuff. But lets say they're sued over wrongful termination. Now its not just lost wages, its pain and suffering for being heaved out on the street and out of company housing.
This wasn't a problem for coal mining towns because no one who wasn't mining coal wanted to be there.
Landlords in NYC are experimenting with a fascinating scheme to get around rent control of "rent discounts". That is, you charge $10,000/mo for rent, but then offer a $7,000/mo discount to the tenant. Rent control limits the amount you can raise rent, but you can simply reduce the 'discount' rate at whatever speed you want.
A theoretical google town could do similar, except for two things.
Firstly, rent discount for employees would likely be a taxable benefit, so you're still paying payroll taxes on it. Second, SF housing prices are such that you would have the very real possibility of that $20,000/mo company apartment being an utter steal in 10 years.
tl;dr It would never work because a disproportionate number of tech workers are indian and you'd never be able to get the smell out.