Evals & Observability·Question 59 of 83Advanced

Your coding agent passes the hidden tests, but maintainers say they would reject many of its pull requests. Design an evaluation that scores mergeability. How do you validate the graders, and why might scores fall as you raise reasoning effort?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Hidden tests answer one question: does the patch make these tests pass. Maintainers ask a different one: would I merge this. A patch can pass every test and still be rejected because it fixed one call site and missed three siblings, added no tests, reformatted unrelated files, changed a public API, or ignored the project's conventions. So the eval has to grade the thing maintainers grade.

Full worked answer

Hidden tests answer one question: does the patch make these tests pass. Maintainers ask a different one: would I merge this. A patch can pass every test and still be rejected because it fixed one call site and missed three siblings, added no tests, reformatted unrelated files, changed a public API, or ignored the project's conventions. So the eval has to grade the thing maintainers grade.

Tasks written by the people who would review the PR. Cognition's FrontierCode 2.0 (October 2026) is the clearest public example: over 20 open-source maintainers built tasks from their own repositories, spending over 40 hours on each, and graders test whether the output is actually mergeable. Two details are worth copying. In 80% of its tasks the reference solution differs from the upstream PR, because maintainers improved on what was merged. So do not grade by similarity to the historical diff; grade against criteria.

Rubric with blockers. Score each solution as a weighted aggregate of rubric items, and add blocking criteria that zero the score if any one fails:

  • Blockers: tests fail, a public interface changes without need, unrelated files are touched, a security regression appears, or an obvious related fix is missing.
  • Weighted items: tests added for the new behaviour, conventions followed, a minimal diff, docs or changelog updated, error handling consistent with the codebase.

The hardest blockers to write are thoroughness requirements, the unstated things a good engineer would infer: update the other callers, handle the empty case, keep the CLI flag in sync with the config file. In FrontierCode 2.0 thoroughness blockers rose from 168 to 501 and were the ones failed most often, which matches what maintainers complain about.

Graders. Each rubric item is its own check: deterministic where possible (tests, linters, diff scope), otherwise an LLM judge with read access to the repository, judging one item at a time and quoting the lines it relied on. The judge reads the diff, not the agent's PR description, because the description is self-report.

Validating the graders. Have maintainers label a sample of agent PRs, merge or reject, plus per-item verdicts. Measure per-item agreement, and weight blocker false negatives most heavily, since a missed blocker turns a rejected PR into a perfect score. Keep an adversarial set: PRs that pass every test but a maintainer rejected, and PRs that look scrappy but were merged. Re-run validation whenever the agent or the judge model changes, because the failures the judge has to catch shift with the agent.

Why more reasoning effort can lower the score. The FrontierCode post reports models scoring lower at higher reasoning effort. I would treat the mechanism as a hypothesis to test rather than a given, but blockers make it plausible: more effort tends to produce larger, more ambitious diffs, and one out-of-scope refactor or speculative change zeroes the whole solution. So sweep effort as an experimental variable, report blocker-failure rate per effort level, and pick the setting that maximises merged-quality per dollar rather than assuming maximum effort is best.

What a good answer covers

  • Hidden tests answer one question: does the patch make these tests pass
  • Maintainers ask a different one: would I merge this
  • A patch can pass every test and still be rejected because it fixed one call site and missed three…
  • So the eval has to grade the thing maintainers grade
  • Tasks written by the people who would review the PR

Key terms: Rubric with blockers · Blockers · Weighted items · Graders · Validating the graders

Interviewer follow-ups to expect

  1. How do you write a thoroughness blocker that a judge can apply consistently?

  2. A maintainer and the judge disagree on 20% of blocker verdicts: what do you change first?

  3. Would you use this rubric as a training reward, and what would you expect to go wrong?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep