Skip to content

Call graph (perl): die, or/and anchors, split, block and hash args (Part of #6433) - #6449

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

squid-protocol merged 5 commits into
mainfrom
churn/6433-20261024T1104Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6433 (slice 2 after #6437).

What changed

  • die leaves perl _calls_out_ignore (a built-in tree-sitter counts as a call).
  • CALLS_OUT_PERL gains anchors: or/and/xor/not before a call, split /re/, name {block} @list, %hash/qq{}/file-handle first args; _PERL_BUILTIN now matches shift } while {shift} stays a hash key.
  • Tests in test_calls_out_perl_6433.py (positive, negative, ReDoS payloads).

Measured (call_graph_accuracy, perl)

Precision 94.3% -> 94.4%, recall 94.7% -> 96.2% (TP 4305 -> 4370, FP 262 -> 259, FN 239 -> 174). Baseline regenerated.
Goldens: perl-only drift (calls_out_to, fan_in/out, pagerank, graph/brief), both legs.

Class / Sibling gaps

  • Early unit end: the 200-char quote bound in the perl string shield mispairs on long multi-line strings, ending a function early (~150 FN, e.g. Bug.pm _set_product). Tried 300/500/800: 500 fixes it but regresses Makefile.PL and Parser.pm. Not fixed here.
  • Filetest operators -e -f -d (20 FN): operators, not callables; not emitted.
  • Bare rand / int rand and similar no-argument builtins.
  • open FH, ... file-handle forms.

Cross-repo

Touches docs/calls_out_rule_contract.md (one perl row), shared with worker 6432: merged main before pushing. Keyword-rosetta perl control: die left the ignore list; no companion PR identified.

Facts checked: pr_gates --fast 7/7, audit_check clear, plain pytest of the new file from /tmp (65 passed).

🤖 Generated with Claude Code

@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 11:25
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 11:30
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol and others added 2 commits October 24, 2026 07:51
…104Z

# Conflicts:
#	tests/golden_master_audit/12_scan_output_snapshots/llm_brief.json
#	tests/golden_master_audit/6_parsed_files_scanned_artifacts/files/11_scan_db_snapshot/pagerank.json
#	tests/golden_master_zero_dep_audit/12_scan_output_snapshots/llm_brief.json
#	tests/golden_master_zero_dep_audit/6_parsed_files_scanned_artifacts/files/11_scan_db_snapshot/pagerank.json
@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

No description provided.

@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.

…104Z

# Conflicts:
#	tests/golden_master_audit/12_scan_output_snapshots/llm_brief.json
#	tests/golden_master_audit/6_parsed_files_scanned_artifacts/files/11_scan_db_snapshot/pagerank.json
#	tests/golden_master_zero_dep_audit/12_scan_output_snapshots/llm_brief.json
#	tests/golden_master_zero_dep_audit/6_parsed_files_scanned_artifacts/files/11_scan_db_snapshot/pagerank.json
@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 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 (b7d6eb0) 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 shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. 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

No description provided.

@squid-protocol
squid-protocol merged commit e1cae25 into main Oct 24, 2026
66 checks passed
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