Skip to content

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
feat/8009-brief-display-namesfrom
fix/8010-rule-overlap-leaks
Closed

squid-protocol wants to merge 2 commits into
feat/8009-brief-display-namesfrom
fix/8010-rule-overlap-leaks

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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.

language token before after why
c size_t safety + pointers pointers only a type name; safety contract C1 says type names are invisible to safety
python, embedded_python bare pass safety_bypasses + structural_boundaries structural only an empty body is not a bypass
python, embedded_python except …: pass 2 bypass hits (except: and pass) 1 site, the whole except…pass span one swallowed exception, counted once; except ValueError:\n pass still counts
php exit, die debug_prints + panics_and_aborts panics_and_aborts only they end the request; they are not prints

tests/extraction/languages/test_rule_overlap_8010.py pins 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:

    ext diffs
    .py 1,195
    .c 427
    .h 81
    .php 75

    The rest are 44 repo-rollup entries for the python/cython repo.

  • scope_check.py buckets by corpus folder, so it lists fortran, cobol and cpp. Their diffs are on fortran/wrf/configure_reader.py, cobol/gnucobol_internals/fileio.c and cpp/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

Class / Sibling gaps

The class is "a span counted by two keyword rules". I swept every language for the four leaking tokens; only embedded_python shared one (pass), and it is fixed here.

Sibling gaps:

Part of #8010

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY

squid-protocol and others added 2 commits November 7, 2026 09:35
…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
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 7, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 7, 2026 15:53
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 7, 2026
@squid-protocol

Copy link
Copy Markdown
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant