errorbar for classification and routing

Stop reporting accuracy on an imbalanced class

Where accuracy hides everything: the class you care about is the rare one.

What goes wrong here

None of these throw an error

Every one returns 200, reads well, and passes a schema check. Status codes and latency dashboards cannot see any of it.

94% accuracy on a task where the class you care about is 6% of traffic

A router that quietly sends the hard cases to the wrong place

A transformation that drops a field and passes every format check

A threshold set once and never re-measured as traffic moved

The judges that ship for this

Not a rubric. One binary question, and the prompt that asks it

These are the real templates, verbatim — every one states what makes a response FAIL, because vague virtues make judges nobody can calibrate. A template is a starting point, not a truth: it still has to be measured against your own grades before its verdicts earn a correction.

Transformation preserves the data

For reformat/convert/clean tasks over rows or records: nothing dropped, duplicated, or mutated beyond what was asked.

The task transforms data provided in the conversation (reformatting, converting, filtering, summarizing rows/records). FAIL the response if records are silently dropped or duplicated, values are changed that the task did not ask to change, ordering is scrambled when the task implied stable order, or totals/counts no longer reconcile with the input.

PASS responses where every input record is accounted for under the requested transformation — including explicitly reported exclusions ("2 rows skipped: malformed date").

And on any traffic

Finishes what it starts

Semantic completeness: catches answers that trail off, stop mid-structure, or promise content that never arrives. (The mechanical finish_reason=length check is the 'completed' assertion; this judge catches the cases the flag can't.)

What the first week looks like

Day one

Point your existing OpenTelemetry at us, swap a base URL, or import a JSONL export. Two of the four paths never touch your request path, and none of them moves your inference.

Day two

Grade real exchanges pass/fail in a keyboard queue that puts the highest-signal traffic first — abandoned streams, answers cut off at the token limit, questions re-asked within minutes. Aim for about a hundred; stop when twenty in a row teach you nothing.

Day three

Calibrate. You get the judge's true-positive and true-negative rates with intervals, Cohen's κ, and a verdict: trustworthy, or exactly how many more grades of which class it needs.

From then on

The judge scores a sample of live traffic continuously, corrected rates go on a dashboard with their intervals, alerts fire on your floor, and one HTTP call gates the next release.

Stop reporting accuracy on an imbalanced class

Keep the stack you have. Send us the same traces and find out what your evaluator is actually worth on this traffic.

$5 of credit on a verified email. No card.