Bookmarks

Bus factor

A team risk metric: the minimum number of people who would have to suddenly leave for the project to stall through loss of critical knowledge.

Also: truck factor, bus coefficient, knowledge concentration risk

checked 9 Nov

All terms

The metric was proposed by the agile community, and the name comes from the joke “what if someone gets hit by a bus”: this is how people describe any sudden departure — dismissal, illness, parental leave, moving house. The bus factor measures how evenly knowledge is spread across the team: the smaller the number, the more the project depends on particular individuals.

How it is measured and improved

ValueWhat it means
1a critical area is held by a single person — their departure or a long illness brings the project to a halt
2key knowledge is shared by two people: the project will survive losing one, but not both
Morethe larger the number, the more people have to leave for the project to stall, and the better the knowledge is spread

In research practice the factor is estimated from the commit history: the analysis determines who “owns” which files and looks for the smallest group of developers whose departure would leave most of the project’s files ownerless.

  • pair programming and joint development instead of working alone
  • code review without exceptions: at least one person reads someone else’s code
  • documentation of decisions — ADRs, diagrams, deployment procedures
  • task rotation: everyone tries their hand at every critical area
  • shared code and repositories instead of private notes “in a notebook”

Example: open-source projects

In a study of 133 popular GitHub projects, 65% had a factor of 2 or lower — typical for open source. Estimates by the same authors’ tool, as of November 2016: Docker — 13, Rails — 11, AngularJS — 6, React — 4, Vue — 1. A small number is not a death sentence: a project may run stably for years, but every major library with a factor of 1 is a potential single point of failure for everyone who uses it.

When it comes up

Usually after the fact: someone leaves or moves away, and nobody can take over their area — support, deployment, a rarely used module. In small teams and personal projects every person is critical, which is where the risk is greatest. The loss of key knowledge is recorded in the risk register as an ordinary project risk — with a mitigation plan, not as an emergency.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • SDLCsoftware development life cycle

    SDLC describes the stages of software development from idea to retirement, while the bus factor is a team’s dependence on particular people with unique knowledge.

  • risk register

    A risk register lists the risks of a project; the bus factor is one such risk, and its value is convenient to record in the register.

  • code review

    Code review is one of the practices that raise the bus factor, but not the only one: rotation, pair work and documentation matter as well.

In depth in the references

where the topic is covered in detail