11 November 2026

We Gave Jev Three Jobs. It Kept One.

We tested Jev in three parts of Immigranta. It failed our live-answer and grading tests, but found more relevant laws with far fewer false alarms than our keyword filter.

We build Immigranta, an assistant that helps people find and understand official UK immigration rules. It shows its sources so people can check the information for themselves.

In September, we tested a new kind of AI model in three parts of that product. It failed our live-answer test and our grading test. In the third job, it beat a filter we had trusted for months. That test cost 8.5 US cents.

The model was the same each time. The job was what changed.

A model that does not write

Most AI models people have met are writers. You ask a question and get paragraphs back.

Jev, from a company called TypeSafe, works differently. You give it some text and a narrow question. It gives back a number: how likely the answer is to be yes. It can also pick one option from a list, or place something on a scale. It never writes a sentence.

That makes it fast and cheap. In our tests one answer took about a quarter of a second. Asking six questions at once took the same quarter of a second. At the prices we checked in September, input cost $0.042 per million tokens, with no charge for output.

A product like ours is full of small decisions that look like yes/no questions. Is this document relevant? Is this figure in the source? Is this new law about immigration? We were paying a writing model to make those decisions in prose. A model built for exactly that seemed an obvious fit.

So we gave it three jobs.

Job one: helping with live answers

When someone asks Immigranta a question, we fetch a set of candidate documents and then decide which ones are good enough to answer from. A writing model made that decision. We gave the decision to Jev.

We also asked Jev to check each finished answer for figures and dates that do not appear in the sources.

Then we ran 12 hard test cases ten times with our usual pipeline and ten times with Jev. Each version produced 120 answers, which our existing evaluator graded against the same marking scheme. The 240-answer test took nearly five hours.

MeasureUsual pipeline (120 answers)With Jev (120 answers)
Answers the evaluator marked as passing115110
Answers the evaluator flagged for an unsupported claim16
Average cost to produce one answer2.10 cents1.95 cents

The Jev version cost about 7 percent less per answer. The grader flagged more unsupported claims in its answers. We could not audit those specific claims later because a bug in our test tool saved only the final answer for each case while keeping all ten grades. The counts are real grader results, but the flagged answer text from earlier runs is gone.

The difference in passes is small enough to be chance. The flagged claims raised a more serious question, especially because they clustered in two cases about sponsor duties and right-to-work checks. We could not verify them from the saved answers, so this result is a warning from the test rather than a confirmed count of invented facts. We did not ship the change.

Speed did not rescue it. A typical answer took 22 seconds before and 22 seconds after. The step Jev took over did get faster, from about nine seconds to five. But most of the wait is the writing of the answer itself, and Jev does not write. The slowest answers got much slower, from 36 seconds to 217, because the fact check kept raising alarms. It flagged 71 answers out of 120. Only seven needed changing.

The fix that made it worse

I thought I knew why the grader had flagged more claims.

A legal question is usually several questions at once. “What are a sponsor’s duties?” covers what to report, how long to keep records, and what happens to your licence if you fail. We had asked Jev whether a document “bears directly on what was asked”. It seemed to keep documents about the main point and drop the ones about the smaller points. That could leave the writing model without the source it needed for a complete answer.

So we changed the question. We told Jev to keep a document if it answered any part of the question.

Things got worse. One issue that both versions had handled correctly nine times out of ten was now handled correctly once in five. More documents reached the writer, and the writer reasoned worse with them.

That result is worth more to me than the first one. Letting in more context did not make the answer safer. In legal text, a passage that is almost relevant is a hazard. It looks right, it sits near the right one, and it carries a different number.

We reverted the change and closed the work.

Job two: marking our own homework

To test the product, we have an AI judge read each answer against a marking scheme. It is slow and it costs money, and a single run is noisy enough that we repeat every test ten times.

Jev returns a probability instead of a single verdict. That looked like the steadiness we were buying with repeats. So we asked whether Jev could do the marking.

We compared each marker against the majority view of ten runs of our usual judge on the same saved answer. For the “one run” column, each run was compared with the other nine, so it did not vote for itself. We graded 24 distinct answers ten times with each judge. The saved answers did not include retrieved source text, so this study could not reliably test either judge’s ability to catch invented facts.

MeasureOne run of our usual judgeJev
Agreement on each expected point in the answer96.5%59.6%
Agreement on whether the whole answer passed99.2%73.3%
Cost to grade one answer0.17 cents0.02 cents

Jev was eight times cheaper and several times faster. Its grading was too strict for this job. It failed answers that reached the right conclusion because they did not repeat every clause of the expected finding.

We read 24 of the disagreements by hand. Our usual judge was right in 14 and Jev in 9, with one too close to call. So our judge is not perfect either, and Jev caught it being lenient. That is useful to know. It is not enough to hand over the marking.

We also hoped Jev could do a cheap first pass and send only the hard cases to the expensive judge. It was confident on 17 percent of them. The other 83 percent would still need the expensive judge.

Job three: reading the new laws

UK immigration law changes often. Our system watches the official feed of new legislation and decides which items matter to us. Those go into a queue to be added to the product’s library.

That decision was made by a list of keywords. If a title contained “immigration”, “visa”, “border”, “removal” and so on, it went in the queue. Nothing checked it again.

We pointed Jev at the same job. One question per title: is this immigration law?

To mark the result we needed an answer key that was not our own opinion. The National Archives files UK legislation under subject headings. We took every statutory instrument from 2023 to 2026 and every Act from 2020 to 2026. That is 4,664 titles. About 3,400 of them carry a heading, and 96 of those are filed under immigration or nationality.

Immigration laws found (of 96)Wrong ones let in
Keyword list8888
Jev9111

The keyword list let in as much rubbish as real law. Twenty-eight of its mistakes came from one keyword, “eta”, short for Electronic Travel Authorisation. The filter matched those three letters anywhere, including inside ordinary words such as “Details”.

It also missed the regulations that brought the Illegal Migration Act 2023 into force. The list had “immigration”. It did not have “migration”.

In each of the four years Jev found at least as many immigration laws as the keywords and let in far fewer wrong ones. Judging all 4,664 titles took under two minutes and cost 8.5 cents.

Jev was not perfect. It scored a carriers’ liability regulation at 3 percent when it plainly belonged. And some titles give nothing away. A sentencing order was filed under immigration because of deportation clauses inside it. Nothing that reads only the title will find that.

The live queue gave us a smaller, concrete check in September. Six new laws were waiting to enter our immigration library. The keyword filter had admitted four unrelated items: one about Universal Credit, one about tax defaulters, and two about a carbon tax on imports. Jev scored all four at just 2 to 4 percent likely to be immigration law. It scored the two genuine immigration items at 96 to 97 percent. On these six, Jev made the distinction the keyword list had missed. The four unrelated laws had not yet been added, and a person still had the chance to remove them.

Why the same model failed twice and won once

Here is how I read it.

The first two jobs asked Jev to judge long legal text where the right answer depends on several conditions holding at once. Is this passage the one that matters for this limb of this question? Did this answer reach the right finding even though it used different words? Those are reading jobs. A quick probability is a poor substitute for reading.

The third job was a short title and one closed question. That is what the model was built for.

The setting mattered as much as the question.

In the first job a person was waiting, and a mistake went straight to them. The time we saved was hidden behind the slowest step. We took on risk and bought nothing a user would notice.

In the third job nobody was waiting. There were thousands of items. A mistake was cheap, and a person would see it before it did harm.

I now ask six things before putting a model like this anywhere:

  • Is the text short?
  • Is it one question with a closed answer?
  • Is there a lot of it?
  • Is anyone waiting for the result?
  • If it is wrong, is that cheap, and will someone notice?
  • Do we have an answer key that is not our own opinion?

The law monitor passes all six. The live answer fails most of them.

What I would copy from how we tested

Write the question down before you look at any results. For the law monitor we fixed the wording and the pass mark first and did not touch them afterwards. Otherwise you are tuning the test until it flatters you.

Find an answer key someone else wrote. The National Archives’ headings were not made for us, which is what made them worth using.

Repeat the test, and save every answer. One run can point the wrong way. Ten runs showed how much the pass rate varied. Our test tool then taught us a second lesson: grades are much less useful when you cannot inspect the exact answers they describe.

Look at the slowest cases, and at the typical one. The average said Jev made us 11 seconds slower. The typical answer had not moved at all. A few very slow answers were dragging the average.

Ask whether your test can even see the benefit. One of Jev’s jobs was to skip a step in follow-up questions. Every test case we had was a first question. The benefit could never show up, however many times we ran it.

Check the tool against its own documentation. One page of the vendor’s docs said a result was true or false. Another said it was a probability. The installed code settled it: a probability. Building on the first page would have quietly thrown away the thing we were paying for.

The tests also found a bug in our own test tool and a weak keyword filter nobody had measured. We had focused on avoiding missed laws. We had not counted the unrelated laws it let in.

A trial that ends by itself

We did not replace the keyword list. We gave Jev a vote.

When the keywords and Jev agree, nothing changes. When they disagree, the law goes on a short list for a person to decide. Over four years that would have been about two items a month. If Jev is unavailable, the keywords decide alone, as before.

The change merged in October and is running as a six-week trial through 20 November 2026. The day after that date it switches itself off unless we choose to extend it. Every decision is written to a log, including what a person decided on each disputed item. At the end we will compare those decisions and the official headings with what the two filters said at the time. The four-year backtest supports trying it; the live trial has not yet delivered its verdict.

I wanted the trial to end unless we chose to keep it. Plenty of experiments become permanent because nobody remembered to stop them.

The lesson we kept

We set out to make live answers cheaper and faster. The test did not show a benefit a user would notice, and it raised accuracy concerns we could not fully audit afterward. We left the live-answer system as it was.

The tests exposed a weak point we had never measured: the door through which new law enters the product. A fast yes/no model helped guard that door, with a person reviewing the disputed items.

For legal software, I would start there. Put this kind of model where there is a lot to sort and time to check. Be much more demanding before it shapes an answer someone may rely on.

That is the work behind Immigranta: finding the right official material, checking what belongs in the library, and showing the source beside the answer. If you have ever lost an evening trying to make sense of a UK immigration rule, try asking Immigranta and follow the sources for yourself.

Comments