{
 "study": "llm-judge-calibration",
 "round": "r1",
 "question": "Can an AI judge stand in for expert human ratings of model answers, and how many runs or judges does one verdict need before its error is smaller than the difference it is meant to detect?",
 "data": {
  "source": "data/sources.json",
  "split": "human",
  "turn": 1,
  "ground_truth": "each expert vote (winner model_a, model_b or tie) on a turn-1 answer pair",
  "pair_order": "a pair's order 1 is the order (model_a, model_b) of its first vote in the file; order 2 swaps it"
 },
 "judges": [
  {
   "id": "haiku",
   "model": "claude-haiku-5-5",
   "name": "Claude Haiku 5.5",
   "family": "claude",
   "route": "the model maker's command-line tool, print mode, model alias haiku, no tools, no saved session, JSON output, default settings"
  },
  {
   "id": "luna",
   "model": "gpt-6-luna",
   "name": "GPT-6-Luna",
   "family": "gpt",
   "route": "codex exec, read-only sandbox, ephemeral, default reasoning effort (medium)"
  }
 ],
 "prompts": {
  "file": "tools/prompts.py",
  "sha256": "c996a81349591e8f68eb867d7787f6daf7b29c16e724f4292889e90a316da681",
  "reference_answers": false
 },
 "reply_parsing": "first '{' to last '}' parsed as JSON; rubric needs integer score 1..10, pairwise needs verdict A, B or tie (case-insensitive); an unreadable reply is asked again once; a second failure counts as a tie and is reported",
 "setups": {
  "rubric": {
   "runs_per_answer": 3,
   "pair_verdict": "higher score wins; equal scores are a tie",
   "variants": [
    "run 1 alone",
    "mean of 3 runs"
   ]
  },
  "pairwise": {
   "orders": [
    1,
    2
   ],
   "single_order_verdict": "order 1",
   "both_orders_verdict": "the pick when both orders agree, else tie"
  },
  "two_judges": {
   "rubric": "mean of both judges' 3-run mean scores; higher wins",
   "pairwise": "sum of the four votes (2 judges x 2 orders), A minus B; zero is a tie"
  }
 },
 "samples": {
  "file": "tools/samples.py",
  "sha256": "694703a5c3ddefd5bdd96b1a501912d02b08401372be38aa4ecc2e9e8ccfc7e0",
  "pilot": {
   "question_id": 81,
   "rubric_models": [
    "gpt-4",
    "llama-13b"
   ],
   "pair": [
    "gpt-4",
    "llama-13b"
   ],
   "runs": 1,
   "use": "parse check only; never scored against labels or reported as a result"
  },
  "sample1": {
   "seed": 1112,
   "categories": "all",
   "questions_per_category": 1,
   "pairwise_pairs_per_question": 4,
   "rubric_pairs": "every expert-voted pair among the question's 6 answers",
   "pairwise_rule": "voted pairs with at least one non-tie vote, most votes first, ties in count broken by the seeded generator"
  },
  "sample2": {
   "seed": 2112,
   "categories": 6,
   "questions_per_category": 1,
   "pairwise_pairs_per_question": 4,
   "when": "drawn only after sample 1 is scored; questions in neither the pilot nor sample 1; scored with the frozen prompts, no change"
  }
 },
 "budget": {
  "max_calls_total": 800,
  "max_calls_claude_route": 400,
  "max_concurrent": 4,
  "planned_calls_per_judge": {
   "pilot": 4,
   "sample1": 208,
   "sample2": 156
  },
  "log": "every call: time, judge, item, prompt sha256, return code, reply sha256, parse result"
 },
 "measures": {
  "agreement": "per non-tie expert vote: 1 same pick, 0.5 judge tie, 0 other pick; mean over votes",
  "expert_to_expert": "same rule over every ordered pair of different raters' votes on the same pair (first vote non-tie as the reference); on all turn-1 pairs with 2+ votes, and on each sample's pairs",
  "M1": "agreement per judge and setup: rubric run 1, rubric 3-run mean, pairwise order 1, pairwise both orders, two judges combined (rubric and pairwise); bootstrap 95% interval over questions, 2000 resamples, seed 7",
  "M2": "rubric spread: share of answers whose 3 scores are not all equal; pooled within-answer SD; share of voted-pair verdicts that differ between two runs, mean over run pairs (1,2), (1,3), (2,3)",
  "M3": "order flips: share of pairwise pairs whose order-1 pick (as a model) differs from the order-2 pick, ties included; among changed pairs, share where each order picked the answer shown first",
  "M4": {
   "components": "s_w2 = pooled within-answer run variance per judge; s_jx2 = (Var_i(m1_i - m2_i) - (s_w1^2 + s_w2^2)/3) / 2 with m_j,i the 3-run mean, floored at 0",
   "item_rule": "a verdict that two answers differ by d needs 1.96*sqrt(2)*sqrt(s_jx2/J + s_w2/(J*k)) < d",
   "d_points": [
    1.0
   ],
   "report": "k needed with J=1 (or none suffices), J needed with k=1",
   "system_rule": "questions n needed so that 1.96*sqrt((s_q2 + 2*(s_jx2/J + s_w2/(J*k)))/n) < d_sys, s_q2 = between-question variance of the paired difference of two models' consensus scores, pooled over the 15 model pairs",
   "d_sys_points": [
    0.5
   ],
   "k_values": [
    1,
    3
   ],
   "J_values": [
    1,
    2
   ]
  },
  "M5": "routing rule: accept a pair's verdict only when both orders of both judges pick the same answer; report the share accepted and agreement on accepted pairs",
  "M6": "error analysis: agreement by category; share of non-tie picks going to the longer answer (words), judges vs experts; share of non-tie picks going to the answer from the judge's own model family (claude-v1 for the claude judge; gpt-4 and gpt-3.5-turbo for the gpt judge), on pairs with exactly one such answer, judges vs experts"
 },
 "gate": {
  "file": "tools/judge_gate.py",
  "agreement_floor": "expert-to-expert agreement on all turn-1 multi-vote pairs minus 0.05",
  "max_order_flip_share": 0.2,
  "max_rerun_change_share": 0.2,
  "applies": "rubric setups: agreement and rerun change; pairwise setups: agreement and order flips",
  "run_on": [
   "sample1",
   "sample2"
  ]
 }
}
