Skip to content

Epic: gitgalaxy evolution -- a one-page history of a repository, from git alone or with scans #8715

Open

Description

@squid-protocol

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

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

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

  1. added
    enhancement
    epic
    metrics
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementepicmetricspriority: medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions