Reminds me of when the entire frontend of an embedded system got subcontracted out multiple times with the end being some kid in Jordan who had zero idea what he was doing,
I was on contract with company A to support firmware & drivers. The frontend was contracted out to company B, who subcontracted it to company C, who sub-ubcontracted it out to company D in Jordan, who sub-sub-subcontracted it out to E.
Several details were lost via this game of telephone, including the fact that this was an embedded system. There was zero infrastructure for collaborative development, and it would take several days for the kid's source code - a single file thousands of lines long - to trickle its way down to me, and it was slow even on a development host.
It ran, just so horribly slow that it was unusable. I rewrote parts of it to demo a 40x performance increase to the company execs, and they fired the contractor - which then meant that I got to write all of it, by myself, for the same pay as before.