In the end the developer (or AI wielding human) is responsible for the code quality and its license which is what matters.
They literally may not have any control over the license, that is one of the many big problems people have. Please read the article linked by OP about the copyrightabilty of LLM generated code - https://fsfe.org/news/2026/news-20260825-01.html. It depends heavily on how they used the LLM, so if there is zero disclosure required the entire project could get into licensing hell down the road.

