Skip to content

[TIER 1] Ruby func_start matches 0/117 real methods in language-crucible corpus #1262

Closed

Description

@squid-protocol

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: 7
  • real_functions: 117
  • found_functions: 0 (0% recall)
  • extra_functions: 12 (spurious matches)
  • real_classes: 9
  • found_classes: 7
  • args_comparable: 0
  • args_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

  1. Examine the ruby func_start regex in gitgalaxy/standards/language_standards.py (look for LANGUAGE_DEFINITIONS['ruby'])
  2. Examine real Ruby method definitions in language-crucible/data/ruby to understand what valid patterns exist
  3. Follow the harden-language-extraction skill's methodology (described in gitgalaxy/standards/how_to_add_a_language.md -- full 12-rule protocol for ReDoS/boundary correctness)
  4. Update the regex and verify against both the corpus and the existing tests/extraction/languages/test_ruby.py extraction gauntlet
  5. Before pushing, run python tests/tools/crucible_check.py to confirm no cross-language regressions

Notes

Activity

  1. added
    bug
    testing
    core-engine
    threat: false-negative
    priority: high
    on Aug 11, 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-enginepriority: hightestingthreat: false-negative

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions