Note that without the revolving door both sides would be worse off. (Unless you take some other action to mitigate this - I can't think of anything but there might be a complex answer)
One of the reasons DARPA program managers sit a fixed term is to precisely prevent careerism and castle building. The reason members of congress have a staff is to support them in researching topics.
But ultimately it comes down to the public, being informed by media, holding politicians responsible. I may disagree with portions of Bernie and AOC's political platforms, but one thing I don't have to worry about with them is that they're in the pocket of a company like Boeing.
We get the government we ask for. Want better? Raise your expectations and vote accordingly.
The process of doing so and ensuring it would be very laborious in that you would have to document every last detail, go through and make sure they were covered, make sure they were retained, and make sure that their understanding of every last detail is identical. Making matters worse is the mix of implicit and explicit. If you use a sprocket on something the design implicitly states "Do not allow it to rotate that way!" An added strut on a panel already more than capable of supporting itself and the rest of the structure may be redundant or needed to shift resonant frequencies into a range where they would be irrelevant.
The fact that this is an accepted business practice is insane to me.