Your new support prompt scores 68.75% against the old one. The release rule asks for 60%. Then someone opens the job log and finds twelve test cases but only eight decisions. Can the other four change the result?
Yes. In the example below, the candidate could finish anywhere from 45.83% to 79.17% on those twelve cases. Both numbers come from the same judge output. The difference is what happens to the four cases the dashboard left out.
Here’s how to calculate an LLM judge win rate you can use in a release review. You’ll keep ties, conflicting votes, and missing results visible, run a small Python scorer, and work out how many more decisions you actually need. The numbers come from a synthetic support evaluation you can reproduce without a model or an API key.
Suppose a support team shortens its instructions for drafting replies. It wants to keep the shorter prompt if customers still get accurate instructions and an actionable next step. For each test ticket, save one draft from the current prompt, called the baseline, and one from the proposed prompt, called the candidate. Both drafts must use the same ticket and policy snapshot.
Give the reviewer a concrete question. For a ticket about changing an email address, for instance, which answer gives the customer the correct next action for their account state? If both give equally useful instructions, allow a tie. A correct answer and an equally polished answer that sends the reader to the wrong settings page should be easy to tell apart.
Write down how much each outcome is worth. In this walkthrough a candidate win earns one point, a loss earns zero, and an agreed tie earns half a point. That makes the headline metric a tie-adjusted win rate. A team that needs strict improvements can instead count wins alone. Choose the rule and threshold together. A half-point tie means a candidate that matches the baseline everywhere would score 50%.
Our example release rule requires at least 60% of the available preference points across twelve named tickets. Each ticket has equal weight.
Keep any hard product requirements separate. Two drafts can be equally bad. If both suggest an action the customer cannot take, a relative tie gives you no reason to send either draft. Use a direct check for requirements both prompts must satisfy.
Create the list of ticket IDs before the first model call. Build the final report by starting with that list and looking up judge results. Starting with successful responses makes a case disappear precisely when both attempts failed. A count of completed requests cannot tell you how many planned tickets disappeared that way.
For each ticket, show the judge the same two frozen drafts twice. Show the candidate first on one call and second on the other. Give each call a fresh context and the same rubric. The judge can return the first answer, the second answer, or a tie. Translate each answer slot back to its draft identity before comparing the two votes.
| Candidate-first vote | Baseline-first vote | Outcome |
|---|---|---|
| First | Second | Candidate wins both |
| Second | First | Baseline wins both |
| Tie | Tie | Agreed tie |
| First | First | Conflicting winners |
| Tie | Second | Tie on one pass, candidate on the other |
| First | Missing | Incomplete comparison |
The fourth row is easy to misread in a trace. Both raw records say “first.” The judge picked two different drafts. Conversely, “first” followed by “second” can be a perfectly stable preference. Keep both raw votes so someone can reconstruct that translation.
A disagreement is evidence that this comparison needs attention. It can reflect presentation order, ordinary variation between calls, or a question with two plausible answers. Research on pairwise judges measures repeatability and consistency under order swaps separately. A useful diagnostic for a disputed case is to repeat the same order as well. Judging the Judges
Imagine the judge consistently prefers the candidate on five tickets and the baseline on two. It ties on one ticket in both orders. Two tickets draw conflicting votes. One has only a single valid vote, and one has no response at all. Write those last four ticket IDs in the report, even if the job runner marked the batch complete.
| Quantity | Calculation | Result |
|---|---|---|
| Resolved coverage | 8 decided tickets / 12 planned tickets | 66.67% |
| Points already earned | 5 wins + half of 1 tie | 5.5 |
| Score on decided cases | 5.5 / 8 | 68.75% |
| Full-suite floor | 5.5 / 12 | 45.83% |
| Full-suite ceiling | (5.5 + 4) / 12 | 79.17% |
The floor assigns every unresolved ticket a loss. The ceiling assigns each a win. Any mixture of final wins, losses, and ties must land between the two, assuming the eight settled decisions stand. Each unresolved ticket widens the range by one point divided by twelve. The range shrinks when a ticket gets a final decision, even if that decision is a loss.
These bounds answer a question about this fixed suite. They say nothing about how representative twelve tickets are, or how often a judge agrees with a customer. Even complete coverage only collapses the range to the observed suite score. Estimating performance on future tickets requires a sampling design and a separate uncertainty estimate.
Metric names alone can hide a difference in policy. For example, Agent Eval Harness documents a strict win rate that keeps ties in the denominator and excludes errored comparisons. That can answer how often a run wins among comparisons its evaluator could score. If your release policy covers every planned comparison, retain the planned count alongside that metric. Agent Eval Harness scoring rules
The script below uses a dictionary keyed by ticket ID. Each tuple contains the candidate-first vote followed by the baseline-first vote. A parser can map a failed call, a refusal to judge, or an unusable verdict to None, while keeping the original failure reason in the job log. A ticket absent from the results dictionary still has an entry in the manifest.
from collections import Counter
from fractions import Fraction
manifest = [f"T{i:02}" for i in range(1, 13)]
votes = {
**dict.fromkeys(manifest[:5], ("first", "second")),
**dict.fromkeys(manifest[5:7], ("second", "first")),
"T08": ("tie", "tie"),
"T09": ("first", "first"),
"T10": ("tie", "second"),
"T11": ("first", None),
}
def outcome(forward, reverse):
allowed = {"first", "second", "tie", None}
if forward not in allowed or reverse not in allowed:
raise ValueError("Unexpected judge label")
if None in (forward, reverse):
return "missing"
by_slot = {"first": "win", "second": "loss", "tie": "tie"}
swapped = {"first": "loss", "second": "win", "tie": "tie"}
left, right = by_slot[forward], swapped[reverse]
return left if left == right else "conflict"
def summarize(planned, results):
if not planned or len(set(planned)) != len(planned):
raise ValueError("Expected a nonempty manifest with unique IDs")
if set(results).difference(planned):
raise ValueError("Result outside the manifest")
counts = Counter(
outcome(*results.get(case, (None, None))) for case in planned
)
size = len(planned)
unresolved = counts["missing"] + counts["conflict"]
decided = size - unresolved
points = counts["win"] + Fraction(counts["tie"], 2)
return {
"counts": dict(counts),
"coverage": Fraction(decided, size),
"decided_score": points / decided if decided else None,
"floor": points / size,
"ceiling": (points + unresolved) / size,
}
report = summarize(manifest, votes)
assert report["floor"] == Fraction(11, 24)
assert report["ceiling"] == Fraction(19, 24)
print(report)
You should see five wins, two losses, one tie, two conflicts, and two missing comparisons. The decided score is 11/16. The scorer uses fractions so the release decision can compare exact values. Round to percentages only for display. If all cases are missing, the decided score is undefined, coverage is zero, and the range spans zero to one.
Remove T07 from the results dictionary. This was a settled loss. The decided score rises from 5.5/8 to 5.5/7, or about 78.57%. Your candidate produced exactly the same text on every ticket. Removing evidence against it improved the displayed average.
Now look at the floor. It stays at 5.5/12, because a settled loss and the worst possible resolution of a missing case both contribute zero. The ceiling rises to 10.5/12. Losing a result has made the decision less certain. That is a handy regression test for an analytics query or a change to a dashboard filter.
At a 60% threshold, twelve tickets require at least 7.2 points. Scores move in half-point steps, so the first passing total is 7.5. The candidate already has 5.5. It needs at least two more points from the four unresolved tickets. Two wins would establish a pass even if the other two later lost. Four ties would also add the required two points.
In the opposite direction, suppose a reviewer assigns three of the open tickets to the baseline. Even if the candidate wins the last one, it can reach only 6.5/12. You can stop reviewing for the purpose of this release decision. Keep the last ticket visible for the person investigating judge quality. There are good reasons to finish a review after the release question is settled.
Choose the next case by what it takes to settle it. Recovering a missing result may be as cheap as reading an existing job artifact. A conflict about whether an account owner can change a setting may require a support specialist with access to the policy in force when the ticket was written. Give that reviewer the frozen evidence, blind the draft identities, and record the reason for their choice.
For example, suppose T09 concerns a shared account. One answer tells a member to open an owner-only menu. The other tells the member how to request the change from the owner. Supply the reviewer with the member’s role and the permissions table attached to the ticket. If those facts settle the question, the reviewer can assign the win and cite the relevant row. If the original ticket omitted the role and neither draft asked for it, record that ambiguity. Rewriting the ticket would create a new test case and change the release evidence.
If you stop early, report the floor, ceiling, and remaining count. A single point estimate would imply that someone settled the remaining tickets. Also keep the original judge votes available after human review. They let you tell whether a change improved the candidate or simply moved more cases to a human.
In LangSmith, a pairwise evaluator can receive runs from two existing experiments and return scores mapped to run IDs. Its order-randomization option changes the order shown for a comparison. To collect the two observations used here, explicitly schedule both arrangements against the same saved outputs and record which run occupied each slot. Treat the dataset example ID as the unit of the final report. LangSmith pairwise evaluation guide
For a batch worker, use a unique record key consisting of the evaluation version, case ID, and presentation order. Give retries separate attempt IDs. Decide in advance which successful attempt counts, and surface contradictory successful attempts as a data issue. A retry of the forward call cannot fill the reverse slot. Keep the rubric revision with the record so a resumed job cannot silently combine votes from two rubrics.
A support lead will also want to know where coverage fell. Show counts by workflow, such as account access, refunds, and onboarding. If all missing calls concern long refund policies, the decided score mostly describes easier material. Keep a small human-labeled set in each important workflow and periodically inspect cases where both judge calls confidently preferred the wrong draft. Stable judgments can still be wrong. All Verdicts Are Not Equal
Attach the manifest, threshold, counts, and release decision to the prompt version. That lets another engineer rerun the calculation after a late verdict arrives. For the wider setup, see the guides to building a model benchmark harness and recording a prompt release manifest.
Give it half a point if your metric represents preference credit shared between equally useful answers. Give it zero if the business question is how often the candidate strictly improves a reply. Publish the tie count either way. Readers can then reconstruct both measures from the same decisions.
Decide whether the comparison measures writing quality on available drafts or the end-to-end service. For the latter, a missing candidate draft can be an explicit product failure under your rubric. A timeout in the independent judge is a different event. Record which component failed so the reviewer can apply the intended rule.
Showing each order once exposes some order-sensitive cases. A judge can still prefer an inaccurate draft in both orders, especially when it rewards a feature such as confident wording. Validate settled wins as well as conflicts against human-labeled examples. Randomize which order runs first if service conditions may drift during the job.
Yes. Assign each ticket a nonnegative weight in advance, with a positive total. Divide earned weighted points by total planned weight for the floor. For the ceiling, add the unresolved weight to the numerator. A single missing high-volume workflow can then matter more than several low-weight cases. Publish the weights so the reader can check that choice.
With an inclusive threshold, pass this preference check when the floor meets the threshold, and fail it when the ceiling falls below it. Otherwise return “needs review” with the unresolved IDs. If the ceiling exactly equals the threshold, a pass is still possible. Compare unrounded values and apply any separate minimum-coverage or workflow requirements before approving the release.