Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
57f8738
Merge main into naren/fix-tier1-hook-gate-followups
rng1995 Nov 14, 2026
b5618ca
fix(tier1): keep the hook gate failure ahead of an incomplete scan un…
rng1995 Nov 14, 2026
02ab027
fix(cli): show a confirmed failure beside an incomplete scan as faile…
rng1995 Nov 14, 2026
960cbd9
fix(tier1): put the plugin member directory before AE1 reference lines
rng1995 Nov 14, 2026
b89f1d3
docs(tier1): describe the hook gate under a policy override and plugi…
rng1995 Nov 14, 2026
cfde3e3
docs(changelog): note the compact validate verdict for a failed check…
rng1995 Nov 14, 2026
dfeb232
docs(changelog): name the Tier 1 card in the compact verdict Fixed entry
rng1995 Nov 14, 2026
4ae537c
Merge main into naren/fix-tier1-hook-gate-followups
rng1995 Nov 14, 2026
5216002
revert(cli): leave the compact validate verdict to its own change
rng1995 Nov 14, 2026
4dd5a1a
revert(tier1): leave the plugin AE1 reference lines to the plugin sca…
rng1995 Nov 14, 2026
414eb27
Merge main (0d5e35658) into naren/fix-tier1-hook-gate-followups
rng1995 Nov 14, 2026
ae54219
Merge main (1ea050cc3) into naren/fix-tier1-hook-gate-followups
rng1995 Nov 15, 2026
8932c3b
fix(tier1): name the hook gate failure in the Tier 1 summary beside a…
rng1995 Nov 15, 2026
cb6d894
Merge branch 'main' into naren/fix-tier1-hook-gate-followups
rng1995 Nov 15, 2026
53c6a04
Merge branch 'naren/fix-tier1-hook-gate-followups' (cb6d894ac) into n…
rng1995 Nov 15, 2026
6cdaa3e
Merge branch 'main' into naren/fix-tier1-hook-gate-followups
rng1995 Nov 15, 2026
e121d28
Merge main (9944bfe07) into naren/fix-tier1-hook-gate-followups
rng1995 Nov 15, 2026
78a6ae0
test(tier1): pin the terminal summary for a hook gate under a policy …
chrisknvidia Nov 15, 2026
233a92e
Merge the PR branch head (78a6ae089) into naren/fix-tier1-hook-gate-f…
rng1995 Nov 16, 2026
8ccfa2c
Merge main (8b19b2fe3) into naren/fix-tier1-hook-gate-followups
rng1995 Nov 16, 2026
220e834
fix(tier1): list each gate failure of a check beside an incomplete scan
rng1995 Nov 16, 2026
4dbcd17
Merge main (597806167) into naren/fix-tier1-hook-gate-followups
rng1995 Nov 16, 2026
55feac4
Merge main (d41ec54b1) into naren/fix-tier1-hook-gate-followups
rng1995 Nov 16, 2026
026e271
Merge main (301700cd1) into naren/fix-tier1-hook-gate-followups
rng1995 Nov 16, 2026
03cf99f
Merge main (940ed6330) into naren/fix-tier1-hook-gate-followups
rng1995 Nov 16, 2026
cef383a
Merge main (186134b13) into naren/fix-tier1-hook-gate-followups
rng1995 Nov 16, 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
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -923,10 +923,14 @@ All notable changes to SkillEvaluator are documented in this file.
folder or plugin, still records the SkillSpector scan as incomplete
(`incomplete_scans` in the JSON report, and publication eligibility
`Incomplete`), with an error that names only that gap. The check itself is
reported as `FAIL`, not `INCOMPLETE`, because the Critical is a confirmed
failure. With SkillSpector v2.13.4, a hook with a `"timeout"` key also gets
reported as `FAIL`, not `INCOMPLETE`, because the Critical and its gate
failure are a confirmed failure, also when a `--policy` override lowers the
Critical. With SkillSpector v2.13.4, a hook with a `"timeout"` key also gets
a `static_parse_limit` row on the manifest, so that scan is recorded as
incomplete in the same way.
incomplete in the same way. In the terminal Tier 1 summary, "what to fix"
for a check that failed beside an incomplete scan also lists its other gate
failures, after its first one and any unresolved file reference, so it
shows the hook gate failure, not only the error for the gap.

- `validate` no longer repeats its header box in short terminal windows or
when a log warning prints mid-run. Only the tier that is still running is
Expand Down
8 changes: 5 additions & 3 deletions docs/tier1-validation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `lice

From v2.13.4, SkillSpector no longer reports such a scan as `partial`. When it inspected every bundled file and the only gaps are references to files the skill does not bundle, it reports the status `complete_with_caveats` and lists each reference as a caveat. SkillEvaluator accepts these caveats under the same conditions and shows the missing-reference warning above, and the findings of an accepted report are checked as in any other complete scan. A caveat on a path that is not a bundled file, or one that fails a condition above, such as a line that names a file left out of the scan, leaves the scan `INCOMPLETE`; as for a `partial` report, the report's findings are still checked and reported. Unlike a v2.13.3 caveat, these caveats are never accepted from the report alone, so they leave a scan without a known target `INCOMPLETE`, and an accepted report carries no `skillspector_reference_caveats` entry. SkillSpector gives this status only when every gap is a nonfatal `reference_missing` row, so a report with no caveat, or with a caveat that is not a nonfatal `reference_missing` row in phase `reference_resolution`, contradicts itself: SkillEvaluator does not trust it, and the scan is `INCOMPLETE` without its findings. The same holds for `complete_with_caveats` from a release before v2.13.4.

SkillSpector v2.12.0 and later cannot model what an ordinary command or HTTP hook, such as one that runs `echo hi` or a bundled script, does with its hook input. The exception is a hook that SkillSpector recognizes as sending hook content to a remote host, which it reports as **BH2**; a manifest whose command and HTTP hooks are all of that kind counts as modeled. For other hooks it discovers in manifests such as `hooks/hooks.json` and `.claude/settings.json`, SkillSpector reports a **BH1** finding whose evidence says the payload is `unmodeled`, records a nonfatal `partial` `opaque_content` row from `bundled_execution_surface` on the manifest, and reports the analysis as `partial` although the scan finished. This rule applies only to manifests SkillSpector actually reports with that evidence and ledger row; it does not establish coverage for inline plugin-manifest hooks or other hook locations the scanner does not report. The scan's findings cannot show that such hooks are safe: a hook script that sends its input over a socket, `nc` or `/dev/tcp` gets no blocking SkillSpector finding. SkillEvaluator therefore reports the manifest as the Critical `skillspector_hook_payload_unverified`, with a gate failure that neither a `--policy` severity override nor `--llm-verify` clears, instead of `INCOMPLETE` (see [Troubleshooting](#troubleshooting)). This applies when the row is a whole-file row that names only `bundled_execution_surface` and no error class, on a manifest whose BH1 says `unmodeled` (also when a baseline suppresses that BH1), and the report accounts for it exactly: one such row per manifest, `bundled_execution_surface` degraded by exactly those rows with nothing failed or skipped, its `Analyzer bundled_execution_surface status: degraded.` limitation, and one partially inspected file for each manifest that no other row names. The rest of the report is then judged on its own: it is complete when it shows no other gap, and missing references and referenced images can still be accepted with their warnings as described above. The v2.13.3 missing-reference caveat that is accepted from the report alone does not apply, because that check reads the whole report, hook row included. Any other gap still records the SkillSpector scan as incomplete (`incomplete_scans` in the JSON report, and publication eligibility **Incomplete**), with an error that names the other rows, or the other gaps when no other row remains. The check itself is then reported as `FAIL`, not `INCOMPLETE`, because the Critical is a confirmed failure, which takes precedence over missing evidence (see [Reading the final status](/skills/skillevaluator/reports#reading-the-final-status)). A row that does not fit, such as one for a manifest in which SkillSpector parsed no hook (no `unmodeled` BH1), or a report that does not account for it, leaves the whole scan `INCOMPLETE` as before.
SkillSpector v2.12.0 and later cannot model what an ordinary command or HTTP hook, such as one that runs `echo hi` or a bundled script, does with its hook input. The exception is a hook that SkillSpector recognizes as sending hook content to a remote host, which it reports as **BH2**; a manifest whose command and HTTP hooks are all of that kind counts as modeled. For other hooks it discovers in manifests such as `hooks/hooks.json` and `.claude/settings.json`, SkillSpector reports a **BH1** finding whose evidence says the payload is `unmodeled`, records a nonfatal `partial` `opaque_content` row from `bundled_execution_surface` on the manifest, and reports the analysis as `partial` although the scan finished. This rule applies only to manifests SkillSpector actually reports with that evidence and ledger row; it does not establish coverage for inline plugin-manifest hooks or other hook locations the scanner does not report. The scan's findings cannot show that such hooks are safe: a hook script that sends its input over a socket, `nc` or `/dev/tcp` gets no blocking SkillSpector finding. SkillEvaluator therefore reports the manifest as the Critical `skillspector_hook_payload_unverified`, with a gate failure that neither a `--policy` severity override nor `--llm-verify` clears, instead of `INCOMPLETE` (see [Troubleshooting](#troubleshooting)). This applies when the row is a whole-file row that names only `bundled_execution_surface` and no error class, on a manifest whose BH1 says `unmodeled` (also when a baseline suppresses that BH1), and the report accounts for it exactly: one such row per manifest, `bundled_execution_surface` degraded by exactly those rows with nothing failed or skipped, its `Analyzer bundled_execution_surface status: degraded.` limitation, and one partially inspected file for each manifest that no other row names. The rest of the report is then judged on its own: it is complete when it shows no other gap, and missing references and referenced images can still be accepted with their warnings as described above. The v2.13.3 missing-reference caveat that is accepted from the report alone does not apply, because that check reads the whole report, hook row included. Any other gap still records the SkillSpector scan as incomplete (`incomplete_scans` in the JSON report, and publication eligibility **Incomplete**), with an error that names the other rows, or the other gaps when no other row remains. The check itself is then reported as `FAIL`, not `INCOMPLETE`, because the Critical and its gate failure are a confirmed failure, which takes precedence over missing evidence, also when a `--policy` override lowers the Critical (see [Reading the final status](/skills/skillevaluator/reports#reading-the-final-status)). A row that does not fit, such as one for a manifest in which SkillSpector parsed no hook (no `unmodeled` BH1), or a report that does not account for it, leaves the whole scan `INCOMPLETE` as before.

SkillSpector records the same row when it could not parse part of the manifest or read only its first 2,048 hook, permission and settings records. How much of that SkillEvaluator can see depends on the release:

Expand Down Expand Up @@ -868,7 +868,8 @@ Tier 1 checks always gate the exit code inside `validate`. Tier 2 gates when it
the manifest and every file its hooks run. SkillEvaluator has no way to
record that review: removing the hooks is the only way to pass the check.
A `--policy` severity override can lower the finding's severity, but the
gate failure keeps the check failed. `--llm-verify` does not send the
gate failure keeps the check failed, also when another gap records the
scan as incomplete. `--llm-verify` does not send the
finding to the verifier, so it keeps its severity and gets no verdict. The
finding's metadata records the manifest's SHA-256 (`manifest_sha256`) and
SkillSpector's row for it.
Expand All @@ -888,7 +889,8 @@ Tier 1 checks always gate the exit code inside `validate`. Tier 2 gates when it
scan of such a manifest is also recorded as incomplete (`incomplete_scans`
in the JSON report, and publication eligibility **Incomplete**), with an
error that names only that row. The check itself is still reported as
`FAIL` because of the Critical. v2.13.3 does not record the row.
`FAIL` because of the Critical and its gate failure. v2.13.3 does not
record the row.
</Accordion>
<Accordion title="SkillSpector times out">
Each SkillSpector run (the static stage, and the LLM stage with `--llm`)
Expand Down
4 changes: 4 additions & 0 deletions src/skillevaluator/models/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,10 @@ def merge_with_prefix(self, other: ValidationResult, prefix: str) -> None:
gate_failures = [*self.gate_failures, *(f"[{prefix}] {message}" for message in other.gate_failures)]
if gate_failures:
self.metadata["gate_failures"] = gate_failures
# A member's confirmed failure outranks an incomplete scan in the
# merged result's reported status, as it does in the member's own.
if other.metadata.get("confirmed_failure") is True:
self.metadata["confirmed_failure"] = True
if scanners := {**self.scanners, **other.scanners}:
self.metadata["scanners"] = scanners
# Keep each skill's unparsed files, prefixed like errors and findings so
Expand Down
16 changes: 14 additions & 2 deletions src/skillevaluator/reporting/console_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,7 @@ def summarize_tier1(results: list[ValidationResult], lineup: list[str] | None =
)
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)]:
items.append(_setup_fix(setup))
if llm := [r for r in incomplete if _only_llm_stages_missing(r)]:
Expand Down Expand Up @@ -1299,6 +1300,17 @@ def _unresolved_reference_fixes(result: ValidationResult) -> list[FixItem]:
return []


def _later_gate_fixes(result: ValidationResult) -> list[FixItem]:
"""One item for each gate failure after the first of a check that failed beside an incomplete scan.

The check's own item names only its first gate failure, which is often the error for the gap. Listing
the others keeps a failure that outranks the gap, such as the hook gate, from being hidden behind it.
"""
if not result.is_incomplete:
return []
return [_tier1_fix(result, gate) for gate in list(dict.fromkeys(result.gate_failures))[1:]]


def _tier1_fixes(result: ValidationResult) -> list[FixItem]:
"""One item per distinct critical/high finding, so a check that failed on several shows each one."""
serious = [
Expand All @@ -1316,8 +1328,8 @@ def _tier1_fixes(result: ValidationResult) -> list[FixItem]:
return items


def _tier1_fix(result: ValidationResult) -> FixItem:
problem = _first_error(result) or f"{result.validator_name} failed"
def _tier1_fix(result: ValidationResult, problem: str = "") -> FixItem:
problem = problem or _first_error(result) or f"{result.validator_name} failed"
action = next((f.suggestion for f in result.findings if f.message == problem and f.suggestion), None)
if action is None and not result.gate_failures:
action = first_fix([result])
Expand Down
5 changes: 5 additions & 0 deletions src/skillevaluator/validators/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -5217,6 +5217,11 @@ def _report_unverified_hooks(
result.fail_gate(
f"{manifest}: SkillSpector could not model these hooks; this check cannot pass while they are present"
)
# The gate is a confirmed failure, so it outranks another gap that
# records the scan as incomplete, also when a --policy override
# lowers the Critical. Other gate failures, such as the residual
# incomplete-analysis error, do not set this.
result.metadata["confirmed_failure"] = True
manifests.append(manifest)
return manifests

Expand Down
20 changes: 20 additions & 0 deletions tests/reporting/test_shared_run_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,26 @@ def test_confirmed_legacy_failure_survives_separate_missing_evidence():
assert status.of(result) == Status.FAILED


def test_confirmed_failure_survives_a_folder_merge():
"""A folder keeps a member's confirmed failure; a member's gate failure alone stays missing evidence."""
confirmed = ValidationResult(validator_name="Security Scan")
confirmed.fail_gate("hooks/hooks.json: these hooks cannot pass this check")
confirmed.metadata["confirmed_failure"] = True
confirmed.mark_scan_incomplete("scanner")
incomplete = ValidationResult(validator_name="Security Scan")
incomplete.fail_gate("scanner reports incomplete analysis")
incomplete.mark_scan_incomplete("scanner")

for members, expected in (((confirmed, incomplete), Status.FAILED), ((incomplete,), Status.INCOMPLETE)):
folder = ValidationResult(validator_name="Security Scan")
for index, member in enumerate(members):
folder.merge_with_prefix(member, f"skill-{index}")
status = resolve_run_status([folder])
assert status.of(folder) == expected
assert status.headline == expected
assert status.missing == ("scanner",)


def test_missing_scanner_process_error_alone_remains_incomplete():
result = ValidationResult(validator_name="Scanner")
result.add_error("The scanner produced no trustworthy report")
Expand Down
Loading
Loading