a system that builds files on people had 161 identity rows, and three of them were people. Everyone blamed the language model. A GROUP BY did it.
In a confidential OSINT and HUMINT project (open-source and human intelligence), I built a system that collects public records and sorts them into people. Between a person and each fact about them sits a middle layer: the persona, one coherent slice of someone's life.
This is the story of that layer going wrong, how we found who did it, and what it taught me about measuring something that has no right answer.
What a human means by an identity
An identity is a coherent set of information that makes up a person in a given time and place. That is the whole definition, and everything hard about it follows from what the definition leaves out.
There is no rule for separating two identities. A human draws the line from experience, some sociology and psychology, and well-aimed searching. The output is never certain. It is "87% chance it's the same identity", said as "yeah, that's very probably the same one". It is also revisable: I was wrong; in light of this, it is not the same identity.
A worked example
Take a fictional subject: Jean Dupont, 34, French, living in Lyon. A data engineer, co-founder of a small studio, and also a freelancer in his own name. He is @quillmoth on GitHub.
Search his name with "github" and you find a comment he left years ago on an open-source project. That old page shows him as @jdupont84, the handle he had before renaming it. Only a search engine's cache still holds the link between the two.
He is also a shareholder in a small property company with three others: two born around 1960, one around 1990, all sharing his surname. A paper's acknowledgements thank him as a mentor at a former employer, which is how you learn he worked there. And from his handle you reach an Instagram account full of photography, food and travel, one of whose photos a travel blog reposted.
How that decomposes
One person. Several identities, which nest naturally:
- The engineer: the co-founder, the freelancer, the former mentor, the GitHub account, the forum commenter.
- The family shareholder: one seat in a family property company.
- The photographer: the Instagram account.
Two properties of that split matter more than the split itself.
The resolution is a choice. "The engineer" holds five inner identities. You could stop at one or go to five; there is no correct depth, only a useful one.
Talking to one addresses its branch. Someone who hires the co-founder is dealing with every engineering identity at once. The blog that reposts a photo knows only the photographer. And the person answering, in either case, was shaped by all of it. It is one man.
The consequence people miss
The final report has no identities section. The Instagram account tells you what he likes, and that shapes how you approach him, but no deliverable ever says "he has a strong Instagram identity". The persona layer is internal bookkeeping. Getting its count wrong does not produce a wrong report.
That fact turns out to govern everything below.
What the machine built instead
Measured on our development data:
The "things" were breach records ("exposed: email addresses, passwords"), closed companies, and bare company registration numbers.
The junk did not stay in the junk pile. One real person held four identities: his name, a company number, a placeholder for "not disclosed", and a closed company. The web app draws a persona grid whenever someone holds two or more, so a living person was displayed as partly made of a company registration.
The forensic trace
Everyone assumed the language model did it. The system has an LLM step that splits records into personas. It was wired, it ran, and the conclusion wrote itself.
A fingerprint disproved it. Each persona row stores a short summary of why it was created, and the two creation paths write it differently. The code-based grouper writes the registry number it grouped on. The LLM path writes the literal word inferred.
inferredThe language model had never created a single identity. Every harmful row came from arithmetic.
The mechanism fits in three lines of logic:
- 01A record joins the group of its first identifying anchor.
- 02A company registration number counts as an identifying anchor.
- 03The group is named after whichever member sorts first.
A bare 123456789 sorts before QUILLMOTH STUDIO (123456789), because digits sort before letters, even though that second row sat in the same data. A company became a man's alter ego by sort order.
It gets worse for the assumption. The LLM step's own prompt told it to keep records together as one persona by default, and to recognise that a third party is not the subject. It was written to avoid precisely the error it was blamed for.
One more honest note: a review council of five AI personas had examined this layer over three rounds. When we re-checked every claim against the live database, two of the most-cited ones did not survive, including one of mine.
The same result, twice, in one day
That same morning, we measured the web-search step separately. Its written summary was right on 20 of 20 checked entries. The page links it cited were right on 4 of 11.
The half everyone distrusted, the model's prose, was the reliable half. The half the code treated as load-bearing was wrong more often than a coin flip.
Two independent measurements, one direction: judgement beat retrieval, and arithmetic produced the harm both times.
Measuring a layer with no right answer
Every other claim in the system can be labelled right or wrong. A persona split cannot: two analysts can divide the same evidence differently, and both be right. That is not a gap to close; it is a property of the thing. It means:
- no labelling campaign will ever validate this layer;
- "ship it at 95% precision" is not available;
- the honest test is coherence: does the grouping read sensibly?
Three things around it can be measured:
- 01Merging and splitting at the person level. Two humans in one candidate, or one human spread across several. Both have a right answer.
- 02Self-agreement. Run the same step twice on the same input and score how much the two answers agree. No human labels needed, and it is a hard ceiling: a step that disagrees with itself cannot be right more often than that.
- 03What a wrong grouping drops. A misfiled persona silently removes facts from the person's view, and that loss can be counted without any labels at all.
Label two things, not one
A labelling question like "is this value true?" sounds like one question. It is two: true, and about whom? Ask it as one and a namesake's birth year gets marked "correct", because it is true of someone. On our data that produced two contradictory birth years for one man, both marked correct. The fix is not more labels. It is labelling truth and identity separately.
The data model that survived
Four concepts. Three earn a table of their own; one does not.
- Candidate: an entity. The person. Ownership, erasure and audit all hang here.
- Account: an entity, and the one we were missing. An account has a real identity in the world: it survives every change to its contents. Our code knew this ("the key is the account, not the person") and then keyed accounts on a URL. A URL is a name. Rename the handle and the key breaks, which is exactly why
@jdupont84→@quillmothwas unrecoverable except through a search cache. Key accounts on the platform's stable ID, and keep handles as aliases with the dates they were valid. - Attribute: an entity. It has its own lifecycle, validity dates and source.
- Identity: not an entity. It is a label derived from its members, with no lifecycle of its own. It keeps its row only because it is the join between an attribute and its person.
Where does a relationship go? A colleague, a company and a breach are all attributes, and a relationship is an attribute with a nature, drawn differently in the report. Not a separate object.
And the family guess from the example belongs nowhere near this layer. "Shareholder in a property company" is an attribute. "Co-shareholder, born around 1960" is a relationship. "These four are a family" is an analytic hypothesis: reasoned, hedged, and open to disproof. Make it structure and the schema asserts what the evidence only suggests, with nowhere to hang the evidence against it.
Three constraints worth stealing
- 01Make sure deletes cannot cascade through evidence. When attributes hang off a persona and the database deletes them with it, "clean up the junk personas" destroys facts with no way back. Fix the junk by re-attaching facts to the right persona, never by deleting.
- 02A registry number may group, but must never name. Grouping a person's registry records by company number is the most precise signal available. Naming a person's persona after that number is the bug. They are different lines of code. Always show a company's name before its number:
QUILLMOTH STUDIO (123456789), never123456789. - 03"No anchor" does not mean "a person". The splitting step was fed the records with no name attached. A company number is a fine anchor for a company and none for a human, so that filter concentrated exactly the rows that describe no person, then asked a model who they were. Check that a record looks like a person before asking whose it is.
The check
00 / 06Before you blame the model for bad data, and before you build a layer like this:
A "no" to 1, 3, 5 or 6, or a "yes" to 2 or 4, is a defect waiting to mislabel a person.