Surely this is a solvable problem.

If the average, mediocre software developer can address the issue of directory structure, interface design, general state management, edge cases and subtle assumptions it should be possible to train AI systems to address these issues .

Software development is not some mystical magical activity.

I remember people making similar arguments about autonomous driving...