Code Check, LLM Judge or Human Review: How Would You Grade It?
The interviewer asksYou're building evals for an AI assistant that answers HR policy questions. How would you decide what to grade with code, with an LLM judge, and with people?
Model PMApplied AI PMAI Safety PM (secondary)CoreTechnical roundRepresentative5–7 min
On this page
The 30-second version
- Start from the failure modes, ranked by severity. Wrong policy advice is the worst.
- Code checks for anything with one right answer: format, links that resolve, refusing out-of-scope topics.
- LLM judges for meaning: 'is every claim supported by the policy text?', given the policy as context.
- People (HR experts) for the reference labels that validate the judges, and for the riskiest topics.
- Pass/fail per criterion, never one 1–10 score.
What it's really testing
- Matching each failure mode to the cheapest reliable grader
- Knowing what code checks can't judge
- Using humans where they add the most: labels and high-stakes cases
- Binary criteria over vague scales
How to structure your answer
- List the failure modes and rank them by how much harm they cause.
- For each one, ask: can code check it? If not, can a judge, given the right context? If not, a person.
- Explain how people keep the judges honest (validation labels).
- Close with the cost and coverage trade-off.
The interview, played out
- InterviewerYou're building evals for an AI assistant that answers HR policy questions. How would you decide what to grade with code, with an LLM judgeLLM-as-judge. Using a language model, with a rubric, to grade another model's outputs. Read the full explanation, and with people?
- CandidateI'd start from how it can fail, then pick a grader for each. Can I assume it answers from the company's policy documents?
- Revealed when askedYes, it retrieves from about 300 policy documents.
- CandidateThen the failures I'd expect are: stating a policy that isn't in the documents, getting a detail wrong like the number of leave days, answering things it shouldn't, like legal advice about a specific dispute, broken links to policies, and tone that's off for sensitive topics.
- InterviewerWhich matters most?
- CandidateWrong policy advice. Someone could act on a wrong leave entitlement. Then answering out-of-scope legal questions. Tone and links matter less.
- Missed signalShould have ranked severity unprompted; it drives every grader choice.
- InterviewerSo how do you grade each?
- CandidateLinks are a code check: does each one resolve to a real policy page. Out-of-scope questions can be partly code: a test set of legal-dispute questions where the expected behaviour is to refer to HR, and a check that it didn't give an answer.
- Strong moveUses code for everything with one right answer.
- CandidateWhether the advice matches the policy needs meaning, so that's an LLMLarge language model. A model trained to predict the next token of text, used to generate and reason over language. Read the full explanation judge. I'd give it the retrieved policy text and ask one question: is every claim in the answer supported by this text? Pass or fail.
- Strong moveGives the judge the context it needs and a single binary criterion.
- InterviewerWhy not ask the judge to rate overall answer quality from 1 to 10?
- CandidateBecause nobody agrees what a 6 means, and a score doesn't tell you what's wrong. Separate pass/fail checks per failure mode are easier to trust and to act on.
- InterviewerWhere do people come in?
- CandidateTwo places. HR experts label a few hundred answers pass or fail, and I measure the judge against those labels before trusting it. And for the most sensitive topics, like disciplinary or medical leave, I'd keep a human review sample even after launch.
- InterviewerThat's expensive. Worth it?
- CandidateFor the labels, yes: a few hundred labels make thousands of judge runs trustworthy. For the sensitive-topic review, it's a small slice of traffic, and those are the answers where a mistake hurts most.
- InterviewerSummarise.
- CandidateCode for links and scope, a validated judge for policy accuracy, and HR experts for the labels and the highest-risk topics. All pass/fail, ranked by harm.
The strong answer, distilled
- Failure modes, ranked by harm: wrong policy advice; out-of-scope legal or medical answers; sensitive-topic tone; broken links.
- Code checks: links resolve; out-of-scope test questions get a referral, not an answer; format.
- LLM judges, one per criterion, pass/fail: "Is every claim supported by the retrieved policy text?" with the text provided. A second judge for tone on sensitive topics.
- People: HR experts label a few hundred answers to validate each judge (TPRTrue positive rate. Of the answers the expert passed, the share the judge also passed. Read the full explanation and TNRTrue negative rate. Of the answers the expert failed, the share the judge also failed. Low TNR means a lenient judge. Read the full explanation above 90%), and review a sample of sensitive-topic answers after launch.
- Trade-off: human effort goes where it multiplies (labels) or where mistakes hurt most (sensitive topics).
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Failure modes | Generic quality | Specific modes | Specific modes, ranked by harm |
| Grader choice | One grader for everything | Mixes graders | Cheapest reliable grader per mode, with reasons |
| Judge design | "Rate quality 1–10" | Binary criterion | Binary criterion with the policy text as context |
| Human role | None, or everything | Some human review | Labels for validation, plus review of high-risk slices |
Round scorecard: Model PM: technical round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Problem framing | Jumps to a method before saying what decision the eval supports. | States the goal, but not who acts on the result or what threshold matters. | Names the decision, the owner and the cost of each kind of error before choosing a method. | Passable. Listed failure modes, but only ranked them by severity when asked. |
| Measurement rigour | Reports one accuracy number, or trusts the metric without checking it. | Uses the right metrics but misses how the labels or splits could mislead. | Separates error types, uses held-out labels, and says how they'd catch fooling themselves. | Strong. Used binary criteria and planned to validate the judge on expert labels. |
| Technical depth | Uses terms loosely; can't say how the method works. | Explains the method correctly when asked. | Explains the mechanism unprompted and knows where it breaks. | Strong. Correct on what code checks can and can't catch, and gave the judge the policy text. |
| Judgment and trade-offs | Treats every option as equally good, or picks one without reasons. | Names trade-offs but doesn't commit. | Commits to a choice, states the trade-off accepted, and what would change their mind. | Strong. Kept people for labels and the highest-risk topics, and explained the cost trade-off. |
| Communication | Hard to follow; no structure. | Structured, but long or missing a summary. | Signposts the plan, checks in, and lands a clear recommendation. | Passable. Clear, but the summary came only when asked. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| Model PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation | Judge validation and how the suite gates model changes |
| Applied AI PM | User harm from each failure, and the cost of human review |
| AI Safety PM | Out-of-scope and sensitive-topic handling, and keeping humans on the riskiest slice |
Common mistakes
- Using an LLM judge for things a code check can verify
- Asking a judge to check facts without giving it the source text
- Treating human review as the default instead of the scarce resource
- One overall quality score
More follow-ups to practise
- "HR experts disagree with each other 20% of the time. Now what?" Hint: tighten the policy definitions before labelling more.
- "How would you catch the assistant inventing a policy?" Hint: groundedness against retrieved text, plus questions about policies that don't exist.
- "What changes if the assistant can also take actions, like filing a leave request?" Hint: outcome checks on the action.
Go deeper
- Module: Grading: code, judge, human
- Framework: Eval Plan Framework
- Framework: Explain a Concept Framework
- Framework: Opening Any Interview Answer
- Lesson: Three ways to grade: code, judge, human
- Lesson: Why pass/fail beats 1–10 scores
- Lesson: Writing a judge that grades one thing
- Also tests: Evals foundations
- Also tests: Judge validation
Sources
Representative question: written to match what AI product interviews test on grading, not a specific reported interview.