Design Live Evaluation of Deployed Agents Using Expert Rubrics

Last updated: November 29, 2026

Quick Overview

An enterprise customer wants continuous scoring of its production AI agent: sample real traffic, grade each trace against expert-written pass/fail criteria using LLM judges, route uncertain cases to human experts, and report quality trends and regressions. Design this system end to end.

Mercor
ML System Design
Machine Learning Engineer
Mercor
November 29, 2026
Machine Learning Engineer
Onsite
ML System Design
Hard

0

0

0 solved


An enterprise customer wants continuous scoring of its production AI agent: sample real traffic, grade each trace against expert-written pass/fail criteria using LLM judges, route uncertain cases to human experts, and report quality trends and regressions. Design this system end to end.

Mercor offers live evals that score customers' deployed agents against expert-built criteria, combining its expert network with automated judges. The interviewer looks for sound sampling, judge calibration against humans, active routing of hard cases, and statistically honest regression alerts.

What the Interviewer Expects
  • Define ingestion of agent traces with PII controls and stratified sampling
  • Use per-criterion LLM judges calibrated against expert labels
  • Route low-confidence or high-impact items to human experts and feed labels back
  • Report metrics with confidence intervals and detect regressions without alert spam
  • Version rubrics, judges and agents so trends are comparable
Key Topics to Cover
LLM-as-judge
human in the loop
stratified sampling
calibration
drift detection
agent evaluation
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How would you detect that the judge itself drifted after a provider model update?
  • The customer ships a new agent version; how do you attribute a score change to the agent rather than to traffic mix?
  • How do you score multi-step tool-using traces where the final answer is right but a step was unsafe?
  • How would you price human review so the system stays within a monthly budget?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Ingest agent traces (inputs, tool calls, outputs, agent version) from the customer via SDK or log export. Score a sample against a rubric of binary criteria written by domain experts. Expert review fo...

High-Level Design

Ingest API writes traces to object storage and an index table, after a PII redaction pass. A sampler draws stratified samples by intent cluster, agent version and risk tier, oversampling rare but high...


Submit Your Answer
Markdown supported

Related Questions