Skip to content

[P14] Implement bus_factor tool #3

@four-bytes-robby

Description

@four-bytes-robby

Goal

Calculate bus factor per directory — identifies modules that would be orphaned if key contributors left.

Parameters

  • since (string, optional) — time window filter

Implementation

  • Aggregate git blame and commit data per directory
  • Compute ownership concentration: what % of lines/changes does the top author own per directory
  • Flag directories where one author owns >70%
  • Return per-directory bus factor score and ownership breakdown

Tests

  • Test with mock git blame/log output
  • Verify bus factor = 1 detection
  • Test directory grouping logic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions