Software Project Management · 2 of 5

The Most Expensive Bug Is Never in the Code

What the software development life cycle is, and why early mistakes cost the most

In April 2005 the FBI gave up on a piece of software it had spent four years and about $170 million building. $105 million of that was code it would never run. [11] The software was supposed to replace a case management system from the 1990s that agents disliked so much they avoided using it. Four years after September 11, the FBI still couldn’t share basic case information electronically. [10]

You’d expect a failure that size to involve some spectacular bug. It didn’t. The inspector general traced it upstream of the code entirely: requirements that were badly defined and kept drifting, a schedule nobody could meet, and no plan for how the hardware, network, and software fit together. [10] The code was built on top of mistakes that were already there.

This is what the software development life cycle is actually for. Not as a schedule, but as a map of where mistakes get in and how far they travel before anyone notices.

Software starts before the first commit

The lifecycle is a list of kinds of work: discovery, planning, requirements, design, build, test, release, and then running and maintaining the thing. Programmers naturally think of their work as the middle of that list. But the parts before and after are where projects are mostly won or lost.

DiscoveryPlanDefinerequirementsDesignBuildTestReleaseOperate &maintainDiscoveryPlanDefinerequirementsDesignBuildTestReleaseOperate &maintain
A simplified lifecycle. The activities can overlap or repeat; the development model shapes how the team organizes them.

Discovery is figuring out what the problem is before you pick a solution. Planning turns that into a sequence: what first, who, what depends on what. Requirements say what the software has to do. The FBI and its contractor signed off on an 800-page requirements document before writing a line of code, and then the requirements kept changing anyway. [11] The stages that were supposed to settle the project hadn’t settled anything.

By the time a ticket reaches you, those three stages have already decided most of what the project is. So it’s worth asking what discovery found. Or whether it happened.

Checking each stage is not enough

Design turns requirements into screens and data flows. Build turns design into code. Test checks the code against the requirements. Each stage checks the one before it. That sounds rigorous, and it is. But it means every check can pass while the requirements themselves are wrong. The contractor delivered 700,000 lines of code. [11] Much of it did what the spec said. The spec just didn’t describe anything the FBI could use.

The rule is simple: the later you catch a mistake, the more it costs. Catch a wrong requirement in discovery and it’s a conversation. Catch it after delivery and it’s $105 million of code written off.

Release is not the end

Release puts the software in front of the people it’s for. Running it is where you find out what you missed. Most descriptions of the lifecycle put these last, which makes them sound like cleanup. They’re not. What you learn in operation is discovery for the next round.

The FBI learned this the hard way. Its replacement project, Sentinel, was planned so that every phase delivered something agents could actually use, and later on it aimed to ship new capability every three to six months. [12]

The lifecycle is a map, not a schedule

At this point you might object that this sounds like Waterfall. Do the stages in order and you get exactly the process that let the FBI’s mistake survive four years.

The objection is right about the danger and wrong about the lifecycle. The stages are kinds of work, not a calendar. What a method decides is how to arrange them: how much discovery before the first build, how often you release, how fast what you learn gets back into the plan. The Virtual Case File ran every stage once, at full scale. All the requirements, then all the design, then all the code. Same stages, done in small increments, and the first wrong assumption shows up in months instead of years.

Know where you are

Once you understand the lifecycle, a ticket looks different. You see it as the output of discovery, planning, and requirements, and you can ask whether those happened. You know that green tests confirm the behavior the tests check, not that the requirement describes something anyone can use.

The cheapest moment to be wrong about software is before anyone has built it. The lifecycle is a map of how far you are from that moment.

References

  1. U.S. Department of Justice, Office of the Inspector General, The Federal Bureau of Investigation’s Management of the Trilogy Information Technology Modernization Project, Audit Report 05-07, February 2005.
  2. Harry Goldstein, Who Killed the Virtual Case File?, IEEE Spectrum, September 2005.
  3. U.S. Department of Justice, Office of the Inspector General, Status of the Federal Bureau of Investigation’s Implementation of the Sentinel Project, Report 11-01, October 2010, and Interim Report on the FBI’s Implementation of the Sentinel Project, Report 12-38, September 2012.