Evaluation and QualityExperiments and causal evidencePrincipal
How would you explain and investigate a public coding-benchmark gain that does not transfer to private tasks?
By Amit Kumar2 min readWorked answer includedReviewed 26 Sept 2026
The question
Interview question
A new coding agent version gains 12 points on a public repository benchmark. On recently filed private issues from your own repositories, the gain is near zero. Is the public result fake? Design a credible evaluation before adopting the agent.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
A benchmark gain can be real on its own tasks without transferring to a different repository workload. Separate training or tuning exposure, benchmark-specific strategies and differences in task difficulty or repository mix. Also verify the success test itself. OpenAI’s analysis of SWE-bench Verified reports contamination concerns and test-validity problems in that audited benchmark. It does not establish that every public score is invalid or that a particular vendor trained on a particular issue.
I would reproduce the 12-point gain with a pinned agent build, model route, tool budget, repository snapshot, task instruction, test harness, and scoring rule. Keep failures and timeouts in the denominator. Audit a stratified sample of wins and losses: did the patch actually satisfy the issue, did it rely on unavailable future files, and did tests accept a shortcut? Search for exact or near-exact issue text and gold patches in any training or prompt-tuning data we control. For an opaque external model, we can test exposure patterns and ask the vendor, but cannot prove clean training lineage from output behavior alone.
Then create a rolling set of fresh, access-controlled issues with creation time after the evaluated model or agent freeze where feasible. Keep setup and hidden tests reproducible, but have human engineers verify that the tests distinguish a valid fix from a test-specific hack. Record task categories, repository complexity, required exploration, and time or cost limits. Never let the evaluation team repeatedly tune against the same “private” holdout until it has become a development set. Rotate new tasks in, retain a locked comparison set for a limited number of decisions, and retire compromised cases explicitly.
What if the public and private sets disagree because your issues are much harder? That is still useful: slice by difficulty and task type, with confidence intervals. A zero average gain might hide a strong improvement on migrations and a regression on bug fixes. If public performance matters as a general capability signal, report it with its scope. For buying or deploying this agent, the relevant result is success on your task distribution at your actual attempt budget, verified by an oracle that engineers trust. A benchmark name is not a substitute for that contract.
Related questions
- How should teams decide whether to release a model that improves preferences but regresses a critical tool workflow?Principal
- How would you reconcile flat offline scores with lower online success after a prompt rollout?Principal
- When can historical routing logs support an estimate of a new model router’s quality and cost?Principal
Keep practising evaluation and quality
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux