Skip to main content

Module pair_programming

Module pair_programming 

Expand description

pair-programming analysis.

Counts commits that carry one or more Co-Authored-By: trailers and emits per-pair pair-counts. The Co-Authored-By trailer was formalised by GitHub circa 2017 and is now standard signal for pair / mob sessions; CodeLore’s identity layer already parses it for the AI-attribution bot detection. This analysis just aggregates the pairs.

Trailers are extracted via regex over the message column at query time. Pre-extraction into a sibling table during ingest (similar to the ai_attribution field) is a potential future hardening; query-time extraction over O(N) commits is fast enough on DuckDB for the row counts users hit.

§Note on trailer noise

Bots are already filtered from commits.canonical_author, but Co-Authored-By: trailers may still reference bot identities (Renovate has historically added itself). The post-processing drops any pair where either side matches the known-bot list.

Structs§

PairRow

Functions§

run_pair_programming
Run the pair-programming analysis. Returns rows ranked by pair-commit count DESC.