Skip to content

Close missing-signature-case gaps, prioritizing Python/JavaScript AI/ML extension pack #1072

Closed

Description

@squid-protocol

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:

  1. Positive snippet: realistic code that genuinely exhibits the signature (not a synthetic string engineered to match).
  2. Negative snippet: realistic lookalike code that should NOT match (per how_to_add_a_language.md's Strict Testing Prompt item 1 standards).
  3. 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.py
  • tests/extraction/languages/test_javascript_strict.py
  • tests/extraction/languages/test_haskell_strict.py
  • tests/extraction/languages/test_objective-c_strict.py (or test_objc_strict.py — verify naming)
  • tests/extraction/languages/test_solidity_strict.py
  • tests/extraction/languages/test_yaml_strict.py

Related issues

Activity

  1. added
    testing
    core-engine
    on Aug 5, 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

    core-enginetesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions