Repository navigation
Description
Issue
Cross-referencing each language's actual non-None LANGUAGE_DEFINITIONS rule keys against what's covered in its _strict.py _XXX_SIMPLE_CASES list (excluding func_start/args/class_start/_dependency_capture, which are #813's job) found real signature keys with literally zero test coverage.
Critical: Python's entire AI/ML extension pack has zero detection test coverage — a real security blind spot, not just a test-depth nit.
Missing coverage by language (priority order)
Python (19 missing keys):
- Entire AI/ML extension pack:
llm_api,llm_orchestrator,llm_vector_store - ML/data science:
dl_frameworks,ml_traditional,vectorized_math - Semantic/flow:
closures,comprehensions,lazy_evaluation - Security-adjacent:
api,cryptography,encapsulation,exfiltration_camouflage,hardware_bridge,import,memory_scraping,structural_boundaries,test,bitwise_ops
JavaScript (16 missing keys):
- Entire AI/ML extension pack:
llm_api,llm_orchestrator,llm_vector_store - ML/data science:
dl_frameworks,ml_traditional,vectorized_math - Semantic:
closures,lazy_evaluation - Security-adjacent:
bitwise_ops,cryptography,exfiltration_camouflage,hardware_bridge,import,rce_funnel,structural_boundaries,test
Haskell (4 missing): api, bitwise_ops, encapsulation, import
Objective-C (3 missing): api, bitwise_ops, import
Solidity (1 missing): hardcoded_secrets
YAML (1 missing): hardcoded_secrets
Solution
For each currently-uncovered key, add at least one positive/negative case pair to that language's _SIMPLE_CASES list:
- Positive snippet: realistic code that genuinely exhibits the signature (not a synthetic string engineered to match).
- Negative snippet: realistic lookalike code that should NOT match (per
how_to_add_a_language.md's Strict Testing Prompt item 1 standards). - Priority order: Python and JavaScript AI/ML pack first (highest security stakes), then other languages' missing keys in descending order of real-world scanning frequency.
Consult gitgalaxy/standards/language_standards.py's rule documentation for each key's semantic definition (what it's meant to detect), and verify snippets against real-world code patterns in the language-crucible corpus if available.
Files to modify
tests/extraction/languages/test_python_strict.pytests/extraction/languages/test_javascript_strict.pytests/extraction/languages/test_haskell_strict.pytests/extraction/languages/test_objective-c_strict.py(ortest_objc_strict.py— verify naming)tests/extraction/languages/test_solidity_strict.pytests/extraction/languages/test_yaml_strict.py
Related issues
- Epic Epic: Harden the strict structural-signature test suite (non-extraction-pillar rules) per language #1069: Harden the strict structural-signature test suite (non-extraction-pillar rules) per language
- Epic Epic: Strict & exact regex test coverage for all structural signatures, per language #518: Strict & exact regex test coverage for all structural signatures, per language (CLOSED)
- Issue AI/LLM detection sensor cluster (llm_api, llm_orchestrator, ai_tools, etc.) is entirely non-functional -- no rule ever produces these signals #313: AI/LLM detection sensor cluster (llm_api, llm_orchestrator, etc.) is entirely non-functional (CLOSED)
Activity
docs: add language-status skill and docs/language_status/ (Python wor…