Skip to content

calls_out (JVM): generic constructor calls; JVM graph-ledger verdicts (#3799, #4124) - #4131

Merged
squid-protocol merged 4 commits into
mainfrom
ledger/jvm-3799
Oct 2, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
ledger/jvm-3799

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Refs #3799. Closes #4124.

Verdicts

shape verdict credit_tools
java/call/object_creation_expression/generic_type+generic/agree[tree_sitter]_vs[gitgalaxy] (35) GitGalaxy missed them. All 35 are generic constructor calls (new HashMap<K,V>(), the diamond, anonymous subclasses). Fixed here (#4124). tree_sitter
kotlin/import/truth-names-several-files/agree[tree_sitter]_vs[gitgalaxy] (1) GitGalaxy missed it. The import names toKModifier, which is overloaded across Modifiers.kt and Visibilities.kt, and the importing file uses both. Engine defect #4125, left open: it needs a design call. tree_sitter

Changes

  • Engine: CALLS_OUT_C_STYLE_GENERIC_NO_ANNOTATION for java, kotlin and groovy. A standalone run over every crucible JVM file gained 53 java, 7 kotlin and 8 groovy captures. All of them are real calls, and no existing capture was lost.
  • Measured results:
    • call_graph_accuracy, java: FN 35 -> 0, FP 0.
    • Level 2 vs scip-java on gson: 92.7% -> 93.2% precision, 41.0% -> 44.2% recall.
  • Harness fix (scip_callgraph): a class reference used to map to the class's last constructor. It now picks the constructor by argument count. Without this fix the engine change scored 137 right TypeToken() links as wrong overloads.
  • Baselines: call_graph_accuracy is updated for java only. The python drift on v1.6.0 is not from this PR and is left out. The java Level-2 baseline is regenerated.

WIP / left to do

  • Golden-master re-bless (full and zero-dep). It was not run yet: the shared crucible checkout is on v1.5.0, and a private v1.6.0 worktree is set up for it.
  • Full pr_gates.py. So far only the targeted tests have passed: extraction tests for java/kotlin/groovy/3359/3644/4124, and test_scip_callgraph.
  • Graph coverage chart: regenerated after merge by graph-comparison-history.yml.

🤖 Generated with Claude Code

… verdicts (#4124, #3799)

- CALLS_OUT_C_STYLE_GENERIC_NO_ANNOTATION: C1 annotation guard plus a
  type-argument list (diamond included) before `(`. java, kotlin and groovy
  use it. Java Level-1 FN 35 -> 0, FP 0.
- scip_callgraph: a class reference (`new T<X>() {}`) picks the constructor
  by argument count, not the last one. On gson this was 137 false
  wrong-overload links. Java L2: 92.7 -> 93.2 precision, 41.0 -> 44.2 recall.
- Ledger: java generic_type+generic and kotlin truth-names-several-files are
  validated, credit tree_sitter (#4124 fixed here, #4125 open).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol and others added 3 commits October 2, 2026 12:06
30 function calls_out_to entries in both fixtures (19 java, 10 groovy-corpus
java, 1 kotlin): new HashMap<..>(), new ArrayList<>(), ArrayDeque<T>() now
captured. No topological ripple, no file newly parsed or excluded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	tests/call_graph_resolution_java_baseline.json
@squid-protocol
squid-protocol marked this pull request as ready for review October 2, 2026 17:14
@squid-protocol
squid-protocol merged commit c367561 into main Oct 2, 2026
38 checks passed
@squid-protocol
squid-protocol deleted the ledger/jvm-3799 branch October 2, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

calls_out (java/kotlin/groovy): generic constructor and function calls Name<T>( / new X<>() missed

1 participant