Repository navigation
PHP: api attribute boundary, logger( boundary, telemetry severity is the method (Part of #9468, #8863) - #9484
Draft
squid-protocol wants to merge 5 commits into
Draft
squid-protocol wants to merge 5 commits into
squid-protocol wants to merge 5 commits into
Conversation
…Part of #8863) cpp closures/import/telemetry, scala explicit_casts, php api/telemetry. Measurement only, no engine change; 8 leaks filed (#9439 #9441 #9443-#9448) and locked as strict xfails. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
…61127T0136Z # Conflicts: # docs/self_scan/family_validity_chart.svg # docs/self_scan/family_validity_matrix.svg
…y is the method (Part of #9468, #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…face type hint + 'info' default is not a log call) (Part of #9468) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…136Z # Conflicts: # docs/self_scan/family_validity_chart.svg # docs/self_scan/family_validity_matrix.svg
This branch has not been deployed
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.
What
Fixes the three rule-level PHP keyword-family leaks from #9468 in
php.pyand removes their strict xfail markers intests/decoys/test_decoy_php.py:api: the#[Route|Get|...]attribute needs a word boundary after the name, so#[RouteHelper]no longer counts (PHP api: an attribute whose name merely starts with Route/Get/Post/Put/Delete/Patch/ApiResource counts as an API attribute #9446).telemetry:logger(needs a leading boundary, somy_logger()no longer counts (PHP telemetry: the logger( branch has no leading word boundary (my_logger(), getlogger()) #9447).telemetry: the severity word must be the logging method (Log::info(,->info(), not any later word on the line;error_logis itself a log call (PHP telemetry: the severity word is matched anywhere later on the line, not as the logging method #9448).Closes #9446
Closes #9447
Closes #9448
Part of #9468, #8863.
Class sweep
Class: a PHP family rule counts text that is not the construct (missing word boundary, or a keyword matched anywhere on the line instead of in its role). Siblings checked in
php.py: the other family rules already carry boundaries (debug_printshas lookbehinds). No further siblings found.Sibling gaps (Remaining slices): #9443 (
#line comments), #9444 (text outside<?php ... ?>), #9445 (comment on the opener line). All three need a Prism change (a PHP lexical family or branch inprism.py), a hot file that moves goldens across all PHP, so they are a separate PR. No burned estate needs them. The baseline cellsdecoys.php.api/telemetrystayleakuntil then (their remaining leaks are those three), so no baseline flip here.Cross-repo
Stacked on #9463 (the PHP decoy suite, not yet on main): this branch merges
sop2-gaps-d. Merge #9463 first, then retarget/rebase this PR. TheCloseslines will not fire until it targets main. No companion PR in another repo.Verification
test_decoy_php.py,test_php.py,test_php_strict.py: 232 passed, 16 xfailed (the remaining PHP: # line comments are not stripped, so commented code counts in every keyword family #9443-PHP: a comment on the same line as the opening <?php tag (first line of the file) is counted as code #9445 leaks).audit_check.py: all clear.ruff format --check: clean.family_validity_chart.py --write.golden-lock.sh): the only moved file is guzzleMiddleware.php, structured logging 1 -> 0. It counted aLoggerInterfacetype hint on the same line as the default value'info'; neither is a log call. Derived fingerprint/drift/graph hashes for that file follow. keyword-rosetta not re-run here: labelrosetta:rebless-owedif its counts move.Checklist: partial [c:619cce08] -- #9443, #9444, #9445 (Prism:
#comments, inline HTML, opener-line comment)Lessons for agents
ident_boundarycell for php is a genericmy_<kw>_valprobe, separate from the SOP-002 attribute/logger boundary leaks; fixing those does not flip it.🤖 Generated with Claude Code