Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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 @@ -14,6 +14,38 @@ All notable changes to SkillEvaluator are documented in this file.
when the catalog has no eligible entries to compare against.
These queries return an empty result without constructing the provider
client, including when that provider is missing or unreachable.
- The Tier 1 summary line counts every check without complete evidence,
including one whose scanner is not installed, as `N incomplete` instead of
`N didn't run`. The quiet verdict headline uses the same statuses as the
summary row and verdict box: several such checks read `Tier 1: 2 incomplete`
instead of `Tier 1: 2 didn't run`, and a check with a blocking finding beside
an incomplete scan reads `failed`. Incomplete Tier 2 checks, and Tier 3 runs
that the run budget left incomplete, read `was incomplete` or `N incomplete`
instead of `didn't run`; with a fail verdict, such a Tier 3 run reads
`failed`. Under `--block-on-agent-eval`, an `inconclusive` agent evaluation
reads `was incomplete` instead of `failed`. A single check whose scanner is
not installed still reads `didn't run`.
Comment thread
rng1995 marked this conversation as resolved.
Resolved
- The Tier 1 panel lists a check whose only evidence is not applicable (no code
files, no `scripts/` or `tools/` directory, no dependency files, or no
semantic version label) on its `n/a` row, with the first such check's reason,
and the check ticker no longer shows a ✓ for it. When another member of the
same check ran, the row uses the validator's short name instead, so Code Risk
Analysis reads `code` beside a `✓ code-integrity` ticker entry. A skill with no code
and no `scripts/` or `tools/` directory now shows `n/a code, lint`.
- Harness Compatibility records a `harness_profile_evaluation` success detail
when it evaluates at least one skill. The Tier 1 summary counts one more
sub-check (a count of one reads `1 sub-check`), JSON `checks_performed` goes
from 0 to 1 with a matching `legacy.messages` line, the `-r cli` table reads
`1 checks passed` instead of `OK`, and the HTML and Markdown reports show the
detail instead of `All checks passed`. JUnit gains a passing
`harness_profile_evaluation` testcase, which replaces the
`Harness Compatibility` placeholder testcase when the check has no findings.
- When Harness Compatibility has no findings, that success detail counts as
Tier 1 execution evidence: `publication.reasons`, the HTML eligibility
reasons and `BENCHMARK.md` no longer list
`Tier 1 lacks trustworthy execution evidence.`, and `BENCHMARK.md`'s Tier 1
row no longer blames Harness Compatibility. Publication still needs every
other required check and the Tier 2 and Tier 3 evidence.

### Documentation

Expand Down Expand Up @@ -197,6 +229,10 @@ All notable changes to SkillEvaluator are documented in this file.
apply to intermediate values as well as the final result, so
`10**1000 - 10**1000`, which printed `Result: 0` before, now returns
`Error: result is too large` because each power has 1001 digits.
- Partial scanner results retain their actual diagnostics and recorded versions
Comment thread
rng1995 marked this conversation as resolved.
Resolved
instead of being described as missing installations. Their console fix item
quotes the first three diagnostics, each shortened to one bounded line, and
counts the rest.

## 1.0.1 - 2026-11-17

Expand Down
2 changes: 1 addition & 1 deletion docs/harness-check.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ These are the findings you are most likely to meet:
```text
╭─ Tier 1 · Static & Security ─────────────────────────────────────────────────────╮
│ checks ! harness │
│ summary 1/1 checks passed │
│ summary 1/1 checks passed (1 sub-check) │
│ harness 4 not loaded · 1 degraded (see below) │
╰────────────────────────────────────────────────────────────────── ✓ pass · 0.1s ─╯
╭─ Harness compatibility ──────────────────────────────────────────────────────────╮
Expand Down
11 changes: 7 additions & 4 deletions src/skillevaluator/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2046,8 +2046,11 @@ def _finish_pipeline_view(
if len(failed) == 1:
only = failed[0]
tier_no = (only.metadata.get("gating") or {}).get("tier")
ran = all(scan.removesuffix("-llm") in only.scanners for scan in only.incomplete_scans)
state = ("was incomplete" if ran else "didn't run") if only.is_incomplete else "failed"
from skillevaluator.reporting.console_ui import _scanner_setup_issue

state = "failed"
if context.result_statuses[id(only)] == "incomplete":
state = "didn't run" if _scanner_setup_issue(only) else "was incomplete"
Comment thread
rng1995 marked this conversation as resolved.
Resolved
headline = f"{only.validator_name or 'validation'} {state}" + (
f" in Tier {tier_no}" if tier_no is not None else ""
)
Expand All @@ -2057,10 +2060,10 @@ def _finish_pipeline_view(
by_tier.setdefault((result.metadata.get("gating") or {}).get("tier"), []).append(result)
parts = []
for tier_no, results in by_tier.items():
broken = sum(1 for r in results if not r.is_incomplete)
broken = sum(1 for r in results if context.result_statuses[id(r)] != "incomplete")
counts = [
f"{broken} failed" if broken else "",
f"{len(results) - broken} didn't run" if broken < len(results) else "",
f"{len(results) - broken} incomplete" if broken < len(results) else "",
]
parts.append((f"Tier {tier_no}: " if tier_no is not None else "") + ", ".join(c for c in counts if c))
headline = " · ".join(parts) or "validation failed"
Expand Down
106 changes: 88 additions & 18 deletions src/skillevaluator/reporting/console_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,26 +917,41 @@ def stage_hint_row(label: str, hint: str, *, lead: str = "") -> TierRow:


def _scanners_row(results: list[ValidationResult]) -> list[TierRow]:
"""The external scanners behind the Tier 1 checks, with their versions or why they did not run."""
states: dict[str, tuple[str, str]] = {}
"""Scanner versions and incomplete evidence, retaining every member's scan state."""
versions: dict[str, str] = {}
states: dict[str, set[str]] = {}
for r in results:
if _is_user_skipped(r):
if scanner := _CHECK_SCANNERS.get(r.validator_name):
states.setdefault(scanner, ("skipped", MUTED))
states.setdefault(scanner, set()).add("skipped")
continue
for scanner, version in r.scanners.items():
states[scanner] = (version, MUTED)
if scanner == "skillspector" and version == "unknown":
runtime_version = (r.metadata or {}).get("skillspector_version")
if isinstance(runtime_version, str) and runtime_version:
version = runtime_version
if versions.get(scanner, "unknown") == "unknown":
versions[scanner] = version
states.setdefault(scanner, set()).add("ran")
for scan in r.incomplete_scans:
if (scanner := scan.removesuffix("-llm")) in _SCANNER_NAMES:
version = r.scanners.get(scanner)
if not version:
state = "didn't run"
if scan != scanner and scanner in r.scanners:
state = "llm"
else:
state = f"{version}, LLM didn't run" if scan != scanner else f"{version}, scan incomplete"
states[scanner] = (state, f"bold {RED}")
state = "missing" if _scanner_setup_issue(r) else "incomplete"
states.setdefault(scanner, set()).add(state)
segments: list[tuple[str, str]] = []
for scanner in [name for name in _SCANNER_NAMES if name in states]:
state, style = states[scanner]
version, observed = versions.get(scanner), states[scanner]
style = f"bold {RED}"
if "incomplete" in observed or ("missing" in observed and version):
state = f"{version}, scan incomplete" if version else "incomplete"
elif "llm" in observed:
state = f"{version}, LLM didn't run" if version else "LLM incomplete"
elif "missing" in observed:
state = "didn't run"
else:
state, style = version or "skipped", MUTED
segments += [*([(" · ", FAINT)] if segments else []), (_SCANNER_NAMES[scanner], TEXT), (f" {state}", style)]
return [TierRow("scanners", segments)] if segments else []

Expand All @@ -948,8 +963,9 @@ def _is_user_skipped(result: ValidationResult) -> bool:

def _is_not_applicable(result: ValidationResult) -> bool:
"""True when a check was recorded as not applicable to the target instead of run."""
return (
_is_skipped(result) and not _is_user_skipped(result) and "not applicable" in get_skip_reason(result).casefold()
return not _is_user_skipped(result) and (
result_execution_status(result) == "not_applicable"
Comment thread
rng1995 marked this conversation as resolved.
Resolved
or (_is_skipped(result) and "not applicable" in get_skip_reason(result).casefold())
)


Expand Down Expand Up @@ -1208,11 +1224,11 @@ def summarize_tier1(
if sub_checks := sum(
r.summary.checks_performed for r in results if outcome[id(r)] in {"pass", "fail", "incomplete"}
):
checks_segments.append((f" ({sub_checks} sub-checks)", MUTED))
checks_segments.append((f" ({sub_checks} sub-check{'s' if sub_checks != 1 else ''})", MUTED))
if count["fail"]:
checks_segments += [(" · ", FAINT), (f"{count['fail']} failed", f"bold {RED}")]
if count["incomplete"]:
checks_segments += [(" · ", FAINT), (f"{count['incomplete']} didn't run", f"bold {RED}")]
checks_segments += [(" · ", FAINT), (f"{count['incomplete']} incomplete", f"bold {RED}")]
if count["skipped"]:
checks_segments += [(" · ", FAINT), (f"{count['skipped']} skipped", MUTED)]
if warnings:
Expand All @@ -1224,10 +1240,21 @@ def summarize_tier1(
names = ", ".join(dict.fromkeys(_short_name(r.validator_name) for r in user_skipped))
rows.append(TierRow("skipped", [(names, MUTED), (" with --skip, not checked", FAINT)]))
if not_applicable:
# A check key names every member of that check, so use it only when no other member ran; otherwise
# the row would list a check that the ticker marks as passed or failed.
ran = {_check_key(r.validator_name) for r in results if not _is_skipped(r)}
names = ", ".join(
dict.fromkeys(_check_key(r.validator_name) or _short_name(r.validator_name) for r in not_applicable)
dict.fromkeys(
key if (key := _check_key(r.validator_name)) and key not in ran else _short_name(r.validator_name)
for r in not_applicable
)
)
first = not_applicable[0]
reason = _bounded_console_line(
first.success_details[0].message
if first.success_details and not _is_skipped(first)
else get_skip_reason(first)
)
reason = _bounded_console_line(get_skip_reason(not_applicable[0]))
rows += [TierRow("n/a", [(names, MUTED)]), TierRow("", [(reason, FAINT)], fit="wrap")]

if advisory:
Expand Down Expand Up @@ -1289,7 +1316,10 @@ def summarize_tier1(
items = [item for r in broken for item in _tier1_fixes(r)]
items += [item for r in failed for item in _unresolved_reference_fixes(r)]
items += [item for r in broken for item in _later_gate_fixes(r)]
if setup := [r for r in incomplete if not _only_llm_stages_missing(r) and not _unresolved_reference_fixes(r)]:
non_llm = [r for r in incomplete if not _only_llm_stages_missing(r) and not _unresolved_reference_fixes(r)]
if partial := [r for r in non_llm if not _scanner_setup_issue(r)]:
items.append(_incomplete_fix(partial))
if setup := [r for r in non_llm if _scanner_setup_issue(r)]:
Comment thread
rng1995 marked this conversation as resolved.
Resolved
items.append(_setup_fix(setup))
if llm := [r for r in incomplete if _only_llm_stages_missing(r)]:
items.append(_llm_fix(llm))
Expand Down Expand Up @@ -1358,6 +1388,46 @@ def _tier1_fix(result: ValidationResult, problem: str = "") -> FixItem:


_DOWNLOAD_FAILED = re.compile(r"couldn't (?:download|set up) .+? \((?:[^()]|\([^()]*\))*\)")
_MISSING_SCANNER = re.compile(r"\bnot installed\b|\bnot found in PATH\b", re.IGNORECASE)


def _scanner_setup_issue(result: ValidationResult) -> bool:
"""Only explicit installation diagnostics justify a scanner setup explanation."""
return any(
_DOWNLOAD_FAILED.search(text) or _INSTALL_HINT.search(text) or _MISSING_SCANNER.search(text)
for text in map(str, [*result.independent_warnings(), *result.independent_errors()])
)


_INCOMPLETE_DIAGNOSTICS_SHOWN = 3


def _incomplete_fix(results: list[ValidationResult]) -> FixItem:
"""Keep partial, malformed and failed analyses separate from installation failures.

Some checks report one diagnostic per scanned item, so the item quotes only the first few,
each bounded, and counts the rest; the detailed reports keep every diagnostic.
"""
checks = ", ".join(dict.fromkeys(_short_name(r.validator_name) for r in results))
diagnostics = list(
dict.fromkeys(
_bounded_console_line(str(message), limit=_FIX_TEXT_LIMIT)
Comment thread
rng1995 marked this conversation as resolved.
Resolved
for result in results
for message in (
result.gate_failures
or result.independent_errors()
or result.independent_warnings()
or [f"{', '.join(result.incomplete_scans)} did not produce complete evidence"]
)
)
)
shown = diagnostics[:_INCOMPLETE_DIAGNOSTICS_SHOWN]
more = len(diagnostics) - len(shown)
return FixItem(
"scan",
f"{checks} incomplete: {'; '.join(shown)}" + (f"; and {more} more" if more else ""),
["resolve the reported scanner or input issues, then rerun; see detailed reports for full diagnostics"],
)


def _setup_fix(results: list[ValidationResult]) -> FixItem:
Expand All @@ -1366,7 +1436,7 @@ def _setup_fix(results: list[ValidationResult]) -> FixItem:
hints: list[str] = []
failed_downloads: list[str] = []
for r in results:
for text in map(str, [*r.warnings, *r.errors]):
for text in map(str, [*r.independent_warnings(), *r.independent_errors()]):
if (download := _DOWNLOAD_FAILED.search(text)) and download.group(0) not in failed_downloads:
failed_downloads.append(download.group(0))
match = _INSTALL_HINT.search(text)
Expand Down
11 changes: 11 additions & 0 deletions src/skillevaluator/validators/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,15 @@ def validate(self, skill_path: Path) -> ValidationResult:
)
)
result.metadata[HARNESS_METADATA_KEY] = block
harnesses = [row["harness"] for row in next(iter(block.values()), [])]
if harnesses:
evaluations = sum(len(rows) for rows in block.values())
result.add_success(
Comment thread
rng1995 marked this conversation as resolved.
Resolved
"harness_profile_evaluation",
f"Completed {evaluations} harness profile evaluation(s) across {len(block)} skill(s).",
harnesses=harnesses,
profiles_evaluated=len(harnesses),
skills_evaluated=len(block),
evaluations_performed=evaluations,
)
return result
Loading
Loading