Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
381867e
feat(tier1): name SkillSpector AE1 findings and say why each file was…
rng1995 Nov 9, 2026
2914b5b
feat(reporting): count incompletely inspected referenced files in fai…
rng1995 Nov 9, 2026
6806e31
docs(tier1): describe the reasons and counts of SkillSpector AE1 find…
rng1995 Nov 9, 2026
170456b
fix(tier1): drop AE1 reason limits too large for a float
rng1995 Nov 9, 2026
3fcc2d0
fix(tier1): keep the AE1 count line out of passing results
rng1995 Nov 9, 2026
2ca02a8
perf(tier1): normalize each AE1 path and text once per SkillSpector r…
rng1995 Nov 9, 2026
3047a47
fix(reporting): prefix AE1 reference lines with their skill in folder…
rng1995 Nov 9, 2026
d55fb56
fix(reporting): say the AE1 count line names any reasons SkillSpector…
rng1995 Nov 9, 2026
6edfa90
refactor(reporting): import the AE1 count formatter where cli and mar…
rng1995 Nov 9, 2026
3342e9d
docs(tier1): note the AE1 check-name change for severity overrides
rng1995 Nov 9, 2026
1153394
refactor(reporting): register the AE1 count filter first in the HTML …
rng1995 Nov 9, 2026
98acca5
fix(tier1): keep the measured run time out of AE1 suggestions
rng1995 Nov 9, 2026
28b7087
fix(reporting): keep the AE1 count line in reports rendered from reta…
rng1995 Nov 9, 2026
aaabed4
Merge branch 'naren/port-tier1-skillspector-unmodeled-hook-critical' …
rng1995 Nov 10, 2026
8bef506
Merge commit '1af2693d7' into naren/port-tier1-skillspector-ae1-diagn…
rng1995 Nov 10, 2026
53fbbb1
fix(tier1): keep the time budget out of AE1 suggestions
rng1995 Nov 10, 2026
9cf5bbb
docs(tier1): say beside the counters that AE1 counts are totaled like…
rng1995 Nov 10, 2026
9bfedc2
Merge branch 'naren/port-tier1-skillspector-unmodeled-hook-critical' …
rng1995 Nov 11, 2026
8a8b417
Merge naren/port-tier1-skillspector-unmodeled-hook-critical into nare…
rng1995 Nov 11, 2026
c19f42c
fix(tier1): propagate reference coverage guard through AE1 diagnostics
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
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,32 @@ All notable changes to SkillEvaluator are documented in this file.
keeping optional LLM checks and hosted feedback separate. Preserve opt-in
all-tier setup and report contracts in an Advanced CI reference.

- Tier 1 **Incomplete referenced artifact analysis (AE1)** findings from
SkillSpector now say why SkillSpector stopped inspecting the file that a skill
names. The suggestion names the file, its disposition and each reason
SkillSpector gives, such as
`static_parse_limit (static_patterns_tool_misuse)`, with any line and limits,
and the finding's metadata records them under `skillspector_evidence` and
`skillspector_occurrences`. The suggestion leaves out the run time and the
time budget (`observed_seconds`, `limit_seconds`), which differ from run to
run, so a finding keeps its `finding_id` from run to run; because the
suggestion text is new, each AE1 `finding_id` changes once with this release.
Before, the finding said only
`Referenced artifact was not completely inspected`, and its reason had to be
matched by hand against the incomplete-analysis error, which lists at most
three rows. With SkillSpector before v2.12.0 the finding was
titled `Unknown (AE1)` and told the user to make the file available although
SkillSpector had read part of it. It now carries the rule's name and the
reasons from the report's ledger rows for the file. Its check name, and so its
SARIF rule ID, changes: a `severity_overrides` entry keyed on
`SECURITY.Unknown (AE1)` must now use
`SECURITY.Incomplete referenced artifact analysis (AE1)`. The JSON field
`skillspector_reference_summary` counts the files and the lines that name them
for every result, and a failed check shows the counts in one line of the
terminal, Markdown and HTML reports. Severities and scan completeness are
unchanged; a gate changes only where an override of `SECURITY.Unknown (AE1)`
was what let the check pass.

### Changed

- Name Skill Lift as the headline comparison and label pass@k differences as
Expand Down
6 changes: 5 additions & 1 deletion docs/tier1-validation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `lice
- v2.13.4 reports `observed_records` and `limit_records` on the row. SkillEvaluator accepts the row only when `observed_records` equals the BH1 `declaration_count` and does not exceed `limit_records`. A manifest with more records than SkillSpector reads, or with a hook handler it counted but could not parse, therefore stays `INCOMPLETE`. So does a settings file with permission rules, `env` or other settings beside its hooks, because SkillSpector counts those records too. A part it does not count, such as a hook group that is not an object, is not visible and gets the Critical.
- v2.13.3, the release SkillEvaluator installs, does not report them. SkillEvaluator then refuses only a BH1 that counts 2,048 or more declarations, because SkillSpector may have cut that manifest short. A manifest that SkillSpector parsed only in part, such as one with a malformed handler beside a valid one, gets the same Critical as a manifest it read in full, and still fails.

**Incomplete referenced artifacts.** SkillSpector reports a High **Incomplete referenced artifact analysis (AE1)** finding at each line that names a file it did not completely inspect. Releases before v2.12.0 leave the finding's name empty, so SkillEvaluator names it by its rule instead of `Unknown (AE1)`. A `severity_overrides` entry for these findings uses `SECURITY.Incomplete referenced artifact analysis (AE1)`; one keyed on `SECURITY.Unknown (AE1)` no longer matches. The finding's suggestion names the file, its disposition (`partial`, `failed`, `out_of_scope` or `uninspected`) and each reason SkillSpector gives: the reason code, such as `static_parse_limit` or `read_error`, the analyzers, the line in the file, the message and any limits, such as `limit_characters=8000`. The suggestion is part of the finding's `finding_id`, so it leaves out the run time and the time budget (`observed_seconds`, `limit_seconds`), which differ from run to run; the metadata keeps them. Reasons that differ only in the analyzer, the run time or the time budget are listed once. SkillSpector's own remedy is kept. Releases before v2.12.0 give no reasons in the finding and a generic remedy that says to make the file available: SkillEvaluator then reads the reasons from the report's `analysis_completeness` rows for that file and gives a remedy for a parse limit, a read error, or any other reason. Without such a row the finding keeps SkillSpector's text. The finding's metadata records the file, its disposition and up to 16 reasons under `skillspector_evidence`, with `reasons_truncated` when SkillSpector gave more, and up to 128 reference lines under `skillspector_occurrences`. In a folder of skills each reference line's `file` starts with the skill's `[name]` prefix, like the finding's own path, and `target_path` stays relative to that skill. Text with control characters is left out, credential-shaped text is masked, and a path outside the scanned target is dropped.

When the check fails, the terminal output, the `references` row of the terminal summary, and the Markdown and HTML reports add one line, such as `skillspector could not completely inspect 1 referenced artifact(s) across 2 reference occurrence(s); each AE1 finding names the artifact and any reasons SkillSpector gave`. The HTML and Markdown reports that the CI workflow renders again from the JSON report show the same line. The JSON report records the counts for every result, passed or failed, in `skillspector_reference_summary`: `affected_artifacts`, `reference_occurrences`, and `reference_occurrences_truncated`, which is `true` when SkillSpector listed more than 128 lines for one finding, so the count is a lower bound. For a folder of skills the counts are totals. None of this changes the finding's severity or whether the scan is complete. A gate changes only where a policy lowered `SECURITY.Unknown (AE1)` and that was what let the check pass.

**Agent control paths.** SkillSpector rules describe attacks on an agent, so a match is an agent threat only in a file the agent reads or runs. When `validate` or `tier1` detects a skill, rules, workflows, or plugin artifact, the `security` check keeps findings on agent control paths and suppresses the rest:

| File role | Tier 1 finding | Examples |
Expand Down Expand Up @@ -617,7 +621,7 @@ Tier 1 checks always gate the exit code inside `validate`. Tier 2 gates when it
Install Bandit and pip-audit with `skillevaluator[security]`. Install Semgrep separately with `brew install semgrep` or `uv tool install semgrep`, and SkillSpector with `uv tool install git+https://github.com/NVIDIA/SkillSpector.git@v2.13.3`. Required scanner failures remain `INCOMPLETE` until the scanner is installed and returns valid evidence. `skillevaluator doctor --tier 1` lists every scanner the selected checks need, with its resolved path and version.
</Accordion>
<Accordion title="SkillSpector reports incomplete analysis for a valid helper script">
SkillSpector releases before v2.13.1 can stop inspecting a valid Python or Perl helper early and record a `static_parse_limit`, `obfuscated_instruction_text`, or `runtime_limit` ledger exception. The security check is then `INCOMPLETE`, often with a High **Incomplete referenced artifact analysis (AE1)** finding at each line that names the helper. Check the installed release with `skillspector --version` and upgrade with `uv tool install git+https://github.com/NVIDIA/SkillSpector.git@v2.13.3`. If the exception remains after the upgrade, investigate it like any other incomplete scan.
SkillSpector releases before v2.13.1 can stop inspecting a valid Python or Perl helper early and record a `static_parse_limit`, `obfuscated_instruction_text`, or `runtime_limit` ledger exception. The security check is then `INCOMPLETE`, often with a High **Incomplete referenced artifact analysis (AE1)** finding at each line that names the helper. The finding's suggestion names the helper and the reason, such as `static_parse_limit (static_patterns_tool_misuse)`. Check the installed release with `skillspector --version` and upgrade with `uv tool install git+https://github.com/NVIDIA/SkillSpector.git@v2.13.3`. If the exception remains after the upgrade, investigate it like any other incomplete scan.
</Accordion>
<Accordion title="SkillSpector could not fully model the hooks">
With SkillSpector v2.12.0 and later, a skill, folder or hooks-only plugin
Expand Down
13 changes: 8 additions & 5 deletions src/skillevaluator/models/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,14 +651,17 @@ def merge_with_prefix(self, other: ValidationResult, prefix: str) -> None:
# Prefix findings with skill name in file_path
for finding in other.findings:
metadata = finding.metadata
listed = metadata.get("occurrences") if isinstance(metadata, dict) else None
if isinstance(listed, list):
for key in ("occurrences", "skillspector_occurrences"):
listed = metadata.get(key) if isinstance(metadata, dict) else None
if not isinstance(listed, list):
continue
# A check that folds repeats (the PII scan) lists each location
# in metadata; prefix those like file_path so the finding's own
# location still matches its first listed one.
# in metadata, and a SkillSpector AE1 finding lists the lines
# that name its file; prefix those like file_path so the
# finding's own location still matches its first listed one.
metadata = {
**metadata,
"occurrences": [
key: [
{**item, "file": f"[{prefix}] {item['file']}"}
if isinstance(item, dict) and isinstance(item.get("file"), str)
else item
Expand Down
12 changes: 12 additions & 0 deletions src/skillevaluator/reporting/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def render_result(self, result: ValidationResult, console: Console) -> None:
elif result_status(result) == Status.INCOMPLETE:
tools = ", ".join(result.incomplete_scans)
console.print(f"[yellow][INCOMPLETE] {escape_markup(tools)} did not complete[/yellow]\n")
self._print_reference_summary(result, console)
self._print_summary_stats(result, console)
self._print_findings(result, console)
elif result.passed:
Expand All @@ -298,9 +299,20 @@ def render_result(self, result: ValidationResult, console: Console) -> None:
self._print_findings(result, console)
else:
console.print("[red][FAIL] Validation failed[/red]\n")
self._print_reference_summary(result, console)
self._print_summary_stats(result, console)
self._print_findings(result, console)

@staticmethod
def _print_reference_summary(result: ValidationResult, console: Console) -> None:
"""Print how many referenced artifacts SkillSpector did not completely inspect in a failed result."""
from skillevaluator.skillspector_references import reference_summary_message

summary = reference_summary_message(result.metadata.get("skillspector_reference_summary"))
if summary and not result.passed:
console.print(f" {escape_markup(summary)}", soft_wrap=True, highlight=False)
console.print()

@staticmethod
def _score_cell(dims: dict, dname: str) -> str:
"""Format a dimension score cell with color coding."""
Expand Down
4 changes: 4 additions & 0 deletions src/skillevaluator/reporting/console_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
grade_style,
lift_style,
)
from skillevaluator.skillspector_references import reference_summary_message
from skillevaluator.utils.rich_markup import strip_terminal_controls

if TYPE_CHECKING:
Expand Down Expand Up @@ -1183,6 +1184,9 @@ def summarize_tier1(results: list[ValidationResult], lineup: list[str] | None =
[(f"{suppressed_security} scanner {noun} suppressed outside agent control paths", MUTED)],
)
)
for r in failed:
if reference_summary := reference_summary_message((r.metadata or {}).get("skillspector_reference_summary")):
rows.append(TierRow("references", [(reference_summary, MUTED)], fit="wrap"))

quality = _quality_stats(results)
if quality:
Expand Down
3 changes: 3 additions & 0 deletions src/skillevaluator/reporting/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -1917,8 +1917,11 @@ def _create_environment() -> Environment:
reporters with different options can share it. Jinja environments are
safe to share between threads once they are configured.
"""
from skillevaluator.skillspector_references import reference_summary_message

loader = PackageLoader("skillevaluator.reporting", "templates")
environment = Environment(loader=loader, autoescape=True)
environment.filters["skillspector_reference_summary"] = reference_summary_message
environment.filters["cleanly_skipped"] = is_cleanly_skipped
environment.filters["execution_status"] = _result_display_status
environment.filters["related_paths"] = _related_paths
Expand Down
7 changes: 7 additions & 0 deletions src/skillevaluator/reporting/json_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from skillevaluator.reporting.run_status import Status, resolve_run_status, result_status
from skillevaluator.skillspector_provenance import sanitize_skillspector_provenance_metadata
from skillevaluator.skillspector_reference_caveats import sanitize_reference_caveat_metadata
from skillevaluator.skillspector_references import reference_summary_record
from skillevaluator.source_identity import recorded_evaluated_source

if TYPE_CHECKING:
Expand Down Expand Up @@ -346,6 +347,12 @@ def _result_to_dict(
if isinstance(skillspector_applicability, dict):
data["skillspector_applicability"] = skillspector_applicability

# Tier 1 SkillSpector AE1 counts: referenced artifacts it did not
# completely inspect and the reference lines that name them.
reference_summary = reference_summary_record(result.metadata.get("skillspector_reference_summary"))
if reference_summary is not None:
data["skillspector_reference_summary"] = reference_summary

qs = result.metadata.get("quality_scores")
if qs:
data["quality"] = qs
Expand Down
12 changes: 12 additions & 0 deletions src/skillevaluator/reporting/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@ def _render_result(self, result: ValidationResult, lines: list[str]) -> None:
lines.append(f"| {dname.title()} | {ddata.get('score', 0):.1f} | {ddata.get('weight', 0) * 100:.0f}% |")
lines.append("")

self._render_reference_summary(result, lines)

if result.is_incomplete:
self._render_incomplete(result, lines)
elif clean_skip:
Expand Down Expand Up @@ -658,6 +660,16 @@ def _render_findings(self, findings: list[Finding], lines: list[str]) -> None:
lines.append("</details>")
lines.append("")

@staticmethod
def _render_reference_summary(result: ValidationResult, lines: list[str]) -> None:
"""List how many referenced artifacts SkillSpector did not completely inspect in a failed result."""
from skillevaluator.skillspector_references import reference_summary_message

summary = reference_summary_message(result.metadata.get("skillspector_reference_summary"))
if summary and not result.passed:
lines.append(f"- {summary}")
lines.append("")

def _render_incomplete(self, result: ValidationResult, lines: list[str]) -> None:
"""Render missing scanner evidence without presenting a failure as a pass."""
lines.append(f"**Incomplete scanners:** {', '.join(result.incomplete_scans)}")
Expand Down
5 changes: 5 additions & 0 deletions src/skillevaluator/reporting/retained.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from skillevaluator.reporting.run_status import resolve_run_status, result_status
from skillevaluator.skillspector_provenance import sanitize_skillspector_provenance_metadata
from skillevaluator.skillspector_reference_caveats import sanitize_reference_caveat_metadata
from skillevaluator.skillspector_references import REFERENCE_SUMMARY_KEY, reference_summary_record


class RetainedReportError(ValueError):
Expand Down Expand Up @@ -274,6 +275,10 @@ def retained_results(
"scanners must map scanner names to versions",
)
metadata["scanners"] = dict(row["scanners"])
# Only the valid counts are kept; a failed result's reports show them.
reference_summary = reference_summary_record(row.get(REFERENCE_SUMMARY_KEY))
if reference_summary is not None:
metadata[REFERENCE_SUMMARY_KEY] = reference_summary
if "dependency_coverage" in row:
_require(
isinstance(row["dependency_coverage"], list)
Expand Down
4 changes: 4 additions & 0 deletions src/skillevaluator/reporting/templates/report.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,10 @@
<button class="view-toggle-btn active" id="view-skill" onclick="switchView('skill')">By {{ content_label | lower }}</button>
<button class="view-toggle-btn" id="view-validator" onclick="switchView('validator')">By check</button>
</div>
{% for result in results if not result.passed %}
{% set reference_summary = result.metadata.get('skillspector_reference_summary') | skillspector_reference_summary %}
{% if reference_summary %}<p class="reference-analysis-summary" style="font-size: 0.875rem; color: var(--text-secondary);">{{ reference_summary }}</p>{% endif %}
{% endfor %}

{# ==================== SKILL-CENTRIC VIEW ==================== #}
<div id="results-by-skill" class="results-view active">
Expand Down
Loading
Loading