Skip to content

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.

fix(tier3): exclude failed arms from quality headlines (#657)

Christopher Kevin0ca1b33e8a81
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 11a61b97..142abf61 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -371,6 +371,13 @@ All notable changes to SkillEvaluator are documented in this file.
when the caller sets `GIT_CONFIG_GLOBAL`.
- Model a changed ctime explicitly in the restored-mtime summary regression so
it does not depend on two writes crossing a filesystem clock tick.
+- Terminal quality headlines and check-count comparisons exclude execution-failed arms.
+ Multi-agent summaries also withhold a failed agent's quality headline, and the
+ `RUN QUALITY VERDICT` line no longer reads that agent: an agent that failed
+ cannot make the run PASS, and a run where no agent can be read reads
+ INCOMPLETE with a reason that names the arm that failed (with-skill, baseline
+ or both). A baseline-only multi-agent run (`--skip-with-skill`) prints no run
+ verdict instead of PASS.
- The Tier 2 scale guide names the fixed 8 MiB selected-manifest input budget
and 1 MiB per-manifest limit, including in description-only embedding mode.
- Saved Tier 2 catalogs use compact JSON so indentation no longer rejects dense
diff --git a/src/skillevaluator/tier3/result_display.py b/src/skillevaluator/tier3/result_display.py
index b63590ed..0591eacb 100644
--- a/src/skillevaluator/tier3/result_display.py
+++ b/src/skillevaluator/tier3/result_display.py
@@ -132,14 +132,92 @@ def _run_verdict_agents(agents: Mapping[str, Any]) -> list[Mapping[str, Any]]:
An agent kept by --tolerate-baseline-timeouts is set aside whenever an
agent with a complete baseline ranks, so it never decides the verdict.
+ An agent that did not run its with-skill arm to completion is never read:
+ the canonical report sets execution-failed agents aside, and the per-agent
+ headline withholds its quality verdict, so the run verdict must not read it.
"""
raw_agents = [raw for raw in agents.values() if isinstance(raw, Mapping)]
complete = [raw for raw in raw_agents if not kept_with_failed_baseline(raw)]
- if len(complete) == len(raw_agents):
- return raw_agents
- if any(_ranks_like_the_canonical_report(raw) for raw in complete):
- return complete
- return raw_agents
+ readable = raw_agents
+ if len(complete) != len(raw_agents) and any(_ranks_like_the_canonical_report(raw) for raw in complete):
+ readable = complete
+ return [raw for raw in readable if _counts_toward_run_verdict(raw)]
+
+
+def _counts_toward_run_verdict(raw: Mapping[str, Any]) -> bool:
+ """Return whether the run verdict may read this agent's with-skill quality."""
+ return raw.get("execution_status") == "succeeded" and _condition_usable(raw, "with_skill")
+
+
+def _run_verdict_from_agents(agents: Mapping[str, Any]) -> tuple[str, str]:
+ """Return the multi-agent run verdict and, when it is incomplete, why.
+
+ The verdict is read from the agents that ran their with-skill arm and is
+ ``pass``, ``fail`` or ``inconclusive`` as in the canonical report. It is
+ ``incomplete`` when no agent can be read, with a reason naming the arm that
+ failed, and empty for a baseline-only run (``--skip-with-skill``), which
+ gives no skill verdict.
+ """
+ verdict_agents = _run_verdict_agents(agents)
+ if not verdict_agents:
+ arm_failures = _arm_failures(agents)
+ return ("", "") if arm_failures is None else ("incomplete", _incomplete_run_reason(arm_failures))
+ agent_verdicts = []
+ for raw in verdict_agents:
+ explicit = str(raw.get("verdict") or "").casefold()
+ if explicit in {"pass", "fail", "neutral", "inconclusive"}:
+ agent_verdicts.append(explicit)
+ continue
+ raw_pass = raw.get("pass_at_k")
+ raw_with = raw_pass.get("with_skill") if isinstance(raw_pass, Mapping) else None
+ raw_checks = raw_with.get("required_checks") if isinstance(raw_with, Mapping) else None
+ agent_verdicts.append(
+ "inconclusive" if _never_activated(raw) else "fail" if required_check_failure_reason(raw_checks) else "pass"
+ )
+ if "pass" in agent_verdicts:
+ return "pass", ""
+ if all(item == "inconclusive" for item in agent_verdicts):
+ return "inconclusive", ""
+ return "fail", ""
+
+
+def _arm_failures(agents: Mapping[str, Any]) -> set[str] | None:
+ """Name how each agent missed the run verdict, or None for a baseline-only run.
+
+ ``both`` is an agent that completed neither arm, ``with_skill`` one whose
+ with-skill arm did not complete, and ``baseline`` one whose with-skill arm
+ completed but whose baseline did not (and was not tolerated), so the agent
+ still failed.
+ """
+ raw_agents = [raw for raw in agents.values() if isinstance(raw, Mapping)]
+ if all(_condition_status(raw, "with_skill") == "skipped" for raw in raw_agents):
+ return None
+ failures = set()
+ for raw in raw_agents:
+ if _condition_usable(raw, "with_skill"):
+ failures.add("baseline")
+ elif _condition_usable(raw, "without_skill") or _condition_status(raw, "without_skill") == "skipped":
+ failures.add("with_skill")
+ else:
+ failures.add("both")
+ return failures
+
+
+def _incomplete_run_reason(arm_failures: set[str]) -> str:
+ """Say which arm kept every agent out of the run verdict, in the budget reason's plain style."""
+ if arm_failures == {"both"}:
+ return "no agent completed either arm; there is no quality verdict to report"
+ if arm_failures <= {"both", "with_skill"}:
+ return "no agent completed its with-skill arm; there is no quality verdict to report"
+ if arm_failures == {"baseline"}:
+ return (
+ "no agent completed its baseline arm, so the run has no complete agent result; "
+ "per-agent verdicts cover the with-skill arm only"
+ )
+ return (
+ "no agent completed both arms (with-skill arm failed for some, baseline arm for the rest); "
+ "there is no quality verdict to report"
+ )
def _ranks_like_the_canonical_report(raw: Mapping[str, Any]) -> bool:
@@ -521,8 +599,8 @@ def _agent_score_headlines(
) -> list[Text]:
"""Build the compact verdict, lift, and per-arm check-count summary."""
pass_at_k = data.get("pass_at_k")
- with_pass = pass_at_k.get("with_skill") if isinstance(pass_at_k, Mapping) else None
- without_pass = pass_at_k.get("without_skill") if isinstance(pass_at_k, Mapping) else None
+ with_pass = pass_at_k.get("with_skill") if with_usable and isinstance(pass_at_k, Mapping) else None
+ without_pass = pass_at_k.get("without_skill") if baseline_usable and isinstance(pass_at_k, Mapping) else None
required_checks = with_pass.get("required_checks") if isinstance(with_pass, Mapping) else None
verdict_reason = required_check_failure_reason(required_checks)
headlines = []
@@ -534,7 +612,7 @@ def _agent_score_headlines(
budget_partial = budget_incomplete_reason(result.get("budget")) is not None
if budget_partial:
agent_verdict = "incomplete"
- if multiple_agents or verdict_reason:
+ if with_usable and (multiple_agents or verdict_reason):
verdict_label = f"QUALITY VERDICT ({safe(agent)}):" if multiple_agents else "QUALITY VERDICT:"
reason = f" — {safe(verdict_reason)}" if verdict_reason else ""
color = "yellow" if agent_verdict == "inconclusive" else RED if agent_verdict == "fail" else GREEN
@@ -1140,32 +1218,14 @@ def render_evaluation_result(
if isinstance(agents, Mapping) and agents and not incomplete:
if len(agents) > 1 and not budget_reason:
run_verdict = str(result.get("verdict") or "").casefold()
+ run_verdict_reason = ""
if run_verdict not in {"pass", "fail", "neutral", "inconclusive"}:
- agent_verdicts = []
- for raw in _run_verdict_agents(agents):
- explicit = str(raw.get("verdict") or "").casefold()
- if explicit in {"pass", "fail", "neutral", "inconclusive"}:
- agent_verdicts.append(explicit)
- continue
- raw_pass = raw.get("pass_at_k")
- raw_with = raw_pass.get("with_skill") if isinstance(raw_pass, Mapping) else None
- raw_checks = raw_with.get("required_checks") if isinstance(raw_with, Mapping) else None
- agent_verdicts.append(
- "inconclusive"
- if _never_activated(raw)
- else "fail"
- if required_check_failure_reason(raw_checks)
- else "pass"
- )
- run_verdict = (
- "pass"
- if "pass" in agent_verdicts
- else "inconclusive"
- if agent_verdicts and all(item == "inconclusive" for item in agent_verdicts)
- else "fail"
- )
- style = GREEN if run_verdict == "pass" else RED if run_verdict == "fail" else "yellow"
- console.print(Text(f"RUN QUALITY VERDICT: {run_verdict.upper()}", style=f"bold {style}"))
+ run_verdict, run_verdict_reason = _run_verdict_from_agents(agents)
+ if run_verdict:
+ style = GREEN if run_verdict == "pass" else RED if run_verdict == "fail" else "yellow"
+ console.print(Text(f"RUN QUALITY VERDICT: {run_verdict.upper()}", style=f"bold {style}"))
+ if run_verdict_reason:
+ console.print(Text(run_verdict_reason, style="yellow"))
if not verbose:
for agent, raw in agents.items():
if not isinstance(raw, Mapping):
diff --git a/tests/test_tier3_result_display.py b/tests/test_tier3_result_display.py
index f8b7b279..65c4c583 100644
--- a/tests/test_tier3_result_display.py
+++ b/tests/test_tier3_result_display.py
@@ -158,6 +158,280 @@ def test_required_check_verdict_precedes_counts_and_positive_lift_is_reference()
assert output.index("SECURITY CLEAN") < output.index("With Skill")
[email protected]("failed_arm", [None, "with_skill", "without_skill", "empty"])
+def test_check_headlines_require_usable_arms(failed_arm: str | None) -> None:
+ data = {
+ "execution_status": "failed" if failed_arm in {"with_skill", "without_skill"} else "succeeded",
+ "conditions": {
+ arm: {"execution_status": "failed" if arm == failed_arm else "succeeded"}
+ for arm in ("with_skill", "without_skill")
+ },
+ "pass_at_k": {
+ "with_skill": {
+ "required_checks": {"passed": 0, "scored": 1, "wrong_answer": 1, "security": 0},
+ "correct_answers": {"correct": 0, "scored": 1},
+ "security_clean": {"clean": 1, "scored": 1},
+ },
+ "without_skill": {
+ "required_checks": {"passed": 1, "scored": 1, "wrong_answer": 0, "security": 0},
+ "correct_answers": {"correct": 1, "scored": 1},
+ "security_clean": {"clean": 1, "scored": 1},
+ },
+ },
+ }
+ if failed_arm == "empty":
+ data["pass_at_k"] = {}
+ result = {"agents": {"codex": data}}
+ original = deepcopy(result)
+
+ output = render_result(result)
+
+ if failed_arm in {"with_skill", "empty"}:
+ assert "QUALITY VERDICT" not in output
+ expected = ("N/A", "N/A", "N/A")
+ else:
+ assert "QUALITY VERDICT: FAIL — 1 of 1 cases failed: 1 goal not met" in output
+ expected = (
+ ("0/1 | N/A | N/A", "0/1 | N/A | N/A", "1/1 | N/A | N/A")
+ if failed_arm == "without_skill"
+ else ("0/1 | 1/1 | -1", "0/1 | 1/1 | -1", "1/1 | 1/1 | +0")
+ )
+ for label, counts in zip(("REQUIRED CHECKS PASSED", "GOALS MET", "SECURITY CLEAN"), expected, strict=True):
+ [line] = [line.strip(" │") for line in output.splitlines() if label in line]
+ assert line == f"{label} {counts}"
+ assert result == original
+
+
[email protected]("failed_agent", ["codex", "opencode"])
+def test_failed_agent_has_no_quality_headline_in_multi_agent_summary(failed_agent):
+ agents = {
+ name: {
+ "execution_status": "failed" if name == failed_agent else "succeeded",
+ "conditions": {
+ "with_skill": {"execution_status": "failed" if name == failed_agent else "succeeded"},
+ "without_skill": {"execution_status": "succeeded"},
+ },
+ "pass_at_k": {
+ "with_skill": {
+ "required_checks": {"passed": 0, "scored": 1, "wrong_answer": 1, "security": 0},
+ },
+ },
+ }
+ for name in ("codex", "opencode")
+ }
+ result = {"agents": agents}
+ original = deepcopy(result)
+ output = render_result(result)
+ usable_agent = "opencode" if failed_agent == "codex" else "codex"
+ assert f"QUALITY VERDICT ({failed_agent}):" not in output
+ assert f"QUALITY VERDICT ({usable_agent}): FAIL" in output
+ assert result == original
+
+
+def _checks(passed: int) -> dict:
+ return {
+ "with_skill": {
+ "required_checks": {"passed": passed, "scored": 1, "wrong_answer": 1 - passed, "security": 0},
+ },
+ }
+
+
+def _failed_with_skill_agent(shape: str) -> dict:
+ """An agent whose with-skill arm failed to run, so none of its checks were scored."""
+ agent: dict = {
+ "execution_status": "failed",
+ "conditions": {
+ "with_skill": {"execution_status": "failed"},
+ "without_skill": {"execution_status": "succeeded"},
+ },
+ }
+ if shape == "empty_pass_at_k":
+ agent["pass_at_k"] = {}
+ elif shape == "passing_checks":
+ agent["pass_at_k"] = _checks(1)
+ elif shape == "explicit_pass":
+ agent["verdict"] = "pass"
+ return agent
+
+
+def _succeeded_agent(*, passed: int) -> dict:
+ return {
+ "execution_status": "succeeded",
+ "conditions": {
+ "with_skill": {"execution_status": "succeeded"},
+ "without_skill": {"execution_status": "succeeded"},
+ },
+ "pass_at_k": _checks(passed),
+ }
+
+
+def _run_verdict_lines(result: dict) -> list[str]:
+ original = deepcopy(result)
+ lines = [line for line in render_result(result).splitlines() if line.startswith("RUN QUALITY VERDICT:")]
+ assert result == original
+ return lines
+
+
+FAILED_ARM_SHAPES = ["missing_pass_at_k", "empty_pass_at_k", "passing_checks", "explicit_pass"]
+
+
[email protected]("shape", FAILED_ARM_SHAPES)
+def test_run_verdict_ignores_an_agent_whose_with_skill_arm_failed(shape: str) -> None:
+ # The per-agent headline of the failed agent is withheld, so the run verdict
+ # must not read it either: only the agent that ran decides, and it fails.
+ result = {"agents": {"codex": _failed_with_skill_agent(shape), "opencode": _succeeded_agent(passed=0)}}
+
+ assert _run_verdict_lines(result) == ["RUN QUALITY VERDICT: FAIL"]
+ assert "QUALITY VERDICT (codex):" not in render_result(result)
+
+
[email protected]("shape", FAILED_ARM_SHAPES)
+def test_run_verdict_is_pass_when_the_agent_that_ran_passes(shape: str) -> None:
+ # Mixed run: the canonical report (`_overall_verdict_from_agents`) sets
+ # execution-failed agents aside and passes when any remaining agent passes.
+ # The terminal line follows it, as it does when one agent fails its checks
+ # and another passes.
+ result = {"agents": {"codex": _failed_with_skill_agent(shape), "opencode": _succeeded_agent(passed=1)}}
+
+ assert _run_verdict_lines(result) == ["RUN QUALITY VERDICT: PASS"]
+ assert "QUALITY VERDICT (codex):" not in render_result(result)
+
+
[email protected]("shape", FAILED_ARM_SHAPES)
+def test_run_verdict_is_incomplete_when_no_agent_ran_its_with_skill_arm(shape: str) -> None:
+ result = {"agents": {"codex": _failed_with_skill_agent(shape), "claude": _failed_with_skill_agent(shape)}}
+
+ output = render_result(result)
+
+ assert _run_verdict_lines(result) == ["RUN QUALITY VERDICT: INCOMPLETE"]
+ assert _incomplete_reason(output) == WITH_SKILL_FAILED_REASON
+ assert "QUALITY VERDICT (" not in output
+
+
+def _arm_failures(*, with_skill: bool, baseline: bool) -> dict:
+ """An agent that failed the named arms; a failed baseline alone leaves the with-skill arm scored."""
+ agent = _succeeded_agent(passed=1)
+ agent["conditions"] = {
+ "with_skill": {"execution_status": "failed" if with_skill else "succeeded"},
+ "without_skill": {"execution_status": "failed" if baseline else "succeeded"},
+ }
+ if with_skill or baseline:
+ agent["execution_status"] = "failed"
+ if with_skill:
+ agent["pass_at_k"] = {}
+ return agent
+
+
+def _incomplete_reason(output: str) -> str:
+ """Return the line that explains an INCOMPLETE run verdict."""
+ lines = output.splitlines()
+ return lines[lines.index("RUN QUALITY VERDICT: INCOMPLETE") + 1]
+
+
+NEITHER_ARM_REASON = "no agent completed either arm; there is no quality verdict to report"
+WITH_SKILL_FAILED_REASON = "no agent completed its with-skill arm; there is no quality verdict to report"
+BASELINE_FAILED_REASON = (
+ "no agent completed its baseline arm, so the run has no complete agent result; "
+ "per-agent verdicts cover the with-skill arm only"
+)
+MIXED_REASON = (
+ "no agent completed both arms (with-skill arm failed for some, baseline arm for the rest); "
+ "there is no quality verdict to report"
+)
+
+
+ ("codex", "opencode", "reason"),
+ [
+ ((True, True), (True, True), NEITHER_ARM_REASON),
+ ((True, False), (True, False), WITH_SKILL_FAILED_REASON),
+ ((True, True), (True, False), WITH_SKILL_FAILED_REASON),
+ ((False, True), (False, True), BASELINE_FAILED_REASON),
+ ((True, False), (False, True), MIXED_REASON),
+ ((True, True), (False, True), MIXED_REASON),
+ ],
+ ids=["neither-arm", "with-skill-arms", "neither-and-with-skill", "baseline-only", "mixed", "neither-and-baseline"],
+)
+def test_incomplete_run_verdict_names_the_arm_that_failed(codex, opencode, reason) -> None:
+ result = {
+ "agents": {
+ "codex": _arm_failures(with_skill=codex[0], baseline=codex[1]),
+ "opencode": _arm_failures(with_skill=opencode[0], baseline=opencode[1]),
+ }
+ }
+
+ output = render_result(result)
+
+ assert _run_verdict_lines(result) == ["RUN QUALITY VERDICT: INCOMPLETE"]
+ assert _incomplete_reason(output) == reason
+
+
+def test_baseline_only_failures_keep_the_with_skill_headlines() -> None:
+ # The with-skill arms ran, so each agent's own headline reads them; only the
+ # run verdict is withheld, and its reason says the baseline arm is what failed.
+ result = {
+ "agents": {
+ name: {
+ **_arm_failures(with_skill=False, baseline=True),
+ "pass_at_k": {
+ "with_skill": {
+ **_checks(1)["with_skill"],
+ "cases": {"case": {"passed": True, "attempts_used": 1, "best_score": 1.0, "attempts": []}},
+ }
+ },
+ }
+ for name in ("codex", "opencode")
+ }
+ }
+
+ output = render_result(result)
+
+ assert _run_verdict_lines(result) == ["RUN QUALITY VERDICT: INCOMPLETE"]
+ assert _incomplete_reason(output) == BASELINE_FAILED_REASON
+ assert "its with-skill arm" not in _incomplete_reason(output)
+ assert "QUALITY VERDICT (codex): PASS" in output
+ assert "QUALITY VERDICT (opencode): PASS" in output
+
+
+def test_run_verdict_ignores_an_agent_that_failed_only_its_baseline() -> None:
+ # Without --tolerate-baseline-timeouts a failed baseline fails the agent, although its
+ # with-skill arm ran. The canonical report sets that agent aside, so it cannot set the
+ # run PASS beside an agent that fails; its own per-agent headline still shows.
+ baseline_failed = {
+ **_succeeded_agent(passed=1),
+ "execution_status": "failed",
+ "conditions": {
+ "with_skill": {"execution_status": "succeeded"},
+ "without_skill": {"execution_status": "failed"},
+ },
+ }
+ result = {"agents": {"opencode": baseline_failed, "codex": _succeeded_agent(passed=0)}}
+
+ assert _run_verdict_lines(result) == ["RUN QUALITY VERDICT: FAIL"]
+ assert "QUALITY VERDICT (opencode): PASS" in render_result(result)
+
+
+def test_baseline_only_multi_agent_run_gives_no_skill_verdict() -> None:
+ skipped = {
+ "execution_status": "succeeded",
+ "conditions": {
+ "with_skill": {"execution_status": "skipped"},
+ "without_skill": {"execution_status": "succeeded"},
+ },
+ }
+ result = {"agents": {"codex": skipped, "opencode": deepcopy(skipped)}}
+
+ assert _run_verdict_lines(result) == []
+
+
[email protected]("shape", FAILED_ARM_SHAPES)
+def test_single_failed_agent_never_reads_as_a_passing_run(shape: str) -> None:
+ result = {"agents": {"codex": _failed_with_skill_agent(shape)}}
+
+ assert _run_verdict_lines(result) == []
+ assert "QUALITY VERDICT" not in render_result(result)
+
+
def test_multi_agent_headlines_label_agents_and_render_with_skill_counts_alone() -> None:
def agent(passed: int, *, case_id: str) -> dict:
return {
diff --git a/tests/tier3/test_baseline_timeouts.py b/tests/tier3/test_baseline_timeouts.py
index 40aa95ae..1bd99f48 100644
--- a/tests/tier3/test_baseline_timeouts.py
+++ b/tests/tier3/test_baseline_timeouts.py
@@ -900,6 +900,63 @@ def test_verdict_comes_from_the_complete_peer_not_a_tolerated_agent(
)
+def test_printed_verdict_ignores_an_untolerated_failed_agent_like_the_reports(tmp_path: Path) -> None:
+ from skillevaluator.tier3.result_display import render_result
+
+ # Without tolerance opencode's baseline timeout fails the agent, although its with-skill
+ # arm passes everything. The reports set it aside and read only codex, which misses its
+ # goals, so the printed run verdict must not turn PASS from the failed agent's with-skill arm.
+ passing = {**SCORES, "goal_accuracy": 1.0}
+ failing = {**dict.fromkeys(SCORES, 0.3), "security": 1.0}
+ jobs = tmp_path / "jobs"
+ _arm(jobs, "opencode", "with", [(case, "scored") for case in CASES], scores=passing, details=_activation(True))
+ _arm(jobs, "opencode", "without", [("case-001", "scored"), ("case-002", "timeout")])
+ _arm(jobs, "codex", "with", [(case, "scored") for case in CASES], scores=failing, details=_activation(True))
+ _arm(jobs, "codex", "without", [(case, "scored") for case in CASES], scores=failing)
+ results = _collect(tmp_path, [LAUNCH_ERROR.format(agent="opencode", count=1)], tolerate_baseline_timeouts=False)
+ assert results["agents"]["opencode"]["execution_status"] == "failed"
+ assert results["agents"]["opencode"]["conditions"]["with_skill"]["execution_status"] == "succeeded"
+
+ payload, benchmark, _html, _message = _render_reports_and_message(tmp_path, results)
+
+ assert payload["best_agent"] == "codex"
+ assert "> **Tier 3 completed-agent result: FAIL**" in benchmark
+ terminal = render_result(results)
+ assert [line for line in terminal.splitlines() if line.startswith("RUN QUALITY VERDICT:")] == [
+ "RUN QUALITY VERDICT: FAIL"
+ ]
+
+
+def test_printed_verdict_names_the_baseline_when_every_agent_fails_only_its_baseline(tmp_path: Path) -> None:
+ from skillevaluator.tier3.result_display import render_result
+
+ # Both agents score their with-skill arms, but each baseline times out and is not
+ # tolerated. The reports read no completed agent (verdict neutral, "No complete agent
+ # result"), so the printed run verdict is INCOMPLETE, and it blames the baseline arm,
+ # never the with-skill arm that ran.
+ passing = {**SCORES, "goal_accuracy": 1.0}
+ jobs = tmp_path / "jobs"
+ for agent in ("opencode", "codex"):
+ _arm(jobs, agent, "with", [(case, "scored") for case in CASES], scores=passing, details=_activation(True))
+ _arm(jobs, agent, "without", [("case-001", "scored"), ("case-002", "timeout")])
+ errors = [LAUNCH_ERROR.format(agent=agent, count=1) for agent in ("opencode", "codex")]
+ results = _collect(tmp_path, errors, tolerate_baseline_timeouts=False)
+ for agent in results["agents"].values():
+ assert agent["execution_status"] == "failed"
+ assert agent["conditions"]["with_skill"]["execution_status"] == "succeeded"
+
+ payload, benchmark, _html, _message = _render_reports_and_message(tmp_path, results)
+
+ assert payload["verdict"] == "neutral"
+ assert "> **Tier 3: No complete agent result**" in benchmark
+ lines = render_result(results).splitlines()
+ index = lines.index("RUN QUALITY VERDICT: INCOMPLETE")
+ assert lines[index + 1] == (
+ "no agent completed its baseline arm, so the run has no complete agent result; "
+ "per-agent verdicts cover the with-skill arm only"
+ )
+
+
@pytest.mark.parametrize("field", ["with_skill", "without_skill", "dimensions_with_skill"])
def test_printed_verdict_reads_every_agent_when_the_complete_peer_cannot_rank(tmp_path: Path, field: str) -> None:
from skillevaluator.tier3.result_display import render_result