Repository navigation
Description
Goal
gitgalaxy evolution REPO writes a one-page, plain-language history of a repository: how it grew, where the work went, how quickly and where repairs arrived, which functions keep needing them, and a fact sheet of where it stands now. It describes the past; it does not forecast bugs. It is for readers who will not read the research, so every section links to a wiki page that explains how its figures are computed.
Owner decisions, 2026-11-19: the command is called evolution; it works from git history alone and gets richer with scans; the headline is "Evolution of X"; the reliability of the look-first and triage lists is not part of the report (that is a separate gitgalaxy backtest, tracked elsewhere); readers are assumed not to read the research.
Where it lives
A new sensor module gitgalaxy/tools/sensors/evolution.py with add_arguments() and run(), registered in gitgalaxy/cli.py next to reach, libsurface, activity and change, read-only, with the shared --offline flag (#8624). It should call the existing activity, libsurface and reach code for those sections instead of reimplementing them.
gitgalaxy evolution REPO # git history only
gitgalaxy evolution REPO --db SCAN_DB # with a finished multi-snapshot scan
gitgalaxy evolution REPO --snapshots 3m # build the quarterly scans, then report
gitgalaxy evolution REPO --blame N # causes by blame when a project names none
Outputs: <name>_evolution.html (self-contained, works offline), <name>_evolution.json (every series), <name>_facts.json (the fact sheet).
Class
Customer-facing read-only sensor subcommands of gitgalaxy. Members: reach (#8529), libsurface (#8534), activity, change (all shipped), evolution (this epic), backtest and lookfirst (planned, separate). Only evolution is in scope here.
Principles
- Describe and size; never forecast. The only per-change signal that held up in the research is size.
- Every figure carries a confidence label (Strong: a counting rule or replicated; Moderate: a label with known error; Exploratory: one project).
- Never call a fix "extrinsic": a cause outside the history cannot be seen. Fixes with no findable cause are shown as such.
- Say what the scan skipped and what the labels cannot do ([BUG] Scanner: directories named log, logs, classes, docs (and other ambiguous names in IGNORED_DIRECTORIES) are skipped by name, hiding real source, and are not recorded as excluded #8708 is an example: the scanner silently skips directories named
log). - Facts first: the "where it stands now" section is deterministic, each sentence read from a stated field.
Report contents
At a glance; where it stands now (facts, stage label, hubs by callers and by centrality); growth (size, births and deaths, age layers, call-graph GIF); function lifetimes; kinds of functions and their stability; where the work goes (organic, sweeps, fixes, mechanical); sweeps; repairs (lag, cause types, repair radius); which changes get repaired (by size); repeat spots; comments; how far to trust the report.
Sub-issues
- gitgalaxy evolution: git-only core -- work mix, sweeps, repairs and their timing, repeat spots, label quality #8716 git-only core: work mix, sweeps, repairs and their timing, repeat spots, label quality
- gitgalaxy evolution --db: growth, function lifetimes, hubs by callers and centrality, function types and their stability, comments #8717
--db: growth, function lifetimes, hubs (callers and centrality), function types and their stability, comments - gitgalaxy evolution: the "where it stands now" facts file for assistants, and a pace-of-growth stage label #8718 the "where it stands now" facts file for assistants, and the pace-of-growth stage label
- gitgalaxy evolution extras: call-graph GIF, repair radius and blame sampling as optional pieces #8719 optional pieces: call-graph GIF, repair radius, blame sampling
- Wiki pages for gitgalaxy evolution (08-30 to 08-43) #8720 wiki pages 08-30 to 08-42
Related: #8708 (the scanner skips directories named log, logs, classes, docs by name; found while building this), #8534 (gitgalaxy libsurface), #8529 (gitgalaxy reach), #8624 (--offline).
Evidence and prototype
A working prototype (generator, page template, 10 tests, 13 draft wiki pages, calibration table) is in the research repository squid-protocol/temporal-crucible, branch sensor-overhaul, tools/report/ and docs/sensor-overhaul/report-design/, commit 371cce8. The research log with every number and its caveat is docs/sensor-overhaul/sensors/ripple_radius.md on that branch. It ran on 19 repositories (C, Go, Python, Rust). Three independent reviews (methods, a non-expert reader, engineering) were done and their findings applied; the amendment is in the design guide.
Not in scope
gitgalaxy backtest (per-repository accuracy of the look-first and triage lists), a forecast of any kind, and any risk or defect score.
Activity