The agent overfits to passing tests and misses deeper correctness issues. How would you respond?

Instruction: Explain how you would handle a coding agent that learns the wrong lesson from tests.

Context: Tests how the candidate diagnoses the problem, chooses the safest next step, and reasons through recovery. Explain how you would handle a coding agent that learns the wrong lesson from tests.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

I'd inspect whether the patch satisfies the invariant beyond the visible example...

Your preparation path

Work through these questions in order. Read the answer aloud, then explain it in your own words.

Related Questions