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(tier3): exit nonzero when tier3 validate reports a missing evals/ (#797)
Christopher Kevin2a117a841d17
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1bc1e917..7c0e6760 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -38,6 +38,8 @@ All notable changes to SkillEvaluator are documented in this file.### Fixed+- `tier3 validate` now exits nonzero when `evals/` is missing, matching the+ error it reports.- Scanner install hints in `health-check` and `doctor` now match the host:Windows suggests `winget install Gitleaks.Gitleaks` and `uv tool install semgrep`instead of `brew`, macOS keeps `brew`, and Linux suggests `go install` or adiff --git a/docs/prepare-dataset.mdx b/docs/prepare-dataset.mdxindex df88bed3..ced2631a 100644--- a/docs/prepare-dataset.mdx+++ b/docs/prepare-dataset.mdx@@ -93,8 +93,9 @@ Confirm that the file exists and contains your reviewed cases, then run:skillevaluator tier3 validate ./my-skill --strict```-If the entire `evals/` directory is absent, the validator can report it as-missing with exit code `0`. Treat that as **not ready**.+If the validator reports a missing `evals/` directory, create the dataset+before continuing. Releases after 1.0.1 exit with code `1` in this case; 1.0.1+and earlier can report the missing directory and still exit with code `0`.Fix errors and warnings before starting a live run. Validation checks structureand flagged wording; **it does not confirm that a human reviewed the cases ordiff --git a/docs/tier3-live-evaluation.mdx b/docs/tier3-live-evaluation.mdxindex 8ab82a3c..4c0ef26a 100644--- a/docs/tier3-live-evaluation.mdx+++ b/docs/tier3-live-evaluation.mdx@@ -101,11 +101,9 @@ and any input files. Then validate:skillevaluator tier3 validate ./my-skill --strict```-Confirm the file exists first: an absent `evals/` directory can be reported as-missing without a failing exit code. Resolve errors and warnings before-continuing. Passing validation checks the-dataset's structure and flagged wording; you still need to review whether its-tasks represent how people will use the skill.+Resolve missing datasets, errors, and warnings before continuing. Validation+checks the dataset's structure and flagged wording. You still need to review+whether the tasks represent how people will use the skill.### Check readinessdiff --git a/docs/tier3-run-options.mdx b/docs/tier3-run-options.mdxindex 8961aa74..a6dece5f 100644--- a/docs/tier3-run-options.mdx+++ b/docs/tier3-run-options.mdx@@ -29,9 +29,10 @@ skillevaluator tier3 validate ./my-skill --strictskillevaluator doctor --env-mode docker```-Treat a missing dataset as **not ready**, even if validation exits `0`. Fix-errors and warnings before continuing. Native task bundles use-the [task workflow](/skills/skillevaluator/custom-graders) instead of `evals.json`.+Fix missing datasets, errors, and warnings before continuing. The+[dataset guide](/skills/skillevaluator/prepare-dataset) explains the validation+exit codes. For native Harbor task bundles, follow the+[task workflow](/skills/skillevaluator/custom-graders).## Choose a rundiff --git a/src/skillevaluator/tier3/commands.py b/src/skillevaluator/tier3/commands.pyindex df76b7ec..b9f4e563 100644--- a/src/skillevaluator/tier3/commands.py+++ b/src/skillevaluator/tier3/commands.py@@ -1271,7 +1271,7 @@ def validate_evals(skill_path: Path, *, as_json: bool, strict: bool, harbor_contif coverage is not None:console.print(Text(coverage["message"]))- has_errors = any(r.status == "error" for r in results)+ has_errors = any(r.status in ("error", "missing") for r in results)has_warnings = any(r.status == "warning" for r in results)return 1 if has_errors or (strict and has_warnings) else 0diff --git a/tests/tier3/test_dataset_coverage.py b/tests/tier3/test_dataset_coverage.pyindex b88647b8..b75743e8 100644--- a/tests/tier3/test_dataset_coverage.py+++ b/tests/tier3/test_dataset_coverage.py@@ -105,6 +105,19 @@ def test_validate_text_json_and_strict_info(skill):assert not any(row["status"] == "warning" for row in payload)[email protected]("strict", [False, True], ids=["default", "strict"])+def test_validate_missing_evals_exits_nonzero_and_reports_missing(tmp_path, strict):+ skill = tmp_path / "missing-evals"+ skill.mkdir()+ (skill / "SKILL.md").write_text("# Missing evals\n")+ args = ["tier3", "validate", str(skill), "--json", *(["--strict"] if strict else [])]++ result = CliRunner().invoke(cli, args)++ assert result.exit_code == 1, result.output+ assert any(row["path"] == "evals/" and row["status"] == "missing" for row in json.loads(result.output))++@pytest.mark.parametrize("content", ["{invalid", '{"evals": []}', '["bad"]'])def test_invalid_source_keeps_failure_exit(skill, content):(skill / "evals/evals.json").write_text(content)