Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
400bab0
fix(tier3): show N/A, not NO SCORE, as the terminal lift of an N/A row
rng1995 Nov 7, 2026
5febc25
docs(tier3): explain N/A evaluator scores and their lift
rng1995 Nov 7, 2026
a843016
fix(tier3): show skipped as the terminal lift of a baseline-only run
rng1995 Nov 7, 2026
3ae3b4d
test(tier3): cover the verifier's N/A judge paths
rng1995 Nov 7, 2026
e4aeae2
docs(tier3): name the dataset fields, sidecar marker and verdict for N/A
rng1995 Nov 7, 2026
68d3c8c
test(tier3): pin N/A skill metrics in a crashed baseline trial
rng1995 Nov 8, 2026
3fb77ba
fix(reporting): show N/A, not a dash, for N/A cells in the trial dril…
rng1995 Nov 8, 2026
9c96d44
docs(tier3): name the commands that require expected_output
rng1995 Nov 8, 2026
0ff6e47
docs(tier3): scope the N/A dimension verdict rule to the with-skill arm
rng1995 Nov 9, 2026
6025f1e
fix(tier3): name expected_output and assertions in N/A judge reasons
rng1995 Nov 9, 2026
b4902e3
docs(tier3): say only that an N/A with-skill dimension blocks PASS
rng1995 Nov 9, 2026
c3b10c0
fix(tier3): score skill metrics a case gives nothing to score as N/A
rng1995 Nov 9, 2026
5dce9d9
fix(reporting): explain a with-skill N/A skill metric by the eval case
rng1995 Nov 9, 2026
d27810a
docs(tier3): document N/A skill metrics for negative and unlabeled cases
rng1995 Nov 9, 2026
439cc50
test(tier3): stop pinning 1.0 for negative-case efficiency and unlabe…
rng1995 Nov 9, 2026
06959aa
test(tier3): keep the partial-N/A collector test independent of goal …
rng1995 Nov 9, 2026
3b4a611
test(tier3): use a negative-check score a negative case can have
rng1995 Nov 9, 2026
1558e5b
fix(tier3): keep the verifier's N/A reason in collected multi-step re…
rng1995 Nov 9, 2026
f249ce5
test(reporting): check N/A skill metric reasons through collected runs
rng1995 Nov 9, 2026
440c533
docs(tier3): say which datasets leave Efficiency and Discoverability …
rng1995 Nov 9, 2026
1cf100e
test(reporting): keep the all-negative verdict test independent of go…
rng1995 Nov 9, 2026
f60e896
test(tier3): pin case-level skill N/A in a baseline that stages a cas…
rng1995 Nov 9, 2026
95bc4ca
docs: use the published route for skill metric guidance
rng1995 Nov 12, 2026
adfefaa
Merge current main before applicability report corrections
rng1995 Nov 12, 2026
da64d8d
docs(tier3): align arm applicability table with case rules
rng1995 Nov 12, 2026
f2e5c18
fix(tier3): explain case-level baseline metric applicability
rng1995 Nov 12, 2026
7426197
Merge main reporting fixes into skill metric applicability
rng1995 Nov 12, 2026
651c146
Merge commit '487910ef1dc44800ad0af61d8de7eed0d2800c69' into HEAD
rng1995 Nov 12, 2026
44d3e7e
Merge current main CI and MCP updates into applicability fix
rng1995 Nov 12, 2026
ed42aa0
docs: group applicability changelog entries at their related anchor
rng1995 Nov 12, 2026
f94818b
fix(reporting): defer N/A tooltip imports until render
rng1995 Nov 12, 2026
73f69d3
Preserve concurrent lazy N/A tooltip import fix
rng1995 Nov 12, 2026
2c537b1
Merge branch 'main' into naren/port-tier3-skill-metrics-applicability
rng1995 Nov 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,34 @@ All notable changes to SkillEvaluator are documented in this file.
reasons for an N/A Accuracy, Goal Accuracy or Behavior Check now name the
dataset fields `expected_output` and `assertions` before their legacy names.

- Tier 3 no longer scores a with-skill skill metric `1.0` when the eval case
gives it nothing to score. `skill_efficiency` (Efficiency) is now N/A for a
negative case, such as the one `create-eval-dataset --full` writes, and both
`skill_execution` (Discoverability) and `skill_efficiency` are N/A for a case
that is not negative and names no `expected_skill`, such as a legacy case
without `expected_skill` and `should_trigger`. The same holds in a baseline
arm that stages a skill the case could activate. The trial overall, pass@k
and the arm's averages leave N/A metrics out, so absolute with-skill scores
of these cases change: a negative case scoring 1.0 on Security and
Discoverability and 0.8 on Correctness and Effectiveness now has an overall
of 0.90, not 0.92. If no case is a positive case that names an
`expected_skill`, for example when every case is negative, Efficiency has no
with-skill score and the agent cannot PASS; Discoverability has none either
unless some case is negative. A trial without a trajectory keeps these
metrics N/A too. A positive case with no tool calls still scores `0.0`, and
Skill Lift is unchanged when the baseline has no skill it could activate,
because both metrics are already N/A there. The HTML report now explains a
with-skill N/A skill metric by the eval case, not by a missing skill, and a
multi-step trial's collected reward keeps the N/A reason its steps' verifier
recorded.

- The per-arm Tier 3 applicability table reflects negative-case Efficiency N/A
and the expected-skill requirement for positive-case skill metrics.

- Tier 3 baseline N/A explanations cover case-level applicability when a staged
skill is available, including negative cases, instead of claiming no skill is
installed. Dimension tooltips use the same explanation as evaluator summaries.

- `skillevaluator tier3 feedback` now writes the evaluated skill's directory
(known from `--skill` or a run in the skill's `evals/results`) as its name and
the home directory as `~` in the evidence it sends to the LLM, so an error
Expand Down
6 changes: 6 additions & 0 deletions docs/eval-datasets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ checked because that skill is not installed.
| `expected_behavior` (recommended) | `assertions` |
| `expected_skill` (recommended) | `expected_skill` (unchanged) |
| `acceptable_alternates` | `acceptable_skills` |

A legacy entry without `expected_skill` and `should_trigger` has no skill
to discover or measure, so its Discoverability and Efficiency are N/A. If
no entry is a positive case that names an `expected_skill`, the agent
cannot PASS. See
[Reading results](/skills/skillevaluator/tier3-live-evaluation#reading-results).
</Accordion>
</AccordionGroup>

Expand Down
29 changes: 24 additions & 5 deletions docs/tier3-live-evaluation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,23 @@ A metric can also be N/A (not applicable) for an eval case. It never counts as
reject an empty `expected_output`, so with them only legacy cases without
`ground_truth` make `accuracy` and `goal_accuracy` N/A.
- `skill_execution` and `skill_efficiency` are N/A in a baseline arm that has
no skill it could activate.
no skill it could activate. A baseline arm that stages a skill the case could
activate is scored on them, and the case rules below apply to it too.
- `skill_efficiency` is N/A for a negative case (`should_trigger: false`, or a
`null` or empty `expected_skill` without `should_trigger`, which is how
`create-eval-dataset` writes one), because the case expects no skill use to
measure. `skill_execution` still scores a negative case: it checks that the
agent left the skill under test alone.
- Both are N/A for a case that is not negative and names no `expected_skill`: a
legacy case without `expected_skill` and `should_trigger`, or one with
`should_trigger: true` and no `expected_skill`. In the agentskills.io shape a
case without `expected_skill` gets the dataset's `skill_name`.
- A positive case whose agent made no tool calls still scores `0.0` on both.
- Efficiency has a with-skill score only when some case is positive and names
an `expected_skill`. Without such a case the agent cannot PASS (see below),
for example when every case is negative, as in a run filtered to the negative
cases, or when no case names an `expected_skill`. Discoverability then has no
with-skill score either, unless some case is negative.
- Security is never N/A.

In `skill_evaluator_reward.json` an N/A metric's value is `null`, and
Expand Down Expand Up @@ -1333,16 +1349,19 @@ N/A.

| Arm | Security | Correctness | Discoverability | Effectiveness | Efficiency |
| --- | --- | --- | --- | --- | --- |
| With skill, `should_trigger=true` | Scored | Scored with `ground_truth`; otherwise N/A | Scored: the skill is present to discover and run | Scored for each present reference; N/A if both are missing | Scored: routing and tool use are evaluated |
| With skill, `should_trigger=false` (negative case) | Scored | Scored with `ground_truth`; otherwise N/A | Scored: `skill_execution` evaluates the negative case | Scored for each present reference; N/A if both are missing | Scored as 1.0 when no skill is expected to trigger |
| With skill, `should_trigger=true` | Scored | Scored with `ground_truth`; otherwise N/A | Scored when `expected_skill` names a skill; otherwise N/A | Scored for each present reference; N/A if both are missing | Scored when `expected_skill` names a skill; otherwise N/A |
| With skill, `should_trigger=false` (negative case) | Scored | Scored with `ground_truth`; otherwise N/A | Scored: `skill_execution` evaluates the negative case | Scored for each present reference; N/A if both are missing | N/A: a negative case has no skill use to measure |
| Without skill and no applicable alternate staged | Scored | Scored with `ground_truth`; otherwise N/A | N/A: no skill under test to discover or run | Scored for each present reference; N/A if both are missing | N/A: no skill under test to route to |
| Without skill, with an acceptable alternate staged | Scored | Scored with `ground_truth`; otherwise N/A | Scored when the staged skill matches a case candidate | Scored for each present reference; N/A if both are missing | Scored when the staged skill matches a case candidate |
| Without skill, with an acceptable alternate staged | Scored | Scored with `ground_truth`; otherwise N/A | Scored when the staged skill matches a case candidate and the case is negative or names an `expected_skill`; otherwise N/A | Scored for each present reference; N/A if both are missing | Scored for positive cases that name an `expected_skill` and whose staged skill matches a case candidate; otherwise N/A |

For a positive case, an alternate candidate is the expected skill or an
acceptable alternate. For a negative case, the candidate is the evaluated
skill, or the expected skill when no evaluated skill is recorded. In either
case, the staged name must match a candidate for the no-skill arm's skill
metrics to apply.
metrics to apply. The eval-case rules still apply after matching: a negative
case always leaves Efficiency N/A, and a positive case without `expected_skill`
leaves both skill metrics N/A. A case with neither `expected_skill` nor a
resolved `should_trigger` label also leaves both skill metrics N/A.

Skill Lift per dimension and overall uses only cases and metrics both arms
scored; the `basis` block in `lift.json` records the shared comparison ([Skill
Expand Down
12 changes: 8 additions & 4 deletions src/skillevaluator/evaluation/tier3_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -1826,15 +1826,19 @@ def _not_applicable_evaluators(
metrics: list[str],
with_scores: dict[str, Any],
not_applicable: list[str],
*,
with_skill: bool = True,
) -> list[dict[str, str]]:
"""Evaluators with no with-skill score because no eval case gave them a reference."""
from skillevaluator.tier3.harbor.metrics import METRIC_DISPLAY, NOT_APPLICABLE_REASONS
"""Evaluators with no score in the reported arm because every trial recorded them as N/A."""
from skillevaluator.tier3.harbor.metrics import METRIC_DISPLAY, not_applicable_reason

return [
{
"id": metric,
"label": METRIC_DISPLAY.get(metric, metric.replace("_", " ").title()),
"reason": NOT_APPLICABLE_REASONS.get(metric, "Not applicable to these eval cases"),
"reason": not_applicable_reason(
metric, with_skill=with_skill, default="Not applicable to these eval cases"
),
}
for metric in metrics
if metric in not_applicable and _finite_float(with_scores.get(metric)) is None
Expand Down Expand Up @@ -2160,7 +2164,7 @@ def _build_agent(
# N/A notes describe the scored arm: the baseline in a baseline-only run.
if baseline_only:
not_applicable_evaluators = _not_applicable_evaluators(
baseline_metrics, without_scores, baseline_not_applicable
baseline_metrics, without_scores, baseline_not_applicable, with_skill=False
)
not_applicable_dimensions = _not_applicable_dimensions(dimensions, baseline_not_applicable)
else:
Expand Down
11 changes: 6 additions & 5 deletions src/skillevaluator/reporting/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from typing import TYPE_CHECKING, Any, ClassVar
from urllib.parse import urlparse

from jinja2 import BaseLoader, Environment
from jinja2 import BaseLoader, Environment, pass_context

from skillevaluator import __version__
from skillevaluator.constants import (
Expand Down Expand Up @@ -501,11 +501,12 @@ def _tier3_score_reasons(value: object) -> dict[str, str]:
return reasons


def _tier3_not_applicable_reason(metric: object) -> str:
"""Return why a Tier 3 metric can be N/A, for the tooltip of an N/A drill-down cell."""
from skillevaluator.tier3.harbor.metrics import NOT_APPLICABLE_REASONS
@pass_context
def _tier3_not_applicable_reason(_context: Any, metric: object, with_skill: bool = False) -> str:
"""Describe N/A metrics at render time, keeping Tier 3 imports out of base template compilation."""
from skillevaluator.tier3.harbor.metrics import not_applicable_reason

return NOT_APPLICABLE_REASONS.get(str(metric), "Not applicable to this eval case")
return not_applicable_reason(str(metric), with_skill=with_skill is True)


def _tier3_text_mapping(value: object) -> dict[str, str]:
Expand Down
4 changes: 2 additions & 2 deletions src/skillevaluator/reporting/templates/report.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2792,7 +2792,7 @@
<div class="t3-dim-hint">{{ "with-skill arm not run" if t3_baseline_only else "not scored with the skill" }}</div>
{% endif %}
</td>
<td{% if dim.id == 'discoverability' and 'skill_execution' in baseline_na_metrics %} title="No-skill baseline: This arm has no skill under test installed, so there is no skill to discover or run"{% elif dim.id == 'efficiency' and 'skill_efficiency' in baseline_na_metrics %} title="No-skill baseline: This arm has no skill under test installed, so there is no skill to route to"{% endif %}>
<td{% if dim.id == 'discoverability' and 'skill_execution' in baseline_na_metrics %} title="No-skill baseline: {{ 'skill_execution' | not_applicable_reason }}"{% elif dim.id == 'efficiency' and 'skill_efficiency' in baseline_na_metrics %} title="No-skill baseline: {{ 'skill_efficiency' | not_applicable_reason }}"{% endif %}>
Comment thread
rng1995 marked this conversation as resolved.
Resolved
{% if dim.baseline is not none %}{{ "%.2f" | format(dim.baseline) }}{% else %}N/A
<div class="t3-dim-hint">{{ "baseline not scored" if t3_best and t3_best.baseline is not none else "baseline not run" }}</div>{% endif %}
</td>
Expand Down Expand Up @@ -3388,7 +3388,7 @@
{% for eval_id in t3_eval_ids %}
{% set s = scores.get(eval_id) %}
{% set cell_na = s is none and eval_id in (trial.not_applicable_metrics or []) %}
{% set cell_reason = reasons.get(eval_id) if s is not none else (("Not applicable: " ~ (eval_id | not_applicable_reason)) if cell_na else none) %}
{% set cell_reason = reasons.get(eval_id) if s is not none else (("Not applicable: " ~ (eval_id | not_applicable_reason(row.condition == 'With skill'))) if cell_na else none) %}
{% set cell_text = "%.2f" | format(s) if s is not none else ("N/A" if cell_na else "—") %}
<td style="{% if s is not none %}background:{{ 'rgba(34,197,94,0.14)' if s >= 0.7 else ('rgba(234,179,8,0.14)' if s >= 0.4 else 'rgba(239,68,68,0.14)') }}; color:{{ 'var(--success-color)' if s >= 0.7 else ('var(--warning-color)' if s >= 0.4 else 'var(--danger-color)') }}; font-weight:600;{% elif cell_na %}color:var(--text-secondary);{% endif %}"{% if cell_na %} data-not-applicable="true"{% endif %}{% if cell_reason %} title="{{ eval_id | replace('_', ' ') | title }}: {{ cell_reason }}"{% endif %}>{% if cell_reason %}<span class="t3-score-reason">{{ cell_text }}</span>{% else %}{{ cell_text }}{% endif %}</td>
{% endfor %}
Expand Down
49 changes: 43 additions & 6 deletions src/skillevaluator/tier3/eval_core/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5647,6 +5647,41 @@ def check_token_efficiency(total_tokens: int) -> dict[str, Any]:
# Composite scorers (combine sub-checks into eval-level scores)
# ---------------------------------------------------------------------------

# Why an eval case leaves a skill metric N/A. The verifier records the reason
# under ``details.<metric>`` with ``status: "not_applicable"`` and a null score.
SKILL_CASE_UNLABELED_REASON = "N/A: no expected_skill or should_trigger defined for this eval case"
SKILL_CASE_NO_EXPECTED_SKILL_REASON = "N/A: no expected_skill defined for this eval case"
SKILL_CASE_NEGATIVE_EFFICIENCY_REASON = "N/A: negative case, so there is no skill use to measure"
SKILL_CASE_NEGATIVE_NO_SKILL_REASON = "N/A: negative case with no skill under test to check"


def skill_execution_not_applicable_reason(should_trigger: bool | None, expected_skill: str | None) -> str | None:
"""Return why an eval case gives ``skill_execution`` nothing to score, or ``None`` when it applies.

A negative case still scores: it checks that the agent left the skill under test alone.
"""
if should_trigger is None:
return SKILL_CASE_UNLABELED_REASON
if should_trigger and not expected_skill:
return SKILL_CASE_NO_EXPECTED_SKILL_REASON
return None


def skill_efficiency_not_applicable_reason(should_trigger: bool | None, expected_skill: str | None) -> str | None:
"""Return why an eval case gives ``skill_efficiency`` nothing to measure, or ``None`` when it applies."""
if should_trigger is None:
return SKILL_CASE_UNLABELED_REASON
if not should_trigger:
return SKILL_CASE_NEGATIVE_EFFICIENCY_REASON
if not expected_skill:
return SKILL_CASE_NO_EXPECTED_SKILL_REASON
return None


def _case_not_applicable(reason: str) -> dict[str, Any]:
"""A scoreless composite result whose details carry the verifier's N/A marker."""
return {"score": None, "details": {"score": None, "status": "not_applicable", "reason": reason}}


def score_skill_execution(
tool_calls: list[dict[str, Any]],
Expand All @@ -5670,7 +5705,7 @@ def score_skill_execution(
"""
expected_script = normalize_optional_reference(expected_script)
if should_trigger is None:
return {"score": 1.0, "details": {"message": "No expected_skill -- skipped"}}
return _case_not_applicable(SKILL_CASE_UNLABELED_REASON)

if not should_trigger:
if require_evaluated_skill and not evaluated_skill:
Expand All @@ -5683,15 +5718,15 @@ def score_skill_execution(
}
skill_under_test = evaluated_skill or expected_skill
if not skill_under_test:
return {"score": 1.0, "details": {"message": "Negative case, no skill identified"}}
return _case_not_applicable(SKILL_CASE_NEGATIVE_NO_SKILL_REASON)
if not tool_calls:
neg = {"passed": True, "score": 1.0, "reason": "No tool calls"}
else:
neg = check_negative_case(tool_calls, skill_under_test, skill_tool_names=skill_tool_names)
return {"score": neg["score"], "details": {"negative_check": neg, "should_trigger": False}}

if not expected_skill:
return {"score": 1.0, "details": {"message": "No expected_skill -- skipped"}}
return _case_not_applicable(SKILL_CASE_NO_EXPECTED_SKILL_REASON)

checks: dict[str, dict[str, Any]] = {}
scores: list[float] = []
Expand Down Expand Up @@ -5741,7 +5776,7 @@ def score_skill_efficiency(
tool_calls: list[dict[str, Any]],
expected_skill: str,
expected_script: str | None = None,
should_trigger: bool = True,
should_trigger: bool | None = True,
*,
skill_tool_names: list[str] | None = None,
workspace_skill_names: list[str] | None = None,
Expand All @@ -5751,10 +5786,12 @@ def score_skill_efficiency(
"""Compute the ``skill_efficiency`` eval score (average of sub-checks)."""
expected_script = normalize_optional_reference(expected_script)
if not should_trigger:
return {"score": 1.0, "details": {"message": "Negative case -- efficiency not applicable"}}
return _case_not_applicable(
SKILL_CASE_UNLABELED_REASON if should_trigger is None else SKILL_CASE_NEGATIVE_EFFICIENCY_REASON
)

if not expected_skill:
return {"score": 1.0, "details": {"message": "No expected_skill -- skipped"}}
return _case_not_applicable(SKILL_CASE_NO_EXPECTED_SKILL_REASON)

if not tool_calls:
return {"score": 0.0, "details": {"message": "No tool calls in trajectory"}}
Expand Down
21 changes: 14 additions & 7 deletions src/skillevaluator/tier3/harbor/activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from skillevaluator.tier3.harbor.metrics import (
DEFAULT_METRIC_SET,
LEGACY_METRIC_SET,
NOT_APPLICABLE_STATUS,
metric_set_for_reward,
metric_value,
)
Expand All @@ -23,13 +24,19 @@ def _activation_state(reward: Mapping[str, Any]) -> str:
if not isinstance(execution, Mapping):
return "unknown"
message = execution.get("message")
if execution.get("should_trigger") is False or (
isinstance(message, str)
and message
in {
"No expected_skill -- skipped",
"Negative case, no skill identified",
}
# The verifier records an N/A skill_execution with ``status``; older rewards
# used one of the legacy messages below for the same cases.
if (
execution.get("should_trigger") is False
or execution.get("status") == NOT_APPLICABLE_STATUS
or (
isinstance(message, str)
and message
in {
"No expected_skill -- skipped",
"Negative case, no skill identified",
}
)
):
return "not_applicable"
standard_sets = {DEFAULT_METRIC_SET, LEGACY_METRIC_SET}
Expand Down
Loading
Loading