Trash bin? ~1M LOC for what? If you cannot review or test it, then why would you trust it?
This is why it's better to stay human in the loop during the process. Sounds like you don't think it should take 1M LOC. It's likely your garden variety slop, even if it "works". Avoid the sunk cost fallacy, Ai lets us throw away more experiments because they are "cheap".