orq.aiAdvent of Routing

Door 23 · still sealed

Hands off the wax, elf. This door opens on Dec 23.

-days--hours--min--sec

Rudolph is still polishing this one. Back to the calendar

Door 23 · Dec 23 Model Arena (orq-arena)

The toy-testing contest

Stop picking models on gut feel: run a blind, seat-swapped tournament on your own prompts and get an Elo ladder with error bars.

One night before take-off. The letter-reply desk needs one model for tomorrow's rush, so the workshop is holding a toy-testing contest. Ledger has a price list in each mitten.

  1. Ledger

    Sonnet writes warmer replies. Haiku costs fewer candy canes per letter. Is warmer worth it? I need a number with error bars, not a feeling.

  2. Mrs. Claus

    And who judges? If a judge can see whose reply is whose, it's no contest. A Claude judging two Claudes is an elf marking its own homework.

  3. Ledger

    And a contest burns tokens too. I'm not paying a whole jury before I've seen the bill.

  4. Tinsel

    Run an arena on our own letters. Outside judges vote blind, in both seat orders, and the bill arrives first and waits for your y.

inputYour promptsletters.jsonlcandidateanthropic/claude-sonnet-5-5candidateanthropic/claude-haiku-5-5orq-arenaBlind juryboth seat ordersresultElo ladder95% CI · report.htmlletterslettersanswersvotes
  1. inputYour promptsletters.jsonl
  2. candidateanthropic/claude-sonnet-5-5
    candidateanthropic/claude-haiku-5-5
  3. orq-arenaBlind juryboth seat orders
  4. resultElo ladder95% CI · report.html
Sonnet and Haiku answer the same letters, three outside judges score each pair twice with the seats swapped, and the votes climb into an Elo ladder.

How it works

Tinsel’s contest runs from one config file. orq-arena is an open-source CLI that plays a round-robin tournament between your candidate models and turns the results into a chess-style Elo ladder.

  1. Candidates. The candidates list holds two or more AI Gateway model ids. Every pair meets once, and both answers stream through the router, so one API key covers every provider.
  2. Jury. The judges list is a panel of judge models. Each judge compares the two answers twice, once in each seat order. A judge that flips its vote when only the order changes abstains for that round.
  3. Votes. A round needs at least two surviving votes (min_successful_judges) that reach a strict plurality. Rounds that fall short are recorded as inconclusive and never reach the rating.
  4. Rating. A Bradley-Terry fit over every rated round gives each model an Elo score with a bootstrapped 95% confidence interval.

Before any real calls, a preflight prints the call counts and the projected cost, then waits for your y.

Run it

orq-arena is installed from GitHub, not from a package index. You need Python 3.10+, uv, Git and an Orq workspace with every candidate and judge model enabled. orq-arena refresh-catalog --show lists the enabled models.

git clone https://github.com/orq-ai/orq-arena.git
cd orq-arena
uv tool install .
cp .env.example .env   # then set ORQ_API_KEY in .env

Write your prompts as JSONL and save them as letters.jsonl in the cloned folder. prompt is required; category is optional and feeds per-category ratings:

{"prompt": "Reply kindly: my train lost a wheel.", "category": "reply"}
{"prompt": "Sum up the sleigh checklist.", "category": "summary"}

Then check the pool and run the tournament from the cloned folder, since the CLI reads .env, the config and the prompts relative to it:

orq-arena pool --config workshop.yaml
orq-arena run --config workshop.yaml \
  --prompts letters.jsonl \
  --open

A run writes three local files: battles.jsonl (every judged round), battles.run.json (the run manifest) and battles.report.html (a single-file report you can share). --open opens the report when the run ends. Results are not written back to Orq, but every candidate and judge call shows up in Traces.

You can also pull prompts from an Orq Dataset with --prompts orq:<dataset_id>.

Good defaults

Config key Default What it does
match.max_rounds 5 Prompts played per match
min_successful_judges 2 Votes a round needs to count
judge_swap true Judges both seat orders
judge_api "llm" Or "decisions" for the Decisions API
headless_concurrency 4 Matches run in parallel (headless runs; --tui runs one at a time)

The docs call the defaults a smoke test. A ranking worth defending takes a real prompt set, hundreds of rounds, and judges from families outside the pool.

Reading the report

Small runs give wide intervals, and that is the honest output. When the top two cannot be separated, the report says so instead of naming a winner. Check the Length-adj. column too, when the report shows it (it appears only when the jury’s length preference is measurable): a big gap between it and the Elo means length, not quality, did the separating. In the cookbook’s run, the flagship ranked first on Elo and last after length adjustment.

Cost

Matches grow with the square of the pool: N models play N × (N - 1) / 2 matches. Trimming the pool saves far more than trimming rounds. The projection assumes every answer hits its token cap, so a typical run costs less, but it is not a hard cap.

Nice list

  • Pick judges from providers outside the candidate pool. Same-family judges favour their own family's prose, and seat swapping does not correct for it; the preflight warns about the overlap.
  • Trim the pool before you trim rounds. Every pair plays one match: eight models play 28 matches, sixteen play 120.
  • Pass --rounds equal to your prompt count when you want every prompt played. Each match plays match.max_rounds prompts (5 unless your config sets it), drawn as a seeded sample when the file holds more.

Naughty list

  • Reading two overlapping confidence intervals as a tie. Overlap alone settles nothing: the top spot is separated only when the interval on the difference excludes zero.
  • Trusting the raw Elo alone. The Length-adj. column prices out the jury's preference for longer answers, and can reorder the ladder.
  • Running the arena in CI without -y. A pipe cannot answer the preflight confirmation, so the run fails fast.
  • Re-running run to resume an interrupted tournament. It starts a fresh one, and refuses a non-empty log unless you pass --overwrite.

Elf's challenge

Add a third model to candidates and run orq-arena run without -y. How many matches will it play, and what does it ask before spending a candy cane?

Stuck? Ask Tinsel for a hint

Three models make 3 × 2 / 2 = 3 matches, and eight would make 28. The preflight prints the call counts and projected cost, then stops on Proceed (≈ $X, up to $Y with retries)? [y/N]. Answer N and only a few tiny probe calls were spent.

Christmas crackerWhy did the elf judge who always picked the left toy lose its vote?Pull it for the punchline

Swap the seats and it still picks left. Flipped votes get left out.