Repository navigation
gitgalaxy change: what a git change did (repeated renames, debt markers, functions touched) - #8561
Merged
Merged
Conversation
…rs, functions touched) New read-only command. From a git diff alone: size by role, the call swaps repeated 5 or more times (a "repeated rename": skim these), and the TODO/FIXME/HACK/XXX lines added and removed in source files. With --scan-db (a scan of the tree at REV): the functions the change touched and their caller functions, caller files and one hop out. With --base-db as well: libraries whose coupling moved. No scan output changes; no engine table changes. The rename rule was validated against the temporal study's 567 sweeps in six repositories before it was built in; numbers and limits are in wiki 08-26. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRveGdV73aUiuqkipAic
Contributor
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRveGdV73aUiuqkipAic
1 task done
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New read-only command,
gitgalaxy change REPO [--rev REV] [--base REV] [--scan-db DB] [--base-db DB]: what a git change did. From the diff alone: size by role, the call swaps repeated 5 or more times ("repeated renames": skim these), and the TODO/FIXME/HACK/XXX lines added and removed in source files. With--scan-db(a scan of the tree at REV): the functions the change touched and who calls them (caller functions, caller files, one hop out). With--base-dbas well: libraries whose coupling moved. No scan output changes, no table or column changes. Follows #8532 (reach) and #8535 (libsurface); tracking issue #8534.Example, libgit2
8bb32e578:git_odb__hashfile -> git_object_id_from_file x22, 44 of 517 changed lines (all in test files, so renames are counted over every changed file, not only source).How good is the rename rule (measured before building it in)
Scored against the temporal study's 567 quarterly sweeps in libgit2, redis, curl, libxml2, prometheus and sphinx (every non-merge commit):
Method and tables: temporal-crucible
docs/sensor-overhaul/sensors/change_aware.md(branchsensor-overhaul).What is not here
No "while you are here" prompt and no marker ages: both need the scan to store marker positions. The library-coupling section is exercised only by a smoke run (same database as base and after: zero moves); it has no test of its own.
Gates
audit_checkclean;change_classifier --checkfresh; 7 new tests (tests/tools/test_change_sensor.py) andtest_cli_contract.pypass.pr_gates --fast: 8 of 9 pass;affectedran 9,606 tests passing and one failing,test_committed_fidelity_table_is_fresh_against_the_corpus, which compares against a local/nvme-data/projects/keyword-rosettacheckout this PR does not touch; CI will give the clean read.Type of change
Class / Sibling gaps
Class: post-scan and per-change views built from the diff and the finished master database. Handled here: renames, debt-marker balance, touched functions with callers, library moves. Sibling gaps: (1) marker ages and the "while you are here" prompt (need the engine to persist marker positions); (2) rename detection is line-pair based, so renames mixed with other call edits on one line are mostly missed; (3)
--scan-dbmust be a scan of the tree at REV, and line numbers are matched as given; (4) no CI/PR-comment integration yet; (5) the activity sensor (replacing churn/stability) is separate.Lessons for agents
# noqaplaced after asubprocess.run(argument list on the same physical line swallows the keyword arguments if you paste it into the middle of a line: re-read the call after a lint edit.🤖 Generated with Claude Code
https://claude.ai/code/session_018srRveGdV73aUiuqkipAic