Repository navigation
Perl: count a ternary once; shield string and regex-literal text from branch, bitwise_ops, decorators (Part of #8908) - #9058
squid-protocol wants to merge 6 commits into
Conversation
…rom branch, bitwise_ops, decorators (#8908) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
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]>
|
No description provided. |
|
CI shepherd: the head of this PR (b8d5443) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
PR #9058 @ b8d5443: 15 failed check(s) == crucible (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == equivalence-e2e (cancelled) -- infra == full-suite (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (cancelled) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == publish-history (cancelled) -- infra == rosetta-audit (failure) -- real == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
PR #9058 @ b8d5443: 15 failed check(s) == crucible (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == equivalence-e2e (cancelled) -- infra == full-suite (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (cancelled) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == publish-history (cancelled) -- infra == rosetta-audit (failure) -- real == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
PR #9058 @ b8d5443: 15 failed check(s) == crucible (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == equivalence-e2e (cancelled) -- infra == full-suite (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (cancelled) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == publish-history (cancelled) -- infra == rosetta-audit (failure) -- real == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
…he Perl literal shield (#8908) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (d449f74) is not the one a maintainer labelled |
|
No description provided. |
|
PR #9058 @ d449f74: 16 failed check(s) == crucible (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == equivalence-e2e (cancelled) -- infra == full-suite (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (cancelled) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra == publish-history (cancelled) -- infra == rosetta-audit (failure) -- real == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
Waiting on an owner decision (asked privately, 2026-11-22). Nothing is needed from contributors; work resumes once it is answered. |
…us odamex and prboom-plus DOOM goldens Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
#9056 #9057 #9058 #9059 #9061 #9067) (#9111) * apply #9053 (non-snapshot changes) * apply #9054 (non-snapshot changes) * apply #9057 (non-snapshot changes) * apply #9059 (non-snapshot changes) * apply #9061 (non-snapshot changes) * apply #9067 (non-snapshot changes) * apply #9055 (non-snapshot changes) * golden: re-bless once for the seven stacked engine fixes (#9053 #9054 #9055 #9057 #9059 #9061 #9067) Each of the seven PRs conflicted with the others in the golden-master snapshots, so merging them one at a time would have re-conflicted the rest each time. One combined branch, one bless (crucible_check.py --update --yes through golden-lock.sh, both legs) plus the dartdoom DOOM golden. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * apply #9056 #9058 (non-snapshot changes) * golden: re-bless with #9056 and #9058 folded in (powershell, perl) plus odamex and prboom-plus DOOM goldens Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Part of #8908 (epic #8863). Fixes the Perl counts in the issue; rosetta:rebless-owed.
What changed
perl.py:branchno longer counts the bare single:(a ternary is one decision at its?, as java/ruby branch counts non-decision tokens the #2822 audit measured but did not touch: ruby bare ?, java bare :, python with #2833; a label's loop keyword counts it).branch,decoratorsandbitwise_opsopt into a newperl_literalsscope filter (insiderules).detector.py:perl_literalsfilter and_build_perl_safe_stream: blanks strings andm//,s///,qr//,tr,y,q/qq/qw/qx(slash or brace delimiters) and a bare/.../after an operator, so a match touching one is dropped.//defined-or and division stay code.test_perl_branch_literals_8908.py(the issue's four cases plus s{}{}, qr, split, strings, defined-or, division, bitwise-or, nested ternary, ReDoS viatests/_timing.py);test_perl_strict.pypin updated (ternary once, label colon not a decision).docs/branch_rule_contract.md.Differential scan
Golden masters re-blessed with
golden-lock.sh crucible_check.py --update --yes(both legs). Drift is Perl only (68 files: perl branch / bitwise / decorators signals and the derived scores). Reason: ternaries counted once, regex and string text no longer counted.Timing
Shield costs ~8 ms CPU per call on a 125 KB Perl file (spamassassin PerMsgStatus.pm), run per matching rule per segment.
Cross-repo
Keyword-rosetta Perl control counts may move (rebless owed there); this side merges first, then re-run the rosetta sweep.
Lessons for agents
_scope_filtersgoes insiderules, not at the top level of the language definition (top-level is silently ignored).Sibling gaps
short_circuit,io,state_mutation); heredoc bodies stay in the code stream. No burned-estate program needs these (engine scope: core).:(not audited here).Facts checked: audit_check all clear; Perl tests 136 pass; overlap with PRs #9053/#9054/#9055 on docs/detector (merged origin/main, additions only).
🤖 Generated with Claude Code