I think you're overly-optimistic when you ask what the industry's plan is. Frankly, the tech industry can't think more than a couple of years out, and they realistically can't afford to hire someone who will reduce the team's overall productivity for a couple of years while he gains enough experience to leave for a better-paying job. We need a more national strategy to even out the talent pipeline. Companies can't and won't invest what needs to be invested in early-career developers.
At the same time, companies are uninterested in the contributions of developers who are experienced enough to push back against unrealistic requirements and timelines, instead preferring to hire and keep people who will attempt to do whatever is asked, no matter how that endangers the long-term health of projects. This is a key reason for burnout of experienced developers.
Finally, the developer community is flooded with misinformation and bad practices, which means all hell is going to break loose when older devs amass enough ca$h to find something less thankless to do and exit stage left. It's trendy for influential devs to suddenly "discover" best practices don't apply to them, and unfortunately they're not as loud when FAFO catches up with them.