Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.
Python agent-evaluationagent-pluginsagent-securityagent-skillsagentic-aibenchmarkci-templatesclaude-codecodexevaluateevaluationharnesspluginplugin-evaluationsecurity-scannerskill-evalskill-evaluationskill-evaluatorskill-gap-analysisskills
fix(security): keep SkillSpector's nv_build model registry for Build scans (#288)
Narendran Raghavand82cfe0e2cd3
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex aab9f3a6..25255749 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -368,6 +368,15 @@ All notable changes to SkillEvaluator are documented in this file.when the quality score met `--min-score`. The 15-point Efficiency deduction isunchanged, so a large skill still fails when its score falls below theminimum.+- `--llm` security scans on the `nv_build` provider now run SkillSpector with+ `SKILLSPECTOR_PROVIDER=nv_build` instead of `openai`, so SkillSpector sizes+ requests from its NVIDIA Build model registry. A Build model with a smaller+ output cap, such as `openai/gpt-oss-120b` (16,384 tokens), no longer gets+ SkillSpector's 32,000-token fallback budget, which can exceed what the+ endpoint accepts and leave the LLM security stage incomplete. An explicit+ `SKILLSPECTOR_PROVIDER=nv_build` gets the same mapping. The key still reaches+ SkillSpector only as `OPENAI_API_KEY`, with `OPENAI_BASE_URL` set to the+ public Build endpoint.### Securitydiff --git a/docs/configuration.mdx b/docs/configuration.mdxindex fddbf68d..034583bf 100644--- a/docs/configuration.mdx+++ b/docs/configuration.mdx@@ -311,7 +311,7 @@ variables.## SkillSpector bridge-The `--llm` security analysis runs [SkillSpector](https://github.com/NVIDIA/SkillSpector), which has its own provider environment (`SKILLSPECTOR_PROVIDER` plus per-provider credential variables). SkillEvaluator bridges your configured provider automatically for that invocation, so the one key above is all you need. For `nv_build`, the bridge uses SkillSpector's OpenAI-compatible provider path pointed at the public Build endpoint, so the same `NVIDIA_API_KEY` covers this too; it does not create a second NVIDIA credential name.+The `--llm` security analysis runs [SkillSpector](https://github.com/NVIDIA/SkillSpector), which has its own provider environment (`SKILLSPECTOR_PROVIDER` plus per-provider credential variables). SkillEvaluator bridges your configured provider automatically for that invocation, so the one key above is all you need. For `nv_build`, the bridge selects SkillSpector's `nv_build` provider, so its Build model registry sets output-token limits, and sends the key through SkillSpector's OpenAI-compatible provider path (`OPENAI_API_KEY`, with `OPENAI_BASE_URL` pointed at the public Build endpoint). The same `NVIDIA_API_KEY` covers this too; it does not create a second NVIDIA credential name.The subprocess environment is isolated. Only the selected provider settings and basic process environment variables (`PATH`, `HOME`, TLS bundles, temp dirs) pass through — other ambient credentials in your shell are never forwarded. Your SkillSpector model settings (`SKILLSPECTOR_MODEL_<SLOT>`, `SKILLSPECTOR_MODEL_REGISTRY`, `SKILLSPECTOR_REASONING_EFFORT`) pass through too; `SKILLSPECTOR_TEMPERATURE` does not.diff --git a/docs/environment-variables.mdx b/docs/environment-variables.mdxindex a0062189..27bd7418 100644--- a/docs/environment-variables.mdx+++ b/docs/environment-variables.mdx@@ -98,7 +98,7 @@ If none is set, LLM-backed commands fail with a configuration error. If more tha### SkillSpector bridge-The `--llm` security analysis runs [SkillSpector](https://github.com/NVIDIA/SkillSpector), which has its own provider environment. SkillEvaluator bridges your configured provider into that invocation with an isolated subprocess environment: only the selected provider's settings, the SkillSpector model settings below, and a small set of basic process variables are forwarded, so ambient credentials for other providers never reach SkillSpector. `SKILLSPECTOR_TEMPERATURE` is not forwarded, because current reasoning models reject a custom temperature. The `nv_build` provider is bridged through SkillSpector's OpenAI-compatible path, pointing `OPENAI_BASE_URL` at the public NVIDIA Build endpoint.+The `--llm` security analysis runs [SkillSpector](https://github.com/NVIDIA/SkillSpector), which has its own provider environment. SkillEvaluator bridges your configured provider into that invocation with an isolated subprocess environment: only the selected provider's settings, the SkillSpector model settings below, and a small set of basic process variables are forwarded, so ambient credentials for other providers never reach SkillSpector. `SKILLSPECTOR_TEMPERATURE` is not forwarded, because current reasoning models reject a custom temperature. The `nv_build` provider is bridged as `SKILLSPECTOR_PROVIDER=nv_build`, so SkillSpector sizes requests from its NVIDIA Build model registry, while the key travels as `OPENAI_API_KEY` with `OPENAI_BASE_URL` pointing at the public NVIDIA Build endpoint.| Variable | Default | Effect || --- | --- | --- |diff --git a/src/skillevaluator/validators/security.py b/src/skillevaluator/validators/security.pyindex 2a27c737..e479d5bd 100644--- a/src/skillevaluator/validators/security.py+++ b/src/skillevaluator/validators/security.py@@ -151,7 +151,9 @@ _SKILLSPECTOR_SCAN_EXCLUDED_DIRS = SCAN_EXCLUDED_DIRS - {"__pycache__"}_SKILLSPECTOR_PROVIDER_MAP = {"anthropic": "anthropic","bedrock": "bedrock",- "nv_build": "openai",+ # SkillSpector's nv_build registry holds the Build models' output caps; with+ # no nv_build credential in the child, its requests use the OPENAI_* fallback.+ "nv_build": "nv_build","openai": "openai","openai-compatible": "openai",}diff --git a/tests/validators/test_security.py b/tests/validators/test_security.pyindex 888a6350..908b68af 100644--- a/tests/validators/test_security.py+++ b/tests/validators/test_security.py@@ -3965,7 +3965,7 @@ print(json.dumps([finding.metadata["matched_value"] for finding in result.findinassert mock_run.call_args_list[1].kwargs["replace_env"] is Trueassert child_env["OPENAI_API_KEY"] == public_keyassert child_env["OPENAI_BASE_URL"] == "https://integrate.api.nvidia.com/v1"- assert child_env["SKILLSPECTOR_PROVIDER"] == "openai"+ assert child_env["SKILLSPECTOR_PROVIDER"] == "nv_build"assert child_env["SKILLSPECTOR_MODEL"] == "nvidia/nemotron-3-super-120b-a12b"assert "NVIDIA_API_KEY" not in child_envassert "ANTHROPIC_API_KEY" not in child_env@@ -4000,7 +4000,7 @@ print(json.dumps([finding.metadata["matched_value"] for finding in result.findinassert "ANTHROPIC_API_KEY" not in child_envdef test_external_skillspector_receives_public_nvidia_build_openai_contract(self, monkeypatch) -> None:- """The external scanner receives the documented OpenAI-compatible contract."""+ """The external scanner keeps its Build model registry and the OpenAI-compatible credentials."""monkeypatch.setenv("SKILL_EVAL_LLM_PROVIDER", "nv_build")monkeypatch.setenv("NVIDIA_API_KEY", "public-test-key")monkeypatch.delenv("SKILLSPECTOR_PROVIDER", raising=False)@@ -4010,11 +4010,62 @@ print(json.dumps([finding.metadata["matched_value"] for finding in result.findinchild_env = _skillspector_child_env()assert child_env is not None- assert child_env["SKILLSPECTOR_PROVIDER"] == "openai"+ assert child_env["SKILLSPECTOR_PROVIDER"] == "nv_build"+ assert child_env["OPENAI_API_KEY"] == "public-test-key"+ assert child_env["OPENAI_BASE_URL"] == "https://integrate.api.nvidia.com/v1"+ assert "NVIDIA_API_KEY" not in child_env++ def test_explicit_nv_build_skillspector_provider_keeps_build_registry(self, monkeypatch) -> None:+ """Forcing nv_build keeps SkillSpector's Build registry and forwards only the public key."""+ monkeypatch.setenv("SKILLSPECTOR_PROVIDER", "nv_build")+ monkeypatch.setenv("SKILLSPECTOR_MODEL", "openai/gpt-oss-120b")+ monkeypatch.setenv("NVIDIA_API_KEY", "public-test-key")+ monkeypatch.setenv("OPENAI_API_KEY", "ambient-openai-key")+ monkeypatch.setenv("OPENAI_BASE_URL", "https://ambient.example.test/v1")+ monkeypatch.delenv("SKILL_EVAL_LLM_PROVIDER", raising=False)+ monkeypatch.delenv("SKILL_EVAL_LLM_MODEL", raising=False)++ child_env = _skillspector_child_env()++ assert child_env["SKILLSPECTOR_PROVIDER"] == "nv_build"+ assert child_env["SKILLSPECTOR_MODEL"] == "openai/gpt-oss-120b"assert child_env["OPENAI_API_KEY"] == "public-test-key"assert child_env["OPENAI_BASE_URL"] == "https://integrate.api.nvidia.com/v1"assert "NVIDIA_API_KEY" not in child_env+ def test_nv_build_child_environment_applies_skillspector_build_output_cap(self, monkeypatch) -> None:+ """An installed SkillSpector sizes Build requests from its nv_build registry, not OpenAI defaults."""+ pytest.importorskip("skillspector")+ model = "openai/gpt-oss-120b"+ monkeypatch.setenv("SKILL_EVAL_LLM_PROVIDER", "nv_build")+ monkeypatch.setenv("SKILL_EVAL_LLM_MODEL", model)+ monkeypatch.setenv("NVIDIA_API_KEY", "public-test-key")+ for name in ("SKILLSPECTOR_PROVIDER", "SKILLSPECTOR_MODEL", "SKILLSPECTOR_MODEL_REGISTRY"):+ monkeypatch.delenv(name, raising=False)+ script = """+import sys+from skillspector.llm_utils import is_llm_available+from skillspector.model_info import get_max_output_tokens+from skillspector.providers import get_metadata_provider+model = sys.argv[1]+provider = get_metadata_provider()+assert type(provider).__name__ == "NvBuildProvider", type(provider).__name__+assert is_llm_available() == (True, None), is_llm_available()+cap = provider.get_max_output_tokens(model)+assert cap is not None and get_max_output_tokens(model) <= cap, (cap, get_max_output_tokens(model))+"""+ # SkillSpector picks its provider at import time, so probe it in a fresh process.+ completed = subprocess.run(+ [sys.executable, "-c", script, model],+ env=_skillspector_child_env(),+ capture_output=True,+ text=True,+ timeout=120,+ check=False,+ )++ assert completed.returncode == 0, completed.stderr+@pytest.mark.parametrize(("provider", "credential", "model", "effort"),(