Source: Shervin Shahidi, James Poon, Hang Xie, Kenneth O. Xu, Robin Håkanson, Vikram Nair, Jens Pillgram-Larsen, Nachiappan Nagappan (Meta), "Benchmark Factory: Agentic Benchmark Creation via Dataset Curation and Label-Free Quality Anchors", arXiv 2611.18890, 2026-11-13. Shared by Elvis Saravia on LinkedIn, 2026-11-20 (post).
TL;DR
Teams deploying coding agents need benchmarks built from their own code, and hand-curated benchmarks are expensive while unvalidated ones mislead silently. Benchmark Factory is an agent loop that sources tasks from merged internal code changes, runs models of known relative strength, diagnoses why a candidate benchmark misbehaves, and repairs its query, prompt and grader configuration until it passes "quality anchors" that need no per-task human labels. Built for five developer cohorts, the accepted benchmarks ranked held-out configurations the expected way (a high-effort setting above low effort, 60.6% vs 54.4%; a newer model above its predecessor, 65.8% vs 60.5%), and 9 of 10 per-cohort comparisons agreed. The anchors rejected a trivially easy benchmark and five deliberately broken graders, and with model labels shuffled a candidate passed by chance at most 1.4% of the time.
Architecture
Task. A landed production change: the agent gets the change's title and summary and works from the parent commit. If the change shipped with tests, those grade the patch (SWE-bench style); otherwise an LLM grader compares the agent's patch with the landed one. Private repos reduce training contamination.
Benchmark. A sourcing query over landed changes plus the task prompt, the grader and its pass threshold. The unit being built and repaired is the query and configuration, not individual tasks.
Loop. A driver starts the meta-agent in a fresh context each iteration; it performs one step and keeps state in a file, so long runs don't degrade. Each candidate moves through four phases: Research (explore landed changes, data tables and docs; write and validate the sourcing query and config), Launch (one run per model under test), Analyze (separate infrastructure failures from genuine ones, check anchors, then accept, hill-climb or reject), and Hill-climb (diagnose and repair). After repeated failed rounds the candidate goes to a human, who decides whether the domain doesn't separate models, the pipeline is faulty, or the expected ordering is wrong.
Holdout. Tasks are split by hashing their IDs into a hill-climb subset and a holdout; repairs act only on the hill-climb subset and the holdout never drives a repair.
Quality anchors. (1) Capability ordering: models grouped into tiers by release order and public results must score in the expected order, within a margin that is a policy choice rather than a significance test (100-task benchmarks rarely pass one). (2) Difficulty band: scores stay in an informative range, avoiding saturation. (3) Low run-to-run variance where repeats exist. Data sources can add their own anchors; a code-review-judge benchmark added precision and recall floors for predicting whether a reviewed change would land.
Results
Engineering raters scored a 5% sample at 2.3 for task quality and 2.6 for grader verdicts on a 1-to-3 scale.
On configurations never used to build them, benchmarks separated reasoning-effort levels and model generations with significant paired differences.
Stress tests: a deliberately trivial benchmark failed the anchors; five broken graders failed them even under a relaxed rule fixed in advance; with shuffled model labels, random redraws passed in at most 1.4% of simulations.
The authors are explicit that anchors are necessary, not sufficient, conditions for validity; they exist to focus human review on what the loop can't repair.
Tradeoffs
Label-free vs. circular. Anchoring on "stronger models should score higher" avoids per-task labels but bakes in the expected ordering; a benchmark that reveals a genuine reversal would be repaired or rejected. The human checkpoint is the escape valve.
LLM graders for test-less changes. Comparing against the landed patch scales coverage but rewards similarity to one solution; correct alternatives may fail.
Repairing the benchmark until it behaves. Hill-climbing on configuration is a form of fitting; the hash-split holdout is what keeps it honest.
Private data. Good for contamination, but benchmarks can't be shared or compared externally.
Failure modes to watch
Ordering assumptions that are wrong for your domain (a smaller specialist model that genuinely wins) get treated as pipeline faults.
Holdout leakage if the agent can see or reason about holdout tasks while repairing.
Grader drift: an LLM grader that becomes lenient passes anchors as long as ordering survives.
Saturation over time: as models improve, the difficulty band needs re-checking; a benchmark accepted once isn't valid forever.
Infrastructure failures misread as capability failures, which the Analyze phase must separate explicitly.
Review checklist
Are tasks drawn from landed changes after the models' training cutoffs, or from private code?
Is there a fixed holdout that never drives repairs, split deterministically?
Are ordering margins, difficulty bands and variance limits written down before tuning?
Have the anchors been tested with deliberately broken benchmarks (trivial tasks, broken graders, shuffled labels)?
Is a human reviewing a sample of tasks and grader verdicts, and the candidates the loop gives up on?
Are infrastructure failures counted separately from model failures?
Is there a schedule for re-validating accepted benchmarks as models change?
Related entries
R182: how the Claude Code team grades its code reviewer against past incidents and clean controls.
R086: agents doing AI engineering, four November 2026 benchmarks.
R129: CompoundingKernel, with correctness verdicts kept outside the model.
R151: a minimal-code skill with its own self-run benchmark, an example of the self-benchmark problem.