Repository navigation
Closed
Labels
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginepriority: highCore feature broken, but workarounds existtestingUnit, integration, and E2E pipeline verificationthreat: false-negativeAccuracy tuning: Engine missed a bypass or vulnerability
Description
Summary
GitGalaxy's ruby func_start regex completely fails on the language-crucible corpus: 0/117 real methods found.
Related epic: #1261
Measurements
From tests/tree_sitter_accuracy_baseline_ruby.json:
files_scanned: 7real_functions: 117found_functions: 0 (0% recall)extra_functions: 12 (spurious matches)real_classes: 9found_classes: 7args_comparable: 0args_exact_match: 0
What this means
Every single real method in the Ruby corpus was missed by GitGalaxy's regex. This is a clean, unambiguous signal (not a small-sample artifact with only 7 files but 117 real methods total).
Action
- Examine the ruby
func_startregex ingitgalaxy/standards/language_standards.py(look forLANGUAGE_DEFINITIONS['ruby']) - Examine real Ruby method definitions in
language-crucible/data/rubyto understand what valid patterns exist - Follow the
harden-language-extractionskill's methodology (described ingitgalaxy/standards/how_to_add_a_language.md-- full 12-rule protocol for ReDoS/boundary correctness) - Update the regex and verify against both the corpus and the existing
tests/extraction/languages/test_ruby.pyextraction gauntlet - Before pushing, run
python tests/tools/crucible_check.pyto confirm no cross-language regressions
Notes
- This is extraction-accuracy only (the
func_startrule pillar from epic Epic: Harden the four extraction gauntlets (function/args/class/dependency) per language #813). Risk-scoring rules are unaffected. - The tool does measure function arguments (
argsrule), but only comment on those if updatingfunc_starthappens to change argument capture.
Metadata
Metadata
Assignees
Labels
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginepriority: highCore feature broken, but workarounds existtestingUnit, integration, and E2E pipeline verificationthreat: false-negativeAccuracy tuning: Engine missed a bypass or vulnerability
Activity
docs: regenerate stale func_start/args accuracy summary table for ruby
fix(core): Ruby func_start recurses into class/module bodies (0/117 -…
fix(core): prism.py loses def/comment lines after a backslash-continu…
fix(core): broaden scala/matlab/haskell func_start recall -- closes #…
fix(lua): Mode-D nested-function recall + literal-shield tokenisation
fix(lua): Mode-D nested-function recall + literal-shield tokenisation (…