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
objective-c func_start (4.4% precision) and csharp func_start (58.2% precision) have large, confirmed-real false-positive rates #1314
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginethreat: false-positiveAccuracy tuning: Engine incorrectly flagged safe code
Unlike #1313 (a measurement-tool ground-truth gap), these two are confirmed GENUINE engine
false-positive problems: recall is good-to-perfect for both (tree-sitter's real_functions is
nonzero and GitGalaxy finds almost all of them), but extra_functions is large enough to tank
precision badly.
Language
real_functions
found_functions
extra_functions
func_precision
objective-c
5
5 (100% recall)
108
4.4%
csharp
558
553 (99.1% recall)
397
58.2%
Also flagging typescript's class precision (not func) while here: real_classes=285, found_classes=285 (100% recall), extra_classes=537 -> 34.7% class precision. Same shape
(recall is fine, precision is badly hurt by a large false-positive count), different pillar
(class_start not func_start).
Why this is worth its own issue
objective-c's 108 phantoms against only 5 real functions (across 5 corpus files) is a ~20:1
false-positive ratio -- almost certainly func_start matching a common Objective-C syntax shape
that isn't a real function definition (method declarations in a @interface block without a
body, property/selector syntax, or a C-family lookalike given objc's C heritage -- not
investigated yet, this issue is the initial flag, not the diagnosis). csharp's 397 phantoms
against 558 real ones is a smaller ratio but still a substantial, measured precision problem
worth its own investigation rather than living silently in the summary table.
Suggested next step
For each, run tests/tools/tree_sitter_accuracy_audit.py --lang <lang> (full report, not --ci)
to get _extra_examples sample names, trace back to source lines the same way #1266's
investigation did for scala/matlab/haskell, and check tests/extraction/languages/test_objectivec_strict.py
/ test_csharp_strict.py for whether the false-positive shape is already a known, deliberately-
accepted ambiguity (per how_to_harden_extraction.md's recurring bug class #7,
bare-call-vs-declaration) before assuming it's a fixable regex gap.
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginethreat: false-positiveAccuracy tuning: Engine incorrectly flagged safe code
Activity
fix(csharp,objective-c): fix real csharp func_start false positives, …
fix(objective-c): recover objc's bodyless @interface method declarati…
fix(tools): typescript class_start ground truth was missing interface…
fix(go): extract bodyless function declarations (#1756) (#1760)