Skip to content
Merged
Show file tree
Hide file tree
Changes from 23 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
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,42 @@ All notable changes to SkillEvaluator are documented in this file.
`Bedrock request failed`, like a Bedrock error that ends the judge and like
the default `legacy` policy.

- The Tier 3 terminal summary now shows `N/A`, not `NO SCORE`, as the Skill
Lift of an evaluator or dimension that is N/A in either arm, as the Markdown
and HTML reports already do. Most runs with a baseline hit this: Skill
Execution, Efficiency and Discoverability are N/A in a baseline with no
skill it could activate, `behavior_check` is N/A when the cases have no
`assertions` (legacy `expected_behavior`), and `accuracy` and
`goal_accuracy` when they have no `expected_output` (legacy
`ground_truth`). In a baseline-only run (`--skip-with-skill`) the lift of
every other row now reads `skipped`, as the docs and the Markdown report
say. A lift that is missing for another reason still reads `NO SCORE`. The
HTML report's Per-Evaluator Drill-Down now shows `N/A`, with the reason on
hover, instead of `—` for a metric a trial recorded as N/A. The reports'
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.

- `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
Expand Down
6 changes: 6 additions & 0 deletions docs/eval-datasets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ The dataset file can be named `evals.json`, `evals.jsonl`, `evals.yaml`, or
| `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
16 changes: 12 additions & 4 deletions docs/reports.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,15 @@ A finished `tier3 evaluate` run prints two tables and closes with a compact
with its per-arm scores and Skill Lift; **Results by Dimension** rolls those
signals up into the five dimensions below. A metric the run couldn't score
renders as `NO SCORE` — it is never coerced to 0.0 — and unscored metrics are
omitted from the averages, so `overall_score` can be `null` in the JSON. In a
baseline-only run (`--skip-with-skill`) the with-skill and Skill Lift cells read
`skipped` instead, because that arm never ran. The
omitted from the averages, so `overall_score` can be `null` in the JSON. A
metric that does not apply to an arm renders as `N/A`, and so does its Skill
Lift: for example Behavior Check when the cases have no `assertions` (legacy
`expected_behavior`), Accuracy when they have no `expected_output` (legacy
`ground_truth`), or Skill Execution in a baseline with no skill it could
activate. N/A metrics are left out of the scores and the lift. In a
baseline-only run (`--skip-with-skill`) the with-skill cells read `skipped`,
because that arm never ran, and so does the Skill Lift of every row that is
not N/A. The
Artifacts panel shows the HTML report path, the output directory, and — only
when a retained Harbor jobs directory exists — a ready-to-paste `harbor-view`
command.
Expand Down Expand Up @@ -632,7 +638,9 @@ list. A case that scored below 0.80 also quotes a short excerpt of the
offending command or artifact when the grader recorded one. When the attempts
of one case disagree, the lowest-scoring attempt's reason is shown. In the
**Per-Evaluator Drill-Down** table, hover a dotted-underlined score below 0.80
to read the reason for that trial.
to read the reason for that trial. A metric the trial recorded as N/A reads
`N/A`, and hovering it says why; a score missing for any other reason reads
`—`.

Reasons are built from each trial's `reward.json` `details`, joining up to
three distinct parts from the grader's `reason` or `message`, failing findings
Expand Down
49 changes: 49 additions & 0 deletions docs/tier3-live-evaluation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,55 @@ generated standard grader rejects non-finite values and clamps numeric scores
with `max(0.0, min(1.0, score))`. If a required judge fails, the result is
unscored rather than converted to `0.0`.

A metric can also be N/A (not applicable) for an eval case. It never counts as
`1.0` or `0.0`:

- `behavior_check` is N/A when the case has no `assertions` (legacy
`expected_behavior`), and `accuracy` and `goal_accuracy` when it has no
`expected_output` (legacy `ground_truth`). An empty or whitespace-only
reference, or an empty list, counts as missing. The verifier does not call
those judges. `skillevaluator tier3 ./my-skill` and `tier3 init-harbor-task`
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. 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
`details.<metric>` records `status: "not_applicable"` and a `reason`.
Harbor's numeric `reward.json` leaves the metric out. The trial's overall
score, the dimension scores, pass@k and Skill Lift leave N/A metrics out, and
a dimension whose metrics are all N/A drops out of the overall score. A judge
that answers N/A for a case that defines its reference counts as a failed
judge, so the trial is unscored. Each arm's `summary.json` lists the metrics
that were N/A in every trial (`not_applicable_metrics`) and how many trials
marked each one (`not_applicable_counts`). The terminal summary and the
Markdown and HTML reports show `N/A` for those scores and for their lift.

An agent's verdict reads only the with-skill arm, and the agent can pass only
with a with-skill score in every dimension. When a dimension's metrics are N/A
in every with-skill trial, for example Correctness when no case defines
`expected_output` (legacy `ground_truth`), that dimension has no with-skill
score, so the agent cannot PASS (see the verdict table below). A dimension that
is N/A only in the baseline, such as Discoverability and Efficiency in a
baseline with no skill it could activate, does not affect the verdict.

| Dimension | Key question | Maps to | Weights | Source |
| --- | --- | --- | --- | --- |
| Security | Is it safe to use? | `security` | 1.0 | Deterministic checks of the trace and agent actions |
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 @@ -1669,15 +1669,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 @@ -1955,7 +1959,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
13 changes: 13 additions & 0 deletions src/skillevaluator/reporting/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,13 @@ def _tier3_score_reasons(value: object) -> dict[str, str]:
return reasons


def _tier3_not_applicable_reason(metric: object, with_skill: bool = False) -> 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_reason

return not_applicable_reason(str(metric), with_skill=with_skill is True)


def _tier3_text_mapping(value: object) -> dict[str, str]:
"""Normalize public label maps without silently overwriting aliases."""
if not isinstance(value, dict):
Expand Down Expand Up @@ -932,6 +939,11 @@ def _sanitize_tier3_trial(value: dict[str, Any], *, fill_defaults: bool = True)
score_reasons = _tier3_score_reasons(trial.pop("score_reasons", None))
if score_reasons:
trial["score_reasons"] = score_reasons
if "not_applicable_metrics" in trial:
from skillevaluator.tier3.harbor.metrics import not_applicable_list

# Only metrics that can be N/A count, so a malformed payload cannot mark security N/A.
trial["not_applicable_metrics"] = not_applicable_list(trial["not_applicable_metrics"])
# Unavailable telemetry stays absent rather than becoming zero, so the
# template can omit charts and show "—" instead of reporting no usage.
raw_tokens = trial.pop("tokens", None)
Expand Down Expand Up @@ -1729,6 +1741,7 @@ def _create_environment() -> Environment:
environment.filters["adaptive_percent"] = _adaptive_percent
environment.filters["adaptive_interval_percent"] = _adaptive_interval_percent
environment.filters["skip_reason"] = get_skip_reason
environment.filters["not_applicable_reason"] = _tier3_not_applicable_reason
return environment

@staticmethod
Expand Down
7 changes: 4 additions & 3 deletions src/skillevaluator/reporting/templates/report.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3163,9 +3163,10 @@
</td>
{% for eval_id in t3_eval_ids %}
{% set s = scores.get(eval_id) %}
{% set cell_reason = reasons.get(eval_id) if s is not none else none %}
{% set cell_text = "%.2f" | format(s) if s is not none 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;{% 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>
{% 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(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 %}
<td>{{ trial.steps if trial.steps is number else "—" }}</td>
<td>{% if tokens.prompt is number and tokens.completion is number %}{{ tokens.prompt + tokens.completion }}{% else %}—{% endif %}</td>
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 @@ -5370,6 +5370,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 @@ -5389,7 +5424,7 @@ def score_skill_execution(
details for diagnosis. Negative and unlabeled cases use their own rules.
"""
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 @@ -5402,15 +5437,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 @@ -5458,7 +5493,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 @@ -5467,10 +5502,12 @@ def score_skill_efficiency(
) -> dict[str, Any]:
"""Compute the ``skill_efficiency`` eval score (average of sub-checks)."""
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
Loading
Loading