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
feat(reports): name Skill Lift as the headline and label pass@k as supporting reliability (#397)
Christopher Kevin3fe376340fbf
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex e86df8bb..30abaacc 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -136,6 +136,9 @@ All notable changes to SkillEvaluator are documented in this file.### Changed+- Name Skill Lift as the headline comparison and label pass@k differences as+ supporting reliability across reports and terminal output.+- A scored Tier 3 attempt now fails when `goal_accuracy` or security is below1.0, even if its Overall score meets the pass threshold. N/A or unscoredmetrics preserve the existing verdict behavior; missed behavior-check stepsdiff --git a/docs/reports.mdx b/docs/reports.mdxindex 63e8dc2e..639e1a74 100644--- a/docs/reports.mdx+++ b/docs/reports.mdx@@ -894,8 +894,9 @@ Retained run artifacts remain the source for details omitted by either limit.### pass@k-pass@k is the reliability signal, reported separately from the dimension-scores. With `--n-attempts k`, each eval case runs k times per arm, and a case+pass@k and its pass-rate difference are supporting reliability, not the headline+claim. The report labels the pass@k delta column **Pass-rate difference**.+With `--n-attempts k`, each eval case runs k times per arm, and a casecounts as passed when at least one attempt clears the `--pass-threshold`score using the same overall formula above. A scored `goal_accuracy` must alsomeet its default 1.0 pass threshold; a below-threshold attempt fails with a@@ -920,7 +921,7 @@ Comparing pass@k across arms (in`pass_at_k_lift.json`) tells youwhether the skill makes success more *repeatable*, not just whether the averagescore moved. Each arm also records a case-level 95% Wilson score interval for-its pass rate. When both arms contain the same identified cases,+its pass rate; the paired value is the pass-rate difference. When both arms contain the same identified cases,`pass_at_k_lift.json` records the paired outcome counts — skill-only passes,baseline-only passes, both-pass, and neither-pass — plus a two-sided exactMcNemar diagnostic over the discordant pairs. Partial or unidentified pairingdiff --git a/src/skillevaluator/reporting/benchmark.py b/src/skillevaluator/reporting/benchmark.pyindex 52c626ba..d794de2a 100644--- a/src/skillevaluator/reporting/benchmark.py+++ b/src/skillevaluator/reporting/benchmark.py@@ -51,6 +51,7 @@ from skillevaluator.reporting.base import (unrecognized_tier2_results,)from skillevaluator.reporting.run_status import resolve_run_status+from skillevaluator.reporting.summary_copy import SKILL_LIFT_DEFINITION, pass_at_k_summaryfrom skillevaluator.reporting.tier3_scope import completed_agent_result, validate_report_scopefrom skillevaluator.source_identity import evaluated_source_revision, recorded_evaluated_sourcefrom skillevaluator.tier3.dataset_provenance import dataset_provenance_display@@ -245,8 +246,11 @@ class BenchmarkReporter(ReporterBase):)if completed["lift"] is not None:lines.append(- f"Same-agent comparable lift: **{completed['lift']:+.4f}** ({completed['lift'] * 100:+.2f} percentage points)."+ f"Skill Lift: **{completed['lift']:+.4f}** ({completed['lift'] * 100:+.2f} percentage points).")+ lines.append(SKILL_LIFT_DEFINITION)+ if pass_summary := pass_at_k_summary((ae or {}).get("pass_at_k"), (ae or {}).get("attempt_policy")):+ lines.extend([pass_summary, ""])if completed["needs_attention"]:lines.append("**Needs attention:** other execution failures remain. This completed-agent result does not certify the whole run."diff --git a/src/skillevaluator/reporting/cli.py b/src/skillevaluator/reporting/cli.pyindex 9c4401c4..6029be91 100644--- a/src/skillevaluator/reporting/cli.py+++ b/src/skillevaluator/reporting/cli.py@@ -53,6 +53,7 @@ from skillevaluator.reporting.harbor_viewer import ()from skillevaluator.reporting.presentation import FinalRenderContext, build_final_render_context, trial_coveragefrom skillevaluator.reporting.run_status import Status, result_status+from skillevaluator.reporting.summary_copy import SKILL_LIFT_DEFINITION, pass_at_k_summaryfrom skillevaluator.reporting.terminal_styles import AMBER, FAINT, GREEN, RED, TEXT, grade_style, lift_stylefrom skillevaluator.tier3.dataset_provenance import dataset_provenance_displayfrom skillevaluator.tier3.evidence_volume import format_evidence_volume@@ -434,14 +435,16 @@ class CLIReporter(ReporterBase):verdict_reason = agent_eval.get("verdict_reason")safe_reason = f" — {escape_markup(str(verdict_reason))}" if verdict == "fail" and verdict_reason else ""lift_label = (- "composite lift (for reference)"- if verdict == "fail" and scored_lift and composite > 0- else "composite lift"+ "Skill Lift (for reference)" if verdict == "fail" and scored_lift and composite > 0 else "Skill Lift")console.print(f"\n [{vc}]Verdict: {verdict_text}[/{vc}]{safe_reason} "f"({lift_label} = [{composite_style}]{composite_text}[/{composite_style}])")+ if scored_lift:+ console.print(Text(SKILL_LIFT_DEFINITION, style="dim"), soft_wrap=True)+ if pass_summary := pass_at_k_summary(agent_eval.get("pass_at_k"), agent_eval.get("attempt_policy")):+ console.print(f" [dim]{pass_summary}[/dim]")for label, count_data, numerator in (("Required checks passed", agent_eval.get("required_checks"), "passed"),("Goals met", agent_eval.get("correct_answers"), "correct"),diff --git a/src/skillevaluator/reporting/markdown.py b/src/skillevaluator/reporting/markdown.pyindex da6caebc..3e441722 100644--- a/src/skillevaluator/reporting/markdown.py+++ b/src/skillevaluator/reporting/markdown.py@@ -42,6 +42,7 @@ from skillevaluator.reporting.harbor_viewer import (safe_url,)from skillevaluator.reporting.run_status import Status, resolve_run_status, result_status+from skillevaluator.reporting.summary_copy import SKILL_LIFT_DEFINITION, pass_at_k_summaryfrom skillevaluator.tier3.dataset_provenance import dataset_provenance_displayif TYPE_CHECKING:@@ -355,7 +356,11 @@ class MarkdownReporter(ReporterBase):lines.append("## Tier 3: Agent Evaluation")lines.append("")composite_text = _format_report_number(composite, signed=True)- lines.append(f"**Verdict:** {verdict} (composite lift = {composite_text})")+ lines.append(f"**Verdict:** {verdict} (Skill Lift = {composite_text})")+ if _finite_report_number(composite) is not None:+ lines.append(SKILL_LIFT_DEFINITION)+ if pass_summary := pass_at_k_summary(ae.get("pass_at_k"), ae.get("attempt_policy")):+ lines.append(pass_summary)provenance_line, _ = dataset_provenance_display(ae.get("dataset_provenance"))if provenance_line:lines.append(_markdown_inline_text(provenance_line))diff --git a/src/skillevaluator/reporting/summary_copy.py b/src/skillevaluator/reporting/summary_copy.pynew file mode 100644index 00000000..01883dfd--- /dev/null+++ b/src/skillevaluator/reporting/summary_copy.py@@ -0,0 +1,85 @@+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.+# SPDX-License-Identifier: Apache-2.0++from __future__ import annotations++import math+from collections.abc import Mapping++SKILL_LIFT_DEFINITION = (+ "Skill Lift compares Overall on the metrics and cases both arms scored, so it can differ from subtracting the "+ "displayed Overall scores."+)+++def pass_at_k_summary(pass_at_k: object, attempt_policy: object = None) -> str | None:+ if not isinstance(pass_at_k, Mapping):+ return None++ with_skill = pass_at_k.get("with_skill")+ without_skill = pass_at_k.get("without_skill")+ with_skill = with_skill if isinstance(with_skill, Mapping) else {}+ without_skill = without_skill if isinstance(without_skill, Mapping) else {}+ policy = attempt_policy if isinstance(attempt_policy, Mapping) else {}++ k = next(+ (+ value+ for value in (with_skill.get("k"), without_skill.get("k"), pass_at_k.get("k"), policy.get("max_attempts"))+ if isinstance(value, int) and not isinstance(value, bool) and value > 0+ ),+ None,+ )+ if k is None:+ return None++ threshold = next(+ (+ value+ for value in (+ with_skill.get("pass_threshold"),+ without_skill.get("pass_threshold"),+ policy.get("pass_threshold"),+ )+ if isinstance(value, int | float)+ and not isinstance(value, bool)+ and math.isfinite(value)+ and 0 <= value <= 1+ ),+ None,+ )+ threshold_text = f"Overall ≥ {threshold:.2f}" if threshold is not None else "the recorded Overall threshold"++ def rate_value(value: object) -> float | None:+ if isinstance(value, int | float) and not isinstance(value, bool) and math.isfinite(value) and 0 <= value <= 1:+ return float(value)+ return None++ with_rate = rate_value(with_skill.get("rate"))+ without_rate = rate_value(without_skill.get("rate"))+ with_rate_text = f"{with_rate * 100:.1f}%" if with_rate is not None else "N/A"+ without_rate_text = f"{without_rate * 100:.1f}%" if without_rate is not None else "N/A"++ lift = pass_at_k.get("lift")+ lift = lift if isinstance(lift, Mapping) else {}+ arm_delta = with_rate - without_rate if with_rate is not None and without_rate is not None else None+ delta_text = f"{arm_delta * 100:+.1f} percentage points" if arm_delta is not None else "N/A"++ shared_clause = ""+ if lift.get("basis") == "shared_metrics":+ shared_with = rate_value(lift.get("with_skill"))+ shared_without = rate_value(lift.get("without_skill"))+ if shared_with is not None and shared_without is not None:+ shared_delta = (shared_with - shared_without) * 100+ shared_clause = (+ f" Shared-metric pass-rate difference {shared_delta:+.1f} percentage points "+ f"(with skill {shared_with * 100:.1f}%, without skill {shared_without * 100:.1f}%)."+ )+ else:+ shared_clause = " Shared-metric pass-rate difference N/A."++ return (+ f"Pass@{k} (supporting reliability: share of cases with a passing attempt, "+ f"attempt passes at {threshold_text}): with skill {with_rate_text}, "+ f"without skill {without_rate_text}; Pass-rate difference {delta_text}.{shared_clause}"+ )diff --git a/src/skillevaluator/reporting/templates/report.html.j2 b/src/skillevaluator/reporting/templates/report.html.j2index aa5d3082..4354c83a 100644--- a/src/skillevaluator/reporting/templates/report.html.j2+++ b/src/skillevaluator/reporting/templates/report.html.j2@@ -2574,6 +2574,7 @@<div class="dashboard-card"><h3 class="dashboard-card-title">Skill Lift</h3><p class="dashboard-card-value">{{ "%+.2f" | format(tier3.get('overall_lift')) if tier3.get('overall_lift') is not none else "N/A" }}</p>+ <p class="dashboard-card-subtitle">Skill Lift compares Overall on the metrics and cases both arms scored, so it can differ from subtracting the displayed Overall scores.</p><p class="dashboard-card-subtitle">{% if tier3_verdict == 'fail' and tier3.get('overall_lift') is not none and tier3.get('overall_lift') > 0 %}shown for reference, not the verdict{% else %}Compared with baseline{% endif %}</p></div>{% set t3_correct_answers = tier3.get('correct_answers') or {} %}@@ -2995,14 +2996,10 @@{% if tier3.pass_at_k and tier3.pass_at_k.with_skill %}<details class="t3-details" id="tier3-pass-at-k" open>- <summary>Pass@{{ t3_max_attempts }} Summary</summary>+ <summary>Pass@{{ t3_max_attempts }} (supporting reliability)</summary><div class="t3-details-body"><p style="color:var(--text-secondary);font-size:0.85rem;margin:0 0 0.75rem;">- Pass@{{ t3_max_attempts }} reports the share of evaluation cases the agent solved within- {{ t3_max_attempts }} attempt{{ 's' if t3_max_attempts != 1 else '' }}, where a case counts as- "passed" only if the trial score reaches the configured pass threshold (currently- {{ "%.2f" | format(t3_attempt_policy.pass_threshold or 0.5) }}).- Higher rates and a positive lift show better observed repeatability on these evaluated cases.+ Pass@{{ t3_max_attempts }} is the share of cases with a passing attempt; an attempt passes at {% if t3_attempt_policy.pass_threshold is not none %}Overall ≥ {{ "%.2f" | format(t3_attempt_policy.pass_threshold) }}{% else %}the configured Overall threshold{% endif %}. This is supporting reliability; a positive pass-rate difference shows better observed repeatability on these evaluated cases.</p><div class="table-scroll" tabindex="0" role="region" aria-label="Pass at K summary table">{% macro t3_attempts_passed(branch) %}@@ -3015,7 +3012,7 @@{% endmacro %}<table class="summary-table pass-at-k-table" style="width:100%;"><thead><tr>- <th>Agent</th><th>Condition</th><th>Pass Rate</th><th>95% Interval</th><th>Cases Passed</th><th>Attempts Passed</th><th>Lift</th>+ <th>Agent</th><th>Condition</th><th>Pass Rate</th><th>95% Interval</th><th>Cases Passed</th><th>Attempts Passed</th><th>Pass-rate difference</th></tr></thead><tbody>{% for name, agent in t3_agents.items() %}@@ -3026,16 +3023,22 @@{% set wi = wp.rate_interval or {} %}{% set bi = bp.rate_interval or {} %}{% set paired = lf.paired_comparison if lf.paired_comparison is mapping else {} %}+ {% set wp_rate = wp.get('rate') %}+ {% set bp_rate = bp.get('rate') %}+ {% set arm_delta = wp_rate - bp_rate if wp_rate is number and bp_rate is number else none %}{% if wp %}<tr><td><strong>{{ name }}</strong></td><td>With skill</td>- <td>{{ "%.0f%%" | format((wp.rate or 0.0) * 100) }}</td>+ <td>{{ "%.0f%%" | format((wp_rate or 0.0) * 100) }}</td><td>{% if wi %}{{ wi | adaptive_interval_percent }}{% else %}—{% endif %}</td><td>{{ wp.passed_cases or 0 }} of {{ wp.total_cases or 0 }}</td><td>{{ t3_attempts_passed(wp) }}</td>- <td style="color:{{ 'var(--success-color)' if (lf.delta or 0) >= tier3_lift_pass_threshold else ('var(--danger-color)' if (lf.delta or 0) <= tier3_lift_fail_threshold else 'var(--text-secondary)') }};font-weight:600;">- {% if lf.delta is defined %}{{ "%+.0f%%" | format((lf.delta or 0.0) * 100) }}{% else %}—{% endif %}+ <td style="color:{{ 'var(--success-color)' if arm_delta is not none and arm_delta >= tier3_lift_pass_threshold else ('var(--danger-color)' if arm_delta is not none and arm_delta <= tier3_lift_fail_threshold else 'var(--text-secondary)') }};font-weight:600;">+ {% if arm_delta is not none %}{{ "%+.0f%%" | format(arm_delta * 100) }}{% else %}—{% endif %}+ {% if lf.basis == 'shared_metrics' %}+ <div>Shared-metric pass-rate difference: {% if lf.with_skill is number and lf.without_skill is number %}{{ "%+.0f" | format((lf.with_skill - lf.without_skill) * 100) }} percentage points (with skill {{ "%.0f%%" | format(lf.with_skill * 100) }}, without skill {{ "%.0f%%" | format(lf.without_skill * 100) }}){% else %}N/A{% endif %}.</div>+ {% endif %}</td></tr>{% endif %}@@ -3043,7 +3046,7 @@<tr><td></td><td>Without skill</td>- <td>{{ "%.0f%%" | format((bp.rate or 0.0) * 100) }}</td>+ <td>{{ "%.0f%%" | format((bp_rate or 0.0) * 100) }}</td><td>{% if bi %}{{ bi | adaptive_interval_percent }}{% else %}—{% endif %}</td><td>{{ bp.passed_cases or 0 }} of {{ bp.total_cases or 0 }}</td><td>{{ t3_attempts_passed(bp) }}</td>@@ -3544,6 +3547,7 @@<div class="t3-kpi-value" style="color:var(--text-secondary);">N/A</div><div class="t3-kpi-sub">{% if agent.get('skill_activation', {}).get('status') == 'never_activated' %}inconclusive: skill never activated{% elif agent.with_skill is none and agent.baseline is not none %}with-skill unavailable{% elif agent.with_skill is none %}N/A lift{% elif agent.baseline is not none %}comparison unavailable{% else %}no baseline{% endif %}</div>{% endif %}+ <div class="t3-kpi-sub">Skill Lift compares Overall on the metrics and cases both arms scored, so it can differ from subtracting the displayed Overall scores.</div></div><div class="t3-kpi-card"><div class="t3-kpi-label">Trials</div>diff --git a/src/skillevaluator/tier3/case_summary.py b/src/skillevaluator/tier3/case_summary.pyindex f73cce6b..4337a8ee 100644--- a/src/skillevaluator/tier3/case_summary.py+++ b/src/skillevaluator/tier3/case_summary.py@@ -21,6 +21,7 @@ from rich.box import SIMPLEfrom rich.table import Tablefrom rich.text import Text+from skillevaluator.reporting.summary_copy import pass_at_k_summaryfrom skillevaluator.reporting.terminal_styles import AMBERfrom skillevaluator.tier3.attempt_verdict import attempt_verdict, scored_goal_accuracyfrom skillevaluator.tier3.harbor.progress import redact_progress_detail, secret_values_from_environment@@ -671,10 +672,14 @@ def render_case_summary(console.print(table)legend = f"{PASS} pass {FAIL} fail {ERROR} did not run {SKIPPED} skipped after a pass"if len(agents) > 1:- legend += " ? incomplete\n+50 = change in pass rate, in percentage points"+ legend += " ? incomplete\n+50 = change in per-attempt success rate, in percentage points"else:legend += " (0.82) mean score 0-1"console.print(Text(legend, style="dim"))+ for agent, data in agents.items():+ summary = pass_at_k_summary(data.get("pass_at_k"), result.get("attempt_policy"))+ if summary:+ console.print(Text(f"{safe(agent)}: {summary}" if len(agents) > 1 else summary, style="dim"))if fixes:console.print()heading = Text("How to improve", style="bold")diff --git a/src/skillevaluator/tier3/result_display.py b/src/skillevaluator/tier3/result_display.pyindex b4a514d1..2d150615 100644--- a/src/skillevaluator/tier3/result_display.py+++ b/src/skillevaluator/tier3/result_display.py@@ -21,6 +21,7 @@ from rich.table import Tablefrom rich.text import Textfrom skillevaluator.reporting.harbor_viewer import harbor_job_links, normalize_harbor_viewer_for_display+from skillevaluator.reporting.summary_copy import SKILL_LIFT_DEFINITIONfrom skillevaluator.reporting.terminal_styles import AMBER, FAINT, GREEN, RED, TEXT, lift_stylefrom skillevaluator.tier3.attempt_verdict import required_check_failure_reasonfrom skillevaluator.tier3.dataset_provenance import dataset_provenance_display@@ -716,6 +717,21 @@ def _render_agent_scores(overall=overall,safe=safe,)+ has_overall_lift = (+ with_usable+ and baseline_usable+ and all(+ _finite_number(value) is not None+ for value in (overall.get("with_skill"), overall.get("without_skill"), overall.get("delta"))+ )+ )+ if has_overall_lift:+ lift_index = next(+ (index for index, headline in enumerate(headlines) if headline.plain.startswith("OVERALL SKILL LIFT")),+ None,+ )+ if lift_index is not None:+ headlines.insert(lift_index + 1, Text(SKILL_LIFT_DEFINITION, style="dim"))if headlines:content = Group(*headlines, Text(""), table)console.print(diff --git a/tests/golden/test_benchmark_card.py b/tests/golden/test_benchmark_card.pyindex 170e1f2a..8675a0c3 100644--- a/tests/golden/test_benchmark_card.py+++ b/tests/golden/test_benchmark_card.py@@ -17,6 +17,7 @@ from skillevaluator.models.result import Finding, Severity, ValidationResultfrom skillevaluator.publication_evidence import stamp_publication_evidencefrom skillevaluator.reporting import BenchmarkReporterfrom skillevaluator.reporting.benchmark import _publication_safe_inline, _verdict_callout+from skillevaluator.reporting.summary_copy import SKILL_LIFT_DEFINITIONPASS_GOLDEN = Path(__file__).resolve().parent / "benchmark_pass" / "BENCHMARK.md"FAIL_GOLDEN = Path(__file__).resolve().parent / "benchmark_fail" / "BENCHMARK.md"@@ -184,6 +185,11 @@ def _live_tier3_result() -> ValidationResult:"evaluator_container_revision": "ghcr.io/nvidia/skillevaluator@sha256:0117bc2e3e54da4244a656466526c5b1b5a559ea0117bc2e3e54da4244a65646",},"attempt_policy": {"max_attempts": 3, "pass_threshold": 0.5, "stop_on_pass": False},+ "pass_at_k": {+ "with_skill": {"k": 3, "pass_threshold": 0.5, "rate": 0.75},+ "without_skill": {"k": 3, "pass_threshold": 0.5, "rate": 0.5},+ "lift": {"delta": 0.25},+ },"agents": {"claude-code": {"model": "claude-sonnet",@@ -1092,6 +1098,8 @@ def test_verdict_callout_falls_back_for_future_statuses() -> None:def test_benchmark_pass_card_matches_golden() -> None:rendered = BenchmarkReporter(include_timestamp=True).render_all([*_deterministic_results(), _live_tier3_result()])+ assert SKILL_LIFT_DEFINITION not in rendered+ assert "Pass@3 (supporting reliability" not in renderedassert rendered == PASS_GOLDEN.read_text(encoding="utf-8")assert "| Tier 1 | Static validation | **PASSED** |" in renderedassert "| Tier 2 | Semantic deduplication | **PASSED WITH OBSERVATIONS** |" in rendereddiff --git a/tests/reporting/test_reporters.py b/tests/reporting/test_reporters.pyindex 03abc54e..31ce744b 100644--- a/tests/reporting/test_reporters.py+++ b/tests/reporting/test_reporters.py@@ -27,6 +27,7 @@ from skillevaluator.reporting import (MarkdownReporter,SARIFReporter,)+from skillevaluator.reporting.summary_copy import SKILL_LIFT_DEFINITIONfrom skillevaluator.tier1.commands import emit_reports_SKILLSPECTOR_2_12_LLM_PROVENANCE = Path(__file__).parents[1] / "fixtures" / "skillspector-2.12.0-llm-provenance.json"@@ -2165,8 +2166,8 @@ class TestHTMLReporter:assert "performing well across evaluated dimensions" not in outputmarkdown = MarkdownReporter(include_timestamp=False).render_all([result])- assert "composite lift = N/A" in markdown- assert "composite lift = +0.00" not in markdown+ assert "Skill Lift = N/A" in markdown+ assert "Skill Lift = +0.00" not in markdowndef test_standalone_tier3_report_uses_skillevaluator_branding(self, tmp_path: Path) -> None:"""Standalone Tier 3 HTML should use the canonical SkillEvaluator branding."""@@ -2383,6 +2384,25 @@ class TestMarkdownReporter:assert "### Evaluator Scores" in outputassert "| Accuracy | 0.90 | NO SCORE | NO SCORE |" in output+ def test_markdown_names_skill_lift_and_pass_rate_difference(self) -> None:+ result = _tier3_harbor_result()+ agent_eval = result.metadata["agent_eval"]+ agent_eval["composite_lift"] = 0.2+ agent_eval["overall_lift"] = 0.2+ agent_eval["attempt_policy"] = {"max_attempts": 2, "pass_threshold": 0.6}+ agent_eval["pass_at_k"] = {+ "with_skill": {"k": 2, "pass_threshold": 0.6, "rate": 0.75},+ "without_skill": {"k": 2, "pass_threshold": 0.6, "rate": 0.5},+ "lift": {"delta": 0.25},+ }++ output = MarkdownReporter(include_timestamp=False).render_all([result])++ assert "Skill Lift = +0.20" in output+ assert SKILL_LIFT_DEFINITION in output+ assert "Pass@2 (supporting reliability" in output+ assert "Pass-rate difference +25.0 percentage points" in output+def test_render_tier3_normalized_evidence_uses_distinct_evidence_ids(self) -> None:result = _tier3_harbor_result()result.metadata["agent_eval"]["suggestions_v2"][0]["evidence_refs"] = [diff --git a/tests/reporting/test_terminal_polish.py b/tests/reporting/test_terminal_polish.pyindex 276425b9..335b19d2 100644--- a/tests/reporting/test_terminal_polish.py+++ b/tests/reporting/test_terminal_polish.py@@ -11,6 +11,7 @@ from rich.text import Textfrom skillevaluator.models import ValidationResultfrom skillevaluator.reporting.cli import CLIReporterfrom skillevaluator.reporting.console_ui import ValidateView, Verdict, detail_row, lift_row, summarize_tier1+from skillevaluator.reporting.summary_copy import SKILL_LIFT_DEFINITION@pytest.mark.parametrize(@@ -254,18 +255,35 @@ def test_quality_grade_cannot_override_failed_incomplete_or_skipped_status(passedef test_full_agent_verdict_keeps_displayed_zero_lift_neutral():- console = Console(file=io.StringIO(), width=100)+ output = io.StringIO()+ console = Console(file=output, width=100)rendered = []original_print = console.printdef capture(value="", *args, **kwargs):- if isinstance(value, str) and "composite lift" in value:+ if isinstance(value, str) and "Skill Lift =" in value:rendered.append(Text.from_markup(value))original_print(value, *args, **kwargs)console.print = capture- CLIReporter._print_agent_eval_tables({"verdict": "pass", "composite_lift": 0.004}, console)+ CLIReporter._print_agent_eval_tables(+ {+ "verdict": "pass",+ "composite_lift": 0.004,+ "attempt_policy": {"max_attempts": 3, "pass_threshold": 0.6},+ "pass_at_k": {+ "with_skill": {"k": 3, "pass_threshold": 0.6, "rate": 0.75},+ "without_skill": {"k": 3, "pass_threshold": 0.6, "rate": 0.5},+ "lift": {"delta": 0.25},+ },+ },+ console,+ )text = rendered[0]+ rendered_output = " ".join(output.getvalue().splitlines())+ assert SKILL_LIFT_DEFINITION in rendered_output+ assert "Pass@3 (supporting reliability" in rendered_output+ assert "Pass-rate difference +25.0 percentage points" in rendered_outputstyle = text.get_style_at_offset(console, text.plain.index("+0.00"))assert style.color.name == "#8a8f98"@@ -311,7 +329,7 @@ def test_agent_eval_summary_shows_required_counts_and_failed_case_reason():rendered = output.getvalue()assert "Verdict: FAIL — 1 of 2 cases failed: 1 goal not met" in rendered- assert "composite lift (for reference)" in rendered+ assert "Skill Lift (for reference)" in renderedassert "Required checks passed: 1/2 | 2/2 | -1" in renderedassert "Goals met: 1/2 | 2/2 | -1" in renderedassert "Security clean: 2/2 | 2/2 | +0" in rendereddiff --git a/tests/reporting/test_unified_tier3_report.py b/tests/reporting/test_unified_tier3_report.pyindex 9e6a853c..11b0a138 100644--- a/tests/reporting/test_unified_tier3_report.py+++ b/tests/reporting/test_unified_tier3_report.py@@ -33,6 +33,7 @@ from skillevaluator.reporting import HTMLReporter, JSONReporterfrom skillevaluator.reporting import html as html_modulefrom skillevaluator.reporting.base import agent_eval_publication_evidence_completefrom skillevaluator.reporting.html import PackageLoader, _compact_json+from skillevaluator.reporting.summary_copy import SKILL_LIFT_DEFINITIONfrom skillevaluator.tier3.harbor.collector import _paired_pass_comparison, _wilson_score_intervalfrom skillevaluator.tier3.harbor.metrics import (CUSTOM_SCORE_POLICY,@@ -3825,11 +3826,88 @@ def test_pass_at_k_final_column_has_a_narrow_viewport_scroll_contract() -> None:assert region is not Noneassert 'class="summary-table pass-at-k-table"' in region.group("table")- assert re.search(r"<th>Lift</th>\s*</tr>", region.group("table"))+ assert re.search(r"<th>Pass-rate difference</th>\s*</tr>", region.group("table"))+ assert "Pass@1 (supporting reliability)" in html+ assert "attempt passes at Overall ≥ 0.50" in html+ assert SKILL_LIFT_DEFINITION in htmlassert ".table-scroll { max-width: 100%; overflow-x: auto;" in htmlassert ".pass-at-k-table { min-width: 720px; }" in html+def test_shared_metric_pass_lift_is_labelled_separately_from_arm_rates() -> None:+ from skillevaluator.reporting.summary_copy import pass_at_k_summary+ from skillevaluator.tier3.harbor.collector import _shared_metric_pass_lift+ from skillevaluator.tier3.harbor.metrics import DEFAULT_METRIC_SET, DEFAULT_METRICS, DEFAULT_SCORE_POLICY++ with_skill_reward = {+ **dict.fromkeys(DEFAULT_METRICS, 0.4),+ "entry_id": "case-1",+ "metric_set": DEFAULT_METRIC_SET,+ "score_policy": DEFAULT_SCORE_POLICY,+ "details": {"skill_execution": {"activation": {"passed": True, "score": 1.0}}},+ }+ with_skill_reward["skill_execution"] = 1.0+ with_skill_reward["skill_efficiency"] = 1.0+ without_skill_reward = {+ **dict.fromkeys(DEFAULT_METRICS, 0.4),+ "entry_id": "case-1",+ "metric_set": DEFAULT_METRIC_SET,+ "score_policy": DEFAULT_SCORE_POLICY,+ "skill_execution": None,+ "skill_efficiency": None,+ "details": {+ "skill_execution": {"score": None, "status": "not_applicable"},+ "skill_efficiency": {"score": None, "status": "not_applicable"},+ },+ }+ shared_lift = _shared_metric_pass_lift(+ [with_skill_reward],+ [without_skill_reward],+ n_attempts=1,+ pass_threshold=0.5,+ stop_on_pass=False,+ expected_cases=1,+ expected_case_ids=["case-1"],+ )+ assert shared_lift["basis"] == "shared_metrics"+ assert shared_lift["with_skill"] == shared_lift["without_skill"] == 0.0++ pass_at_k = {+ "with_skill": {"k": 1, "pass_threshold": 0.5, "rate": 1.0, "passed_cases": 1, "total_cases": 1},+ "without_skill": {"k": 1, "pass_threshold": 0.5, "rate": 0.0, "passed_cases": 0, "total_cases": 1},+ "lift": shared_lift,+ }+ summary = pass_at_k_summary(pass_at_k, {"max_attempts": 1, "pass_threshold": 0.5})+ assert summary is not None+ assert "with skill 100.0%, without skill 0.0%" in summary+ assert "Pass-rate difference +100.0 percentage points" in summary+ assert "Shared-metric pass-rate difference +0.0 percentage points" in summary++ payload = build_agent_eval_payload(+ "shared-metric-pass-demo",+ {+ "codex": {+ "execution_status": "succeeded",+ "execution_errors": [],+ "expected_attempts": 2,+ "scored_attempts": 2,+ "overall_with_skill": 0.64,+ "overall_without_skill": 0.4,+ "pass_with_skill": pass_at_k["with_skill"],+ "pass_without_skill": pass_at_k["without_skill"],+ "pass_lift": shared_lift,+ }+ },+ attempt_policy={"max_attempts": 1, "pass_threshold": 0.5},+ use_llm_judge=False,+ )+ assert payload is not None+ html = _render_agent_payload(payload)+ assert "Shared-metric pass-rate difference: +0 percentage points (with skill 0%, without skill 0%)." in html+ assert "<td>With skill</td>" in html and "<td>100%</td>" in html+ assert "<td>Without skill</td>" in html and "<td>0%</td>" in html++def test_unavailable_pairing_does_not_render_a_zero_evidence_row() -> None:payload = build_agent_eval_payload("unpaired-evidence-demo",diff --git a/tests/test_overall_cross_format_consistency.py b/tests/test_overall_cross_format_consistency.pyindex f209022a..15c4b0ea 100644--- a/tests/test_overall_cross_format_consistency.py+++ b/tests/test_overall_cross_format_consistency.py@@ -237,7 +237,7 @@ def test_every_output_publishes_one_overall_and_lift(assert json_liftsassert json_lifts == pytest.approx([lift] * len(json_lifts))assert set(_json_values(out["json"], "score_policy")) == {DEFAULT_SCORE_POLICY}- assert f"composite lift = {lift:+.2f}" in out["markdown"]+ assert f"Skill Lift = {lift:+.2f}" in out["markdown"]assert f"| Overall | {benchmark_row} |" in out["benchmark"]assert re.search(r"quality score \(0-1\)", out["terminal"])assert re.search(diff --git a/tests/test_tier3_case_summary.py b/tests/test_tier3_case_summary.pyindex c4aec47d..3fe8f45e 100644--- a/tests/test_tier3_case_summary.py+++ b/tests/test_tier3_case_summary.py@@ -69,7 +69,7 @@ def test_grid_shows_one_row_per_case_with_attempt_marks_per_agent() -> None:rates = next(line for line in output.splitlines() if line.startswith("success rate"))assert "0% → 75% ?" in rates and rates.rstrip().endswith("?")assert output.index("effectiveness") < output.index("security")- assert output.count("(without → with skill)") == 2 and "change in pass rate" in output+ assert output.count("(without → with skill)") == 2 and "change in per-attempt success rate" in outputassert "inconclusive" in output and "conditions cover different cases" in outputdiff --git a/tests/test_tier3_result_display.py b/tests/test_tier3_result_display.pyindex a0d945f5..3aaaff5d 100644--- a/tests/test_tier3_result_display.py+++ b/tests/test_tier3_result_display.py@@ -12,6 +12,7 @@ import pytestfrom rich.console import Consolefrom rich.panel import Panel+from skillevaluator.reporting.summary_copy import SKILL_LIFT_DEFINITIONfrom skillevaluator.tier3.harbor.metrics import (CUSTOM_ONLY_METRIC_SET,DEFAULT_METRIC_SET,@@ -36,17 +37,77 @@ def test_overall_lift_headline_preserves_signed_persisted_value_and_original_tab},}original = deepcopy(result)- output = render_result(result)+ output = " ".join(render_result(result).splitlines())assert re.search(rf"OVERALL SKILL LIFT\s+{re.escape(f'{delta:+.2f}')}", output)assert output.index("OVERALL SKILL LIFT") < output.index("With Skill")assert output.count("Results by Evaluator") == 1assert output.count("Results by Dimension") == 1assert "Skill Lift" in output+ assert SKILL_LIFT_DEFINITION in outputassert "█" in outputassert result == original+def test_case_summary_names_pass_at_k_difference_and_threshold() -> None:+ result = {+ "attempt_policy": {"max_attempts": 2, "pass_threshold": 0.6},+ "agents": {+ "codex": {+ "execution_status": "succeeded",+ "pass_at_k": {+ "with_skill": {+ "k": 2,+ "pass_threshold": 0.6,+ "rate": 0.75,+ "cases": {"case": {"attempts": [{"passed": True, "score": 0.8}]}},+ },+ "without_skill": {+ "k": 2,+ "pass_threshold": 0.6,+ "rate": 0.5,+ "cases": {"case": {"attempts": [{"passed": False, "score": 0.4}]}},+ },+ "lift": {"delta": 0.25},+ },+ }+ },+ }++ output = " ".join(render_result(result).splitlines())++ assert (+ "Pass@2 (supporting reliability: share of cases with a passing attempt, "+ "attempt passes at Overall ≥ 0.60)" in output+ )+ assert "Pass-rate difference +25.0 percentage points" in output+++def test_case_summary_does_not_show_zero_difference_without_baseline() -> None:+ result = {+ "attempt_policy": {"max_attempts": 2, "pass_threshold": 0.6},+ "agents": {+ "codex": {+ "execution_status": "succeeded",+ "pass_at_k": {+ "with_skill": {+ "k": 2,+ "pass_threshold": 0.6,+ "rate": 0.5,+ "cases": {"case": {"attempts": [{"passed": False, "score": 0.4}]}},+ },+ "lift": {"delta": 0.0},+ },+ }+ },+ }++ output = render_result(result)++ assert "Pass-rate difference N/A" in output+ assert "Pass-rate difference +0.0" not in output++def test_required_check_verdict_precedes_counts_and_positive_lift_is_reference() -> None:result = {"execution_status": "succeeded",diff --git a/tests/tier3/test_judge_result_semantics.py b/tests/tier3/test_judge_result_semantics.pyindex 2111ad9e..4209453a 100644--- a/tests/tier3/test_judge_result_semantics.py+++ b/tests/tier3/test_judge_result_semantics.py@@ -101,7 +101,9 @@ def test_required_behavior_judge_wrapper_keeps_inventory_on_unexpected_exceptionraise TimeoutError("judge deadline")args = () if keyword_arguments else ("conversation", ["first", "second"])- kwargs = {"conversation_text": "conversation", "expected_behaviors": ["first", "second"]} if keyword_arguments else {}+ kwargs = (+ {"conversation_text": "conversation", "expected_behaviors": ["first", "second"]} if keyword_arguments else {}+ )result = eval_template._call_required_judge("behavior_check", raise_timeout, *args, **kwargs)assert result["score"] is None and result["status"] == "error"assert result["results"] == []