Judging at Scale — System One, System Two

This evening we're experimenting with cutting-edge AI tech: Jev, a judging model that takes text input and returns a probability number.

Your mission: use Jev to analyse a vast corpus of real documents: a thousand employment tribunal decisions, or a few thousand air, rail and marine accident reports. Then use the probability results to either:

  • (a) judge something, for example "did the employer lose because of a process failure?";
  • (b) categorise something, for example "what kind of failure caused this accident?"; or
  • (c) route information to a suitable person or channel, for example "which manager should see this decision?".

Nobody hands you a spec this time. You write it.

You'll work with two models:

  • System One: Jev. A fast, cheap judging model. It reads every document and answers your questions with probabilities. It's quick, it doesn't tire, and it gives numbers, not words.
  • LLM: Claude Code. Slower and more careful. It checks Jev's work, identified where Jev went wrong, and finds the sentence in the document that backs up a label.

The lesson: your label definitions are the product. Make them precise enough that a cheap model applies them consistently, and prove they hold, without hand-labelling anything.

You finish with insights into vast data almost for free


1 — Set up

Make a new folder, judging, and open it in VS Code. Download one of the data packs and unzip it into the folder:

Each pack has:

  • data/, the documents, one per line (JSONL)
  • DATA.md, where the data came from, its date range and fields, and the rules
  • jev-api.md, how to call Jev (Claude doesn't know it by default, so point it here)
  • jev_example.py, a working Jev call
  • check_quotes.py, which checks an evidence quote really appears in its document
  • .env.example

How the data reaches Jev. Each file in data/ looks like one huge file, but it's really a list: every line is one complete document (one tribunal decision, or one accident report) with its id, title, text and meta. You never send the whole file to Jev. Your program reads it a line at a time and makes one Jev call per document, with that document's text as Jev's state. 1,000 lines means 1,000 small calls, and that's exactly what jev_example.py does. To see what a single document looks like, ask the agent:

show me the fields and the first 500 characters of the first document in data/

Copy .env.example to .env and paste in the Jev key the facilitator hands out tonight. Then check it works:

python jev_example.py data/employment_tribunal_decision.jsonl 3

(For A2, use data/maib_report.jsonl or another accident file.) Three lines of answers means you're connected.


2 — Spec it (you write this, not Claude)

Ask the agent to read DATA.md and jev-api.md and interview you. You're writing four things:

  1. The question. One sentence that your final chart answers. For example, "What kind of failure does the tribunal most often hold against employers who lose?"
  2. The labels. Each label gets a one-line definition, one example that fits and one near-miss that doesn't. Always include unclear, so Jev can say it doesn't know.
  3. The output. One JSON line per document: id, Jev's answers with their probabilities and confidence, and later Claude Code's label and quote for anything Jev was unsure about.
  4. CLAUDE.md. The stack (Python, requests), the files, the Jev call, and the checks in step 5 as rules the build must follow.

Your definitions go straight into Jev's criteria, so a vague definition becomes a vague label.

Your mission maps onto Jev's question types (see jev-api.md):

  • To judge, use noul (yes/no) or score (a scale).
  • To categorise, use choice with your categories as the options.
  • To route, use choice with the people or channels as the options, each defined as "send me anything that…".

3 — Pilot on 30 documents

build it per CLAUDE.md, then run it on the first 30 documents only

Then the important part, the audit:

read the 30 documents and Jev's labels. Where would you label them differently, and why?
Point at the definition that caused each disagreement.

Fix the definition, not the data. Tighten the wording it points at, then re-run the 30. Do this two or three times. This loop is tonight's lesson, so don't skip it because the first run looked fine.


4 — Scale

Run the whole collection, or a few hundred documents if you're short of time. Keep to at most 5 Jev calls at a time. The whole room shares one key, and jev_example.py already retries if Jev says it's busy.


5 — Check the judge, without hand-labelling

  1. Free answer keys. The data already records some answers. Tribunal entries carry GOV.UK's own claim categories (meta.tribunal_decision_categories), and accident reports carry vessel, aircraft or railway type. Compare Jev's answers against them. Every mismatch is a free error check.

  2. Low confidence goes to Claude Code. Write anything Jev is unsure about to review.jsonl, then ask:

    label each item in review.jsonl using my definitions and give the exact sentence from the
    document that justifies it. Save the results to reviewed.jsonl
    

    Then check the quotes are real:

    python check_quotes.py reviewed.jsonl data/<your file>.jsonl
    
  3. Ask twice. Re-run 50 documents with your instructions worded differently. Labels that flip show you where your scheme is ambiguous.


6 — Make the finding hold up

Found something? Before you believe it:

re-read the documents behind this finding and tell me whether it holds. Show me three quotes
that support it.

Read those three quotes yourself. Then ask Claude to visualise your results in a table and/or chart on an HTML page. Say which collection, date range and how many documents it came from.


Rules for tonight

  • Real people. Tribunal decisions name individuals. Report in aggregate only, with no names on charts or anything you share.
  • Facts must be real. Every number says where it came from: the collection, the date range and the document count.
  • Spend wisely. Pilot small before you scale. The tribunal pack costs about 2 credits a document, and the long accident reports cost more unless you trim them (see DATA.md).

Round the room

One chart and one sentence: "I didn't expect…" If someone did tribunals and someone did accidents, compare them: are leadership failures and engineering failures the same failure?