Repository navigation
Description
Goal
Measure and improve GitGalaxy's function call graph language by language, against a compiler or type-checker reference. Today there are two references: pyan3 for Python (#3332/#3378) and the TypeScript type checker (#3761). Each new language should be cheap in time and tokens.
What the TypeScript round taught us
The TypeScript round (#3756–#3760, #3764, #3767) was spent mostly on five things:
- Building the reference. Several iterations, and TypeScript 7 shipping no JS API broke CI.
- Triaging misses and wrong links by hand. Throwaway scripts, then reading samples by eye. This was the biggest token cost.
- Environment detours. Missing test and ML dependencies, a different
ruffversion, and the tokenizer download blocked by the network policy. - The same verification chain run by hand on every PR. About six commands, each with long output.
- Fixes forced to land one at a time.
Plan
Infrastructure: one PR
- Call-graph comparison: a reference-adapter contract, with a cached reference graph #3773 A reference-adapter contract, with a cached reference graph
- callgraph_triage.py: bucket every missed and wrong call link into a ranked backlog #3774
callgraph_triage.py: miss and wrong-link buckets as a ranked backlog - callgraph_check.py: the call-graph verification chain as one command with a short summary #3775
callgraph_check.py: the whole verification chain as one command with a short summary - Call resolver: explain one link (rung, candidates, qualifier) without reading call_resolver.py #3776 Resolver explain for a single link
- Session setup hook: install the pinned call-graph toolchain for Claude Code on the web #3778 A session setup hook that installs the pinned toolchain
Process
- Skill: callgraph-language-onboarding (add a compiler reference for a new language) #3779 The
callgraph-language-onboardingskill (checklist) - Skill: callgraph-miss-sweep, plus a Haiku callgraph-triage-scout agent #3780 The
callgraph-miss-sweepskill, plus a Haikucallgraph-triage-scoutagent
Languages (rough order)
- Call-graph reference: JavaScript (TypeScript checker with allowJs) #3781 JavaScript: the TS adapter with
allowJs - Call-graph reference: Go (golang.org/x/tools static call graph) #3782 Go:
golang.org/x/toolsstatic call graph - Call-graph reference: evaluate SCIP on Java as a shared route for several languages #3783 Java: evaluate SCIP as a shared route for several languages
- Call-graph reference: C/C++ (clang-based) #3784 C/C++: clang-based
- Call-graph reference: Rust (rust-analyzer SCIP) #3785 Rust: rust-analyzer SCIP
Still open: whether to adopt SCIP (#3783), and whether fixes can run in parallel on more than one branch.
Ground rules
-
A reference is a reference, not ground truth. Disagreements are checked against source before they're claimed (CLAUDE.md, "Comparative-correctness claims").
-
Every finding is filed in this milestone ("Compiler call-graph comparison").
-
Cross-language patterns are expected to recur:
- bodyless interface/abstract members (Call resolver (TypeScript): confident links land on bodyless signatures (interface / abstract / type members) instead of the code that runs #3757's pattern) in Java, C#, Go and Rust;
- calls inside string interpolation;
- built-in method shadowing (Call resolver: an untyped receiver's built-in method call (
str.trim(),map.get()) links confidently to a same-named repo method viafile/import#3756).
Triage should name these buckets, so a known pattern is recognised rather than rediscovered.
Activity
25 remaining items
cpp call graph: choose overloads by argument count (Part of #3784) (#…
cpp: a lock-annotation macro below the `)` is a func_start tail (Part…
squid-protocol commentedon Oct 25, 2026
#6500 merged: a partial slice of [c:929272d4] "#3784 C/C++: clang-based"; left: C++ clang gate exists; the sibling gaps above (TestBody naming, overload-by-arity, receiver typing) are left. (promoter-bot)
doom-rosetta: re-bless doom3-bfg and doomsday for the C++ template me…
C++: a class-template member keeps its class in its name (Part of #3772…
C++: extract a definition written after a one-line namespace opener (…
Call graph: small cross-language fixes — recursion qualifier, builtin…
Call graph: typing and overloads — receiver typing (C++/Go/Rust/TS), …
Call graph: C#, Kotlin and PHP — gate lanes, overloads by argument ty…
squid-protocol commentedon Nov 22, 2026
All 12 planned infrastructure, process, and language-reference child issues (#3773, #3774, #3775, #3776, #3778, #3779, #3780, #3781, #3782, #3783, #3784, #3785) are complete and closed, and compiler call-graph comparison gates now run across C, C++, C#, Go, Java, JavaScript, Kotlin, PHP, Python, Rust, and TypeScript. Closing this epic.