What it does
It runs one query set against one frozen retrieval configuration and writes down what happened, so two configurations can be compared without arguing about whether they were run the same way. Quality, ranking, p50 and p95 latency, and cost where cost is knowable, all in one row per arm.
I built it because the alternative was a number I could not defend: an unlabelled corpus, a metric I had not validated, and a comparison whose difference was smaller than the noise. The first thing it ever did was tell me the retrieval I was timing was mostly measuring its own setup.
What it can do
Cases as data, not as a fixture file
A run reads a JSONL file of cases, calls the code under test once per case, scores the result and writes a run directory. Adding a dataset is adding a file; nothing in the runner knows about any particular corpus.
Small scorers instead of a framework
Path recall, exact-id match, latency, and an agreement score when two people label the same cases. Each one is a function with a name, and a run reports all of them side by side: quality, ranking, p50 and p95, and cost where cost is knowable.
One configuration, one run directory
The arm under test is frozen before the run starts and identified by a hash of its configuration. Two runs with the same hash are comparable; if the hash moved, the difference is the configuration and not a stray edit between runs.
Comparable by construction
The same frozen arm re-run must produce the same rows. When it does not, the difference is a bug in the harness before it is a result about retrieval - which is the only way a comparison is worth reading.
It runs anywhere
The runner depends on the standard library and nothing else: no vector store, no service, no network. A dataset and a config are enough to reproduce a number on a laptop.
Decisions I would defend
Freeze the arm, then time it. The first version of the harness rebuilt each arm's dependencies inside the timed path, so every case paid for setup. Hoisting that out cut p50 from 676 ms to 82 ms - 8.2× - with the quality metrics unmoved - recall at 5 held at 0.9333 and `mrr` at 0.7706. That number is a statement about an evaluation arm, not about how fast the retrieval itself is.
A harness is a package, not a service. Zero pgvector, standard library only. The moment scoring needs the thing being scored to be running, the harness inherits every failure mode of the system it is supposed to judge - and the numbers become conditional on an environment nobody wrote down.
An unmeasured cost stays unknown. Where the price of a call could not be established, the column says unknown. A fabricated cost per query survives review, looks consistent in a table, and poisons every later comparison that treats it as measured.
The number worth keeping is 8.2×: 676 ms to 82 ms on the same cases, with the quality metrics unmoved. It is also the number that taught me the most, because it is evidence about the harness rather than about the system under test.
What I refused
A cost column I could not measure, and a recall figure for a corpus without labelled queries. Both would have made the table look complete. A table with “unknown” in two cells is more useful than one where the reader has to guess which rows were invented.