You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
powershell: api rule's bare-identifier alternative lacks keyword exclusions — param(/if(/switch( count as API surface #2656
Found by the #2560 rosetta classification sweep (powershell #2592), confirmed by micro-repro.
What happens
powershell's api rule has a bare-identifier alternative that lacks the keyword-exclusion list its own func_start/args rules already carry — so every param(...), if (, switch ( line miscounts as API surface. Corpus effect: risk_api_exposure +82% (red) while raw signals are in-band; the miscount feeds the exposure formula directly.
Fix shape
Add the existing exclusion list (already present in the same file's func_start/args alternations) to the api rule's bare-identifier branch. Same fix family as #2539's with exclusion. Golden-master re-bless expected.
Related: lua's api rule has the same pattern of defect via a different alternative (bare return <ident> — separate issue), suggesting a cross-language audit of api export-heuristic scoping is worthwhile once both fixes land.
Cause-key powershell-api-rule-keyword-collision; found via keyword-rosetta classification.
Activity
fix(core-engine): Rosetta sweep batch 2 — nine slicer/regex/DAG fixes…