Skip to content

gitgalaxy activity: how active each file is, how long settled, who looks after it - #8575

Merged
squid-protocol merged 1 commit into
mainfrom
sensors/activity
Nov 17, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
sensors/activity

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

New read-only command gitgalaxy activity REPO [--rev REV] [--scan-db DB]: how active each file is, how long it has been settled, and who looks after it, from git history alone, in plain units (no score). One git log -M --name-status (curl: 4 s) gives each file, with renames and copies followed so a moved file keeps its age: commits in the last 365 and 90 days, days since the last change, age and lifetime commits, authors in the last year, the top author's share of the last year's commits and whether that author has committed in two years. Worklists default to source files (code only; prose and data are role other): hot now (top tenth by 365-day commits), ownership context (one author did 60%+ and has gone quiet, or 90%+), dormant (untouched 2+ years); with --scan-db, dormant files many others depend on (quiet foundations). It is the proposed replacement for hist_churn / hist_stability (two views of one measurement); those gauges are unchanged here. No scan output, table or report changes. Follows #8532, #8535, #8561, #8566; tracking issue #8534.

How it was checked

  • Against the research mock-up (same definitions, independently computed with numpy over a forward rename-following history): identical values for all 8 readings on every file of curl, libgit2 and libxml2: 24,149 files (days reading rounded to a tenth). This checks the implementation and the mapping, not the rename rule itself (both use the same rule). Script and output: temporal-crucible tools/sensor/activity_engine_check.py, docs/sensor-overhaul/sensors/activity_engine_check_output.txt.
  • The measurements behind the design (three repositories, forward split; exploratory, not claimed as general): hot files carry about 1.8 to 2.5 times the later-fix rate of active files (1.4 to 1.8 for source files only); quiet foundations are below the base rate, and the report says so. Note: docs/sensor-overhaul/sensors/activity.md in temporal-crucible.
  • 6 new tests build a git history with fixed dates (windows, rename keeps age, dormancy, owner-active over time, roles, worklists and reach split, the command). audit_check clean; test_cli_contract, test_source_reads pass.

Not here

The share of edits that were sweeps (did not separate fix-prone hot files in the study), change entropy, co-change scatter, and persisting these readings in the scan database; the old gauges stay until the readings are in the scan. A role split finer than source / other, and a per-repository window instead of 365 days, are open.

Type of change

  • Other: new read-only command; no scan output or parsing change

Class / Sibling gaps

Class: history readings the scan does not persist. Handled: activity readings and worklists as a command. Sibling gaps: (1) persisting them in the scan database and brief (and retiring hist_churn / hist_stability), (2) docs vectors.md "ablated to zero" text and wiki pages 08-06 / 08-10 / 02-15 still describe the old gauges, (3) shallow clones are warned about, not corrected, (4) history of very large repositories not timed beyond libgit2 (15,650 files), (5) code/other split uses the engine's language extension table, so an unknown extension reads as other.

Lessons for agents

  • reach.role() calls everything that is not tests/docs or CI "source", including CMakeLists.txt, licences and release notes; filter by the engine's language table (LANGUAGE_DEFINITIONS[*]["extensions"]) when a list must be code.

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRveGdV73aUiuqkipAic

…oks after it (from git history)

New read-only command. One `git log -M --name-status` gives each file, with renames followed: commits in 365 and 90 days, days since the last
change, age and lifetime commits, authors in the last year, the top author's share and whether that author is still active. Worklists (source files by
default): hot now (top tenth by 365-day commits), ownership context, dormant files; with --scan-db the dormant files many others depend on
("quiet foundations"). No scan output or table changes.

Checked against the research mock-up: identical values for all 8 readings on 24,149 files (curl, libgit2, libxml2).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRveGdV73aUiuqkipAic
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant