# Post Office Horizon and the cost of trusting software evidence

Source: https://techduediligence.co/insights/post-office-horizon-software-lessons/

Between 1999 and 2015 more than 900 sub-postmasters in the United Kingdom were prosecuted on the strength of shortfalls shown by an accounting system called Horizon. In 2019 the High Court found that the system contained bugs, errors and defects that could cause such shortfalls. For anyone who relies on software in a transaction, the case is a sober reminder that what a system reports is evidence to be tested, not a fact to be assumed.

## Key points

- Treat figures produced by software as evidence whose reliability can be examined.
- Ask for the record of known defects in any system whose output you rely on.
- Establish who can change data in the system, and whether every change is logged.
- Where a supplier runs the system, check that its customer can obtain the supplier's records.

## What happened

Horizon is an accounting system supplied by Fujitsu and rolled out to Post Office branches from 1999. Many branches are run by sub-postmasters. When Horizon showed a shortfall in a branch's accounts, the sub-postmaster was held responsible for it.

Between 1999 and 2015 more than 900 sub-postmasters were prosecuted on the strength of those shortfalls. People were convicted of criminal offenses, and some were sent to prison.

In 2019, in Bates v Post Office, the High Court found that the system contained bugs, errors and defects that could cause shortfalls. A statutory public inquiry followed. In 2024 Parliament passed legislation to quash the convictions.

People were wrongly convicted, and nothing in a discussion of deal practice is comparable to what they lost. The reason to study the case in this setting is that it shows what can follow from an assumption that is ordinary in business: because a figure came from the system, the figure is right.

## Software output is evidence, not fact

Every number in a data room came out of software. Revenue comes from a billing system, customer retention from a database, product usage from telemetry, cash from an accounting package. Financial diligence tests how those numbers reconcile. It seldom tests the software that produced them.

A system can be wrong in ways its output does not reveal. An invoicing routine rounds in the wrong direction. A metering job counts usage twice when it is retried after a failure.

For a dealmaker the practical question is which figures in the model depend on the correctness of the target's own code. In a company that bills by usage, revenue is computed by software the company wrote. A view on the quality of that software is a view on the quality of the revenue figure.

## Known defects and who knows about them

Every substantial system has defects. What distinguishes a well-run system is that its defects are recorded, understood and disclosed to the people they affect.

Engineering teams keep that record in several places: an issue tracker, a list of known errors and workarounds and incident reports. They are candid documents, and they are rarely requested in a transaction. A review asks for them, and asks:

- How many open defects affect money, balances or the integrity of data?
- Are affected customers told, and how?
- Has a customer disputed a figure the system produced, and how was the dispute investigated?

The last question matters most. A history of disputes closed with the answer that the system is right, and with no investigation of the system, is a warning. So is an empty defect record, because a team that records nothing has not eliminated its defects. A full and well-kept record counts in a seller's favor, as the article on [common findings in technical due diligence](/insights/common-findings-in-technical-due-diligence/) explains.

## Audit trails and the power to change data

A record proves what a user did only if nobody else could have changed it, or if every change by anybody else is itself recorded. The reliability of a system as evidence therefore depends on its controls over privileged access as much as on the absence of bugs.

Three questions establish this. Who can alter data without going through the application: database administrators, support engineers, an outside supplier? Is every such change logged? Are the logs protected from alteration and kept long enough to matter?

The answers are often plain. A support engineer corrects customer balances directly in the production database, and no log is kept. That is a security finding, and it is also a finding about how far the company's own records can be relied on.

## What this means in a transaction

The lesson applies in three situations.

**The target's figures depend on its own software.** The review identifies the code that computes the figures the valuation rests on, and examines its quality, its tests and its defect history.

**The target supplies software whose output its customers rely on.** Billing, payroll and accounting products are examples. Defects in such a product are a liability of the target. The review asks about the history of disputes, how defects are disclosed to customers, and what the contracts say about responsibility for errors.

**The target relies on a system run by a supplier.** The records that would settle a dispute are then in the supplier's hands. The contract should give the customer the right to obtain logs, known-error records and incident reports, and a review checks whether it does.

A warranty that refers to a disclosed register of known defects is more useful than a general statement that the software works, as the article on [representations and warranties about software](/insights/representations-and-warranties-software/) explains. This is general information and not legal advice. Contract terms and the rules of evidence differ by jurisdiction, and counsel should be consulted.

## The cost of assuming software is correct

Asking is cheap. A defect log, a list of who holds privileged access and a sample of the audit trail can be requested in a single email.

The cost of not asking arrives late. Horizon was rolled out from 1999, and the High Court's findings came in 2019. The records that would settle such questions early have to exist and have to be kept.

The habit worth forming is simple. When a system reports one thing and a person with direct knowledge says another, both are evidence, and the system's account has to be examined before it is preferred.

## How we approach it

Our report is built on the principle this case illustrates: a statement is only as good as the evidence that can be opened behind it. Every claim in the report cites a finding, and every finding opens its source material. Each section states what was examined and what was not.

We hold our own process to the same standard. Every view, download, scan and sign-off is in an audit trail that both sides can see. On closing day the final scan results and the findings register are sealed into the IP Package with the source code at its closing state, and the sealed record is retained for three years in the evidence vault.

The review is described on the [technical due diligence](/tech-due-diligence/) page, and the sealed record on the [escrow and IP Package](/escrow-and-ip-package/) page.

## Questions we are asked

### Does technical due diligence check that a system's calculations are correct?

Not exhaustively. A review reads code quality, architecture, security and history, and it does not re-perform every calculation a product makes. Each section of our report states what was examined and what was not.

### What should a seller disclose about known defects?

What must be disclosed is a legal question for the seller's counsel. A current register of known defects, with their effect and status, serves a seller better than silence. It lets warranties be drafted against a known list.

### Why keep the evidence after closing?

Because disputes arrive later than anyone expects, and they turn on what the software was at a given date. Our sealed record of the code, the scan results and the findings register is retained for three years, which is the subject of the article on [evidence for warranty claims](/insights/warranty-claims-evidence/).
