Blog Post

Microsoft Foundry Blog
7 MIN READ

Let the LLM Judge, Let Code Do the Math: Using a Rubric to Size Work Consistently

paggarwal's avatar
paggarwal
Icon for Microsoft rankMicrosoft
Nov 24, 2026

How we stopped asking a model "how big is this?" and started asking it a checklist, and why the answers became consistent, explainable, and tunable.

Introduction

Many AI workflows end with the same request: "Give this item a score." A priority, a risk level, a quality grade. The model reads something, and you need a number or a label back.

Take support ticket triage. Tickets arrive all day, and each one needs an urgency level so the right ones are handled first. The obvious move is to give the ticket to a model and ask, "Rate the urgency of this ticket from 1 to 5."

It works in a demo. It falls apart in production. This post covers why, what we replaced it with, and what we got out of it.

The Problem: A Number From a Model Is a Number You Can't Defend

When we asked a model for a score directly, we hit the same issues repeatedly:

  • Inconsistency. The same ticket could score a 3 on one run and a 5 on the next. Two near-identical tickets could land on different urgency levels with no clear reason.
  • No explanation. "It's a 4" is not an answer a reviewer can challenge. There was no way to see which aspect of the ticket drove the number.
  • Hidden arithmetic. Models are not reliable calculators. Asking one to weigh several factors and apply thresholds inside a prompt is arithmetic in disguise, and small prompt edits shifted results unpredictably.
  • Nothing to tune. If urgency ran too high for a certain kind of ticket, the only lever was to rewrite the prompt and hope. Every change risked side effects elsewhere.
  • No way to measure improvement. A single opaque number is hard to compare against what an experienced agent would say, so we couldn't tell whether a change made things better or worse.

The root cause is that we asked one component to do two jobs at once: make a judgment about the ticket and turn that judgment into a number. Models are good at the first and unreliable at the second.

The Idea: Separate Judgment From Math

We split the two jobs:

  1. The LLM only answers a checklist. A fixed list of binary Yes/No questions about the ticket, plus a short rationale.
  2. Code computes the score. Counting, bucketing, weighting, and mapping to a final level all happen deterministically, outside the model.

The model never sees a score, a weight, or a threshold, and it must not return one. If it does, that's a contract violation.

This pattern is often called a checklist evaluation (CheckEval). It sits underneath a more familiar idea, the rubric: a set of weighted dimensions that together describe what you are scoring.

Where Rubrics Come From: Microsoft Foundry Rubric Evaluators

We didn't invent the rubric idea. Microsoft Foundry ships rubric evaluators, which score an agent or model response against custom criteria (called dimensions) using an LLM as the judge. Their purpose is to let you define what "good" means for your use case and apply that judgment consistently.

The core concepts line up closely with what we built:

Foundry rubric conceptHow we used it
Dimensions: custom criteria, each with a description and a weightOur scoring dimensions and their weights
1–5 rating per dimension, combined as a weighted averageThe same shape: per-dimension 1–5 scores and a weighted aggregate
Pass/fail checklist mode for quality rubricsThe inspiration for our binary Yes/No questions
Editable, versioned rubrics: adjust descriptions, weights, and thresholds, and save changes as new versionsOur versioned config, tuned without code changes
Rubric health diagnostics that surface overlapping or low-coverage criteriaThe same concern as keeping dimensions independent
Continuous evaluation against live trafficOur reference-free check on live results

Foundry's quality rubrics report either a 1–5 rating per dimension, which it normalizes to 0.0–1.0, or a pass/fail checklist. We combine the two ideas: a binary checklist under each dimension whose Yes-count becomes the 1–5 score, with all arithmetic done in code. The model still acts as the judge, but only on questions a person can verify.

Two ways to use this in practice:

  • As the scoring mechanism itself. Define your dimensions and weights in a rubric and let the judge rate them.
  • As the evaluation layer. Keep your own deterministic scoring, and use a rubric evaluator to check whether the judge's answers and final scores match your team's standards.

Microsoft's guidance is also a good starting point for authoring: generate a rubric from your context to get a grounded baseline, then refine it by hand until its scores match your team's judgment.

How the Rubric Works

1. Pick a few independent dimensions

A rubric breaks the thing you care about into dimensions. Each should capture something different, with no overlap. For ticket urgency, we might use three:

DimensionWhat it measuresExample weight
ImpactHow much is affected: users, revenue, data0.40
SeverityHow badly it is broken: outage, data loss, workaround available or not0.40
Time pressureHow soon it matters: deadlines, SLAs, escalations0.20

Keeping dimensions separate matters. A rare bug that corrupts data and a minor glitch that affects every user are both "urgent", for different reasons. A single "how urgent?" question blurs that distinction.

2. Ask binary questions for each dimension

Each dimension gets a short list of Yes/No questions. For example:

  • Impact: Does it affect more than one customer? Does it affect a paid or critical account? Does it block a core workflow?
  • Severity: Is the service unavailable or failing outright? Is there data loss or corruption? Is there no workaround?
  • Time pressure: Is an SLA about to be breached? Has the customer escalated? Is there a hard deadline mentioned?

Binary questions are the key design choice. A model asked "rate the severity from 1 to 5" will drift. A model asked "is there data loss or corruption?" has a narrow, checkable job. A human can look at the answer and say right or wrong.

3. Turn answers into scores with plain arithmetic

For each dimension, count the "Yes" answers and map the count to a score:

dimensionScore = (number of "Yes" answers) + 1 → 1 to 5

Then combine the dimensions with a weighted average:

aggregate = Σ ( weight × dimensionScore ) → 1 to 5

Because the weights add up to 1, the aggregate stays on the same scale as the dimension scores. Cutoffs then map the aggregate to a level such as Low, Normal, High, Urgent, Critical.

4. Map the level to whatever you need downstream

The level is a neutral, shared currency. A final, configurable step translates it into what the consumer needs: a queue, a response-time target, or an escalation. The top level can also trigger something special, such as paging an on-call engineer or routing to a human for review, instead of being treated as just another number.

Guardrails on the Model

The judging model runs under strict rules:

  • Temperature 0 and structured output. The response is a JSON object with Booleans and a short rationale per dimension, nothing else.
  • Answer only the questions provided. It can't add, drop, or rename questions.
  • No numbers. It must never return scores, levels, or weights.
  • Ground every answer in the provided context. If the ticket doesn't support a "Yes", the answer is "No". Treating absence of evidence as No keeps the model from over-claiming and keeps scores reproducible.
  • Batch where possible. Scoring several items per call, with all dimensions at once, reduces cost and helps the model answer similar items consistently.

Everything Lives in Config

The dimensions, questions, weights, score buckets, thresholds, and final mappings live in one versioned configuration file, not in code or in the prompt. Variants can override just the parts that differ: for example, a billing queue might add a question or weigh time pressure more heavily.

That turned scoring from a prompt-engineering problem into a tuning problem. Changing how a dimension counts is a small config change that can be reviewed, versioned, and rolled back.

Every Score Leaves an Audit Trail

For every scored item we keep:

  • the checklist answers and the rationale for each dimension
  • the per-dimension scores
  • the aggregate and the level
  • the final output
  • the version of the rubric that produced it

When someone asks "why did this ticket get a 4?", the answer is concrete: these questions were answered Yes, here is the rationale, here is the arithmetic, and here is the rubric version.

Evaluating the Judge, Not Just the Output

Because the math is deterministic, the only thing that can go wrong is the judgment: a question answered incorrectly. A wrong "Yes" silently inflates a score. So that is what we evaluate:

  • Answer correctness. Did the judge answer each question correctly for this ticket?
  • Score correctness. Does the resulting level agree with what an experienced agent would say?

This can run in two modes: a lightweight, reference-free check that grades the grader on live traffic and flags low-confidence results for human review, and a reference-based batch run against a dataset of expert-labeled examples. The batch run tracks answer accuracy, score error, level agreement, and determinism across repeated runs.

When a disagreement shows up, the structure tells you which knob to turn:

SymptomWhat to fix
A checklist answer is wrongReword the question or refine the judge's prompt
Answers are right but the final score is offAdjust the buckets, weights, or thresholds in config
A systematic gapCapture the case as new labeled data

Every fix is a versioned config or prompt change, re-validated by the batch evaluation before release.

How It Helped

  • Consistency. The same ticket gets the same checklist answers, and the same answers always produce the same score. The variability is confined to a narrow, checkable yes/no step.
  • Explainability. Every score traces back to specific answers and a short rationale. Reviewers can challenge a single question rather than an entire result.
  • Tunability. Weights and thresholds are config. You can calibrate against expert judgment without redeploying code or rewriting prompts.
  • Measurability. Structured output compares directly against labeled data, so you can tell whether a change helped.
  • Reuse. The same approach works for other scoring problems, such as risk, quality, or lead priority. Only the questions and final mapping change.
  • Safer failure modes. Defaulting to "No" without evidence, flagging low-confidence answers, and routing the top level to a human push errors toward visible, reviewable outcomes instead of silent ones.

References

Published Nov 20, 2026
Version 1.0
No CommentsBe the first to comment