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.

Teja Sagiraju · 4 min read
The short version
• 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

Two companies held the name Wilko Limited. Company 00365335, the retailer, was Wilko Limited from April 2021, went into administration on 10 August 2023, and was renamed WL Realisations (2023) Limited on 6 November 2023. The same day, company 09563205, until then The Range Finance Limited, took the name Wilko Limited.
The name moved from one company to another on the same day. News about the first is not news about the second.

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

Who is this company: two questions. First, which company number: a number on the register; or a name, only if exactly one company has that exact registered name and it is active; anything else, a person picks. Second, is each article about that number: an article dated before the company took its name is set aside without a model; the model reads the rest from headlines and snippets; afterwards, a collapse is never a reason for a company Companies House shows active with no insolvency record. Then a person confirms the number and address.
The amber step is the one model call. Everything else is written rules.

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 News tab: 12 read, 0 events, 12 set aside. The BBC's 13 Sep 2023 report of the brand sale is set aside because it was published before this company took its current name on 6 Nov 2023.
Wilko's public example, News tab (26 Oct run). 1: nothing counted as about this company. 2: all 12 results set aside. 3: the date rule at work on the BBC's report of the brand sale.

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.

First published 22 Nov 2026.

Written by Teja Sagiraju

AI engineer with 14 years across machine learning and applied AI: prompt design, document AI, LLM workflows and the review loops that make them safe to ship. I build real systems and write up what breaks along the way.

Connect

Get the next note by email

One short email when something ships or breaks. Free.