← Binderdex dev log

My grading AI scored 72% until I read the rubric

#ai-agents#product

A trading card whose printed frame sits off-centre, beside a measuring scale with a wide amber tolerance band and a marker resting inside it

Estimating a card's grade from a photo is easy to demo and hard to prove. Binderdex is a Pokémon card collection and price app, and collectors there can get an estimate of the condition grade a professional grading company would give a card, on a scale that tops out at 10. Anyone can get a plausible 8.5 out of a vision model. The question I cared about was narrower: against a professional grader, how often does the estimate land within one grade? I'd been shipping the feature with no honest answer, which is how an AI feature drifts from mostly right to confidently wrong without anyone watching it happen.

So I built an eval. The first score stung.

72% against an 80% bar

I ran 43 cards that a professional grading company had already scored and asked my estimator to guess each one. The first result was 31 of 43 within one grade. Worse, the misses all leaned the same way. Every card the company had graded a 10, I estimated somewhere between 8 and 9.5. Never once too high.

That pattern is a clue. If the model were simply bad at grading, its errors would scatter in both directions. Errors that all point one way usually mean a single input is wrong and everything downstream inherits it.

Print my centering next to theirs

The suspect was back centering, which measures how evenly the print sits between the borders on the back of the card. The company's report for each card already carried its own centering read, so I made every eval line print mine beside theirs. A vague "estimates are low" became a specific diagnosis. The company grades a 10 with a back as off-centre as 57/43. My threshold table, the rule for how off-centre a back can be before a grade is capped, refused a 10 at anything beyond 51/49. A split like 57/43 means one side border is 57 percent of the combined width of the two borders and the other is 43 percent.

The cap got harsher from there. Two cards I measured at 78% and 88% off-centre were capped at grades 4 and 2, and the company had given them a 10 and a 9. Two thirds of the gap came from my own table being far stricter than the human rubric I was being scored against.

MY CAP TABLE a 10 only up to 51/49 THEIR RUBRIC a 10 up to 65/35, a 9 up to 75/25 grade 10 grade 9 50/50 65/35 75/25 80/20 57/43: a back they graded 10 my table capped it below a 10 WITHIN ONE GRADE 31 of 43 38 of 42 after copying their published tolerances
How far off-centre a back can be and still earn the grade. My table gave up the 10 almost immediately.

The fix was to read their published rubric and copy it. My table now allows a 10 up to 65/35 and a 9 up to 75/25, and so on down the scale, straight from the company's tolerances. The rubric is public. I had never gone and read it.

Two bugs only the eval could see

The eval also surfaced two problems that reading the code would never have shown me. The first was run-to-run swing. One card read 9 to 9.5 across two earlier runs and 3 to 4 in another. The model wasn't being moody. The vision pass sometimes failed to finish before its time limit, and that failure looked like a legitimate low score. I only saw it because the centering measurement was printed next to each grade.

The second was in how the eval sent scans at all. Most of the company's scans are far wider than a phone photo, and a rerun started returning Image is missing or too large for a third of the set. The eval was passing oversized JPEGs straight through. That one was a bug in the eval itself, with no effect on the product, and it stayed invisible until I ran against real graded cards.

90.5%, and the misses I expected

After the threshold fix, 38 of 42 cards landed within one grade. That's 90.5%, with none two or more grades too high, against a bar of 80%.

The remaining misses are the ones I'd predict. On two cards my centering measurement is grossly wrong. One card the company graded an 8 now reads 9 to 9.5 under my looser table. Over-grading the low grades is the known trade-off of copying their rubric, and with a single 8 in the set, one card is a data point and no more.

The eval now runs after every grading change. A run costs one workflow invocation. Shipping a grading model with no measured score costs finding out from a customer.

This is the build log for Binderdex (www.binderdex.com) · All entries · Weekly essays