A good heuristic is to understand the generated code you submit as if you typed every character yourself. A "I'm not sure, AI wrote it" type circumstance is a critical failure.