My card resolver had 599 passing tests, and I still couldn't say how often it was right. "It works on the cases I checked" is a weaker claim than "it works," and I needed a number.
The resolver in BinderDex, my Pokémon card collection and price app, matches incoming trading card news stories to the cards and sets in the catalog. Each match lets a story link to the cards and sets it covers, so a wrong match attaches a story to the wrong card. It had been shipping matches for a while. Tests only cover the cases I thought to write, so a green suite told me about my imagination as much as about the resolver.
An exam where the grader can't see the answers
So I built a calibration exercise that works like an exam. A fresh operator, meaning a reviewer who hasn't seen these stories, sits down with 50 resolved candidates. Each one shows the resolver's evidence and hides the ground truth. The operator approves or rejects every match while a clock runs.
The pass bar is strict on purpose: all 50 right, in under 10 minutes. Anything less and the resolver fails. Hiding the truth matters, because a reviewer who can see the right answer stops judging the evidence and starts agreeing with it.
Six parts, all offline
The whole exercise runs without a database connection, production reads or a network.
- Corpus: 100 news stories whose correct card and set identities I checked and vouched for myself, frozen and hashed.
- Catalog snapshot: a validated catalog export, hashed and bound to the corpus.
- Pack generator: picks 50 candidates with a coverage-first policy that spreads them across games, matching rules and relation types (for example, a story that features a card versus one that only mentions it).
- Worksheet: a single HTML file whose content security policy blocks network, storage, cookies and external assets.
- Receipt: the 50 decisions, the timing data and the hashes tying it to the corpus and catalog, downloaded as strict JSON.
- Verifier: a separate command that rebuilds the hidden truth from the corpus and checks every decision, the ordering and the timing.
The worksheet is the part I'm proudest of. You open the file, press Start, and get the 50 candidates one at a time. Each shows the card number, the set the card belongs to, the matching rule that produced the match and the evidence string. When you finish, you download the receipt. There's no resume, no way to browse to the source and no way to peek.
44 out of 50
The first run scored 46/50 in 42 seconds, which was too fast and too wrong to mean anything. The worksheet wasn't showing enough identity to judge a match, so I added card numbers and parent set names. A fresh truth-blind run then scored 44/50 in 9 minutes 35 seconds. The verifier exited with code 2, and the workload failed.
That number stands. The rules say a finalized pack can't be retried once its truth is revealed, so the next attempt needs a fresh operator and a fresh pack. An honest 44 is worth more to me than a 50 I reached by rerunning.
Tests pass silently. A timed human exercise fails loudly, and the pattern of failures tells me which matching rule or relation type needs work.
What the resolver looked like going in
Before the timed run, the resolver went through a fix pass. It now treats a story's canonical source URL (its original address) as one more bounded piece of structured evidence, and only when that URL passes strict validation. Precision is how many of its matches were right, and recall is how many true matches it found. On the offline evaluation it scored 1.0 precision and 1.0 recall for sets, and 1.0 precision with 0.75 recall for cards.
The gap in card recall is deliberate. Four ambiguous card truths were left as false negatives, because a missed link is cheaper than an unsafe automatic one. Cluster recall, meaning how many groups of duplicate stories it finds, still reads 0, since the acceptance contract doesn't define a recall floor yet.
The author doesn't get the last review
The fix pass also ran through a split I'd just adopted for my AI coding agents. One agent, Sol, owns planning, architecture, adversarial review and the commit narrative. A second agent, Terra, owns bounded implementation. Sol planned the remediation, Terra built it, and Sol reviewed the result independently. That review caught two defects before merge, one of them a stale resolver version label.
The exam and the split are the same idea at two scales. Whoever produced the work is the worst-placed judge of it, so I hand the judging to someone who didn't write it and can't see the answer key. The four wrong candidates tell me where to look next, and the exercise is reusable: fresh operator, fresh pack, same setup.