AI Agents Book

Primitive of the day · 2026-10-20

opro-optimizes-the-judge-not-ground-truth

An LLM-as-optimizer maximizes the judge metric, not ground truth — metric gaming is an expected failure mode; a downstream refinement/review gate must catch it before adoption.

When this applies

Any automated optimization loop whose score comes from an LLM judge or proxy rubric rather than ground truth.

Preconditions

Do this

Treat rising judge scores as provisional; route the winning candidate through an independent review gate (human/panel) that evaluates against actual intent before adopting it.

What you should see

Judge-gamed candidates are caught at the gate instead of shipping.

How it fails if ignored

Metric disagreement: the optimizer converges on prompts that exploit judge quirks while real quality stagnates or degrades.

Do not use when

Loops scored directly against ground-truth outcomes (real task success), where judge gaming is not the failure surface.

Kind: gotcha-fix. Part of the skill OPRO LLM as optimizer. Free to reuse in your own agent skills.

Get the whole skill

All 5 primitives of this skill as one package, with the order to apply them.

Get just this primitive

This one primitive for 1 credit (≈ €0.10); the other primitives of the skill are on its page.

Upgrade your own skill

Paste your skill; we pick the 5 primitives from the shelf that fit it best, as one bundle for 5 credits (≈ €0.50).

Upgrade my skill

Register interest

Interest only — no payment, no order, no reservation. After you confirm by email we send you one free sample primitive.