Repository navigation
scan: store the activity readings in plain units (commits 365/90 d, days since last change, authors, top-author share) - #8585
Conversation
…90 days, days since last change, authors, top-author share) file_data gets five columns, from a new complete Chronometer pass over the year before HEAD's commit time: commits_365d, commits_90d, days_since_last_change, authors_365d, top_author_share_365d. NULL = not measured (no usable history, the pass cut by its commit cap, or a file the dating pass did not reach). The pass has no coverage or time halting (those make the churn pass partial on active repositories) and is cut only by a commit count (CHRONOMETER_CONFIG ACTIVITY_MAX_COMMITS, ACTIVITY_DATING_MAX_COMMITS), so the numbers depend on the history and never on machine speed or the day. risk_churn / risk_stability are untouched and kept as deprecated aliases. docs/vectors.md no longer says the history gauges are ablated in every scan. Part of #8534. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRveGdV73aUiuqkipAic
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #8585 @ c1c3b88: 2 failed check(s) == full-suite (failure) -- real == full-suite part 1/3 (failure) -- real |
|
PR #8585 @ c1c3b88: 2 failed check(s) == full-suite (failure) -- real == full-suite part 1/3 (failure) -- main |
|
No description provided. |
Summary
This changes the scan database (not any report):
file_datagets five columns. Every scan of a git checkout now records, per file, in plain units:commits_365d,commits_90d,days_since_last_change,authors_365d,top_author_share_365d(the readings ofgitgalaxy activity, wiki 08-27). They come from a new Chronometer pass over the year before HEAD's commit time (never the wall clock), so the same history gives the same numbers on every machine and day. NULL means not measured: no usable history (not git, shallow clone,GITGALAXY_DISABLE_GIT_HISTORY), the pass cut by its cap, or a dormant file the dating pass did not reach. Follows #8575 (the command) and #8566; tracking issue #8534.Why a new pass instead of reusing the churn pass
The existing pass halts when it has mapped 50% of the files (or 5,000) or after the time budget, so on an active repository (curl: 666 of 699 source files change in a year) its counts are partial; and
raw_churn_freqis commits divided by the square root of weeks since the last change, not a count. The new pass has no coverage or time halting and is cut only by a commit count (CHRONOMETER_CONFIG:ACTIVITY_MAX_COMMITS150,000, past which every reading is NULL rather than partial;ACTIVITY_DATING_MAX_COMMITS250,000 for files untouched all year). It reads the log a second time: 0.4 s to 1.9 s for the whole Chronometer on curl, libgit2 and redis (full clones). The churn and stability inputs andrisk_churn/risk_stabilityare untouched and stay as deprecated aliases.Safe for scan output
crucible_check.py: both legs PASS without a re-bless (the pinned-corpus scans setGITGALAXY_DISABLE_GIT_HISTORY, so the columns are NULL there). No report, brief, SARIF or SBOM changes. The keys reach the recorder only when measured, through one helper (SignalProcessor._history_columns) spliced into the four telemetry dicts that already carriedchange_entropy.Tests and checks
tests/core_engine/test_chronometer_activity.py(6): counts against the HEAD-anchored year of a decade-old repository (3 / 1 / 2 authors / 0.667 / 40.0 days, and a file the year missed dated 765.0 days), as-of mode gives identical readings, a cut window reports nothing rather than a partial count, a cut dating pass leaves only the undated file unmeasured, no readings without usable history.audit_checkclean; chronometer, record-keeper, CLI-contract tests pass (95).docs/vectors.mdno longer claims the history gauges are ablated in every scan (they are neutral only where history is disabled; the v2.12.0 population database has them non-neutral for a large share of files); wiki 02-15, 08-06, 08-10 and 08-27 updated.Not here (next)
Age since the first commit, lifetime commits and "is the top author still active" need the whole history, not a year; a rename-following variant (the command follows renames, the columns do not); showing the readings in the LLM brief; removing the old gauges.
Type of change
Class / Sibling gaps
Class: history readings the scan computes in a non-comparable form or not at all. Handled: five plain readings. Sibling gaps: (1) age, lifetime commits, owner-active (whole-history pass); (2) renames are not followed, so a file moved within the year has its history cut at the move; (3) revisions in
.git-blame-ignore-revsare left out, as the churn pass does, so a mass-reformat does not count; (4) the second log read is not shared with the churn pass; (5) brief andgitgalaxy activitystill compute their own numbers rather than reading the columns.Lessons for agents
ACTIVITY_*keys); and a new optional telemetry key is added only when measured (python-test-traps), so downstream.getgives NULL for "not measured".🤖 Generated with Claude Code
https://claude.ai/code/session_018srRveGdV73aUiuqkipAic