Skip to content

[FEA]: Configurable SkillSpector timeout for local LLM providers #155

Closed as not planned

Description

@maksym-taranukhin

Problem to solve

In v0.3.0 (ac0a049), the SkillSpector LLM stage of Tier 1 (validate --llm / security-scan --llm) runs under a hard-coded 300-second subprocess timeout: Tools.skillspector.run(args, timeout=300, ...) in skillevaluator/validators/security.py. Nothing exposes this value through a flag or an environment variable.

With a local openai-compatible provider, the documented fully local setup, the analysis cannot finish within that budget:

  • qwen3:8b on Ollama 0.34.2 with an RTX 3090 GPU. Each chat completion took about 100 s because of the model's reasoning output. SkillEvaluator reported skillspector timed out after 300 seconds, and the run ended incomplete (incomplete_scans: ["skillspector-llm"]).
  • qwen2.5:7b-instruct on the same setup. The run finished in 148 s, but SkillSpector reported analysis_completeness status partial, so the scan was still incomplete. This second case may be a model-capability limit rather than the timeout.

Failing closed is the right behaviour. The problem is that there is no way to give a slower local model enough time, so --llm cannot produce complete evidence on local hardware.

Proposed approach

Make the SkillSpector timeout configurable, for example with a SKILLEVALUATOR_SKILLSPECTOR_TIMEOUT_SECONDS environment variable or a --skillspector-timeout flag. Keep 300 s as the default, and record the effective value in the report's scanner evidence. Optionally, document the expected per-call latency and model size that the --llm path assumes for openai-compatible providers.

Additional context

The command was skillevaluator validate --tiers 1 -r json -r markdown --llm <skill>, with SKILL_EVAL_LLM_PROVIDER=openai-compatible and SKILL_EVAL_LLM_BASE_URL=http://127.0.0.1:11434/v1. Versions: Semgrep 1.177.0, SkillSpector 2.11.2 (844ac30), Gitleaks 8.30.1. The static Tier 1 checks and Tier 2 (similarity-check, context-optimization-check) work well with the same local setup.

Before submitting

Activity

  1. maksym-taranukhin commented on Sep 22, 2026

    @maksym-taranukhin
    Author

    Withdrawing this request.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions