Asked about What is actually being scored
How do you make sure AI-generated code is correct?
An answer that works
Scope the request narrowly enough that the output is reviewable, read the diff rather than the summary, check it against the actual requirement rather than plausibility, and run tests. For anything non-trivial I write the test first so there is something objective to check against.
Reading an answer is not being able to give one. The section that teaches this is What is actually being scored, 3 hours of Working with coding agents.
Learn this properly