Writing
Evals

Comparison or recognition?

How to split the work between code and LLMs when the question is "are these two records the same person?"

PublishedOct 16, 2026
Reading12 min
TopicEvals
The problem in one sentence

deciding that two records describe the same person is an act of recognition, not a calculation, and a system built only from thresholds keeps being wrong in ways no threshold can fix.

In a confidential OSINT and HUMINT project (open-source and human intelligence), I built a system that collects public records about a person and decides which ones are really theirs.

We started the way most engineers would: with a scoring system. Every collected fact got two numbers. Match: does this refer to the same human? Trust: is the source reliable? Both computed, both tunable. We tuned them for months.

Then we measured.

What the measurements said

01We were tuning the wrong thing

Most of our changes moved the adoption bar: the check that decides whether a fact may enter the report. When we finally replayed every stored row, the bar turned out not to be what held anything back. Rows judged by an older version of the scorer were adopted at 5%; rows judged by the current one at 63%. What decided the outcome was which scorer had seen the row, not where any bar sat.

02The match score read the one thing namesakes share

In practice, the match axis was a name comparison. So the main evidence for "this is the same person" was the exact attribute that two different people with the same name have in common. On the LinkedIn rows a human had labelled, 21 of 31 were wrong: 68%, in exactly the place where a name is almost the only thing on the page.

03What a looser bar would let in

We triaged every row a human had marked false, 94 of them. Most had been refused, not shipped, so this table measures what any loosening of the bar would admit:

What the false row really was
Share
True, but about a different person
54%
A page that describes no person at all
32%
The right person, with the page misread
≥ 2%
A third party stored as the subject
1%
Not yet triaged
11%

Over half were true facts about someone else who shares the name. A looser bar does not admit reading errors. It admits identity errors.

04Almost nothing was decided by the rules we wrote

We had designed two careful routes into the report: two independent sources agreeing, or one trusted source where that is allowed. Together they accounted for 23 rows. 264 rows got in because nothing stopped them.

That catch-all bucket ran at 95.1% precision over the 144 rows that carried a label. Respectable, and it was a default, not a decision.

All four findings are the same failure. We built arithmetic to answer a question arithmetic cannot answer, found it answered almost nothing, and filled the gap with a default.

How recognition actually works

You recognise a bottle because you have seen thousands of them. Your brain is matching probabilities, and it does not report a percentage. It reports "that's a bottle".

In the dark, two things happen. Sometimes you feel the doubt: "it might be a bottle". And sometimes a pile of clothes on a chair confidently becomes a face. Low information does not produce low confidence. It produces a confident wrong answer. Hold on to that; it matters later.

Now an analyst's everyday chain:

I find Jean Dupont on Facebook, with a photo. I find Jean Dupont on LinkedIn, with a different photo. Not the same photo, but it looks like the same man.

He works in IT. There is a Jean Dupont on a Linux forum: that fits. There is a Jean Dupont on a gardening forum: that fits nothing. I cannot link it, and I cannot rule it out.

On his Instagram there is a photo of flowers. Maybe the gardening account is his after all.

Every step is an inference from knowledge of the world: what a Linux forum says about a person, that hobbies are not jobs, that a photo of flowers is weak but real evidence. No threshold produces any of it. Not because the threshold is set wrong, but because a comparison function knows nothing about the world.

Three kinds of inference, and only one is arithmetic

1. Agreement: code does this well. Two records share a registration number or a date of birth. That is comparison. Code also does the part humans do badly: combining agreements without double-counting. Three sites that copied the same press release are one piece of evidence, not three. And asking a model twice does not give you two independent opinions.

2. Coherence: code cannot do this at all. "A Linux forum fits an IT career" shares no field and no string with anything. It takes knowing what Linux is and what an IT career looks like. This is where most of those "true, but about someone else" rows are decided: two people with one name are separated by which story hangs together, long before any identifier proves it.

3. Bridging: a model's job, on a leash. "He posts flowers, so the gardening account may be his" only exists because the IT identity was already established. It is weak and speculative, and it is exactly how real investigations move forward. It is also where a model over-reaches, because bridging is creative and models are good at creative work.

"Doesn't fit" is not "contradicts"

The gardening forum is not evidence against. It is the absence of coherence, not the presence of a contradiction. Treat "doesn't fit" as "disproves" and you split one person into three; treat it as "fits" and you merge three into one. The right answer is a third state: unlinked, still open.

And "still open" is not a plan. A system that runs once never sees new data arrive. So name the check that would settle it, run it, and record the result, including "we looked and found nothing".

A wrong join does not sit still

A human who briefly conflates two people corrects it in an afternoon. A research loop compounds it: a wrongly adopted fact becomes the next round's search term, and what that search returns becomes the round after's corroboration. Three rounds later, the wrong person's evidence is supporting itself.

The merged file also reads better than either real half, because merging smooths away the contradictions that would have warned you. Undo in the database does not un-run the searches the wrong join directed, and it does not recall a report already sent.

Four places the analogy breaks

"A group of models can do what the analyst's brain does" is right about the mechanism. Four things do not carry over, and each is a design requirement.

  1. 01A model's stated confidence is not a measurement. When a model writes "confidence: 0.85", that is generated text, made by the same machinery as the rest of the answer. A model sounds equally sure when it recognises and when it invents. Never use that number for anything; learn what a verdict is worth by checking verdicts against known answers.
  2. 02Low light is the normal condition. Most records are thin and most pages are ambiguous, and a model asked "same person?" will answer, because answering is what it does. "I don't know" must be a free answer, and you must count how often it is given. A model that never says it is not careful; it is guessing fluently.
  3. 03The errors are lopsided. This system writes a stranger's career into a report a client reads. So the model is free to infer, but gated on consequence: its verdict is a lead, and a deterministic rule decides what may be written for good.
  4. 04It replaces the analyst's work, not the analyst's accountability. With no person in the loop, three things must stand in for one: an audit trail of what was decided and why, the ability to reverse a decision, and measurement against ground truth. When I first wrote this up, only the audit trail fully stood.

The division of labour

Job
Owner
Comparing values, dates and identifiers
Code
Rating a source
Code, a lookup
Chronology: careers that cannot overlap
Code
Combining evidence without double-counting
Code
Recognising that a record fits a life
Model
Bridging two identities on weak signals
Model, on a leash
Deciding what may be written for good
Code

Code is not the failed approach to replace. It is the half that keeps the other half auditable and cheap.

Three rules of thumb came out of building it:

  • A model decides, unless code can decide it exactly and explain itself. Do not write a list of what the model may do: any list of allowed roles becomes a ceiling the day it is written.
  • Computation first; the model takes the rest. Spelling the particle von or van, de or du is a table, and costs no call. What no table holds goes to the model. (The Names piece shows this split in detail.)
  • A needed model call is never the objection. The call replaces a person who would otherwise do that step. If the step is missing because nobody makes the call, "it costs a call" is not a reason.

How to ask the model

  • Hand over the whole pile, not one yes/no at a time. Asking "does this row belong to this person?" row by row is arithmetic habit in a model's clothes. Give it everything the code did not settle and ask for a redistribution: this goes here, these two are one person, this one I cannot place. That is how an analyst spreads documents on a table.
  • Rank; never claim a probability. Return every plausible candidate and say who stands clear of whom. "Strongly ahead" and "three close together" are both honest answers. "83% chance this is your man" needs calibration data you probably do not have.
  • Fence scraped text as data. Everything collected was written by strangers, and some of them would like to steer your conclusion. Wrap it in a labelled block and tell the model that anything inside is evidence about a person, never an instruction.
  • Keep the client's story out of the linking step. The client's description of the person may rank and seed the search, but must never prove anything. Enforce it with what the step receives, not with a sentence in a prompt.

A worked example

Run the chain above the way the system should.

What code settles first, for free:

  1. 01Facebook and LinkedIn both say Jean Dupont. The search was by name, so that is worth almost nothing.
  2. 02LinkedIn gives an employer and a school; Facebook gives neither. No contradiction: a missing field is not a disagreement.
  3. 03The Linux forum profile shows an email that also appears on LinkedIn. That is an identifier agreement: linked by code, no model involved.

What goes to the model:

  1. 04The two photos. Same man? That is recognition. The model gives a verdict, its basis (stable features versus changeable ones), and is allowed to say "cannot tell".
  2. 05The gardening account. Unlinked, open, and the model names the check that would settle it: does its registration host or contact address appear on any account already held? The check runs and its result is recorded either way.
  3. 06The flowers. The model may raise a bridge, recorded as a hypothesis, not folded into a score.

What happens to the model's answers:

  1. 07They are leads. A deterministic rule decides what commits: two agreeing non-name facts, no contradiction, names never counted.
  2. 08The bridge fails that rule, since one photo is one weak signal, so it stays an open question, with the attempted check and its empty result attached.

What the client reads: one candidate on Facebook, LinkedIn and a Linux forum, tied by a shared email; a second, thinner candidate for the gardening account; and an open question with the evidence and what was tried. Not one answer, and not a percentage.

How to know it is working

Name the incumbent. The model does not replace nothing; it replaces a default running at 95.1%. It ships only when it beats that on held-out data, with no loss of coverage.

Be honest about small samples. Six correct out of six sounds perfect, and is consistent with a true precision anywhere above about 54%. Detecting a two-point improvement on a 95% baseline needs roughly 1,500 labelled decisions per arm; even a jump to 99% needs about 300. A second labeller is a prerequisite, not a refinement. And the first prompt tuned against your labels turns them from an evaluation set into a training set, for good.

Pay for a replay before you switch models. Before moving the hard calls to a bigger model, I spent $18 replaying 20 hard cases. Opus 5.5 put nothing false on a record; Sonnet 4.6 did so 12 to 22 times across readings. The same test showed that grouping several questions into one call moved verdicts 15.6% of the time, against 5.6% of ordinary run-to-run noise. So each question kept its own call.

The check

00 / 09

Before building judgement into a system, ask:

Any "no" to 2, 5, 6, 7, 8 or 9 is a defect, however well the model performs in review.

Lucas Merlette · Oct 16, 2026Back to top
Related project
Confidential OSINT engineAn AI research engine for confidential investigations.Read the case study
Next article
Agents · 10 minDirecting AI coding agents on a 1,000-commit codebase