I think there are multiple things in the "biggest obstacle" bucket. I'm a broken record on threads in this area that the one of the best treatments of the headwinds here is Jen Pahlka--blog, book, speaking--she covers the obstacles much better than I could.
Pay and retention is significant, but I don't think it's as significant as the difficulty hiring and selecting in-house expertise. ~190k, while not competitive with SF/FAANG, is more than sufficient to attract plenty of talented folks in DCM/elsewhere in the country ... but identifying/marketing to, and getting approval to hire those folks has massive regulatory obstacles. Like, crazy big.
Once they're hired, the timeline/electoral whiplash you point out absolutely is a major challenge, but an equivalently sized challenge is that many government agencies have done the opposite of building in-house expertise for so long that they just....don't have the muscles to know how to allocate and empower these new staff. Those capabilities have atrophied so fully that the only option is a hybrid contractor/noncontractor team to allow the contractors to train and empower the feds, which is itself a mixed-incentives challenge ("train your replacement. Who will also cost your boss hundreds of millions of dollars once trained.")
Once that's overcome and you have talented people empowered to work on the right problems, there's a really big challenge keeping them from "falling back in" to gov dysfunction. Even if you're doing great work, the environment encourages reacting to problems with additional layers of bureaucracy/ineffective controls, de-risking anything by elongating timelines and slowing delivery, and integrating with other government systems in disappointing/minimally effective ways.
And all of that has to be addressed while the siren song of the alternative ("Just contract it out! <Big contracting company> can have boots on the ground and solve the problem in months!") is playing on a loudspeaker next door, and the baseline assumptions of how to do effective digital work are based in a core assumption: "the government should only have expertise in military and administrative concerns". Unlike other commenters, I think that last part is much more influential than revolving-door corruption vis-a-vis contractors: I think corruption isn't required for dysfunction when many government leaders consider it a foregone conclusion that the government can't effectively execute on projects built in-house and that the private sector is the inherently better way to achieve such things. Multiply that assumption by time and scale, and it starts to become true--that is the debt that needs to be paid down, which is much harder than paying down purely technical problems.
Amtrak and the Postal Service are .... not good examples. Their hybrid for-profit/state-entity model produces outcomes worse than each (which we can tell by comparing them to countries where they're one or the other).
Government cloud platforms and tools do exist (cloud.gov, Platform One, etc.) but their adoption and applicable use-cases are limited by all of the factors I listed above.
"Just contract it out! <Big contracting company> can have boots on the ground and solve the problem in months!"
PERHAPS that was a convincing argument... 30 years ago? 50 years ago? We've got decades of evidence that this generally isn't true any more. So why continue to fall for it?
> I'm a broken record on threads in this area that the one of the best treatments of the headwinds here is Jen Pahlka--blog, book, speaking--she covers the obstacles much better than I could.
If you are interested, Jen was interviewed on Plain English recently. Here's the video: https://youtu.be/DEIxc0-tDuc?si=jmobhgWOyIp9RxV8&t=3030