Glossary termRisk metric

Bus Factor

Also known as: Truck factor, Lottery factor

Minimum number of team members whose sudden loss would leave a project unable to continue, a measure of concentrated knowledge risk.

The bus factor is the smallest number of people who would have to disappear suddenly, figuratively hit by a bus, before a project stalls because no one left has the knowledge, access or authority to keep it going. A bus factor of one means a single person is indispensable. Some prefer the gentler name lottery factor, imagining that the person wins the lottery and leaves. The measure captures concentration of knowledge, credentials and decision rights in a team.

Researchers have estimated bus factors from version control history by identifying which developers are the main authors of each part of a codebase. Studies of popular projects on GitHub have found that many depend heavily on one or two developers. The 2024 xz Utils backdoor, which affected a compression library maintained largely by one volunteer, showed how a low bus factor can create security as well as continuity risks, since an overstretched maintainer may welcome help from anyone who offers it.

Teams raise their bus factor by spreading knowledge and responsibility. Common practices include documentation, systematic code review so that more than one person understands each change, pair programming, rotating duties such as releases, shared and properly secured administrative access and explicit succession plans. Funding and recruiting additional maintainers for critical open-source projects addresses the same risk at ecosystem scale. The concept parallels the avoidance of single points of failure in high availability engineering.

Key points

  • A bus factor of one means a project depends on a single person.
  • Studies of popular open-source projects find many rely on one or two developers.
  • Low bus factors create security risks as well as continuity risks.
  • Documentation, code review and shared responsibilities raise the bus factor.

Related entries

Glossary term

Person or team responsible for reviewing contributions, managing releases and guiding the long-term health of a software project or package.

Glossary term

Code Review

Programming

Practice in which developers examine each other's source code changes to find defects, share knowledge and keep the codebase consistent.

Glossary term

Attack that compromises software by tampering with its dependencies, build systems or update channels, so trusted code delivers malicious changes to users.

Glossary term

Informal title for an open-source project leader, usually the founder, who keeps final authority over decisions and disputes.

Glossary term

Design goal and set of techniques for keeping a system operational and accessible for an agreed, very high proportion of time.

Glossary term

Structures and processes that determine how decisions are made, who holds authority and how conflicts are resolved in open-source projects.

Featured in guides

Referenced by

Other entries that discuss or point to Bus Factor.