Agents & workflows Lesson
My agent had the right company number and reported on the wrong company
A company name isn't an identity. Pin one company number first, then check that every piece of evidence is about that number, before anything is decided.
• On 18 Oct 2026 version 1 of my due-diligence tool, a research agent, called Wilko Limited high risk because of a 2023 collapse. The collapse belonged to a different company that had used the same name.
• It matched the registered name correctly. Then it treated news about the name as news about that company.
• Version 2 asks two questions before deciding anything: which company number is this, and is each article about that number? Then a person confirms.
Part of a series on the UK Company Pre-Screen, a tool that checks a UK company's public record before an underwriter quotes. Version 1 was a research agent that decided the risk itself; version 2 lets written rules decide (Version 1 let an AI agent decide. Version 2 lets written rules decide. compares them). This post is about how version 2 makes sure it is looking at the right company.
A confident report about someone else
Sixteen seconds. That's how long version 1 took to call Wilko Limited high risk. Companies House said the company was active, it wrote, but the news said it had collapsed. Refer to a senior underwriter.
Both halves of that sentence were true. They just weren't about the same company.
Two companies, one name

The Wilko chain that went into administration in August 2023 was company 00365335, registered as Wilko Limited. On 6 November 2023 it became WL Realisations (2023) Limited, and the same day company 09563205, The Range Finance Limited, took the name Wilko Limited.
So version 1 looked up Wilko Limited and got 09563205, the company that has held that registered name since November 2023. Then it searched the news for "Wilko", found the collapse, and counted it against 09563205. Nothing asked whether an article was about the company it had found, or only about the name. Two other runs, Thames Water and Apex Building Services, went further wrong: they never found a company number at all, yet reported a clean ownership register.
Who is this company? Two questions

Version 2 doesn't run a single check until the case is pinned to one Companies House number. A number counts only if Companies House has it; a name only if exactly one company has exactly that registered name, and it's active. Anything else returns candidates, and a person picks. It's ordinary code in src/prescreen/identity.py; no model chooses between search results.
That alone wouldn't have saved Wilko: "Wilko Limited" is an exact, active match, so version 2 pins 09563205 too. The second question is the one that matters. One written rule runs before any model sees the news: an article published before the company took its name can't be about it under that name, unless it mentions a previous name. The model then classifies the rest from their headlines and snippets, given the number, previous names and directors. A second rule overrides the model afterwards: a collapse is never counted against a company that Companies House shows active with no insolvency record. At most it's shown as "may be about this company".
Both rules are attribution heuristics, not proof. They can set aside news that matters, and an active entry on the register doesn't settle what a news story claims. So set-aside items stay on the page, and the underwriter confirms the number and address against the proposal before any decision is recorded. The server refuses a decision without that confirmation.
The same company, read on 26 Oct

Wilko's public example reads 12 news results and sets all 12 aside as about another business. The BBC's report of the brand sale is set aside by the date rule alone: it was published on 13 Sep 2023, before the rename.
The case is still Refer, and not because of the collapse. The example uses a proposal I invented for testing, a homeware retailer with £5m turnover, and the register shows a dormant activity code and micro-entity accounts, so the rules ask which is right. (On that run The Gazette also couldn't be searched; Before you quote a UK company, know what wasn’t checked explains.)
On the page, this means: check the company number and address before anything else, and glance at what was set aside.
Limits
- The gate trusts a unique, exact, active name. It would have pinned Wilko just as version 1 did, so the confirmation step does real work.
- The heuristics lean towards setting news aside. On this run they also set aside "Wilko owner says…", and the model labelled a credit facility as "regulatory action".
- Pinning the company isn't checking everyone behind it. Linklaters LLP has 336 members; the Pre-Screen checks the first 15 and says it couldn't check the rest (26 Oct run).
- County court judgments aren't covered.
Code: the Pre-Screen on GitHub (MIT)
Demo: Wilko's public example, read-only, no sign-up
System: how the Pre-Screen works, and what it can't do yet
Related: Version 1 let an AI agent decide. Version 2 lets written rules decide. · Before you quote a UK company, know what wasn’t checked · Nothing found isn't the same as nothing checked
Free: the AI Workflow Readiness Checklist
How does your system know two records are the same company, and who checks when it isn't sure?
First published 22 Nov 2026.
Get the next note by email
One short email when something ships or breaks. Free.