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): mark never-activated skill evaluations inconclusive (#209)
Narendran Raghavan589dca3f9398
diff --git a/src/skillevaluator/evaluation/tier3_report.py b/src/skillevaluator/evaluation/tier3_report.pyindex 358eef65..d68342b8 100644--- a/src/skillevaluator/evaluation/tier3_report.py+++ b/src/skillevaluator/evaluation/tier3_report.py@@ -965,13 +965,15 @@ def build_agent_eval_payload(evidence_links,)linked_recommendations = []- for recommendation in payload.get("recommendations") or []:+ for index, recommendation in enumerate(payload.get("recommendations") or []):links = (best_evidence_linksif isinstance(recommendation, dict) and recommendation.get("source") == "deterministic"else evidence_links)- linked_recommendations.extend(_attach_harbor_evidence_to_recommendations([recommendation], links))+ linked_recommendations.extend(+ _attach_harbor_evidence_to_recommendations([recommendation], links, start=index)+ )payload["recommendations"] = linked_recommendationspayload["suggestions_v2"] = _attach_harbor_evidence_to_suggestions_v2(payload.get("suggestions_v2") or [],@@ -2732,12 +2734,14 @@ def _trial_evidence_sort_key(trial: dict[str, Any]) -> tuple[int, str]:def _attach_harbor_evidence_to_recommendations(recommendations: list[dict[str, Any]],evidence_links: list[dict[str, Any]],+ *,+ start: int = 0,) -> list[dict[str, Any]]:if not recommendations or not evidence_links:return recommendationslinked: list[dict[str, Any]] = []- for index, recommendation in enumerate(recommendations):+ for index, recommendation in enumerate(recommendations, start=start):if not isinstance(recommendation, dict):linked.append(recommendation)continuediff --git a/tests/reporting/test_skill_activation_reporting.py b/tests/reporting/test_skill_activation_reporting.pyindex 1acb7317..2a97a328 100644--- a/tests/reporting/test_skill_activation_reporting.py+++ b/tests/reporting/test_skill_activation_reporting.py@@ -243,6 +243,39 @@ def test_mixed_agent_advice_links_only_eligible_traces_and_keeps_full_diagnosticassert all("evidence" not in item for item in deterministic_advice)+def test_ungrounded_llm_recommendations_keep_positional_trace_links(monkeypatch) -> None:+ agent = _agent(activated=True, score=0.6)+ template = agent["rewards"][0]+ agent["rewards"] = [+ {+ **template,+ "entry_id": f"case-{index}",+ "trial_id": f"case-{index}__attempt1",+ "overall": 0.1 * (index + 1),+ "harbor_viewer": {"trial_url": f"https://harbor.example.test/jobs/run/trials/{index}"},+ }+ for index in range(4)+ ]+ agent["num_trials"] = 4++ def build_insights(_payload, **_kwargs):+ return {+ "conclusions": [],+ "recommendations": [+ {"message": "First ungrounded advice.", "source": "llm"},+ {"message": "Second ungrounded advice.", "source": "llm"},+ ],+ }++ monkeypatch.setattr("skillevaluator.evaluation.insights_judge.build_insights", build_insights)+ payload = build_agent_eval_payload("demo", {"claude-code": agent}, use_llm_judge=True)+ assert payload is not None+ urls = [item["evidence"]["url"] for item in payload["recommendations"]]+ # Each recommendation keeps its own positional trace, as before per-source link selection.+ assert len(urls) == 3+ assert len(set(urls)) == 3++def test_missing_or_incomplete_activation_evidence_does_not_assert_never_activated() -> None:for change in ({"rewards": []}, {"rewards_complete": False}):payload = build_agent_eval_payload("demo", {"opencode": {**_agent(), **change}}, use_llm_judge=False)