Repository navigation
gitgalaxy change: changed signatures first with their callers; while-you-are-here marker list - #8582
Merged
Merged
Conversation
… you are here" marker list Functions touched: a function whose signature changed (parameter count differs between --base-db and --scan-db, or, without a base scan, a hunk covers its declaration line) comes first and has up to five callers named, because in the study behind the order fixes after a signature change landed in the callers about 1.2 times as often as in other functions of the same file (exploratory). The rest stay most-called first. New section: when the change adds or removes 50+ source lines, the open TODO/FIXME/HACK/XXX markers in the touched files from the scan's debt_marker table (merged in #8566), this author's first and then the oldest, aged by git blame at REV; markers the change itself wrote are left out. A scan without markers says "not measured". No scan output changes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRveGdV73aUiuqkipAic
Contributor
Contributor
|
No description provided. |
1 task done
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
Two additions to
gitgalaxy change(merged in #8561; marker table merged in #8566), both read-only, no scan output change:--base-dband--scan-db; without a base scan, when a changed hunk covers the line the function starts on (labelled "declaration line edited"). The rest stay most-called first.debt_markertable, this author's first and then the oldest, aged and attributed bygit blameatREV(up to 40 aged; a marker this change wrote is left out). A scan without markers prints "not measured"; a change under 50 lines prints "not offered".Example (a 2-parameter function given a third, plus 60 new lines, with a 2020 TODO in the file):
Evidence, and how firm it is
docs/sensor-overhaul/sensors/ripple_radius.md): seven repositories (curl, libgit2, redis, libxml2, prometheus, sphinx, ripgrep). With signature-changing edits as the exposure, fixes in the following quarters were found in the callers of the changed function about 1.2 times as often as in other functions of the same file (pooled 1.23 [1.12, 1.33], 6,917 fixes; above 1 in five of six repositories with data; callees 0.98). In curl, where fixes name their cause, the fix landed in a caller in 33% of cases when a parameter count had changed (11 of 33) against 13% otherwise (Fisher p = 0.009). Modest: a review map, not a risk ranking; the broad quarter-wide version of the same test gave 1.09.tests/tools/test_change_sensor.py(signature by parameter count and by declaration line, callers named, markers aged and author-first, the change's own markers excluded, the 50-line gate, the missing-table case); an end-to-end run on a real two-commit repository scanned with the engine.audit_checkclean;test_cli_contract,test_source_readspass.Type of change
Class / Sibling gaps
Class: review aids built from a diff and a finished scan. Handled: signature-first ordering with callers; marker list. Sibling gaps: (1) the signature check by hunk overlaps a retyped or renamed declaration, not only a parameter count, and a base scan is needed for the exact count; (2) callers come from the scan's confident call edges, so calls through function pointers and callbacks are missing; (3) ages use
git blameof the marker's current line, so a reworded marker looks younger than its first appearance; (4) no marker class finer than the engine's planned/fragile split; (5) neither list is in the LLM brief or any report yet; (6) the 50-line rule has no pilot.Lessons for agents
debt_markertable: checksqlite_masterbefore querying it, aswhile_you_are_heredoes.🤖 Generated with Claude Code
https://claude.ai/code/session_018srRveGdV73aUiuqkipAic