Repository navigation
Call-graph accuracy: measure powershell and tcl callee names (Part of #3641) - #6480
Merged
Merged
Conversation
…3641) Adds both languages to call_graph_accuracy LANGS with callee extraction for powershell command/invokation_expression and tcl command nodes; baseline, ledger and chart regenerated. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 24, 2026 14:56
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 24, 2026 14:58
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. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
CI shepherd: the head of this PR (506e9e5) is not the one a maintainer labelled |
squid-protocol
disabled auto-merge
October 24, 2026 15:17
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 24, 2026 15:20
Owner
Author
|
No description provided. |
This was referenced Oct 24, 2026
Open
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3641. Adds powershell and tcl to the Level 1 call-name measurement (
tests/tools/call_graph_accuracy.py). Engine untouched, so no golden bless.Checklist: partial [c:bf495ed4] -- calls half done for powershell and tcl; groovy is unmeasurable here; the import half and the other unmeasured languages remain
What changed
LANGSgainspowershellandtcl;CALL_NODE_TYPESgainscommandandinvokation_expression; new_ps_tcl_callee(wired into_callee).command_nametoken is the callee;& $gand. ./a.ps1(acommand_name_expr) are dynamic/dot-sourcing and name no call;$o.Save(1)/[Foo]::Make(2)name themember_name; a property read ($o.Name) is no call.namefield word is the callee;ns::k->k;[cmd]substitution counts; commands after anERRORnode are still counted.test_call_graph_accuracy.py(powershell shapes, tcl shapes,LANGSregistration).graph_comparison_ledger.json(43 new unvalidated shapes),graph_coverage_chart.svg.Measured (language-crucible v1.7.0, raw, not a verdict)
Leads for later shape work: tcl engine names
set,variable,file(a proc arg),exprthat tree-sitter does not call; powershell engine namesForEach-Object/pipeline stages and property accesses that tree-sitter parses differently, and tree-sitter finds many calls the engine misses (recall 38%).The baseline
--regeneratealso moved four existing languages (recall/precision up, no regressions: the committed baseline was stale against main) and the ledger added 8 perl shapes and refreshedlast_reconciled_at.Class / Sibling gaps
Class: languages with a tree-sitter grammar and a
NODE_MAPSentry that are not incall_graph_accuracy.LANGS(no callee-name measurement). Covered here: powershell, tcl. Sibling gaps: groovy -- unmeasurable by this method (grammar has no class/method declaration nodes,tree_sitter_accuracy_audit.pydocuments it; no function ground truth to attribute calls to), needs a Level 2 / SCIP route; the import-graph coverage sweep and the shape bucketer/catalog items of #3641 are separate slices.Gates
pr_gates --fast7/7 pass,--ratchetsall pass,audit_checkclear,test_call_graph_accuracy.py+ tree-wide guards pass.Cross-repo: none (language-crucible pin unchanged). Overlap: #6473/#6476 touch the ledger/chart SVG; regenerate them from main if those merge first.
🤖 Generated with Claude Code