Skip to content

Call-graph accuracy: measure solidity, apex (Part of #3641) - #6415

Merged
squid-protocol merged 4 commits into
mainfrom
churn/3641-20261024T0750Z
Oct 24, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/3641-20261024T0750Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Part of #3641 (step 2, calls half). Checklist: none named.

What

  • call_graph_accuracy.py now measures solidity and apex (the kotlin/lua/scala/swift group the brief named was already merged in Call-graph accuracy: measure kotlin, scala, swift, lua (Part of #3641) #6396; zig/dart/haskell/perl in Call-graph accuracy: measure zig, dart, haskell, perl (Part of #3641) #6401).
  • Harness fix: solidity t.call{value: v}(d) is a struct_expression callee; it now names call, not value. Apex needed no change.
  • Raw numbers: solidity P 64.6% / R 98.0% (99 matched functions), apex P 95.7% / R 97.5% (60). Solidity precision is mostly engine-vs-tree-sitter shape disagreements (revert/emit/type casts/yul builtins/modifier invocations counted by the engine), all unvalidated ledger shapes, no verdicts recorded.
  • Baseline and graph_comparison_ledger.json regenerated; only solidity/apex entries added, existing entries untouched. The committed ledger had duplicate JSON keys, so re-serialising it shows a large line diff with no content change to other languages.
  • No gitgalaxy/ change: no golden bless needed.

Class / Sibling gaps

Class: tree-sitter-comparable languages that call_graph_accuracy.py does not score (a missing LANGS entry plus grammar-specific call-node and callee-name handling).

Member Status Evidence
kotlin, scala, swift, lua handled (#6396) already in LANGS
zig, dart, haskell, perl handled (#6401) already in LANGS
solidity handled here P 64.6% / R 98.0%; harness fix for call{value: v}(d); test added
apex handled here P 95.7% / R 97.5%; no harness change needed; test added
groovy, powershell, tcl sibling gap command-position grammars: need a command callee extractor and a ruling on what counts as a call; different mechanism
matlab, fortran, objective-c, scheme sibling gap each has its own call node (function_call, call_statement, message_expression, list forms); different mechanism
ada, makefile sibling gap grammar availability not probed

Sibling gaps need no burned-estate program (none of these languages is mainframe), so their scope is sweep.

Gates

  • pytest tests/tools/test_call_graph_accuracy.py: 53 passed
  • call_graph_accuracy.py --ci: OK
  • audit_check.py: all clear (ruff, mypy, dead-key, ast-accuracy)

Cross-repo

None. Overlaps another in-flight PR only on graph_comparison_ledger.json / graph_coverage_chart.svg: whichever lands second regenerates both (--regenerate, --ledger) after merging main.

Remaining slices

Groovy, powershell, tcl (command-position grammars, need a command callee extractor and a ruling on what counts); matlab, fortran, objective-c, scheme (own call nodes); ada, makefile (grammar not probed). No burned-estate program needs any of them.

Lessons for agents

  • The committed graph_comparison_ledger.json carries duplicate keys; --ledger rewrites the whole file. Restore old entries and keep only the new language's to scope the change.
  • chart.svg is not regenerated by --ledger; check whether it needs graph_coverage regeneration.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 24, 2026 04:01
Step 2 of the epic, calls half. call_graph_accuracy.py scores callee names for two more
tree-sitter-comparable languages. Harness fix: solidity `t.call{value: v}(d)` names the call,
not the `value` field. Apex needed none (method_invocation / object_creation_expression already
resolve). Baseline and ledger seeded (new shapes only, all unvalidated).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (ba7bcaf) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 08:46
@squid-protocol

Copy link
Copy Markdown
Owner Author

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 24, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 24, 2026
@squid-protocol
squid-protocol merged commit 67226f5 into main Oct 24, 2026
34 checks passed
@squid-protocol
squid-protocol deleted the churn/3641-20261024T0750Z branch October 24, 2026 09:30
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant