Skip to content

Perl calls_out: m( s( tr( y( x ( operators are not calls; validate 34 Perl ledger shapes (Part of #6433) - #9351

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/6433-20261126T0103Z
Nov 26, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/6433-20261126T0103Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6433

What changed

Perl calls_out: the name-then-paren alternative of CALLS_OUT_PERL read operators that take a parenthesised operand as calls: m(..), s(a)(b), tr(a)(b), y(a)(b) and the repetition operator "-" x ($n - 1). A _PERL_OP_WORD lookahead now refuses those five words there; ->x(..) / ->y / ->s(..) method calls still count (they use the -> alternative). Paren-less calls (the issue's original examples) were already extracted by slices 1-7.

The Perl call comparison now reads 94.2% precision / 97.7% recall (was 93.9% / 96.3% in the issue thread); the 11 x / m / s / tr ledger shapes no longer reproduce.

Class

Class: a callee name followed by ( taken without checking for operator words.

Member Status
m( match operator fixed here, test
s( substitution fixed here, test
tr( / y( transliteration fixed here, test
x ( repetition fixed here, test
q qq qw qr already in _calls_out_ignore
->x( ->y ->s( methods kept, test

Ledger (Perl, 41 unvalidated shapes)

Validated 34 with source-read verdicts: time / wantarray / map / grep / sort / undef / eval are built-ins invoked by name, so calls by C3 (GitGalaxy right, credit), same ruling as the earlier undef and shift verdicts; the fixed x / m / s / tr shapes are GitGalaxy wrong, no credit. Ledger changes are Perl entries only.

Left unvalidated: function_call_expression/function (12, a recall miss: Image::ExifTool::XMP::FullEscapeXML( style calls in the extensionless exiftool script not attributed), scalar<replacement -> _, string_literal -> MIE / hex (do not reproduce on a single-line splice; need a real-file read), and 3 import shapes (Plack .t).

Golden

Both goldens re-blessed with golden-lock.sh crucible_check.py --update --yes; drift is only calls_out_to / graph / brief in the self-scan snapshot from removed operator-word calls.

Gates

pytest tests/extraction/languages -k perl 406 passed; test_graph_ledger.py + test_tri_comparison_ledger.py 17 passed; audit_check.py all clear; ruff format --check clean.

Sibling gaps

  • Perl function_call_expression/function miss (12), cause not yet found (span or extractor), no burned-estate program needs it: frontier.
  • string_literal / scalar<replacement callee shapes: need a real-file trace.
  • Plack import shapes (target-not-imported 5, truth-names-several-files 3): import mechanism, separate.

Lessons for agents

  • crucible_check.py waits on a shared golden lock another worker may hold; start it early and wait on the PID.
  • call_graph_accuracy.py --ledger merges every language's shapes; narrow the ledger diff to your language before committing.

Cross-repo

None.

🤖 Generated with Claude Code

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 26, 2026 01:18
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 01:20
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@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 Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 1f70db0 into main Nov 26, 2026
128 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6433-20261126T0103Z branch November 26, 2026 01:35
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