Skip to content

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.

Name the missing tier3 extra when evaluate runs on a base install (#627)

Christopher Kevin75ffd71b4524
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bef3216a..fdffb21d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -322,6 +322,9 @@ All notable changes to SkillEvaluator are documented in this file.
say to install `skillevaluator[tier3]` for the live evaluation check instead
of failing with a `ModuleNotFoundError` traceback. `--tier all` still reports
Tiers 1 and 2 first.
+- `evaluate` and `tier3 evaluate` on a base install (without the `tier3` extra)
+ now say to install `skillevaluator[tier3]` instead of printing only
+ `Error: No module named 'harbor'`.
- Arms fully denied by a run budget are reported as not run instead of failed
empty Harbor jobs. Budget-partial runs remain incomplete without an execution
error when all admitted attempts succeed, including stop-on-pass runs. Reused
diff --git a/src/skillevaluator/cli.py b/src/skillevaluator/cli.py
index 1a73aaec..ddb19d70 100644
--- a/src/skillevaluator/cli.py
+++ b/src/skillevaluator/cli.py
@@ -1271,6 +1271,14 @@ def _ensure_autopilot_dataset(
return dataset_note
except click.ClickException:
raise
+ except ImportError as exc:
+ from skillevaluator.tier3.extras import is_missing_tier3_extra
+
+ if is_missing_tier3_extra(exc):
+ raise click.ClickException(
+ "Tier 3 dependencies are not installed. Install skillevaluator[tier3] and try again."
+ ) from exc
+ raise click.ClickException(str(exc)) from exc
except Exception as exc:
raise click.ClickException(str(exc)) from exc
@@ -4013,6 +4021,14 @@ def evaluate(
raise click.exceptions.Exit(1)
except (click.ClickException, click.exceptions.Exit):
raise
+ except ImportError as exc:
+ from skillevaluator.tier3.extras import is_missing_tier3_extra
+
+ if not is_missing_tier3_extra(exc):
+ raise click.ClickException(str(exc)) from exc
+ raise click.ClickException(
+ "Tier 3 dependencies are not installed. Install skillevaluator[tier3] and try again."
+ ) from exc
except Exception as exc:
raise click.ClickException(str(exc)) from exc
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 1f23bbc2..622d90a6 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -1004,6 +1004,85 @@ def test_standalone_evaluate_forwards_the_evaluated_source(monkeypatch: pytest.M
}
[email protected]("command", [["evaluate"], ["tier3", "evaluate"]])
+def test_evaluate_without_the_tier3_extra_names_the_missing_extra(monkeypatch: pytest.MonkeyPatch, command) -> None:
+ from skillevaluator.evaluation import EvaluationService
+
+ def _missing_harbor(self, options, *, progress_reporter=None):
+ raise ModuleNotFoundError("No module named 'harbor'", name="harbor")
+
+ monkeypatch.setattr(EvaluationService, "evaluate", _missing_harbor, raising=True)
+ result = CliRunner().invoke(
+ cli, [*command, str(Path(__file__).parent / "fixtures" / "skills" / "simple"), "--progress", "plain"]
+ )
+
+ assert result.exit_code == 1
+ assert "Install skillevaluator[tier3]" in result.output
+
+
+ "error",
+ [
+ ImportError("cannot import name 'GKEExecStreamClosedError'", name="harbor.environments.gke"),
+ ModuleNotFoundError("No module named 'harbor.missing'", name="harbor.missing"),
+ ],
+)
+def test_evaluate_preserves_an_installed_dependency_import_failure(monkeypatch, error) -> None:
+ from skillevaluator.evaluation import EvaluationService
+
+ def broken_evaluate(self, options, *, progress_reporter=None):
+ raise error
+
+ monkeypatch.setattr(EvaluationService, "evaluate", broken_evaluate)
+ result = CliRunner().invoke(
+ cli, ["evaluate", str(Path(__file__).parent / "fixtures" / "skills" / "simple"), "--progress", "off"]
+ )
+
+ assert result.exit_code == 1
+ assert str(error) in result.output
+ assert "dependencies are not installed" not in result.output
+
+
[email protected]("env_mode", ["docker", "local"])
+def test_evaluate_autopilot_without_tier3_extra_names_it_before_generation(monkeypatch, tmp_path, env_mode) -> None:
+ skill = tmp_path / "demo"
+ skill.mkdir()
+ (skill / "SKILL.md").write_text("---\nname: demo\ndescription: Use for testing diagnostics.\n---\n# Demo\n")
+ monkeypatch.setenv("SKILL_EVAL_LLM_PROVIDER", "nv_build")
+ monkeypatch.setenv("NVIDIA_API_KEY", "placeholder-for-offline-import-test")
+ real_import = builtins.__import__
+
+ def missing_workflow(name, *args, **kwargs):
+ if name == "skillevaluator.tier3.workflow":
+ raise ModuleNotFoundError("No module named 'harbor'", name="harbor")
+ return real_import(name, *args, **kwargs)
+
+ monkeypatch.setattr(builtins, "__import__", missing_workflow)
+ result = CliRunner().invoke(
+ cli, ["tier3", "evaluate", str(skill), "--autopilot", "--env-mode", env_mode, "--progress", "off"]
+ )
+
+ assert result.exit_code == 1
+ assert "Install skillevaluator[tier3]" in result.output
+ assert not (skill / "evals").exists()
+
+
+def test_evaluate_keeps_an_unrelated_import_error(monkeypatch: pytest.MonkeyPatch) -> None:
+ from skillevaluator.evaluation import EvaluationService
+
+ def _broken_import(self, options, *, progress_reporter=None):
+ raise ModuleNotFoundError("No module named 'skillevaluator.tier3.missing'", name="skillevaluator.tier3.missing")
+
+ monkeypatch.setattr(EvaluationService, "evaluate", _broken_import, raising=True)
+ result = CliRunner().invoke(
+ cli, ["evaluate", str(Path(__file__).parent / "fixtures" / "skills" / "simple"), "--progress", "plain"]
+ )
+
+ assert result.exit_code == 1
+ assert "No module named 'skillevaluator.tier3.missing'" in result.output
+ assert "Install skillevaluator[tier3]" not in result.output
+
+
def test_standalone_evaluate_refuses_a_non_canonical_revision(monkeypatch: pytest.MonkeyPatch) -> None:
"""Refusing at the boundary beats a card that says the field was never recorded."""
from skillevaluator.evaluation import EvaluationService