Judged comparison gate
Use when designing, running, or interpreting an LLM-as-judge comparison — pairwise A/B, tournament, win-rate eval, model shootout, or prompt-variant bake-off — or when someone presents judged results ("X beats Y", "significant win") and asks whether to believe them. Also use before spending money on a judged eval run. Trigger phrases: "LLM judge", "win rate", "pairwise eval", "A/Bテスト判定", "LLM審査". Fires on reported judged results even as bare statements ("Aの勝ち") with no question attached. NOT for intra-pipeline draft selection among an agent's own candidates (e.g. the sample-select-polish tournament) — the gate applies only when a judged result becomes a reportable quality claim.From its SKILL.md
npx -y skills add Kota-Ohno/skills-lib --skill judged-comparison-gateAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.5 KB, as published. Nobody here has run it
Judged Comparison Gate
Overview
An LLM-as-judge comparison is a measurement instrument, and an uncalibrated instrument produces confident garbage: verbosity bias is the canonical confound in the judged-eval literature, and in the frugal-fusion corpus a directional win at n=17 dissolved into a statistical tie at n=48 once properly measured (Rounds 5→6 of its docs/EXPERIMENT_RESULTS.md) — controls and sample size change conclusions. This gate runs a pre-flight checklist before money is spent and a post-hoc audit before any result is believed.
When to use
- Before launching any pairwise/tournament/win-rate eval judged by an LLM.
- When auditing judged results someone already produced (yours or others').
- When a pilot run "shows" one side winning and someone wants to conclude.
When NOT to use
- Evals with deterministic ground truth (exact match, unit tests, execution accuracy) — no judge, no gate.
- Single-output quality rubric scoring with no comparison claim (still watch length bias, but this gate's pairwise machinery does not apply).
- Intra-pipeline draft selection (e.g. the
sample-select-polishtournament): the output is a working selection among an agent's own drafts, not a comparative conclusion anyone will report or believe. The gate applies only when a judged result becomes a quality claim.
Hard rules
- No blind, no verdict. If judges can see which system produced which answer (names, formatting tells, model-specific boilerplate left in), STOP: the run is invalid, not merely weaker.
- A side wins an item only if it wins BOTH presentation orders. One-order runs are position-bias measurements, not quality measurements. Split orders count as ties.
- The judge prompt MUST contain an explicit "do not reward length or verbosity" instruction. Absent that line, do not launch.
- Every judge model's family MUST be disjoint from every system under test. A judge from the same family as a contestant is self-preference bias; STOP and swap the judge. Use a majority panel, not a single judge.
- Always record answer lengths per item. If the sides show a large systematic length gap (rule of thumb: median lengths differing by >30%), the comparison is INVALID until length is controlled — truncate, length-match, or regress it out. This is the default confound, not an edge case.
- No quality conclusion from n=1–2. Tiny pilots detect plumbing errors only; in the frugal-fusion corpus a directional win at n=17 became a statistical tie at n=48 (Rounds 5→6). A quality claim requires ~30+ items and a bootstrap confidence interval over item-level outcomes.
- An empty judge response is NOT a tie. It is usually a starved or failed call (see
llm-call-triage). Count empties in a separate bucket; if empties exceed ~5% of judgments, STOP and fix the calls before interpreting anything.
Process
Pre-flight (before spending money)
- Strip identifying metadata and formatting tells from both sides; verify by eyeballing 3 random pairs yourself — can YOU tell which is which?
- Build the run plan: every item judged in both orders (A-first and B-first).
- Write the judge prompt: criteria, explicit do-not-reward-length line, required output schema.
- Select a judge panel of ≥3 (odd count) from model families disjoint from all contestants.
- Confirm item count ≥30 for any quality claim; if fewer, relabel the run "plumbing pilot" in the plan.
- Wire logging: per item record both raw judgments, both answer lengths, and empty/error status separately from verdicts.
- Run a 2-item smoke test to catch schema/parse failures, then launch.
Post-hoc audit (before believing results)
- Empty/error rate: count empties separately. >5%? Fix and rerun those calls first.
- Length check: compare median answer lengths per side. Gap >30%? Mark INVALID-until-controlled; control for length and re-judge or reanalyze.
- Counterbalancing: recompute wins as both-orders-won only; report split-order items as ties. Compare against the naive tally — a big shift means position bias dominated.
- Panel agreement: report per-judge win rates; a lone dissenting judge family is a flag, not a veto.
- Statistics: bootstrap CI over item-level outcomes. If the CI on the win-rate difference includes zero, the honest verdict is "no detected difference".
- Fill the gate checklist below and issue the overall verdict.
Output contract
## Judged Comparison Gate — <comparison name>, <date>
| # | Gate item | Status | Evidence |
|---|-------------------------------------------------------|--------|----------|
| 1 | Sources blinded (spot-checked) | PASS/FAIL | ... |
| 2 | Both orders judged; win = wins both orders | PASS/FAIL | ... |
| 3 | Judge prompt forbids rewarding length | PASS/FAIL | ... |
| 4 | Judge panel families disjoint from all contestants | PASS/FAIL | panel: ... |
| 5 | Lengths tracked; median gap ≤30% or controlled | PASS/FAIL | A: ... B: ... |
| 6 | n ≥ 30 with bootstrap CI | PASS/FAIL | n=..., CI=... |
| 7 | Empty judgments counted separately, ≤5% | PASS/FAIL | empties: ... |
**Verdict:** CONCLUSIONS PERMITTED / PLUMBING-ONLY (pilot; no quality claim) / INVALID (state failing gates)
**One-line result (only if permitted):** ...
Common mistakes
- Treating a lopsided n=2 pilot as directional evidence ("it's 2-0, looks promising").
- Counterbalancing "on average" (randomized order) instead of judging every item both ways.
- Controlling length by asking the judge harder instead of measuring and controlling it in the data.
- Letting the strongest available model judge its own family "because it's the smartest".
- Parsing an empty judge response into the "tie" branch of the tally code — silent corruption.