You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: Elevate calls_out_to into a First-Class Function Dependency Graph #3265
Right now, calls_out_to is only used for mapping unit tests to production code. We are severely underutilizing this data. By wiring calls_out_to into network_risk_sensor.py, we can build a 'Layer 2' Function-Level topology graph alongside the existing File-Level import graph.
Features to implement:
Micro-PageRank: Calculate PageRank at the function level. Identify the most heavily relied-upon methods in the repository, not just the host files.
Implicit Dependency Edges: If File A calls a global function defined in File B, but lacks an explicit import statement, the current file-level graph misses the connection. We can use the function graph to synthesize missing file-to-file edges (critical for C, PHP, Ruby, and Mainframes).
Blast Radius Analysis: Allow queries that traverse the function graph to see exactly which downstream functions are impacted by a structural change.
Note on AST equivalence: This will act as a heuristic, AST-free approximation of a true Call Graph. It will suffer from namespace collisions (e.g. all save() calls pooling together), but it will run in milliseconds across 46 languages, even on uncompilable or broken code.
Activity
Contract: state what counts as a call -- calls_out (#3327, #3265 step…
Engine: repository-wide call resolver + call qualifiers (#3328, #3329) (
Engine: report call-resolution rates per language and repo (#3331)
Engine: report call-resolution rates per language and repo (#3331) (#…
Engine: function-level PageRank, fan-in and fan-out columns (#3330) (#…
Benchmark call-graph accuracy (#3332) + two resolver fixes it found (#…
squid-protocol commentedon Sep 23, 2026
Closing as done. All 7 sub-issues are closed by merged PRs, and all three features from the original proposal have shipped.
Proposal → delivered
function_datanow hasfunc_pagerank,func_fan_inandfunc_fan_outcolumns, auto-healed for old DBs (#3265 step 3: function-level PageRank, fan-in and fan-out as new columns #3330, PR Engine: function-level PageRank, fan-in and fan-out (#3330) #3376).import. PageRank, popularity, betweenness and closeness include them. On cpython,Objects/object.crises to Bump actions/checkout from 4 to 6 #2. Popularity and blast radius change on 218 files (#3265 step 6: call-derived file edges in the dependency graph (blast radius, PageRank) #3333, PR Engine: confident function calls join the dependency graph (#3333) #3388).tests/tools/function_blast_radius.py <db> <function> [--file] [--depth] [--downstream](PR Engine: function-level PageRank, fan-in and fan-out (#3330) #3376).Groundwork
calls_outcontract states what counts as a call (#3265 step 0: state the calls_out contract (what counts as a call) #3327, PR Contract: state what counts as a call -- calls_out (#3327) #3363).utils.parse,obj.save,Class::method). An ambiguous call never becomes an edge, which addresses the namespace-collision concern in the original note (#3265 step 1: repository-wide call resolver (callee name -> definition, with confidence) #3328/#3265 step 2: capture the call qualifier (utils.parse, obj.save, Class::method) #3329, PR Engine: repository-wide call resolver + call qualifiers (#3328, #3329) #3370).GO TOis recorded as a transfer beside calls, not as a call (#3327 follow-up: COBOL GO TO is not a call (contract C4) -- needs a decision #3362, PR Engine: COBOL GO TO is a transfer, recorded beside calls (#3362) #3394).Still open, tracked separately