Skip to content

Epic: call-graph recall to comparator quality across C, C++, Java, Go, Python, TS/JS, Rust (four PRs; edge kinds for open questions) #8161

Closed

Description

@squid-protocol

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.py and 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 as variant edges 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 / macro kinds. 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)

  1. 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.md and docs/import_rule_contract.md.
  2. Small cross-language fixes.
    • The same-name "recursion" drop ignores the qualifier: super().m() in m, w.next.Close() in Close (Go, TS/JS, Python, Java, Rust, C++).
    • Builtin and stdlib method guards (Go len/append hubs; untyped .Close(), .size()).
    • Calls in template literals and f-strings.
    • TS arrow body cut at a nested function; Rust Self::/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.
  3. Ownership and visibility.
    • Rust impl blocks as owners, plus the tuple/unit-struct span leak.
    • Go package = directory, plus method receivers.
    • C/C++ include closure and file-local static.
    • The variant edge kind and a candidate table.
  4. 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 / operator edge 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

https://claude.ai/code/session_018srRvhoWCV984xPpQKJHfF

Activity

  1. added
    enhancement
    scope:frontier
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority: mediumscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions