1
The Patchwork Problem in LLM-Generated Code
9 Jul · Viraaji Mothukuri, Reza M. Parizi · arXiv:2607.08981
LLM-generated code often compiles, passes tests, and appears correct, yet breaks once deployed. The root cause is frequently structural rather than logical. A generated endpoint references configuration keys never declared in the project, an import targets a package that does not exist in any registry, or a new route omits the authentication guard applied to every sibling endpoint. Each patch is locally valid but…