Score Expert Rubrics With Weighted Groups and Critical Gates
Last updated: November 29, 2026
Quick Overview
An evaluation rubric is a tree: leaves are pass/fail criteria, groups combine children by weighted average, and any child marked critical that does not fully pass zeroes its parent group. Given the rubric and the set of passed leaf ids, compute the final score in [0, 1] and list every failed critical criterion path.
Mercor
November 29, 20260
0
0 solved
An evaluation rubric is a tree: leaves are pass/fail criteria, groups combine children by weighted average, and any child marked critical that does not fully pass zeroes its parent group. Given the rubric and the set of passed leaf ids, compute the final score in [0, 1] and list every failed critical criterion path.
Mercor's experts write pass/fail rubrics for evals such as APEX and for enterprise agent testing, and the platform has to turn those into consistent scores. The screen tests recursive tree evaluation, precise semantics, and explainability of the output.
What the Interviewer Expects
- Clarify default weights and how gates propagate
- Implement a clean recursive (or iterative) post-order traversal
- Return explanations, not only the number
- Validate bad rubrics such as zero total weight
- Discuss complexity O(nodes)
Key Topics to Cover
How to Approach This
- Clarify input constraints and edge cases before writing code.
- Walk through your approach verbally and confirm with the interviewer before coding.
- Start with a brute force solution, then optimize. Mention time and space complexity.
- Test your solution with examples, including edge cases like empty input or duplicates.
- Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
- How would you support partial credit leaves scored by an LLM judge between 0 and 1?
- Should a critical failure deep in the tree zero the whole rubric? How would you make that configurable?
- How would you diff scores between two rubric versions for the same response?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice DSA ProblemsSample Answer
Requirements
Each node has an id. A leaf has no children and scores 1 if its id is in passed, else 0. A group scores the weighted average of its children (weight defaults to 1). If any child with `critical...
High-Level Design
Post-order traversal: compute each child's score, then combine. Track the path to produce readable failure reasons like root/accuracy/cites_statute, which is what a lab reviewer wants to see next to...