Skip to content

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

Closed

Description

@squid-protocol

Problem

Several tokens are counted by two keyword rules at the same span, so the two signals co-occur by definition. Function-level pair statistics treat that as real co-occurrence (e.g. the "defensive control core" in temporal-crucible's keyword-grammar studies, KW / GR / KW-P, includes def_safety × state_pointers). Some overlaps are intended; some are rule leaks.

Class table

Identical (start, end) spans matched by ≥ 2 keyword rules, on the engine code stream of up to 40 language-crucible files per language (main 0fddad9). calls_out, _dependency_capture and naming / indent rules are excluded.

language token rules hits disposition proposal
c size_t pointers & safety 545 leak: a size type is neither a guard nor (alone) pointer use; drop from safety at least
c typedef api & structural_boundaries 96 review: typedef as public surface is debatable
typescript export api & structural_boundaries 964 intended? (export is both a keyword and public surface)
javascript export api & structural_boundaries 271 same as TS
typescript extends generics & structural_boundaries 302 leak in generics for class extends (only <T extends U> is generic)
rust where generics & structural_boundaries 339 intended
rust #[test], #[cfg(test)] decorators & test 80 intended
rust panic! high_risk_execution & panics_and_aborts 54 review: is panic "high-risk execution"?
rust macro_rules! macros & reflection_metaprogramming 47 review
rust #[doc(hidden)] decorators & doc 24 review
python pass safety_bypasses & structural_boundaries 79 leak: pass is not a safety bypass outside except: pass
python await concurrency & structural_boundaries 20 intended
typescript / js await concurrency & structural_boundaries 225 intended
typescript stub planned_debt & test_skip 32 review
typescript setTimeout concurrency & thread_sleeps & time_date_logic 15 review (three rules)
typescript / php / csharp ?? branch & safety 266 intended? (null-coalescing is both)
csharp ?. branch & safety 48 intended?
csharp => closures & structural_boundaries 212 review: expression-bodied members are not closures
csharp Interlocked concurrency & sync_locks 16 intended
php exit, die debug_prints & panics_and_aborts 49 leak: exit/die are not prints
php require, require_once import & structural_boundaries 338 intended
javascript on events & listeners 44 review
go os.Exit, exec.Command high_risk_execution & panics_and_aborts / ipc 5 review

Ask

Decide per row: intended (document it in the rule contract) or leak (remove from one rule). Fix the leaks (size_t in C safety, Python pass, PHP exit / die in debug_prints, TS class extends in generics) with per-language rule tests.

A durable guard: a test that fails on a new shared span between two keyword rules unless it is listed as intended. Rule changes move goldens.

Activity

  1. added
    bug
    core-engine
    scope:sweep
    on Nov 7, 2026
  2. squid-protocol commented on Nov 10, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-11-10T21:23Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

  3. squid-protocol commented on Nov 10, 2026

    @squid-protocol
    OwnerAuthor

    Closing: the last two review rows were decided intended in #8239, so every row of the overlap table is now decided, the leaks were fixed earlier, and the guard's REVIEW set is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclaim:melekcore-enginedata-qualitypriority: mediumscope:sweep

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions