Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b924523
Merge main into naren/fix-tier1-skillspector-reference-followups
rng1995 Nov 14, 2026
681f2f0
fix(tier1): keep the missing-reference line check and its warning acc…
rng1995 Nov 14, 2026
bb9c8ee
fix(tier1): read no short name in a word part that holds whitespace
rng1995 Nov 14, 2026
a0edf67
docs(changelog): wrap the missing-reference entry like the others
rng1995 Nov 14, 2026
4e90cf3
fix(tier1): read a word joined at quotes as a shell reads it
rng1995 Nov 14, 2026
9de3a5d
Merge main into naren/fix-tier1-skillspector-reference-followups
rng1995 Nov 14, 2026
1892bab
fix(tier1): keep a stale-baseline error out of a passing --llm-verify…
rng1995 Nov 14, 2026
405b3cf
fix(tier1): read a label word joined at a quoted space as a shell word
rng1995 Nov 14, 2026
a115309
fix(tier1): read a $ before whitespace as a literal $
rng1995 Nov 14, 2026
f32fbf6
fix(tier1): keep why a scan is INCOMPLETE after a policy severity ove…
rng1995 Nov 14, 2026
e68963d
Merge main (33b382feb) into naren/fix-tier1-skillspector-reference-fo…
rng1995 Nov 14, 2026
a1e9bdd
fix(tier1): keep %02 to %05 from changing how a reference line reads
rng1995 Nov 14, 2026
b7c2578
docs(changelog): name the lines the missing-reference check now keeps…
rng1995 Nov 14, 2026
38a619f
test(tier1): write private-use characters in the reference tests as e…
rng1995 Nov 14, 2026
cea09ef
Merge main (0d5e35658) into naren/fix-tier1-skillspector-reference-fo…
rng1995 Nov 14, 2026
de66d22
Merge main (1ea050cc3) into naren/fix-tier1-skillspector-reference-fo…
rng1995 Nov 15, 2026
796c58e
fix(tier1): drop the quoted-name reading from the missing-reference c…
rng1995 Nov 15, 2026
697c15d
fix(tier1): share one rebuild for --llm-verify downgrades and overrides
rng1995 Nov 15, 2026
3ee4644
docs(tier1): list the missing-reference word readings one family a line
rng1995 Nov 15, 2026
1b16abb
Merge main (9944bfe07) into naren/fix-tier1-skillspector-reference-fo…
rng1995 Nov 15, 2026
31ab51d
docs(tier1): split the reference-word bullet into one item per shell …
chrisknvidia Nov 15, 2026
4eb3671
refactor(tier1): share the rebuild that keeps errors and warnings no …
chrisknvidia Nov 15, 2026
2a9366d
Merge the PR branch head (4eb367136) into naren/fix-tier1-skillspecto…
rng1995 Nov 16, 2026
017aa0d
Merge main (8b19b2fe3) into naren/fix-tier1-skillspector-reference-fo…
rng1995 Nov 16, 2026
d19ea87
Merge main (597806167) into naren/fix-tier1-skillspector-reference-fo…
rng1995 Nov 16, 2026
a8460fb
fix(security): decide the quoted-split check once per reference line
rng1995 Nov 16, 2026
af5b713
Merge main (301700cd1) into naren/fix-tier1-skillspector-reference-fo…
rng1995 Nov 16, 2026
49967db
docs: word the quoted-split rule as the missing-reference check appli…
rng1995 Nov 16, 2026
3d66bd4
Merge the PR branch head (af5b71396) into naren/fix-tier1-skillspecto…
rng1995 Nov 16, 2026
c7a8839
Merge main (940ed6330) into naren/fix-tier1-skillspector-reference-fo…
rng1995 Nov 16, 2026
f5c925b
Merge main (186134b13) into naren/fix-tier1-skillspector-reference-fo…
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
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,21 @@ All notable changes to SkillEvaluator are documented in this file.
received a `workflow-rules.mdc` file itself; it now receives the workflow
folder, as it already did for a `SKILL.md`. With `--no-dedup`, this also holds
when the file is a symlink to a file with another name.
- The Tier 1 SkillSpector missing-reference check no longer reads a bold or
italic label such as `**Note:**`, `*Tip:*` or `**Step 1:**`, or a `$` shell
prompt such as `$ python run.py`, as a wildcard for every file left out of
the scan, which kept such a line `INCOMPLETE` whenever anything, even `.git`,
was left out. A wildcard elsewhere in the line, or a label inside code, still
counts. So do such a label and `$` on a line with a space or shell delimiter
between two of the same quote or after a backslash, as written or decoded,
such as `setup' 'helper.sh` or `setup\ h*.sh`, where a shell may join words
that the check reads apart. With `validate --workers` above 1, a skill of a
folder that is also a plugin is judged against the folder, as with one
worker, so a line naming a file elsewhere in the folder keeps it
`INCOMPLETE`. An `--llm-verify` downgrade no longer drops the accepted
missing-reference warning, or the error that says why a scan is
`INCOMPLETE`. A severity override from `--policy` or `--profile` no longer
drops that error either.

## 0.9.0 - 2026-11-13

Expand Down
23 changes: 18 additions & 5 deletions docs/tier1-validation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ Precedence, highest to lowest: `--policy` overlay, `--profile` flag, `SKILLEVALU

Severity overrides change how findings gate a run; they do not change the
quality score or waive its `--min-score` requirement. Even an override of
`QUALITY.*: info` leaves a below-minimum quality score failing.
`QUALITY.*: info` leaves a below-minimum quality score failing. Nor do they
complete an `INCOMPLETE` scan, whose report keeps the error that says why.
</Accordion>

<Accordion title="Permit reviewed ownership contacts without allowing other email addresses">
Expand Down Expand Up @@ -322,13 +323,25 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `lice
- It is a nonfatal `reference_resolution` row for one line of a file that the report lists once as a component and that is a regular, single-link file of at most 1,000,000 bytes inside the skill, not reached through a symlink.
- The report's complete `references` list records a `missing` reference on that line and quotes part of the line. Every `missing` entry must have an accepted ledger row at the same source path and line; an `ambiguous` entry anywhere, a truncation marker, or an unknown completeness field leaves the scan `INCOMPLETE`.
- The line, at most 10,000 characters long, names nothing in the skill that SkillSpector did not inspect: a symlink, a file the report does not list, a directory that holds no listed file, such as `versions/`, `node_modules/` or `evals/results/`, which SkillEvaluator leaves out of the scanned copy, anything inside such a directory, or a directory that holds any of these, even beside listed files. A `.git` directory counts by its own name, by its Git hooks other than `*.sample` templates, and by every other entry in it that is not part of Git's own layout, such as a script placed there, with everything inside that entry. Git's own files, such as `HEAD`, `config`, `index`, `packed-refs` or `ORIG_HEAD`, and what its `objects`, `refs`, `logs` and `info` directories hold, such as branch names, do not count. Names are compared without regard to case or Unicode normalization, in the line as written and as a Markdown renderer or a reader of file paths may read it: with backslash escapes of ASCII punctuation (such as `node\_modules`) removed, HTML character references (such as `&#118;`) resolved and percent-escapes decoded, up to three of these steps in any order. A skill with more than 50,000 files and directories, or nested more than 64 directories deep, is not checked, and its scan stays `INCOMPLETE`. The work of checking a report's lines is also bounded: when it would take longer, such as for many long lines beside thousands of files left out of the scan, the scan stays `INCOMPLETE`.
- A word in the line that a shell, cmd.exe, PowerShell or Windows would expand or unquote is read as a pattern, and none of those names may match it. In the pattern, quotes and escapes are removed, a group such as `(v)` stands for what it holds, also right after `]` as in `[v](e)rsions`, each expansion, set of alternatives, extended glob or numeric range may stand for any text, and each bracket expression for any one character. The word is read the way POSIX shells read globs, brace and parameter expansions, `$(...)` and quotes (`v*/*.sh`, `vers?ons`, `v[e]rsions`, `v{e,x}rsions`, `$DIR/run.sh`, `ver""sions`); the way zsh reads groups (`(v)ersions`, `(v|x)ersions`), numeric ranges (`run<1-9>.sh`), the `EXTENDED_GLOB` operators `^`, `#` and `~` (`ver^x`, `verr#sions`, and `v*~x`, read as `v*`), where `x#` as a whole part, such as `C#`, matches only names made of `x`, and globbing flags such as `(#a2)` or `(#c1)`, which make the whole word stand for any text (`(#a2)virsions/x`); the way bash and ksh read extended globs (`@(v)ersions`, `!(x)`); the way cmd.exe reads the `^` escape (`ver^sions`), variables (`%DIR%`, `!DIR!`) and batch parameters (`%1`, `%~dp0`); the way PowerShell reads backtick escapes; with `\` as a directory separator (`v*\i*.sh`); and with a Windows short (8.3) name or a Samba mangled name, a path part with text after a `~` such as `NODE_M~1/BOOTST~1.SH`, standing for any name that holds the part's first character, such as any name with an `n` for `NODE_M~1`. So `3~5` is read as written, as `3`, and as any name with a `3`. A span between backticks is read as Markdown code, as written and with its backticks removed, not as a command, so a plural written as `` `topic`s `` is read as `topics`. Only a leading Markdown `* ` list marker is ignored; a standalone shell wildcard elsewhere, such as `bash *`, still counts. Prose with this syntax is read the same way: a price such as `$5`, a list such as `{a,b}`, `%APPDATA%` or a lone `^` stands for any text, so a line with one stays `INCOMPLETE` whenever anything is left out of the scan, and `approx~10` stays `INCOMPLETE` when a name left out holds an `a`.
- The check reads names that are written in the reported line, in the spellings above. It does not read other lines and does not run commands, so it does not detect a name on another line, such as `DIR=node_modules` set on one line and used as `sh $DIR/run.sh` on the next, or a name that a command prints or builds, such as `printf` output in backticks, a list piped into `xargs sh`, `find -exec`, or a PowerShell string joined with `+`. It is meant to keep an instruction that names a left-out file `INCOMPLETE`, not to catch a skill written to hide one. Without this check, such a skill passes whenever SkillSpector reports no missing reference in it; with it, the skill also passes when every line SkillSpector reports is another missing reference, such as `output/notes.md`. SkillSpector's own analyzers, not this check, assess the instructions it scanned.
- A word in the line that a shell, cmd.exe, PowerShell or Windows would expand or unquote is read as a pattern, and none of those names may match it. In the pattern, quotes and escapes are removed, a group such as `(v)` stands for what it holds, also right after `]` as in `[v](e)rsions`, each expansion, set of alternatives, extended glob or numeric range may stand for any text, and each bracket expression for any one character. The word is read as follows:
- The way POSIX shells read globs, brace and parameter expansions, `$(...)` and quotes (`v*/*.sh`, `vers?ons`, `v[e]rsions`, `v{e,x}rsions`, `$DIR/run.sh`, `ver""sions`).
- The way zsh reads groups (`(v)ersions`, `(v|x)ersions`), numeric ranges (`run<1-9>.sh`), the `EXTENDED_GLOB` operators `^`, `#` and `~` (`ver^x`, `verr#sions`, and `v*~x`, read as `v*`), where `x#` as a whole part, such as `C#`, matches only names made of `x`, and globbing flags such as `(#a2)` or `(#c1)`, which make the whole word stand for any text (`(#a2)virsions/x`).
- The way bash and ksh read extended globs (`@(v)ersions`, `!(x)`).
- The way cmd.exe reads the `^` escape (`ver^sions`), variables (`%DIR%`, `!DIR!`) and batch parameters (`%1`, `%~dp0`).
- The way PowerShell reads backtick escapes.
- With `\` as a directory separator (`v*\i*.sh`).
- With a Windows short (8.3) name or a Samba mangled name, a path part with text after a `~` such as `NODE_M~1/BOOTST~1.SH`, standing for any name that holds the part's first character, such as any name with an `n` for `NODE_M~1`. So `3~5` is read as written, as `3`, and as any name with a `3`.
- A span between backticks is read as Markdown code, as written and with its backticks removed, not as a command, so a plural written as `` `topic`s `` is read as `topics`. A leading Markdown `* ` list marker is ignored.
- A `$` before a space or the end of the line is read as a literal `$`, as a shell reads it, not as an expansion, so a shell prompt `$ python run.py` adds no pattern, and `sh *a$` matches only names that end in `a$`.
- A bold or italic label outside code, such as `**Note:**`, `*Tip:*` or `**Step 1:**`, is read as its text, and each of its words, with its `*`, as a pattern that is not split at `:`, `=` or `,`. So as a pattern, `**Note:**` matches only names that hold `note:`, and `**Step 1:**` only names that end in `step` or start with `1:`. A standalone shell wildcard elsewhere, such as `bash *`, still counts, and so does a label inside code.
- On a line with a space or shell delimiter between two of the same quote or after a backslash, as written or decoded as above, such as `setup' 'helper.sh`, `"hi there"` or `setup\ h*.sh`, a `$` before a space and a label are read like any other word, so they still stand for any text: a shell may join words there, which the check does not. A PowerShell backtick before a space does not count, as a backtick also ends Markdown code, so ``$ sh setup` h*.ps1`` does not name `setup helper.ps1`.
- Prose with this syntax is read the same way: a price such as `$5`, a list such as `{a,b}`, `%APPDATA%` or a lone `^` stands for any text, so a line with one stays `INCOMPLETE` whenever anything is left out of the scan, and `approx~10` stays `INCOMPLETE` when a name left out holds an `a`.
- The check reads names that are written in the reported line, in the spellings above. It does not read other lines and does not run commands, so it does not detect a name on another line, such as `DIR=node_modules` set on one line and used as `sh $DIR/run.sh` on the next, or a name that a command prints or builds, such as `printf` output in backticks, a list piped into `xargs sh`, `find -exec`, or a PowerShell string joined with `+`. Nor does it join words at a quoted or escaped space as a shell does, so `setup' 'helper.sh` or `setup\ h*.sh` does not name `setup helper.sh`. It is meant to keep an instruction that names a left-out file `INCOMPLETE`, not to catch a skill written to hide one. Without this check, such a skill passes whenever SkillSpector reports no missing reference in it; with it, the skill also passes when every line SkillSpector reports is another missing reference, such as `output/notes.md`. SkillSpector's own analyzers, not this check, assess the instructions it scanned.
- When the target is a single file, such as `skillevaluator security-scan path/to/SKILL.md`, SkillSpector scans that file alone, so every other file and directory beside it counts as not inspected. A line in it that names a file beside it, such as `scripts/install.sh`, keeps the scan `INCOMPLETE`.
- Tier 3 output in its default location, `<skill>/evals/results`, is left out of the scanned copy too, so it counts as not inspected. The rest of `evals/`, such as `evals/evals.json` and input fixtures in `evals/files`, is scanned. After a Tier 3 run, a line that names `results`, a file the run leaves there, such as `report.html` or `summary.json`, or, when the run used `--harbor-keep-jobs`, any bundled file (the kept Harbor tasks hold a copy of the skill) keeps the scan `INCOMPLETE`, although the same line passed before the run. Writing Tier 3 results outside the skill, with `--results-dir` or `SKILLEVALUATOR_RESULTS_DIR`, keeps a run from changing the result.
- The scan covers the whole target. When the target is a folder or a plugin that holds skills, such as `skillevaluator security-scan path/to/skills/`, `skillevaluator validate path/to/skills/` (which checks each skill as its own job) or `validate` on a plugin, each skill in it is scanned on its own, and a line may name a file elsewhere in the target that the skill's scan did not inspect, so those skills' missing references keep their scans `INCOMPLETE`.
- The scan covers the whole target. When the target is a folder or a plugin that holds skills, such as `skillevaluator security-scan path/to/skills/`, `skillevaluator validate path/to/skills/` (which checks each skill as its own job) or `validate` on a plugin, each skill in it is scanned on its own, and a line may name a file elsewhere in the target that the skill's scan did not inspect, so those skills' missing references keep their scans `INCOMPLETE`, also when a skill in a folder is a plugin of its own.

Every nonfatal scope exclusion must name an actual uninspected entry under the target. Accepted missing-reference warnings remain visible after the static and LLM stages deduplicate their findings. Any other gap must be a referenced image that SkillEvaluator accepts as described above, and the scan then carries both warnings. Without such images, the report must also show no partially or entirely uninspected file, no limitation and no fatal scope exclusion, and every analyzer must have completed or be not applicable or disabled. In either case the report must count as many findings after filtering as before it, and a `missing` reference without an accepted ledger row, an `ambiguous` reference or a truncation marker leaves the scan `INCOMPLETE` even when a referenced image is its only listed gap. The warning names the file and line of up to three of the references; it does not quote the referenced path. Files not in the scan, including any outside the scanned path, are not inspected.
Every nonfatal scope exclusion must name an actual uninspected entry under the target. Accepted missing-reference warnings remain visible after the static and LLM stages deduplicate their findings, and after `--llm-verify` downgrades a finding. Any other gap must be a referenced image that SkillEvaluator accepts as described above, and the scan then carries both warnings. Without such images, the report must also show no partially or entirely uninspected file, no limitation and no fatal scope exclusion, and every analyzer must have completed or be not applicable or disabled. In either case the report must count as many findings after filtering as before it, and a `missing` reference without an accepted ledger row, an `ambiguous` reference or a truncation marker leaves the scan `INCOMPLETE` even when a referenced image is its only listed gap. The warning names the file and line of up to three of the references; it does not quote the referenced path. Files not in the scan, including any outside the scanned path, are not inspected.

SkillSpector v2.12.0 to v2.13.3 report these references as `reference_missing`, and v2.10 and v2.11 as `reference_unresolved`, which SkillEvaluator accepts under the same conditions. A v2.13.3 report whose only gaps are such references is also accepted from the report alone as a missing-reference caveat: an INFO finding that keeps SkillSpector's `partial` status and is recorded as `skillspector_reference_caveats` in the JSON report. It replaces the warning above, and whenever the scan has a known target, as through `validate`, `tier1` or `security-scan`, it is accepted only when the conditions above hold too. A reference that matches several bundled files (`reference_unresolved` from v2.12.0, `ambiguous` in the `references` list before it) still leaves the scan `INCOMPLETE`.

Expand Down
38 changes: 38 additions & 0 deletions src/skillevaluator/models/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,44 @@ def recalculate_from_findings(self) -> None:
self.warnings.append(legacy_msg)
self.summary.warnings += 1

def recalculate_keeping_independent(
self,
errors: list[str],
warnings: list[str],
*,
keep_all_errors: bool = False,
keep_repeated_warnings: bool = False,
) -> None:
"""Rebuild from findings, then put back the errors and warnings that no finding repeats.

:meth:`recalculate_from_findings` drops every error and warning that no
finding repeats. Pass what :meth:`independent_errors` and
:meth:`independent_warnings` returned *before* the finding severities
changed, because a line that a finding repeats names its old severity.

Warnings that no finding repeats, such as why a scanner did not
complete, always go back, each once. Errors that no finding repeats go
back only for an incomplete scan, which fails anyway and whose errors
say why. Any other such error, such as the note on a stale SkillSpector
baseline, may explain a blocker that the change has just lowered.

Args:
errors: Independent errors read before the change.
warnings: Independent warnings read before the change.
keep_all_errors: Put every error back, for a change that lowers
nothing, such as dropping a repeated finding.
keep_repeated_warnings: Put a warning back as often as it was
recorded, not once.
"""
self.recalculate_from_findings()
if keep_all_errors or self.is_incomplete:
for error in errors:
if error not in self.errors:
self.add_error(error)
for warning in warnings:
if keep_repeated_warnings or warning not in self.warnings:
self.add_warning(warning)

def _finding_legacy_lines(self) -> set[str]:
"""Return the legacy error and warning lines that only repeat a structured finding."""
represented = {finding.to_legacy_string() for finding in self.findings}
Expand Down
13 changes: 8 additions & 5 deletions src/skillevaluator/validators/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ def apply_policy(
if policy is None:
return results
for result in results:
independent_errors: list[str] = []
independent_warnings: list[str] | None = None
for finding in result.findings:
current = (
Expand All @@ -391,14 +392,16 @@ def apply_policy(
if new_severity != current:
if independent_warnings is None:
# Read before any change: a mirrored line names the old severity.
independent_errors = result.independent_errors()
independent_warnings = result.independent_warnings()
finding.severity = new_severity
if independent_warnings is not None:
result.recalculate_from_findings()
# Rebuilding from findings drops every warning. Keep those no
# finding mirrors, such as why a scanner did not complete.
for warning in independent_warnings:
result.add_warning(warning)
# Rebuilding from findings drops every error and warning that no finding
# mirrors, such as why a scanner did not complete. An error that explains
# blockers the policy has just lowered stays only for an incomplete scan.
result.recalculate_keeping_independent(
independent_errors, independent_warnings, keep_repeated_warnings=True
)
if isinstance(result.metadata, dict):
result.metadata["policy"] = policy.to_dict()
return results
Loading
Loading