Skip to content

Call graph (perl): calls without parentheses (Part of #6433) - #6437

Merged
squid-protocol merged 2 commits into
mainfrom
churn/6433-20261024T0949Z
Oct 24, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/6433-20261024T0949Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6433 (first listed shape: calls written without parentheses).

What

CALLS_OUT_PERL (new, _shared_patterns.py, in QUALIFIED_CALLS_OUT_PATTERNS) replaces CALLS_OUT_C_STYLE for perl. A name is a call when it follows ->, is followed by ( with no sigil, is a bare unary/list built-in (shift, delete $h->{k}, keys %h; not a hash key), or opens a statement / follows =, (, !, ,, &&, ||, return with an argument start (blessed $x, plan tests => 4). A bare word is never a call. Same approach as Ruby #3377.

Class table

member status
->method (method_call_expression) handled
bare unary built-ins (func1op) handled
statement-opening commands (ambiguous_function_call_expression) handled
bare word with no arg/paren, &$code, indirect object, calls in string interpolation sibling gaps (needs symbol table / different mechanism)

Evidence

call_graph_accuracy perl vs tree-sitter: recall 56.6% -> 94.7%, precision 87.9% -> 94.3% (tp 2573 -> 4305, fn 1971 -> 239, fp 353 -> 262). Baseline regenerated; only perl moved.
Golden re-bless (both legs, golden-lock.sh crucible_check.py --update --yes): drift is perl files only, in Calls Out To, fan in/out, pagerank, graph, llm_brief -- the new call edges.
Gates: new test file + test_perl* green, audit_check.py all clear, pr_gates.py --fast 7/7.

Checklist: none named on the issue.

Cross-repo: none.

Lessons for agents

  • Python re lookbehinds need fixed width per alternative: split into separate (?<=...) branches rather than one alternation inside a lookbehind.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 24, 2026 05:54
@squid-protocol squid-protocol added 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

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 09:59
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 10:04
@squid-protocol
squid-protocol merged commit 6fc7f16 into main Oct 24, 2026
99 checks passed
@squid-protocol
squid-protocol deleted the churn/6433-20261024T0949Z branch October 24, 2026 10:13
@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