Skip to content

gitgalaxy change: changed signatures first with their callers; while-you-are-here marker list - #8582

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
sensors/change-review
Nov 17, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
sensors/change-review

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Two additions to gitgalaxy change (merged in #8561; marker table merged in #8566), both read-only, no scan output change:

  1. Changed signatures first, with their callers. A touched function whose signature changed is listed first and up to five callers are named. The signature counts as changed when its parameter count differs between --base-db and --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.
  2. "While you are here" marker list. When the change adds or removes 50 or more source lines, the open TODO / FIXME / HACK / XXX markers in the touched source files from the scan's debt_marker table, this author's first and then the oldest, aged and attributed by git blame at REV (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):

FUNCTIONS TOUCHED (63; 1 with a changed signature first, then most-called)
  add (src/a.c): ! parameters 2 -> 3; 2 caller functions in 1 files, 0 one hop out
      callers to check: use1 (src/a.c), use2 (src/a.c)
WHILE YOU ARE HERE (source changes of 50+ lines; 1 open markers in the touched files, this author's and the oldest first)
  src/a.c:2 planned open 6.9 y | // TODO: handle the empty case

Evidence, and how firm it is

  • Callers for a signature change (exploratory, temporal-crucible 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.
  • 50 lines for the marker list (exploratory back-test on three repositories): markers surfaced by this rule were repaid in the same change in 3.4% of cases against 1.3% when every marker was shown (about 2.6 times). One run, no pilot: the threshold is a starting point.
  • 11 tests in 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_check clean; test_cli_contract, test_source_reads pass.

Type of change

  • Other: read-only command output; no scan output or parsing 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 blame of 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

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRveGdV73aUiuqkipAic

… 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
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 20:27
@squid-shepherd
squid-shepherd Bot merged commit 5e5377f into main Nov 17, 2026
53 checks passed
@squid-shepherd
squid-shepherd Bot deleted the sensors/change-review branch November 17, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant