Skip to content

rust/swift func_start extra_functions rose after #1302's prism.py fix -- newly exposed, not caused #1311

Closed

Description

@squid-protocol

What

While fixing #1302 (prism.py's unbounded comment-shield bug), rust and swift's measured
func_start recall improved dramatically as a side effect (rust 78%->99%, swift precision on
class detection 24.3%->62.2%) -- but extra_functions (false positives) also rose, since far
more real code now reaches their own func_start regexes for the first time:

Language extra_functions before extra_functions after
rust 32 69
swift 3 5

These are pre-existing, latent false-positive gaps in rust's and swift's own func_start
regexes
that were simply never visible before, because prism.py's bug was silently deleting
most of the code that would have exposed them. Not caused by #1302/#1266, and out of scope for
those PRs (both already merged/mergeable without fixing this).

Evidence

Both tests/tree_sitter_accuracy_baseline_rust.json and ..._swift.json are already
regenerated to the "after" numbers above (committed in #1303/#1307) -- this issue is to
investigate and reduce the false-positive count, not to re-measure.

Suggested next step

Run tests/tools/tree_sitter_accuracy_audit.py --lang rust / --lang swift (full report mode,
no --ci) against the language-crucible corpus to get fresh _extra_examples sample names,
then trace each back to its source line the same way #1266's investigation did for
scala/matlab/haskell -- almost certainly a handful of distinct lookalike shapes rather than 69/5
independent bugs.

Related: #1261 (parent epic), #1302/#1303, #1266/#1307.

Activity

  1. added
    bug
    testing
    core-engine
    on Aug 12, 2026
  2. added this to the v2.4.8 milestone on Aug 16, 2026
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

    bugcore-enginetesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions