Skip to main content

Module routing

Module routing 

Source
Expand description

Ownership-aware reviewer routing (6.D).

Per changed file, name the expert(s) to route the review to: CODEOWNERS declared owner plus git-blame / recency contributors, and flag a bus-factor-1 risk (the only qualified owner is one person). Reuses the health ownership / bus-factor machinery (compute_ownership, CodeOwners, churn) rather than a parallel implementation.

This is the people-layer of the review direction: it answers “who do I ask?”. Advisory brief data; never gates.

Structs§

RoutingFacts
The full routing section: one unit per changed source file with a routable signal. Files with no ownership signal are omitted (no noise).
RoutingUnit
One routed unit with its experts and bus-factor flag.

Functions§

compute_routing
Compute the routing section for the changed files. Best-effort: returns an empty RoutingFacts when churn is unavailable (non-git repo, shallow clone with no history). CODEOWNERS is consulted when present.