Quality, safety and people · lesson 4 of 8
Ideas in this lesson
ASafety-criticalsoftware whose failure can injure or kill
BACM Code of Ethics“avoid harm”; the public interest comes first

When software harms people

Last updated

Software decides who gets a queue number, but also how much radiation a patient receives and whether an account balance is believed. When it's wrong, real people are hurt, and how the people around the software respond matters as much as the bug. In this lesson you'll study two of the most important cases in the field: the Therac-25 radiation therapy machine, and the UK Post Office's Horizon system. Then you'll read what the profession's codes of ethics ask of you.

By the end of this lesson you can

  • Explain how the Therac-25 accidents happened, beyond “a bug”
  • Describe how trust in the Horizon system led to wrongful prosecutions
  • Use the ACM codes of ethics to decide what to do when software may cause harm

Therac-25

  1. 1982 A new machine Design
1 of 5 1982. The Therac-25 treats cancer with radiation. Earlier models had hardware interlocks: physical safety devices that stopped a dangerous beam. The Therac-25 relies on its software instead, partly reused from the earlier models.
Why didn’t the same software faults cause accidents in the earlier models?

The Post Office and Horizon

Here the software didn't injure anyone directly. The harm came from people treating its output as proof.

  1. 1999–2000 Horizon is rolled out Release
1 of 6 1999–2000. The UK Post Office introduces Horizon, an accounting system built by Fujitsu, in its branches. Sub-postmasters, who run branches as small businesses, must make good any shortfall it shows.

A legal presumption made it worse: in English courts, computer evidence was presumed reliable unless shown otherwise, which was very hard for a sub-postmaster with no access to the system's records to do.

What the two cases share

Two cases, the same patterns
PatternTherac-25Horizon
Overconfidence in the software“Overdoses are impossible”“Horizon is robust”
Reports from users dismissedOperators’ and hospitals’ reportsSub-postmasters’ complaints
The people harmed couldn’t see insidePatients and operatorsSub-postmasters had no access to the data
Independent checking came lateAfter several accidentsOnly through court cases, years later

Neither is only a story about a bug. Every system has bugs. These became disasters because of how organisations responded to signs that the software might be wrong.

The codes of ethics

The ACM, the largest professional society for computing, publishes a Code of Ethics and Professional Conduct. Among its principles: contribute to society and human well-being; avoid harm; be honest and trustworthy; and give comprehensive evaluations of systems, including their risks.

The ACM and the IEEE Computer Society also publish a Software Engineering Code of Ethics, with eight principles. The first is the public: software engineers shall act consistently with the public interest. That comes before the client and the employer.

Rina finds that Pila sometimes shows a patient as “already served” when they weren’t. It’s rare, release day is tomorrow, and Bea is under pressure. What do the codes ask of Rina?

Spot the trap: “the computer says so”

Spot the trapAte Cora

A patient insists she got number 14 by text, but Pila says number 14 belongs to another phone and shows her phone with no number. She’s angry. A new health worker says: “The system says you don’t have a number. Please queue again.”

What happens if…

Check what you learned

What was one cause of the Therac-25 accidents?
What did the High Court find about Horizon in 2019?
In the Software Engineering Code of Ethics, whose interest comes first?

Sources

Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.

All sources for Simple Software Development