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(release): qualify runtime fixes and prepare v1.0.1
Christopher Kevinc9369a7811bd
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 13e91d0e..c7622a49 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -333,6 +333,21 @@ jobs:- name: Install and smoke-test the wheel on Python 3.12, 3.13, and 3.14shell: bashrun: |+ smoke_cli() {+ local smoke_label="$1"+ shift+ local smoke_log smoke_exit+ smoke_log="$(mktemp "$RUNNER_TEMP/skillevaluator-smoke.XXXXXX")"+ if "$@" >"$smoke_log" 2>&1; then+ rm -f "$smoke_log"+ else+ smoke_exit=$?+ printf '::error::%s failed (exit %s)\n' "$smoke_label" "$smoke_exit"+ cat "$smoke_log"+ rm -f "$smoke_log"+ return "$smoke_exit"+ fi+ }wheel="$(find "$PWD/dist" -maxdepth 1 -type f -name 'skillevaluator-*.whl' -print -quit)"test -n "$wheel"for python_version in 3.12 3.13 3.14; do@@ -344,11 +359,11 @@ jobs:"$venv/bin/python" -c 'from importlib.resources import files; assert files("skillevaluator.tier3.harbor").joinpath("templates/eval.py").is_file()'"$venv/bin/python" -c 'from importlib.resources import files; from skillevaluator.quality_config import load_quality_config; assert files("skillevaluator.config").joinpath("quality-default.yaml").is_file(); c=load_quality_config(); assert [h["heading"] for h in c["expected_headers"]]==["## Prerequisites","## Limitations","## Troubleshooting"], c'"$venv/bin/skillevaluator" --version- "$venv/bin/skillevaluator" --help >/dev/null- "$venv/bin/skillevaluator" models --help >/dev/null- "$venv/bin/skillevaluator" ci --help >/dev/null+ smoke_cli "CLI help (Python ${python_version})" "$venv/bin/skillevaluator" --help+ smoke_cli "Models help (Python ${python_version})" "$venv/bin/skillevaluator" models --help+ smoke_cli "CI help (Python ${python_version})" "$venv/bin/skillevaluator" ci --helpSKILL_EVAL_LLM_PROVIDER=nv_build NVIDIA_API_KEY=nvapi-ci-placeholder \- "$venv/bin/skillevaluator" doctor --agents opencode --env-mode docker >/dev/null+ smoke_cli "Tier 3 doctor (Python ${python_version})" "$venv/bin/skillevaluator" doctor --agents opencode --env-mode docker"$venv/bin/python" -c 'import io; from skillevaluator.tier3.harbor.progress import PlainProgressReporter,ProgressEvent,Tier3RunPlan; s=io.StringIO(); r=PlainProgressReporter(stream=s,refresh_interval=60); r.start(Tier3RunPlan(skill_name="wheel-smoke",environment="docker",agents=("opencode",))); r.emit(ProgressEvent(stage="configuration",state="complete")); r.close(); assert "configuration: complete" in s.getvalue()'done- name: Run the installed verifier with Python 3.9diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 29e1f0da..36535b91 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,8 +4,24 @@ All notable changes to SkillEvaluator are documented in this file.## Unreleased+## 1.0.1 - 2026-11-17+### Fixed+- Disable OpenCode snapshots by default to avoid broken-pipe failures after a+ completed task, while preserving explicit user snapshot settings.+- Preserve opaque Claude gateway model IDs across Docker, local, and native Harbor+ command construction while keeping native Anthropic, Vertex, and Bedrock routes+ independent from a gateway-backed judge.+- Count a standalone Tier 2 evaluation as one skill in JSON and HTML reports,+ and prioritize failed-runtime recovery without hiding authored source or runner+ instructions.+- Select starter-demo score expectations by the installed evaluator version,+ preserving the released 0.9.0 example while recognizing the 1.0.0 scores.+- Retain the GitLab tools revision in aggregated report provenance.+- Document the tested editable NeMo Gym installation required by OpenCode and+ the completed Codex, Claude Code, and OpenCode live paired runs.+- Folder validators apply skill-discovery exclusions only below the requestedscan root. A checkout inside a directory named `results`, `evals`, or `.versions`no longer loses every live skill, while nested evaluation snapshots remain excluded.diff --git a/CITATION.cff b/CITATION.cffindex d34ba25a..68add59c 100644--- a/CITATION.cff+++ b/CITATION.cff@@ -2,7 +2,7 @@ cff-version: 1.2.0message: "If you use SkillEvaluator in academic or technical work, please cite the methodology paper under preferred-citation and record the SkillEvaluator version used for reproducibility."title: "SkillEvaluator"type: software-version: "1.0.0"+version: "1.0.1"authors:- name: "NVIDIA Corporation"license: Apache-2.0diff --git a/ci/run_tiers.py b/ci/run_tiers.pyindex e7797262..b93e4fb9 100644--- a/ci/run_tiers.py+++ b/ci/run_tiers.py@@ -149,7 +149,7 @@ def context(env: dict) -> dict:"os": platform.system(),"architecture": platform.machine(),"evaluator": importlib.metadata.version("skillevaluator"),- "tools_ref": env.get("SKILLEVALUATOR_TOOLS_REF", ""),+ "tools_ref": env.get("SKILLEVALUATOR_TOOLS_REF") or env.get("SKILL_EVAL_TOOLS_REF", ""),},}diff --git a/docs/developer-guide.mdx b/docs/developer-guide.mdxindex 72cbef8d..626273a7 100644--- a/docs/developer-guide.mdx+++ b/docs/developer-guide.mdx@@ -219,7 +219,7 @@ SkillEvaluator version you used for reproducibility:cff-version: 1.2.0title: "SkillEvaluator"type: software-version: "1.0.0"+version: "1.0.1"preferred-citation:type: articletitle: "Evaluating Skills, Not Just Agents: Agentic Continuous Evaluation of Skills"diff --git a/docs/tier3-runtime.mdx b/docs/tier3-runtime.mdxindex 9c85f59b..262cc8b9 100644--- a/docs/tier3-runtime.mdx+++ b/docs/tier3-runtime.mdx@@ -149,7 +149,7 @@ collector, but requires a Gym interface that is not available in the checked pub| Backend | What runs the cases || --- | --- || `harbor` (default) | Harbor orchestrates the trials, runs the agent and the sandbox. Every `--env-mode` is available. |-| `nemo-gym` | Experimental native Gym task-folder adapter, restricted to `--env-mode docker`. Needs the pinned Gym install below; public Gym 0.7.0 is incompatible and fails preflight. Codex and Claude Code have completed live runs on the pinned Gym. OpenCode currently fails in Gym's agent setup before either arm starts. |+| `nemo-gym` | Native Gym task-folder adapter, restricted to `--env-mode docker`. Needs the pinned editable Gym install below; public Gym 0.7.0 is incompatible and fails preflight. Codex, Claude Code, and OpenCode have completed live paired runs on this pinned runtime. OpenCode requires the full editable checkout; its wheel installation fails during agent setup. |**Compatibility status:** installing `nemo-gym==0.7.0` does not enable this backend.That release's `gym eval run` takes JSONL inputs and configured environments; it has@@ -157,11 +157,13 @@ neither the positional task-directory argument nor `--sandbox` used by this adapRemoving that flag alone does not provide the required execution or verifier contract.The immutable public source candidate[`NVIDIA-NeMo/Gym@792fa142f58277aecff05d402061d647e9a92acf`](https://github.com/NVIDIA-NeMo/Gym/blob/792fa142f58277aecff05d402061d647e9a92acf/nemo_gym/cli/main.py)-declares the `TARGET` task-folder argument and the seven required flags. This source-inspection alone does not establish full runtime support. Beyond the specific live runs-summarized above, broader agent/grading combinations, paired small/custom-Dockerfile-runs and input-file handling still need independent qualification, including their-native execution and verifier artifacts. The agent mappings remain experimental.+declares the `TARGET` task-folder argument and the seven required flags. Focused live+Docker runs completed both with-skill and baseline trials for Codex and OpenCode with+GPT-5.4-mini, and for Claude Code with Claude Sonnet 4.6. The runs retained native+execution and verifier artifacts and exercised staged input files. These operational+checks do not establish representative skill quality or compatibility with every model.+Additional grading modes, custom Dockerfiles, and broader provider/model combinations+need separate qualification.The Claude Code mapping uses the same pinned runtime version as Harbor, installedby Gym inside the sandbox. It enables native discovery and projects staged skills@@ -173,13 +175,16 @@ takes its policy endpoint from the same settings as Codex: `SKILL_EVAL_NEMO_GYM_`SKILL_EVAL_NEMO_GYM_MODEL_API_KEY` and a model from `--model` or`--agent-model claude-code=MODEL`.-Install the pinned Gym in its own Python 3.13.14+ environment, separate from-SkillEvaluator's, and check that its `gym eval run --help` lists `TARGET` and `--sandbox`:+Use uv 0.13.4 or later on `PATH`. Install the pinned Gym from a persistent full+source checkout in editable mode, with its own Python 3.13.14+ environment separate+from SkillEvaluator's. Check that `gym eval run --help` lists `TARGET` and `--sandbox`:```bash+git clone --filter=blob:none https://github.com/NVIDIA-NeMo/Gym.git "$HOME/nemo-gym/source"+git -C "$HOME/nemo-gym/source" checkout --detach 792fa142f58277aecff05d402061d647e9a92acfuv venv --python ">=3.13.14,<3.14" "$HOME/nemo-gym/.venv"uv pip install --python "$HOME/nemo-gym/.venv/bin/python" \- "nemo-gym @ git+https://github.com/NVIDIA-NeMo/Gym@792fa142f58277aecff05d402061d647e9a92acf"+ --editable "$HOME/nemo-gym/source""$HOME/nemo-gym/.venv/bin/gym" eval run --help```@@ -443,6 +448,21 @@ See [retained CI evidence](https://github.com/NVIDIA/SkillEvaluator/blob/main/ciStart Docker or configure the selected `--env-mode`, then re-run`skillevaluator doctor` with the same agent and environment.</Accordion>+ <Accordion title="NeMo Gym cannot find the OpenCode runtime installer">+ Use the pinned editable source-checkout installation above. At this Gym+ revision, a non-editable wheel installation creates component-resource+ symlinks that its Docker uploader preserves as dangling host-path links.+ OpenCode then fails before execution with a missing+ `install_opencode_runtime.sh`. Repoint `SKILL_EVAL_NEMO_GYM_BIN` at the+ editable installation and rerun; the checkout must remain available.+ </Accordion>+ <Accordion title="NeMo Gym cannot resolve or reach its service host">+ Set `SKILL_EVAL_NEMO_GYM_HOST` to a host LAN or bridge IPv4 address reachable+ from the Docker task containers. For example, on macOS with networking on+ `en0`, use `export SKILL_EVAL_NEMO_GYM_HOST=$(ipconfig getifaddr en0)`.+ Use the interface serving your Docker traffic; the configured address must+ belong to the host because Gym also binds its services there.+ </Accordion><Accordion title="Docker reports that all predefined address pools have been fully subnetted">A trial's Compose project normally creates its own Docker network, andDocker carves each one from a limited set of default address pools. Eachdiff --git a/examples/starter/expected.json b/examples/starter/expected.jsonindex 464f3ad8..c230f3eb 100644--- a/examples/starter/expected.json+++ b/examples/starter/expected.json@@ -13,5 +13,9 @@},"quality": {"score": 84.5, "grade": "B", "status": "passed", "exit_code": 0, "publication": "incomplete"},"regressed": {"score": 71.0, "grade": "C", "status": "failed", "exit_code": 1, "publication": "fail"},+ "evaluator_versions": {+ "1.0.0": {"quality": {"score": 88.8}, "regressed": {"score": 72.8}},+ "1.0.1": {"quality": {"score": 88.8}, "regressed": {"score": 72.8}}+ },"checkout": {"quality": {"score": 88.8}, "regressed": {"score": 72.8}}}diff --git a/pyproject.toml b/pyproject.tomlindex a0f510e1..7158b1e6 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -7,7 +7,7 @@ requires = ["setuptools >= 77", "wheel"][project]name = "skillevaluator"-version = "1.0.0"+version = "1.0.1"description = "Multi-tier framework for evaluating AI agent skills with quality gates, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation."authors = [{ name = "NVIDIA Corporation" }]readme = "README.md"diff --git a/scripts/demo_starter.py b/scripts/demo_starter.pyindex 15006fb3..becdfbfe 100644--- a/scripts/demo_starter.py+++ b/scripts/demo_starter.py@@ -70,12 +70,17 @@ def load_expected() -> dict:"""Return the expected results for the evaluator that runs the demo.The top-level values are what the release pinned in the starter guide reports.- When the evaluator is this checkout's own source, the ``checkout`` values- replace them, because the source can score the starter differently until a+ Reviewed ``evaluator_versions`` values select the installed release when+ it differs from the guide's pinned release. When the evaluator is this+ checkout's own source, the ``checkout`` values replace them, because the+ source can score the starter differently until arelease includes its changes."""expected = json.loads((FIXTURES / "expected.json").read_text(encoding="utf-8"))checkout = expected.pop("checkout", {})+ evaluator_versions = expected.pop("evaluator_versions", {})+ for label, values in evaluator_versions.get(version("skillevaluator"), {}).items():+ expected[label] |= valuesevaluator = find_spec("skillevaluator")source = (FIXTURES.parents[1] / "src").resolve()if evaluator and evaluator.origin and Path(evaluator.origin).resolve().is_relative_to(source):diff --git a/src/skillevaluator/__init__.py b/src/skillevaluator/__init__.pyindex 94f555be..a9a9bb05 100644--- a/src/skillevaluator/__init__.py+++ b/src/skillevaluator/__init__.py@@ -10,6 +10,6 @@ from importlib.metadata import PackageNotFoundError, versiontry:__version__ = version("skillevaluator")except PackageNotFoundError:- __version__ = "1.0.0"+ __version__ = "1.0.1"__all__ = ["__version__"]diff --git a/src/skillevaluator/cli.py b/src/skillevaluator/cli.pyindex d606446d..05a343b4 100644--- a/src/skillevaluator/cli.py+++ b/src/skillevaluator/cli.py@@ -3513,6 +3513,7 @@ def context_optimization_check(report_formats=report_formats,output_dir=output_dir,basename=report_basename("context"),+ explicit_skill_name=skill_path.resolve().name,**_report_roots(skill_path),):raise click.ClickException("context optimization check failed")@@ -3549,6 +3550,7 @@ def dedup_scan(report_formats=report_formats,output_dir=output_dir,basename=report_basename("dedup"),+ explicit_skill_name=skill_path.resolve().name,**_report_roots(skill_path),):raise click.ClickException("dedup scan failed")diff --git a/src/skillevaluator/reporting/templates/report.html.j2 b/src/skillevaluator/reporting/templates/report.html.j2index 7deeb066..b4f3c208 100644--- a/src/skillevaluator/reporting/templates/report.html.j2+++ b/src/skillevaluator/reporting/templates/report.html.j2@@ -2695,7 +2695,8 @@<div class="t3-summary-action" id="tier3-next-steps-preview">{% set primary_step = (insights_view.next_steps or []) | first %}{% set primary_recommendation = (insights_view.recommendations or []) | first %}- {% if primary_step or primary_recommendation %}<p><strong>Next action:</strong> {{ primary_step.action if primary_step else (primary_recommendation.title or primary_recommendation.message) }}</p>{% endif %}+ {% if insights_view.execution_errors and primary_step and primary_step.target != 'evaluation' %}<p><strong>Next action:</strong> Resolve the recorded execution errors before changing the skill or dataset, then rerun the affected attempts.</p>+ {% elif primary_step or primary_recommendation %}<p><strong>Next action:</strong> {{ primary_step.action if primary_step else (primary_recommendation.title or primary_recommendation.message) }}</p>{% endif %}<div class="t3-summary-links"><a href="#tier3-page-suggestions">View insights</a>{% if insights_view.execution_errors %}<a href="#tier3-execution-errors">Execution errors</a>{% endif %}</div></div></div>diff --git a/src/skillevaluator/tier1/commands.py b/src/skillevaluator/tier1/commands.pyindex 8c4b634b..6244e1b0 100644--- a/src/skillevaluator/tier1/commands.py+++ b/src/skillevaluator/tier1/commands.py@@ -704,6 +704,7 @@ def emit_reports(requested_tiers=requested_tiers,displayed_tiers=displayed_tiers,expected_skill_name=expected_skill_name,+ explicit_skill_name=explicit_skill_name,)elif fmt == "sarif":reporter = reporter_cls(workspace_root=repository_root, scan_root=scan_root)diff --git a/src/skillevaluator/tier3/harbor/local_agents.py b/src/skillevaluator/tier3/harbor/local_agents.pyindex d357aada..0e350aad 100644--- a/src/skillevaluator/tier3/harbor/local_agents.py+++ b/src/skillevaluator/tier3/harbor/local_agents.py@@ -383,6 +383,26 @@ class SkillEvaluatorClaudeCode(_InstalledClaudeCode):return []+class SkillEvaluatorGatewayClaudeCode(SkillEvaluatorClaudeCode):+ """Preserve an explicit gateway's opaque catalog ID in Claude's model selection."""++ def _resolved_model_name(self) -> str | None:+ # A gateway judge can coexist with independent native/Vertex/Bedrock+ # agent credentials. Preserve those routes' native model parsing.+ access = self.model_connection+ endpoint = access.execution_base_url+ if (+ self._uses_vertex_auth()+ or access.provider is None+ or not endpoint+ or urlsplit(endpoint).hostname == "api.anthropic.com"+ ):+ return super()._resolved_model_name()+ # Harbor normally removes a provider prefix. Gateway catalog IDs can+ # contain several slashes, and every segment belongs to the upstream ID.+ return self.model_name or super()._resolved_model_name()++class SkillEvaluatorLocalClaudeCode(SkillEvaluatorClaudeCode):"""Claude Code wrapper that skips bootstrap install in local mode."""@@ -422,6 +442,10 @@ class SkillEvaluatorLocalClaudeCode(SkillEvaluatorClaudeCode):)+class SkillEvaluatorLocalGatewayClaudeCode(SkillEvaluatorLocalClaudeCode, SkillEvaluatorGatewayClaudeCode):+ """Use the local CLI while preserving the selected gateway catalog ID."""++class SkillEvaluatorGatewayCodex(SkillEvaluatorCodex):"""Use an explicit Responses gateway without truncating its catalog model ID."""diff --git a/src/skillevaluator/tier3/harbor/runner.py b/src/skillevaluator/tier3/harbor/runner.pyindex 38b72c2e..09ba8749 100644--- a/src/skillevaluator/tier3/harbor/runner.py+++ b/src/skillevaluator/tier3/harbor/runner.py@@ -843,11 +843,13 @@ _NVIDIA_BUILD_FILE_SENTINEL = "skillevaluator-file-backed-nvidia-key"_NVIDIA_BUILD_KEY_FILE_ENV = "SKILLEVALUATOR_NVIDIA_API_KEY_FILE"_NVIDIA_BUILD_AGENT_DEFAULT_MODEL = CHAT_DEFAULT_NVIDIA_GATEWAY_CODEX_IMPORT_PATH = "skillevaluator.tier3.harbor.local_agents:SkillEvaluatorGatewayCodex"-# The OpenAI-compatible gateway Codex wrapper and container agent wrappers are+_GATEWAY_CLAUDE_IMPORT_PATH = "skillevaluator.tier3.harbor.local_agents:SkillEvaluatorGatewayClaudeCode"+# The OpenAI-compatible gateway wrappers and container agent wrappers are# allowed on Harbor-native backends (including GKE)._NATIVE_BACKEND_AGENT_IMPORT_PATHS = frozenset({_GATEWAY_CODEX_IMPORT_PATH,+ _GATEWAY_CLAUDE_IMPORT_PATH,*CONTAINER_AGENT_IMPORT_PATHS.values(),})@@ -3692,6 +3694,10 @@ def _provider_agent_import_path(provider: ProviderConfig, agent: str, env_mode:"""Select only the provider-specific wrappers required for this environment."""if agent == "hermes" and provider.provider == "nv_build" and env_mode == "docker":return DOCKER_AGENT_IMPORT_PATHS["hermes"]+ if provider.provider == "openai-compatible" and agent == "claude-code":+ if env_mode == ENV_MODE_LOCAL:+ return "skillevaluator.tier3.harbor.local_agents:SkillEvaluatorLocalGatewayClaudeCode"+ return _GATEWAY_CLAUDE_IMPORT_PATHif provider.provider == "openai-compatible" and agent == "codex" and env_mode != ENV_MODE_LOCAL:return _GATEWAY_CODEX_IMPORT_PATHif provider.provider == "openai-compatible" and agent == "opencode" and env_mode in HARBOR_DOCKER_ENGINE_ENV_MODES:diff --git a/src/skillevaluator/tier3/next_steps.py b/src/skillevaluator/tier3/next_steps.pyindex 7c7bcf82..4d1c7098 100644--- a/src/skillevaluator/tier3/next_steps.py+++ b/src/skillevaluator/tier3/next_steps.py@@ -189,7 +189,7 @@ def next_steps(observed,))- elif most_attempts == 1:+ elif most_attempts == 1 and not partial:steps.append(_step("single attempt",diff --git a/tests/ci/test_run_tiers.py b/tests/ci/test_run_tiers.pyindex da82cb54..6b0bf90e 100644--- a/tests/ci/test_run_tiers.py+++ b/tests/ci/test_run_tiers.py@@ -43,6 +43,20 @@ def env_for(consumer, **updates):}+ ("environment", "expected"),+ [+ ({"SKILLEVALUATOR_TOOLS_REF": "a" * 40}, "a" * 40),+ ({"SKILL_EVAL_TOOLS_REF": "b" * 40}, "b" * 40),+ ({"SKILLEVALUATOR_TOOLS_REF": "a" * 40, "SKILL_EVAL_TOOLS_REF": "b" * 40}, "a" * 40),+ ({"SKILLEVALUATOR_TOOLS_REF": "", "SKILL_EVAL_TOOLS_REF": "b" * 40}, "b" * 40),+ ({}, ""),+ ],+)+def test_context_records_tools_ref_from_platform_environment(environment, expected):+ assert run_tiers.context(environment)["runtime"]["tools_ref"] == expected++@pytest.mark.parametrize("tier", [2, 3])@pytest.mark.parametrize("legacy_required", ["false", "true", "unused-legacy-value"])def test_missing_credentials_retains_incomplete_advisory_tier(consumer, tmp_path, tier, legacy_required):diff --git a/tests/test_ci_workflows.py b/tests/test_ci_workflows.pyindex 26114f39..961ff2c8 100644--- a/tests/test_ci_workflows.py+++ b/tests/test_ci_workflows.py@@ -6,6 +6,7 @@ from __future__ import annotationsimport jsonimport reimport shlex+import subprocessimport sysimport tomllibfrom collections.abc import Sequence@@ -916,3 +917,30 @@ def test_fern_pin_guard_rejects_unreviewed_dependency_changes(with pytest.raises(AssertionError):test_the_pinned_fern_cli_version_matches_the_fern_config()++[email protected](sys.platform == "win32", reason="Package smoke runs in Ubuntu Bash.")[email protected]("command_exit", [0, 7])+def test_package_smoke_preserves_failed_command_diagnostics(tmp_path: Path, command_exit: int) -> None:+ package = _load("ci.yml")["jobs"]["package"]+ step = next(step for step in package["steps"] if step.get("name", "").startswith("Install and smoke-test"))+ helper = step["run"].split('\nwheel="', 1)[0]+ program = (+ "import os, sys; assert os.environ['SMOKE_TEST_FLAG'] == 'enabled'; "+ f"print('smoke diagnostic'); print('smoke stderr', file=sys.stderr); sys.exit({command_exit})"+ )+ command = [sys.executable, "-c", program]+ invocation = "SMOKE_TEST_FLAG=enabled smoke_cli 'Test command (Python 3.12)' " + shlex.join(command)+ script = "set -e\nRUNNER_TEMP=" + shlex.quote(str(tmp_path)) + "\n" + helper + "\n" + invocation++ result = subprocess.run(["bash", "-c", script], capture_output=True, text=True, check=False)++ assert result.returncode == command_exit+ assert result.stderr == ""+ assert not list(tmp_path.glob("skillevaluator-smoke.*"))+ if command_exit:+ assert "Test command (Python 3.12) failed (exit 7)" in result.stdout+ assert "smoke diagnostic" in result.stdout+ assert "smoke stderr" in result.stdout+ else:+ assert result.stdout == ""diff --git a/tests/test_demo_starter.py b/tests/test_demo_starter.pyindex ceae0d4d..8bf9b154 100644--- a/tests/test_demo_starter.py+++ b/tests/test_demo_starter.py@@ -75,6 +75,7 @@ def test_installed_release_is_checked_against_the_pinned_release_scores(tmp_pathfixtures = tmp_path / "checkout" / "examples" / "starter"shutil.copytree(FIXTURES, fixtures)monkeypatch.setattr(demo_starter, "FIXTURES", fixtures)+ monkeypatch.setattr(demo_starter, "version", lambda _: "0.9.0")expected = json.loads((fixtures / "expected.json").read_text(encoding="utf-8"))def release_cli(command, log, expected_exit):@@ -148,3 +149,19 @@ def test_output_checks_reject_changed_or_misleading_results(quality_report, secttarget[key] = valuewith pytest.raises(ValueError):check_quality(changed, expected)+++ ("evaluator_version", "quality_score", "regressed_score"),+ [("0.9.0", 84.5, 71.0), ("1.0.0", 88.8, 72.8), ("1.0.1", 88.8, 72.8)],+)+def test_installed_starter_uses_reviewed_version_scores(monkeypatch, evaluator_version, quality_score, regressed_score):+ # Installed releases have no checkout source origin. Keep the old pinned+ # guide's contract while qualifying the new wheel against its real outputs.+ monkeypatch.setattr(demo_starter, "find_spec", lambda _: None)+ monkeypatch.setattr(demo_starter, "version", lambda _: evaluator_version)+ expected = demo_starter.load_expected()+ assert expected["quality"]["score"] == quality_score+ assert expected["regressed"]["score"] == regressed_score+ assert "evaluator_versions" not in expected+ assert "checkout" not in expecteddiff --git a/tests/test_harbor_html_report_failures.py b/tests/test_harbor_html_report_failures.pyindex b41ff1ec..43edfc3c 100644--- a/tests/test_harbor_html_report_failures.py+++ b/tests/test_harbor_html_report_failures.py@@ -154,6 +154,21 @@ def test_collector_failure_details_flow_into_generated_report(tmp_path: Path) ->expected_cases=1,expected_case_ids=["case-001"],)+ (results_dir / "dataset_snapshot.json").write_text(+ json.dumps({"dataset": [{"id": "case-001", "question": "Reconcile the ledger", "expected_skill": "demo"}]})+ )+ (results_dir / "result.json").write_text(+ json.dumps(+ {+ "agents": {+ "opencode": {+ "execution_status": "failed",+ "pass_at_k": {"with_skill": {"k": 1, "cases": {"case-001": {"attempts_missing": 1}}}},+ }+ }+ }+ )+ )output = _render_report("demo", results_dir).read_text(encoding="utf-8")assert "With skill aggregate job" in output@@ -161,6 +176,8 @@ def test_collector_failure_details_flow_into_generated_report(tmp_path: Path) ->assert "result.json" in outputassert "case-001__attempt" in outputassert "AgentTimeoutError: Agent timed out after 600 seconds" in output+ preview = output.split('id="tier3-next-steps-preview"', 1)[1].split("</p>", 1)[0]+ assert "execution errors" in previewdef test_failed_agent_has_no_synthetic_score_in_comparison_or_html(tmp_path: Path) -> None:diff --git a/tests/test_tier2_report_identity.py b/tests/test_tier2_report_identity.pynew file mode 100644index 00000000..dce45172--- /dev/null+++ b/tests/test_tier2_report_identity.py@@ -0,0 +1,42 @@+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.+# SPDX-License-Identifier: Apache-2.0++"""Single-skill Tier 2 reports must not turn internal check IDs into skills."""++import json++import pytest+from click.testing import CliRunner++from skillevaluator.cli import cli+from skillevaluator.models.result import ValidationResult+++ ("command", "provider_runner", "basename"),+ [+ ("dedup-scan", "run_dedup_scan", "skillevaluator-dedup"),+ ("context-optimization-check", "run_context_optimization_check", "skillevaluator-context"),+ ],+)+def test_one_skill_with_three_successful_checks_has_one_reported_skill(+ tmp_path, monkeypatch, command, provider_runner, basename+):+ skill = tmp_path / "ledger-distinct"+ skill.mkdir()+ (skill / "SKILL.md").write_text("---\nname: ledger-distinct\ndescription: Reconcile a ledger.\n---\n")+ result = ValidationResult(validator_name="Content Deduplication")+ for name in ("chunking", "context_dedup", "cross_file_overlap"):+ result.add_success(name, "No redundant content detected")+ # Only the external provider operation is replaced. The CLI, sanitization,+ # skill grouping and report generation all run normally.+ monkeypatch.setattr(f"skillevaluator.tier2.commands.{provider_runner}", lambda *_a, **_kw: [result])+ output = tmp_path / "reports"++ invoked = CliRunner().invoke(cli, [command, str(skill), "-r", "json", "-r", "html", "-o", str(output)])++ assert invoked.exit_code == 0, invoked.output+ report = json.loads((output / f"{basename}.json").read_text())+ assert report["skills"] == [{"name": "ledger-distinct", "passed": True, "issue_count": 0}]+ html = (output / f"{basename}.html").read_text()+ assert "3 of 3 passed" not in htmldiff --git a/tests/test_tier3_next_steps.py b/tests/test_tier3_next_steps.pyindex 724dd52b..bf752b7f 100644--- a/tests/test_tier3_next_steps.py+++ b/tests/test_tier3_next_steps.py@@ -104,6 +104,17 @@ def test_single_attempt_runs_are_flagged_but_stop_on_pass_skips_are_not(tmp_pathassert next_steps({"agents": {"a": stopped}}, run_dir=tmp_path) == []+def test_failed_unscored_attempts_do_not_recommend_spending_on_more_repetitions(tmp_path: Path) -> None:+ _dataset(tmp_path, ids=("c1",), negative=False)+ failed = _agent({"c1": _case(missing=1)}, {"c1": _case(missing=1)})+ failed["execution_status"] = "failed"++ steps = next_steps({"agents": {"codex": failed}}, run_dir=tmp_path, fixes=[{"kind": "run error"}])++ assert "single attempt" not in _kinds(steps)+ assert all("--n-attempts" not in step["action"] for step in steps)++def test_agent_dependent_effect_is_a_hypothesis_to_test(tmp_path: Path) -> None:_dataset(tmp_path)flat = _agent(diff --git a/tests/tier3/test_claude_gateway_model_handoff.py b/tests/tier3/test_claude_gateway_model_handoff.pynew file mode 100644index 00000000..de9d8f2c--- /dev/null+++ b/tests/tier3/test_claude_gateway_model_handoff.py@@ -0,0 +1,148 @@+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.+# SPDX-License-Identifier: Apache-2.0++"""Exercise model routing through the installed Harbor Claude launcher."""++import asyncio+from pathlib import Path++import pytest++pytest.importorskip("harbor")++from harbor.agents.factory import AgentFactory+from harbor.models.trial.config import AgentConfig+from harbor.utils.import_path import import_symbol++from skillevaluator.provider_config import ProviderConfig+from skillevaluator.tier3.harbor import runner+from skillevaluator.tier3.harbor.local_agents import SkillEvaluatorClaudeCode, SkillEvaluatorLocalClaudeCode+from skillevaluator.tier3.harbor.runner import _provider_agent_import_path++[email protected]("env_mode", sorted(runner.HARBOR_ENV_MODES))[email protected]("model", ["azure/anthropic/claude-sonnet-4-6", "claude-sonnet-4-6"])+def test_gateway_claude_launcher_preserves_catalog_model(+ monkeypatch: pytest.MonkeyPatch, tmp_path: Path, env_mode: str, model: str+) -> None:+ for name in (+ "ANTHROPIC_DEFAULT_SONNET_MODEL",+ "ANTHROPIC_DEFAULT_OPUS_MODEL",+ "ANTHROPIC_DEFAULT_HAIKU_MODEL",+ "ANTHROPIC_DEFAULT_FABLE_MODEL",+ "CLAUDE_CODE_SUBAGENT_MODEL",+ "CLAUDE_CODE_USE_VERTEX",+ "CLAUDE_CODE_OAUTH_TOKEN",+ "CLAUDE_FORCE_OAUTH",+ ):+ monkeypatch.delenv(name, raising=False)+ provider = ProviderConfig(+ provider="openai-compatible",+ model=model,+ api_key="test-key",+ base_url="https://gateway.example/v1",+ litellm_model=f"openai/{model}",+ )+ monkeypatch.setattr(runner, "_harbor_supports_yes", lambda: False)+ selected_model, _ = runner._model_for_agent("claude-code", cli_model=model, config_agents={}, provider=provider)+ command = runner.build_harbor_run_command(+ dataset_path=tmp_path / "tasks",+ agent="claude-code",+ job_name="gateway-claude",+ env_mode=env_mode,+ model=selected_model,+ agent_import_path=runner._agent_import_path(provider, "claude-code", env_mode),+ )+ selected_agent = command[command.index("--agent") + 1]+ selected_model = command[command.index("--model") + 1]+ calls = []++ async def capture_exec(self, environment, command, **kwargs):+ calls.append((command, kwargs.get("env", {})))++ # Only replace the external process boundary; Harbor builds the real launch environment.+ monkeypatch.setattr("harbor.agents.installed.base.BaseInstalledAgent.exec_as_agent", capture_exec)+ agent = AgentFactory.create_agent_from_config(+ AgentConfig(+ import_path=selected_agent,+ model_name=selected_model,+ env={"ANTHROPIC_API_KEY": "test-key", "ANTHROPIC_BASE_URL": "https://gateway.example"},+ ),+ logs_dir=tmp_path,+ )+ if env_mode == "local":+ assert isinstance(agent, SkillEvaluatorLocalClaudeCode)+ asyncio.run(agent.run("Return OK", environment=object(), context=object()))+ env = next(env for command, env in calls if "claude --verbose" in command)+ assert env["ANTHROPIC_MODEL"] == model+ assert env["ANTHROPIC_DEFAULT_SONNET_MODEL"] == model+ assert env["CLAUDE_CODE_SUBAGENT_MODEL"] == model+ assert env["ANTHROPIC_BASE_URL"] == "https://gateway.example"+++ ("model", "extra_env", "expected"),+ [+ ("anthropic/claude-sonnet-4-6", {"ANTHROPIC_API_KEY": "test-key"}, "claude-sonnet-4-6"),+ ("vertex_ai/claude-sonnet-4-6", {"CLAUDE_CODE_USE_VERTEX": "1"}, "claude-sonnet-4-6"),+ ("bedrock/us.anthropic.claude-sonnet-4-6", {}, "us.anthropic.claude-sonnet-4-6"),+ ],+)+def test_native_claude_model_resolution_is_unchanged(tmp_path, model, extra_env, expected):+ agent = SkillEvaluatorClaudeCode(logs_dir=tmp_path, model_name=model, extra_env=extra_env)+ assert agent._resolved_model_name() == expected++[email protected]("env_mode", ["docker", "kata", "gke", "e2b", "local"])+def test_native_anthropic_does_not_select_gateway_wrapper(env_mode):+ provider = ProviderConfig(+ provider="anthropic",+ model="claude-sonnet-4-6",+ api_key="test-key",+ base_url="https://api.anthropic.com",+ litellm_model="anthropic/claude-sonnet-4-6",+ )+ assert _provider_agent_import_path(provider, "claude-code", env_mode) is None++[email protected]("env_mode", ["docker", "local"])+ ("model", "extra_env", "expected"),+ [+ ("anthropic/claude-sonnet-4-6", {"ANTHROPIC_API_KEY": "test-key"}, "claude-sonnet-4-6"),+ (+ "anthropic/claude-sonnet-4-6",+ {"ANTHROPIC_API_KEY": "test-key", "ANTHROPIC_BASE_URL": "https://api.anthropic.com"},+ "claude-sonnet-4-6",+ ),+ ("vertex_ai/claude-sonnet-4-6", {"CLAUDE_CODE_USE_VERTEX": "1"}, "claude-sonnet-4-6"),+ ("bedrock/us.anthropic.claude-sonnet-4-6", {}, "us.anthropic.claude-sonnet-4-6"),+ ],+)+def test_gateway_judge_keeps_independent_claude_route(monkeypatch, tmp_path, env_mode, model, extra_env, expected):+ for name in (+ "ANTHROPIC_BASE_URL",+ "ANTHROPIC_API_KEY",+ "CLAUDE_CODE_USE_VERTEX",+ "CLAUDE_CODE_OAUTH_TOKEN",+ "CLAUDE_FORCE_OAUTH",+ ):+ monkeypatch.delenv(name, raising=False)+ provider = ProviderConfig(+ provider="openai-compatible",+ model="gateway-judge",+ api_key="gateway-key",+ base_url="https://gateway.example/v1",+ litellm_model="openai/gateway-judge",+ )+ agent_type = import_symbol(_provider_agent_import_path(provider, "claude-code", env_mode))+ calls = []++ async def capture_exec(self, environment, command, **kwargs):+ calls.append((command, kwargs.get("env", {})))++ monkeypatch.setattr("harbor.agents.installed.base.BaseInstalledAgent.exec_as_agent", capture_exec)+ agent = agent_type(logs_dir=tmp_path, model_name=model, extra_env=extra_env)+ asyncio.run(agent.run("Return OK", environment=object(), context=object()))+ env = next(env for command, env in calls if "claude --verbose" in command)+ assert env["ANTHROPIC_MODEL"] == expecteddiff --git a/tests/tier3/test_gateway_codex.py b/tests/tier3/test_gateway_codex.pyindex 4ccce0bc..0daf5036 100644--- a/tests/tier3/test_gateway_codex.py+++ b/tests/tier3/test_gateway_codex.py@@ -30,6 +30,12 @@ def test_gateway_adapter_selection_preserves_other_routes(provider, mode, agent)expected = runner._nvidia_build_agent_import_path(config, agent, mode)if provider == "openai-compatible" and mode != "local" and agent == "codex":expected = "skillevaluator.tier3.harbor.local_agents:SkillEvaluatorGatewayCodex"+ if provider == "openai-compatible" and agent == "claude-code":+ expected = (+ "skillevaluator.tier3.harbor.local_agents:SkillEvaluatorLocalGatewayClaudeCode"+ if mode == "local"+ else "skillevaluator.tier3.harbor.local_agents:SkillEvaluatorGatewayClaudeCode"+ )if provider == "openai-compatible" and mode in {"docker", "kata"} and agent == "opencode":expected = "skillevaluator.tier3.harbor.local_agents:SkillEvaluatorGatewayOpenCode"assert runner._agent_import_path(config, agent, mode) == expecteddiff --git a/uv.lock b/uv.lockindex 3c7c8c10..802ea9b9 100644--- a/uv.lock+++ b/uv.lock@@ -2623,7 +2623,7 @@ wheels = [[[package]]name = "skillevaluator"-version = "1.0.0"+version = "1.0.1"source = { editable = "." }dependencies = [{ name = "bandit" },