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(reporting): address benchmark publication follow-up
Narendran Raghavan5a909a8af48e
diff --git a/docs/reports.mdx b/docs/reports.mdxindex 158ce356..45a05bd2 100644--- a/docs/reports.mdx+++ b/docs/reports.mdx@@ -75,15 +75,17 @@ dataset provenance, agent/model details, and a dimension-by-dimension`Baseline → Skill Uplift` table when Tier 3 ran. Public cards omit validationprofile names and absolute host paths.-The card carries one overall verdict — `PASS`, `FAIL`, or `INCOMPLETE`. It+The card carries one overall verdict — `PASS`, `NEUTRAL`, `FAIL`, or+`INCOMPLETE`. Itfails closed: if a required scanner produced no trustworthy evidence, theverdict is `INCOMPLETE` and the card explicitly says not to use it to recommendpublication. A Publication Recommendation section appears only on a clean-`PASS`. Tier 3 evidence is publication-required by default, so a missing,-skipped, or incomplete live evaluation produces `INCOMPLETE` rather than a-publication recommendation. A catalog may explicitly persist-`benchmark_policy.tier3_required = false`; the card discloses that exception-instead of implying that Tier 3 ran.+`PASS`; `NEUTRAL` means the evidence is complete but at least one required+dimension remains below the pass band. Tier 3 evidence is publication-required+by default, so a missing, skipped, or incomplete live evaluation produces+`INCOMPLETE` rather than a publication recommendation. A catalog may+explicitly persist `benchmark_policy.tier3_required = false`; the card+discloses that exception instead of implying that Tier 3 ran.Keep the file with the skill and refresh it whenever the skill, eval dataset,agent/model, evaluator version, scoring policy, attempt policy, or execution@@ -192,15 +194,15 @@ dimensions, each answering one question:| Dimension | Question answered || --- | --- || Security | Is it safe to use? |-| Correctness | Does it do what it's supposed to? |-| Discoverability | Is it loaded when it should be? |-| Effectiveness | Is it better with the skill than without? |-| Efficiency | Does it use fewer tool calls and tokens? |+| Correctness | Is the answer correct? |+| Discoverability | Was the right skill loaded when needed? |+| Effectiveness | Did the skill help complete the task? |+| Efficiency | Did it avoid wasted tool or skill usage? |Dimension scores are 0.0–1.0 rollups of the underlying evaluation signals. The-LLM judge's verdict bands are fixed: a dimension **passes** at 0.7 or above, is-**neutral** from 0.4 up to 0.7, and **fails** below 0.4. The judge runs on the-configured provider model; override it per run as described in+verdict bands are fixed: a dimension **passes** at 0.50 or above, is+**neutral** from 0.40 to below 0.50, and **fails** below 0.40. The judge runs on+the configured provider model; override it per run as described in[Tier 3: Live Evaluation](tier3-live-evaluation.mdx).### Skill Lift@@ -216,9 +218,12 @@ neutral. The verdict bands:| between −0.10 and +0.05 | Neutral | Within run noise; raise `--n-attempts` before concluding anything || ≤ −0.10 | Fail | The skill makes the agent worse — investigate before shipping |-These are the bands the reports color-code, with one exception: the single-overall Tier 3 verdict in the combined `validate --tier3` report (and in-`BENCHMARK.md`) is stricter, flipping to fail at −0.05 or below.+These bands color-code Skill Lift as diagnostic evidence. They do not determine+the combined `validate --tier3` or `BENCHMARK.md` verdict. The overall verdict+comes from the five dimensions: **PASS** when at least one successful agent has+all five dimensions at 0.50 or above; **NEUTRAL** when no agent passes but at+least one has no dimension below 0.40; and **FAIL** when every successful agent+has a dimension below 0.40.So a +0.03 lift isn't a pass — it's noise until more attempts say otherwise.Lift requires both arms; if you ran with `--skip-baseline`, there is no lift todiff --git a/scripts/ci/check_public_benchmarks.py b/scripts/ci/check_public_benchmarks.pyindex a2d7a7e4..eda94073 100644--- a/scripts/ci/check_public_benchmarks.py+++ b/scripts/ci/check_public_benchmarks.py@@ -277,7 +277,7 @@ def _check_verdict_tier_consistency(path: Path, text: str, offenders: list[Offenline_number, tier3_status = tier3_rowtier3_complete = tier3_status == "PASS"tier3_optional = (_metadata_field_value(text, "Tier 3 evidence") or "").lower() == "optional by policy"- if not tier3_optional:+ if tier3_complete:_check_pass_provenance(path, text, offenders)if not tier3_complete and not tier3_optional:offenders.append(Offender(path, line_number, "publication PASS without completed Tier 3 evidence"))@@ -291,9 +291,7 @@ def _check_pass_provenance(path: Path, text: str, offenders: list[Offender]) ->matches = _metadata_field_matches(metadata_lines, field)line_number = matches[0][0] if matches else fallback_lineif len(matches) != 1 or not pattern.fullmatch(matches[0][1]):- offenders.append(- Offender(path, line_number, f"publication PASS without recorded {field.lower()}")- )+ offenders.append(Offender(path, line_number, f"publication PASS without recorded {field.lower()}"))agent_matches = _metadata_field_matches(metadata_lines, "Agents")line_number = agent_matches[0][0] if agent_matches else fallback_linediff --git a/src/skillevaluator/reporting/benchmark.py b/src/skillevaluator/reporting/benchmark.pyindex 1c9c6c03..9980f73d 100644--- a/src/skillevaluator/reporting/benchmark.py+++ b/src/skillevaluator/reporting/benchmark.py@@ -147,7 +147,7 @@ class BenchmarkReporter(ReporterBase):)self._render_report_purpose(lines)self._render_results_at_a_glance(lines, ae, private_labels)- self._render_tier_status(lines, results, ae, private_labels)+ self._render_tier_status(lines, results, ae, policy, private_labels)self._render_findings(lines, results, private_labels)self._render_methodology(lines, ae, private_labels)self._render_freshness(lines)@@ -348,6 +348,7 @@ class BenchmarkReporter(ReporterBase):lines: list[str],results: list[ValidationResult],ae: dict[str, Any] | None,+ benchmark_policy: dict[str, bool],private_labels: tuple[str, ...],) -> None:tier_groups = [@@ -365,7 +366,7 @@ class BenchmarkReporter(ReporterBase):])for tier, purpose, tier_results in tier_groups:- status, evidence = _tier_status(tier, tier_results, ae)+ status, evidence = _tier_status(tier, tier_results, ae, benchmark_policy)lines.append(f"| {tier} | {purpose} | **{status}** | {_md_cell(evidence, private_labels)} |")lines.append("")@@ -606,12 +607,7 @@ def _tier3_evidence_complete(ae: dict[str, Any] | None) -> bool:dataset_digest = ae.get("dataset_digest") or summary.get("dataset_digest")attempt_policy = _mapping(ae.get("attempt_policy"))attempts = _nonnegative_int(attempt_policy.get("max_attempts"))- environment = (- summary.get("environment")- or summary.get("requested_environment")- or ae.get("environment")- or ae.get("requested_environment")- )+ environment = summary.get("environment") or ae.get("environment")return bool(execution_status == "succeeded"and _tier3_dimension_verdict(ae) is not None@@ -631,10 +627,12 @@ def _tier3_dimension_verdict(ae: dict[str, Any] | None) -> str | None:return Noneagent_verdicts: list[str] = []+ has_partial_evidence = Falsefor agent in supported_agents:scores = _agent_dimension_scores(agent)if scores is None:- return None+ has_partial_evidence = True+ continueif any(score < DIMENSION_VERDICT_NEUTRAL_THRESHOLD for score in scores):agent_verdicts.append("fail")elif any(score < DIMENSION_VERDICT_PASS_THRESHOLD for score in scores):@@ -644,6 +642,8 @@ def _tier3_dimension_verdict(ae: dict[str, Any] | None) -> str | None:if "pass" in agent_verdicts:return "pass"+ if has_partial_evidence or not agent_verdicts:+ return Noneif "neutral" in agent_verdicts:return "neutral"return "fail"@@ -715,7 +715,9 @@ def _overall_status(if has_failures or verdict == "fail" or dimension_verdict == "fail":return "FAIL"- if benchmark_policy["tier3_required"] and not _tier3_evidence_complete(ae):+ tier3_results = _tier3_results(results)+ has_present_tier3_result = bool(tier3_results) and not all(_result_skipped(result) for result in tier3_results)+ if (benchmark_policy["tier3_required"] or has_present_tier3_result) and not _tier3_evidence_complete(ae):return "INCOMPLETE"execution_status = str((ae or {}).get("execution_status") or summary.get("execution_status") or "").lower()if verdict == "neutral" and execution_status in {"succeeded", ""}:@@ -803,7 +805,7 @@ def _evaluation_date(value: str) -> str:def _environment(ae: dict[str, Any] | None) -> str | None:summary = _mapping((ae or {}).get("summary"))- value = summary.get("environment") or (ae or {}).get("environment") or (ae or {}).get("requested_environment")+ value = summary.get("environment") or (ae or {}).get("environment")return str(value) if value else None@@ -947,6 +949,7 @@ def _tier_status(tier: str,results: list[ValidationResult],ae: dict[str, Any] | None,+ benchmark_policy: dict[str, bool],) -> tuple[str, str]:if not results:return "NOT RUN", "No result was recorded"@@ -971,9 +974,13 @@ def _tier_status(return "FAIL", f"{len(_agents(ae))} agent(s); {_dataset_summary(ae)['total_tasks']} task(s)"if execution and execution != "succeeded":return "INCOMPLETE", f"Execution status: {execution}"- policy = _benchmark_policy(results, ae)- if policy["tier3_required"] and not _tier3_evidence_complete(ae):- return "INCOMPLETE", "Required Tier 3 evidence is missing"+ if not _tier3_evidence_complete(ae):+ evidence = (+ "Required Tier 3 evidence is missing"+ if benchmark_policy["tier3_required"]+ else "Present Tier 3 result lacks complete evidence"+ )+ return "INCOMPLETE", evidenceeffective_verdict = verdictif verdict == "pass" and dimension_verdict == "neutral":effective_verdict = "neutral"diff --git a/tests/test_public_benchmark_gate.py b/tests/test_public_benchmark_gate.pyindex de9c3f7c..7609ffcd 100644--- a/tests/test_public_benchmark_gate.py+++ b/tests/test_public_benchmark_gate.py@@ -11,7 +11,11 @@ from pathlib import Pathimport pytestfrom scripts.ci import check_public_benchmarks as benchmark_gate-from skillevaluator.evaluation.tier3_report import _validation_result_from_payload, advisory_skip_result+from skillevaluator.evaluation.tier3_report import (+ _validation_result_from_payload,+ advisory_skip_result,+ build_agent_eval_payload,+)from skillevaluator.models import Finding, Severity, ValidationResultfrom skillevaluator.reporting import BenchmarkReporter@@ -135,9 +139,7 @@ def test_gate_rejects_pass_when_any_agent_model_is_not_recorded(tmp_path: Path)_files, offenders = benchmark_gate.find_offenders([benchmark])- assert {offender.reason for offender in offenders} == {- "publication PASS without recorded agent model identity"- }+ assert {offender.reason for offender in offenders} == {"publication PASS without recorded agent model identity"}@pytest.mark.parametrize(@@ -226,7 +228,7 @@ def _tier3_result(verdict: str, *, legacy: bool = False) -> ValidationResult:"agents": {"codex": {} if legacy else {"model": "gpt-codex"}},}if not legacy:- dimension_score = {"pass": 0.9, "neutral": 0.7, "fail": 0.3}[verdict.lower()]+ dimension_score = {"pass": 0.9, "neutral": 0.45, "fail": 0.3}[verdict.lower()]payload["agents"]["codex"].update({"execution_status": "succeeded",@@ -272,6 +274,29 @@ def test_real_reporter_cards_pass_publication_gate(tmp_path: Path, verdict: str)assert offenders == []+ ("dimension_score", "expected_verdict"),+ [(0.40, "NEUTRAL"), (0.50, "PASS")],+)+def test_dimension_verdict_boundaries_pass_publication_gate(+ tmp_path: Path,+ dimension_score: float,+ expected_verdict: str,+) -> None:+ tier3 = _tier3_result("PASS")+ for dimension in tier3.metadata["agent_eval"]["agents"]["codex"]["dimensions"]:+ dimension["with_skill"] = dimension_score+ rendered = BenchmarkReporter(include_timestamp=True).render_all([_tier1_result(), tier3])+ benchmark = tmp_path / "BENCHMARK.md"+ benchmark.write_text(rendered, encoding="utf-8")++ _files, offenders = benchmark_gate.find_offenders([benchmark])++ assert f"Overall verdict: {expected_verdict}" in rendered+ assert f"| Tier 3 | Live agent evaluation | **{expected_verdict}** |" in rendered+ assert offenders == []++def test_real_incomplete_and_legacy_cards_pass_publication_gate(tmp_path: Path) -> None:cards = {"incomplete": BenchmarkReporter(include_timestamp=True).render_all([_tier1_result()]),@@ -333,6 +358,61 @@ def test_malformed_canonical_pass_payload_is_incomplete_and_lints_cleanly(tmp_paassert offenders == []+def test_canonical_multi_agent_pass_survives_partial_peer_evidence(tmp_path: Path) -> None:+ passing_scores = {+ "security": 0.9,+ "skill_execution": 0.9,+ "skill_efficiency": 0.9,+ "accuracy": 0.9,+ "goal_accuracy": 0.9,+ "behavior_check": 0.9,+ }+ baseline_scores = dict.fromkeys(passing_scores, 0.5)+ partial_scores = dict(passing_scores)+ partial_scores.pop("accuracy")+ partial_baseline = dict(baseline_scores)+ partial_baseline.pop("accuracy")+ agents = {+ "codex": {+ "model": "gpt-codex",+ "with_skill": passing_scores,+ "without_skill": baseline_scores,+ "execution_status": "succeeded",+ "rewards": [],+ "num_trials": 1,+ },+ "claude-code": {+ "model": "claude-sonnet",+ "with_skill": partial_scores,+ "without_skill": partial_baseline,+ "execution_status": "succeeded",+ "rewards": [],+ "num_trials": 1,+ },+ }+ payload = build_agent_eval_payload(+ "demo-skill",+ agents,+ dataset=[{"id": "case-1", "expected_skill": "demo-skill"}],+ env_mode="docker",+ evaluated_at="2026-07-25T12:00:00+00:00",+ use_llm_judge=False,+ )+ assert payload is not None+ assert payload["verdict"] == "pass"+ result = _validation_result_from_payload(payload)+ assert result is not None++ rendered = BenchmarkReporter(include_timestamp=True).render_all([_tier1_result(), result])+ benchmark = tmp_path / "BENCHMARK.md"+ benchmark.write_text(rendered, encoding="utf-8")+ _files, offenders = benchmark_gate.find_offenders([benchmark])++ assert "Overall verdict: PASS" in rendered+ assert "| Tier 3 | Live agent evaluation | **PASS** |" in rendered+ assert offenders == []++@pytest.mark.parametrize(("tier3_required", "expected_verdict"),[(True, "INCOMPLETE"), (False, "PASS")],@@ -357,6 +437,32 @@ def test_advisory_tier3_skip_respects_publication_policy(assert offenders == [][email protected]("policy_location", ["tier1", "agent_eval", "summary"])+def test_optional_policy_does_not_certify_malformed_present_tier3(+ tmp_path: Path,+ policy_location: str,+) -> None:+ tier1 = _tier1_result()+ tier3 = _tier3_result("PASS", legacy=True)+ if policy_location == "tier1":+ tier1.metadata["benchmark_policy"] = {"tier3_required": False}+ elif policy_location == "agent_eval":+ tier3.metadata["agent_eval"]["benchmark_policy"] = {"tier3_required": False}+ else:+ tier3.metadata["agent_eval"]["summary"]["benchmark_policy"] = {"tier3_required": False}++ rendered = BenchmarkReporter(include_timestamp=True).render_all([tier1, tier3])+ benchmark = tmp_path / "BENCHMARK.md"+ benchmark.write_text(rendered, encoding="utf-8")+ _files, offenders = benchmark_gate.find_offenders([benchmark])++ assert "- Tier 3 evidence: optional by policy" in rendered+ assert "Overall verdict: INCOMPLETE" in rendered+ assert "| Tier 3 | Live agent evaluation | **INCOMPLETE** |" in rendered+ assert "Present Tier 3 result lacks complete evidence" in rendered+ assert offenders == []++def test_reporter_without_generation_timestamp_passes_publication_gate(tmp_path: Path) -> None:rendered = BenchmarkReporter(include_timestamp=False).render_all([_tier1_result()])benchmark = tmp_path / "BENCHMARK.md"@@ -408,6 +514,30 @@ def test_reporter_sanitizes_requested_environment_from_advisory_payload(tmp_pathassert offenders == [][email protected]("requested_environment_location", ["agent_eval", "summary"])+def test_requested_environment_is_not_completed_run_provenance(+ tmp_path: Path,+ requested_environment_location: str,+) -> None:+ private_environment = "secret-cluster"+ tier3 = _tier3_result("PASS")+ payload = tier3.metadata["agent_eval"]+ payload["summary"].pop("environment")+ target = payload if requested_environment_location == "agent_eval" else payload["summary"]+ target["requested_environment"] = private_environment++ rendered = BenchmarkReporter(include_timestamp=True).render_all([_tier1_result(), tier3])+ benchmark = tmp_path / "BENCHMARK.md"+ benchmark.write_text(rendered, encoding="utf-8")+ _files, offenders = benchmark_gate.find_offenders([benchmark])++ assert private_environment not in rendered+ assert "- Environment: not recorded (legacy or non-live result)" in rendered+ assert "Overall verdict: INCOMPLETE" in rendered+ assert "| Tier 3 | Live agent evaluation | **INCOMPLETE** |" in rendered+ assert offenders == []++@pytest.mark.parametrize("private_path",[@@ -493,9 +623,7 @@ def test_gate_rejects_pass_with_placeholder_provenance(tmp_path: Path) -> None:"- Agents: Codex (`gpt-codex`)": "- Agents: Codex (model not recorded)","- Tasks: 4 evaluation tasks": "- Tasks: not recorded (legacy or non-live result)","- Dataset digest: `sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef` "- "(skill-evaluator-dataset-snapshot/1)": (- "- Dataset digest: not recorded (legacy or non-live result)"- ),+ "(skill-evaluator-dataset-snapshot/1)": ("- Dataset digest: not recorded (legacy or non-live result)"),"- Attempts per task: 1": "- Attempts per task: not recorded (legacy or non-live result)","- Environment: `Isolated sandbox`": "- Environment: not recorded (legacy or non-live result)",}@@ -516,6 +644,20 @@ def test_gate_rejects_pass_with_placeholder_provenance(tmp_path: Path) -> None:}+def test_gate_requires_provenance_when_optional_tier3_row_claims_pass(tmp_path: Path) -> None:+ benchmark = tmp_path / "BENCHMARK.md"+ benchmark.write_text(+ _valid_benchmark()+ .replace("- Tier 3 evidence: required for publication", "- Tier 3 evidence: optional by policy")+ .replace("- Environment: `Isolated sandbox`", "- Environment: not recorded (legacy or non-live result)"),+ encoding="utf-8",+ )++ _files, offenders = benchmark_gate.find_offenders([benchmark])++ assert {offender.reason for offender in offenders} == {"publication PASS without recorded environment"}++def test_gate_rejects_pass_with_malformed_dataset_digest(tmp_path: Path) -> None:benchmark = tmp_path / "BENCHMARK.md"benchmark.write_text(