Careful, the solution might be to make work kingdoms in the future. Google, Facebook, Apple castles, the Apple spaceship is already ready for a moat around it.
My guess is a requirement like that will lead to residential/apartments being build on campus like at Foxconn or in company cities like in the past, essentially work dorms. I also feel like this would be horrible for ageism and family life impacts.
In places like that it is a work/life balance problem and they'll just work you til you are dead in their kingdom and then bring out the cart and yell "Bring out your dead!" [1]
When you have companies that are in cities, you need to find a way to get that revenue and income dispersed around the city/community, not just a walled off kingdom.