Repository navigation
Description
Owner-approved plan (2026-11-09). Call-graph and import networks turned out central to the research programme in temporal-crucible: translation fidelity (WIRE), the call-network studies (CGT, CGN, CGK, CGR) and the planned many-labs replication (LAWS). That needs the engine's call graph to match its reference tools in every language studied.
Evidence
- Measurement: 20 unseen repos measured with the engine's own
call_graph_resolution.pyand reference tools (libclang, scip-java, rust-analyzer, Go VTA, TypeScript 6.0.2, pyan3). The setup reproduces CI's numbers. - Gap reports: seven construct-inventory reports, one per language; every gap reproduced on a synthetic snippet.
- Location: worklist and reports in
/srv/storage_16tb/projects/gitgalaxy/engine-tuning-study/(worklist.md,gaps/<lang>.md,raw/). - Headline: confident precision is 93–100% everywhere; recall is the gap. Unseen-repo recall:
| language | recall |
|---|---|
| TypeScript | 96.5% (small repos) |
| Java | 69% |
| Go | 67% |
| C | 66% |
| Python | 45% call-only, mostly how the metric is built |
| C++ | ~23% |
| Rust | 8% |
Principle: open questions become labelled edge kinds
Every call edge carries a kind and a confidence; every gate metric is reported per kind; every study declares which kinds it uses. No interpretation is collapsed into "no link" or a single guess.
- C platform variants (one function defined per OS, e.g. libuv
uv__io_poll; 71% of C's gap): record all candidates asvariantedges with the platform where known. The confident graph is unchanged; union and per-platform views are available. - C++ calls the text doesn't name (operators, implicit ctors and conversions, macro-generated calls; about 35% of C++ misses): extract what the text shows as
ctor/operator/macrokinds. The gate reports named-call recall, labelled-kinds recall and full-reference recall, with misses by category.
PR plan (CI-limited: four PRs, many self-contained commits each)
- Measurement first.
- Regenerate the stale C, C++ and TypeScript baselines (the gate fails only on drops, so gains never landed). TS confident precision now sits 0.1 pp above its floor.
- Add gin (multi-package Go) and flask (unflattened Python) to the call-graph gate.
- Treat fmt's bundled
test/gtest/as vendored. - Fix the C import scorer's suffix match, which can't see
<errno.h>→include/uv/errno.h. - Per-kind recall reporting; the edge-kind contract in
docs/calls_out_rule_contract.mdanddocs/import_rule_contract.md.
- Small cross-language fixes.
- The same-name "recursion" drop ignores the qualifier:
super().m()inm,w.next.Close()inClose(Go, TS/JS, Python, Java, Rust, C++). - Builtin and stdlib method guards (Go
len/appendhubs; untyped.Close(),.size()). - Calls in template literals and f-strings.
- TS arrow body cut at a nested
function; RustSelf::/super::; Go scoping order (own file → own package → dot imports). - Java overload guess filtered by argument count; C nearest-path promotion.
- Python module-level instance typing, continuation-line references and property reads; TS owner-less-method precision guard.
- The same-name "recursion" drop ignores the qualifier:
- Ownership and visibility.
- Rust
implblocks as owners, plus the tuple/unit-struct span leak. - Go package = directory, plus method receivers.
- C/C++ include closure and file-local
static. - The
variantedge kind and a candidate table.
- Rust
- Typing and overloads.
- Receiver typing for C++, Go, Rust and TS.
- Java overloads by argument type (about +8 pp recall, fixes the commons-lang hub disagreement).
- C++ (min, max) argument counts with header defaults.
- C++
ctor/operatoredge kinds. - Rename and alias maps for imports and exports (TS, Python, Rust).
Each commit carries its tests and baseline regeneration. After PR 4, temporal-crucible's ACC-4 validates on fresh unseen repos before the LAWS panel draw.
Related: #8151 (det-port dispatcher calls), #7533 (structure as identity), temporal-crucible ACC / ACC-2 / ACC-3 (#102–#104).
🤖 Generated with Claude Code
Activity
Call-graph gates: measurement first (stale baselines, gin + flask lan…
detector: test the JS regex-literal branch by `lastgroup`, not a grou…
calls: a parent clause cut inside its type arguments still names its …
DOOM-rosetta: the tree-sitter body oracle reads template and f-string…
call-graph gate: the flask lane's baseline takes CI's pyan reference …
Call graph: small cross-language fixes — recursion qualifier, builtin…
Call graph: ownership and visibility — Rust impl owners, Go packages …
Core README: list the PR 4 call-graph modules (doc-refs audit, Part of …
Call graph: typing and overloads — receiver typing (C++/Go/Rust/TS), …
Golden masters re-blessed after the merge of main (Part of #8161)
Call graph: C#, Kotlin and PHP — gate lanes, overloads by argument ty…
squid-protocol commentedon Nov 22, 2026
All four planned PRs plus the C#/Kotlin/PHP extension have merged:
Follow-on C++/Kotlin resolution improvements are in #8921, and C indirect-call gaps are tracked separately in #8956. Closing this epic.