Repository navigation
Rule overlap leaks: C size_t, Python pass, PHP exit/die no longer double-counted (#8010, stack 3/5) - #8019
Closed
squid-protocol wants to merge 2 commits into
Closed
Rule overlap leaks: C size_t, Python pass, PHP exit/die no longer double-counted (#8010, stack 3/5)#8019squid-protocol wants to merge 2 commits into
squid-protocol wants to merge 2 commits into
Conversation
…t-pass, PHP exit/die out of debug_prints (#8010) Each token was counted by two keyword rules, so the pair co-occurred by definition. size_t is a type name (safety contract C1); a bare pass is an empty body, and except...: pass is now one bypass site instead of two (python and its embedded_python twin); PHP exit/die stay in panics_and_aborts. Part of #8010 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
2150 differences per leg, all attributed: file-level diffs on .py (1195), .c (427), .h (81), .php (75) files, plus Cython repo rollups (python/cython); fields: repository fingerprint/drift, error-exception exposure, type-safety bypasses, defensive constructs, ad-hoc prints, function archetypes. Part of #8010 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
Contributor
|
No description provided. |
Owner
Author
|
Superseded by #8024 (the stack squashed into one PR to save CI capacity, at the owner's request). |
squid-shepherd Bot
pushed a commit
that referenced
this pull request
Nov 7, 2026
…rlap leaks, TS ui/generics, function-level scope (#8009, #8010, #8011, #8012) (#8024) Squash of the five-PR stack (#8013, #8015, #8019, #8021, #8022), combined at the owner's request to save CI capacity. - #8009: SIGNAL_DISPLAY_NAMES + signal_display_name() + docs/signals.md; the LLM brief shows display names beside raw keys and no longer calls linear 'paths'. - #8010: C size_t out of safety; Python/embedded_python pass only as except...: pass (one site); PHP exit/die out of debug_prints. - #8011: TS ui_framework treats <Foo> as JSX only with attribute/self-close/ closing tag; class/interface extends is not generics. - #8012: FUNCTION_LEVEL_ABSENT_SIGNALS marks the 36 always-zero function columns. Golden masters re-blessed per slice, every difference attributed. Fixes #8011 Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Stack 3/5. Base is #8015 (on #8013). Review after it.
What this does
Removes tokens that two keyword rules both counted, which made those signals co-occur by definition. That co-occurrence was feeding the population keyword-pair studies.
size_tsafety+pointerspointersonlysafetypasssafety_bypasses+structural_boundariesexcept …: passexcept:andpass)except…passspanexcept ValueError:\n passstill countsexit,diedebug_prints+panics_and_abortspanics_and_abortsonlytests/extraction/languages/test_rule_overlap_8010.pypins each row with positive and negative cases. All existing strict / contract suites for these languages pass (462 tests).Golden masters
Re-blessed both legs via
golden-lock.sh … crucible_check.py --update --yes: 2,150 differences per leg.Every file-level difference is attributed:
The rest are 44 repo-rollup entries for the
python/cythonrepo.scope_check.pybuckets by corpus folder, so it listsfortran,cobolandcpp. Their diffs are onfortran/wrf/configure_reader.py,cobol/gnucobol_internals/fileio.candcpp/NVDA/core.py, i.e. Python and C files inside those folders.Fields moved: repository fingerprint and drift (file-cluster mix), error and exception exposure, type-safety bypasses, defensive constructs, ad-hoc prints, and the function archetypes downstream of those densities.
Checks
pr_gates --ratchets: 9 pass, 0 fail (ports, port-surface, estate, fact-crosscheck, completeness, ground-truth, det-mutation, cics-spec, time).pr_gates --fast: 8/9 gates pass.affectedfails only ontest_committed_fidelity_table_is_fresh_against_the_corpus, the same failure as on Signal display names: what each keyword signal actually counts (#8009, stack 1/5) #8013. I regeneratedfidelity_table.pyfrom Signal display names: what each keyword signal actually counts (#8009, stack 1/5) #8013 and from this branch, and they are identical, so this PR adds no fidelity drift. The staleness is the local keyword-rosetta checkout.Class / Sibling gaps
The class is "a span counted by two keyword rules". I swept every language for the four leaking tokens; only
embedded_pythonshared one (pass), and it is fixed here.Sibling gaps:
extendscounted asgenerics: in stack 4/5, which editstypescript.pyfor TypeScript ui_framework fires on type assertions (<NamedTypeNode>expr) via the JSX-component alternative #8011 anyway; kept there for the 5-file limit.export= api + structural,??= branch + safety, Rustwhere,#[test],panic!, C#=>, …): owner calls, listed on Same token counted by two keyword rules (C size_t = safety+pointers, PHP exit = debug_prints, Python pass = safety_bypasses): pair co-occurrence partly definitional #8010.Part of #8010
🤖 Generated with Claude Code
https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY