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
| Value | What it means |
|---|---|
| 1 | a critical area is held by a single person — their departure or a long illness brings the project to a halt |
| 2 | key knowledge is shared by two people: the project will survive losing one, but not both |
| More | the 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 pagesVerified 9 Nov