The defense analogy makes absolutely no sense. All the examples are of production shutdowns or reductions. Knowledge was lost because people retired and not replaced at all. None of it was lost to automation.
Automation is the exact opposite of tying knowledge to people. It's extracting knowledge from people and transferring it to a machine that can continue to produce the goods.
Yes, AI can lead to problems and some of these problems will be related to gaps in knowledge that was thought to be obsolete when it really wasn't. But that's a totally different problem on a totally different scale from what happened with defense production after the end of the cold war.
Nobody is shutting down or reducing software production. On the contrary, we're going to be making a lot more of it.
Exactly. The US hasn't forgotten how to manufacture, in fact a ton of manufacturing happens in the US. What's happened is that it's been automated. And automation is one of the better ways to extract knowledge from a person who will one day switch jobs, retire or pass away.