Repository navigation
fix(tier1): accept SkillSpector partial reports whose gaps are missing references - #457
Conversation
…issing references SkillSpector marks the analysis partial when the skill's instructions name a file the skill does not bundle, such as a file it writes at run time, although every bundled file is still inspected. The Tier 1 security scan then stopped as INCOMPLETE. Accept such a report with a warning when every ledger row is a nonfatal reference_resolution row: reference_missing on any version, or, before SkillSpector 2.12.0, reference_unresolved whose line the report's references list records as missing. Each row must name exactly one listed component that is a regular, single-link file under the scanned root, reached without following a link. The report must also have no partially or entirely uninspected file, no filtered finding, no limitation, no fatal scope exclusion, and universal analyzers that completed every component. A reference that matches several bundled files stays INCOMPLETE. The path check, row predicate and warning text are module-level helpers so later SkillSpector report rules can reuse them. Tests use real offline SkillSpector 2.11.2, 2.12.0 and 2.13.3 reports. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
… left out of the scan SkillEvaluator scans a copy of the skill without artifact directories such as evals/, versions/ and node_modules/, and SkillSpector leaves links out of its inventory. A reference to a script there is reported as missing, so the missing-reference rule turned an INCOMPLETE scan into a pass although the script was never inspected. A missing-reference row is now accepted only when: - the report's references list records a missing reference on the row's line, for every SkillSpector version, and that entry's evidence matches the line read from the scanned file; - that line names no entry of the skill that SkillSpector did not inspect: a link, a file the report does not list, or the outermost directory that holds no listed file, and every file inside such a directory. Names are compared case-folded, as written and in NFC, with Markdown escapes removed and with percent-escapes decoded, and must not adjoin another name character. The walk does not follow links and stops at 50,000 entries. A single-file scan root is now read through SecureRoot too, so it must be a single-link file of at most 1,000,000 bytes. A lone SKILL.md is scanned this way, and SkillSpector 2.13.3 reports every reference in it as missing. The warning now says that every file SkillSpector scanned was inspected and that those lines name no file left out of the scan. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
A skill whose SKILL.md shows an image and names a file it writes at run time got both gaps in one partial SkillSpector report, and stayed INCOMPLETE because each rule required its gap to be the only one. _skillspector_missing_reference_notes now separates the reference rows. They pass the same checks as before; the other rows must be referenced images that _skillspector_passive_raster_note accepts, which accounts for the counts, analyzers and limitations. The scan then carries both warnings. A report with images only still goes to the image rule alone. The new fixture is a real SkillSpector 2.13.3 --no-llm report of such a skill. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d why The docs and CHANGELOG said that every bundled file is inspected and that the warning quotes the references. SkillEvaluator leaves artifact directories out of the scanned copy, and the warning names only the file and line, so both now say what is checked: the references list, the line, and the files and directories left out of the scan. They also say that missing references may come with accepted referenced images, that the rule covers SkillSpector v2.10 to v2.13.3, and that v2.13.4 and later report these scans as complete_with_caveats, which is not accepted yet. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nned files Follow-ups to accepting SkillSpector missing references: - A single-file scan root, such as `security-scan path/to/SKILL.md`, now counts every entry beside the file as not inspected, because SkillSpector scans that file alone. Before, a line that named a script beside it passed. - A directory that holds an uninspected entry (an unlisted file, a link or a left-out subtree) is named too, even when it also holds listed files. - A left-out `.git` directory counts by its own name and its hooks other than `*.sample` templates, so `config`, `HEAD` or branch names no longer keep a scan INCOMPLETE. - When the validator's `skillspector_reference_root` is not the scanned root, as for a skill scanned inside a plugin, a missing reference is never accepted, because the line may name a file elsewhere in that artifact. - Tests for each case, and a unit test that patches `stat_is_link_or_reparse` so the reparse-point branch is covered on every OS. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
… missing references - A lone file is scanned on its own, so a line that names a file beside it keeps the scan INCOMPLETE. - A skill scanned on its own inside a plugin keeps its missing references INCOMPLETE. - Only `.git` itself and its active hooks count as names inside `.git`, and a directory that holds a left-out entry counts too. - No finding may be filtered out, for example by `--skillspector-baseline`. - When one check covers several skills, such as `security-scan` on a folder, a passing skill is listed without its warnings. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er scan `security-scan` on a folder, and `validate` or `tier1` on a folder without a configured reference root, scan each skill found in it on its own. A line in such a skill may name a file elsewhere in the folder, such as a plugin's `scripts/install.sh`, that the skill's scan never inspects, yet the missing-reference rule accepted it because the reference root was unset. While a target that is a directory but not a skill is walked, use it as the reference root, so those skills' missing references keep the scan INCOMPLETE as on main. A skill directory, a lone file and a folder with no skill (scanned as a whole) are unchanged. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cter reference resolved The check that a missing reference's line names no file left out of the scan removed only the escapes SkillSpector strips itself (`\\`, `\(`, `\)`, `\<`, `\>`). A Markdown renderer also resolves a backslash escape of any ASCII punctuation and HTML character references, so `[the setup script](node\_modules/run\_all.sh)` or `[the setup script](versions/install.sh)` named a left-out file and still passed. Also read the line with backslash escapes of all ASCII punctuation removed, HTML character references resolved and percent-escapes decoded, up to three of these steps in any order, so either line keeps the scan INCOMPLETE. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ges and for a lone file The warning said "every file SkillSpector scanned was inspected", which is not true when an accepted referenced image is the other gap: the next warning says SkillSpector's text analyzers could not read it. It also said "Files outside the skill were not scanned", although for a lone SKILL.md the files beside it inside the skill are not scanned either. Say instead that SkillSpector reported no other gap for these references, and that files not in the scan, including any outside the scanned path, were not inspected. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ditions The docs and CHANGELOG said that a scan in which `--skillspector-baseline` suppresses a finding stays INCOMPLETE. SkillSpector 2.10.0 to 2.13.3 count findings after filtering as every finding up to the report cap, so a baseline does not change `findings_before_filtering` or `findings_after_filtering`; such a scan passes with the missing-reference warning and the baseline's suppression note. State the actual condition, that the two counts match. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nces accepted A folder that holds no skill is scanned as one target, so it is its own reference root and the folder-scan rule leaves its accepted missing references unchanged. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…scan The folder rule set a reference root only while a folder was walked, so a scan run outside validate() or validate_security_only(), such as a direct per-directory _run_skillspector() call on one partition of a larger tree, still had no root and accepted missing references that main keeps INCOMPLETE. Record the resolved target for every walk instead, and accept missing references only when the reference root (the configured skillspector_reference_root, or else that target) is the scanned directory. A skill directory, a lone file and a folder with no skill are their own target; a skill found inside a folder is not; a scan with no known target accepts none. _skillspector_missing_reference_notes now requires reference_root. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…erence-root docstring The `skillspector_reference_root` docstring describes its default for finding scoping, the scanned directory. The missing-reference rule uses a different default, the whole target of validate() or validate_security_only(); say so next to it. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…date catalog `validate` on a folder of skills runs each skill as its own job, either in process or as a `validate <skill>` child process with --workers above 1. Each job's security scan saw the skill directory as its whole target, so a SkillSpector missing reference in it was accepted, although its line may name a file elsewhere in the folder that the skill's scan never inspected. `security-scan` on the same folder keeps it INCOMPLETE. Pass the folder to each job through a hidden `--catalog-root` option, set by the in-process path and by the child argv. `run_validation` hands it to SecurityValidator as a new `target_root`, which replaces the walk target as the root that missing references are judged against. Finding scoping (`skillspector_reference_root`) is unchanged. The docs no longer say that `tier1` takes a plugin; it takes one skill. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s as patterns A missing reference was accepted when its line named no left-out file by its literal name. SkillSpector keeps `*`, `?`, `[...]` and quotes in a Markdown link destination and reports it as `reference_missing`, so a line such as "run [the setup script](v*/*.sh)", `vers?ons/inst?ll.sh`, `ver""sions/inst""all.sh` or `v[e]rsions/i[n]stall.sh` passed although a shell would open the `versions/install.sh` that the staged scan left out. Read each word with shell syntax as a shell would: brace and parameter expansions stand for any text, quotes and backslashes are removed, and each path part is an fnmatch pattern that no left-out name may match. A word made only of `*`, such as a list marker, is skipped. The docs said the decodings apply "in any combination"; they apply up to three steps in any order, and now also name the shell patterns. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each missing reference's line is checked in up to 40 decoded forms, and every left-out name that is not a plain name run is searched for in each. A skill with tens of thousands of such names left out of the scan and long lines of escapes beside its missing references could keep a scan busy for minutes, where main returns INCOMPLETE at once. Charge the work to one budget per report: decoding a line, every search of a decoded line for such a name, and compiling and matching each shell pattern. A line that would overdraw it is not accepted, so the scan stays INCOMPLETE. Plain name runs are now matched through one lookup per run of the line instead of one test per name, and a line with no left-out names is accepted without decoding it. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d expansions
fnmatch.translate scans ahead for the `]` of every `[`, so a word of a
few thousand `[` took over a second to translate, and the budget charged
a pattern by count, not length. Nested brace and parameter expansions
such as `v{e{r,x},y}sions` or `${X:-${Y:-v}}ersions` were left partly
literal, and splitting parts at `:` broke `[[:alpha:]]`, which Python's
fnmatch does not support anyway.
Translate globs with a linear scanner of our own. A bracket expression
matches any one character and a stray `]` any text, so the matcher
accepts every name the shell would and possibly more, and a pattern
with more fixed characters than the longest left-out name is skipped.
The regex keeps one backtracking `*` at most, as fnmatch does. Replace
everything from the first `${` or brace expansion to its last `}` with
`*`, split parts at `/` and also at `=`, `:` and `,`, and charge each
pattern by its length. Decoding a line now costs 3,000 per character.
Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…surface golden The catalog fix added a hidden `--catalog-root` option to `validate`, which each per-skill job of a folder run receives. Regenerate the golden CLI surface with tests/golden/generate_cli_surface.py; the only change is that option. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Open PR #394 appends keyword arguments to `run_validation` and to its call in `validate`. Put `target_root` beside `content_type` in both places instead, so the two changes touch different lines. Behaviour is unchanged. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reference-line check skips a word made only of `*`, such as a Markdown list marker, when it reads shell patterns. Say so next to the pattern rule. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sing references The `_validate_with_applicability` docstring said that a scan run outside the walk accepts no missing reference. That holds only without a configured `skillspector_reference_root`: a direct `_run_skillspector` call whose reference root is the scanned root accepts them, because that scan covers the whole root. Say so, and pin both cases with a test. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…does not inherit Open PR #394 adds eight entries to the `not_forwarded` dict of `test_catalog_child_argv_forwards_every_validate_option`, directly after `"output_dir"`, where this branch added `"catalog_root"`. The two insertions touched the same place, so merging both conflicted. List `catalog_root` first instead, so unchanged lines separate the two hunks. The test is unchanged otherwise. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ount as not inspected By default Tier 3 writes its results to `<skill>/evals/results`, which the scanned copy leaves out like the rest of `evals/`. After one run, a line that names `results`, a file the run leaves there such as `report.html` or `summary.json`, or, with `--harbor-keep-jobs`, any bundled file (the kept Harbor tasks copy the skill) keeps the scan INCOMPLETE, although the same line passed before the run. An input fixture in `evals/files` counts the same way. The rule stays as it is, because an author can create these directories by hand. Say so in the missing-reference conditions and in the CHANGELOG entry, and name `--results-dir` and `SKILLEVALUATOR_RESULTS_DIR` as the way to keep a run from changing the result. Pin the behaviour with a test that scans the same skill before and after a generated run tree, for a line naming `results/summary.md`, `report.html`, a bundled script copied by a kept Harbor job, and an `evals/files` fixture. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The new test for a direct scan with a configured reference root had one line over the length limit. Wrap it as `ruff format` does, so the file has no format hunk that `main` does not have. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Unreleased > Fixed The entry was appended at the end of Unreleased > Fixed, where current GitHub main and ten open pull requests also add their entries, so each of those merges conflicted in CHANGELOG.md. Every slot between the section's entries is used by at least one open pull request; the slot before the Measured Agent Resources entry is shared with only one (#423). Move the entry there. The text is unchanged. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s in reference lines
A missing reference was accepted when its line reached a file left out of
the scan through syntax that the pattern reading did not know. Each of these
passed with the warning that the line names no file left out of the scan,
while the same line written as $DIR/$RUN or v{e,x}rsions stayed INCOMPLETE:
- zsh groups, such as (v)ersions/(i)nstall.sh or (v|x)ersions;
- cmd.exe ^ escapes, such as ver^sions/inst^all.sh;
- cmd.exe variables, such as %DIR%/%RUN%;
- Windows 8.3 short names, such as NODE_M~1/BOOTST~1.SH.
The line is now also read with its shell groups and numeric ranges, with
and without its backticks, and with each backtick span that joins a word as
a command's output. Each word is read twice: as a POSIX shell reads it, and
as cmd.exe or PowerShell read it (^ and quotes removed, %VAR%, !VAR!, %1
and %~dp0 as any text, \ as a directory separator). zsh EXTENDED_GLOB ^
and # are read outside bracket expressions, and a path part with ~ after its
first character stands for any name. The work charged for decoding a line
rises from 3,000 to 9,000 units per character, so the slowest lines still
take no longer per budget than before.
Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Inside a left-out .git directory only .git itself and active hooks counted as names, so a skill holding .git/install.sh passed with a line that says "find and run `install.sh`", while the same file in versions/ kept the scan INCOMPLETE. An agent that searches the tree finds either one. Only Git's own layout is now ignored: HEAD, config, description, index, packed-refs, the *_HEAD and other state files, their lock files, and the objects, refs, logs, info and similar directories with what they hold. Any other entry of .git counts with everything inside it, and hooks other than *.sample templates still count. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
… without a Tier 3 run The missing-reference entry grouped input fixtures in evals/files with Tier 3 output and said a line naming one keeps the scan INCOMPLETE after a run, although it passed before. A line naming a fixture is INCOMPLETE as soon as the fixture exists. The sentence is now split: Tier 3 output turns a passing line INCOMPLETE after a run, and a named fixture keeps it INCOMPLETE whenever the fixture exists. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The new paragraph on shell readings said that each group may stand for any text. Only a group with alternatives, an extended glob, a numeric range or a command does; a group such as (v) is read as what it holds, and quotes and escapes are removed. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main and this branch both changed CHANGELOG.md, docs/tier1-validation.mdx, src/skillevaluator/cli.py, tests/golden/cli_surface.json and tests/test_commands.py; git merged all five without conflicts. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
One file conflicted: src/skillevaluator/validators/security.py. - The docstring of _validate_skillspector_report: main describes its new 2.13.3 reference-caveat rule (reference_caveat_metadata) and this branch describes _skillspector_missing_reference_notes, the raster-image note and reference_root. The resolved docstring lists all three gaps and keeps main's wording that each stays a visible warning. - The partial-analysis branch (elif not complete_by_applicability): main defers its accepted reference caveat to an INFO finding added after the inventory, finding and risk checks, and otherwise adds the raster-image note. This branch runs _skillspector_missing_reference_notes first and falls back to the raster-image note. The resolution keeps both: a report that main's rule accepts takes main's path (no warning here, the INFO finding and skillspector_reference_caveats metadata later); otherwise this branch's notes, or the image note, become warnings; anything else keeps the incomplete-analysis error. CHANGELOG.md, docs/tier1-validation.mdx and tests/validators/test_security.py merged without conflict. Follow-up commits adapt this branch to main's new reference-caveat rule and to main now scanning authored evals/ files. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-reference conditions Main (7ae25d2) now accepts a SkillSpector 2.13.3 report whose only gaps are reference_missing rows as a reference caveat (reference_caveat_metadata): an INFO finding with skillspector_reference_caveats metadata that keeps the scanner's partial status. That rule reads only the report. So, after the merge, a 2.13.3 report passed when its line names a file left out of the scanned copy (versions/install.sh, node_modules/, a .git hook) or when the skill was scanned inside a larger folder or plugin, which this branch keeps INCOMPLETE. In the partial-analysis branch, when the scan's reference root is known, a caveat that reference_caveat_metadata accepts now also has to pass _skillspector_missing_reference_notes; otherwise the scan keeps the incomplete-analysis error. Without a reference root, such as a direct _run_skillspector call outside validate, reference_caveat_metadata alone decides, as on main, so its tests, which call _validate_skillspector_report without a reference root, are unchanged. When both accept a report, it carries main's caveat finding, not this branch's warning. Tests: - The 2.13.3 cases that pass (the notes writer, the LLM stage, a lone SKILL.md, prose beside fixtures, .git layout names, a folder with no skill, each skill on its own after its folder or plugin scan) now expect the caveat warning; 2.11.2, 2.12.0 and the image case keep this branch's warning. - test_scan_outside_a_validated_target_stays_incomplete uses the 2.12.0 report for the rule here, and checks that a 2.13.3 report in the same direct call passes as a caveat. - New test_reference_caveats_meet_the_same_conditions: the staged versions/install.sh report passes reference_caveat_metadata on its own and stays INCOMPLETE through validate_security_only, both when the script is left out and when the reference root is a folder above. Docs and CHANGELOG say which rule a 2.13.3 report takes and that the conditions apply to it whenever the scan has a known target. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main (7ae25d2) now keeps authored evals/ and .evals/ files in the SkillSpector scan and leaves out only generated output below them, such as evals/results. So evals/ is no longer a directory left out of the scanned copy, and input fixtures in evals/files are scanned. - The left-out-directory case for evals/install.sh moves to evals/results/install.sh, which the scan still leaves out; a skill with only evals/install.sh is no longer staged. - The input-fixture case of the Tier 3 output test is dropped: a fixture in evals/files is now in the scan, so a line that names it is no longer a reference to a file left out. The three Tier 3 output cases stay. - docs/tier1-validation.mdx and the CHANGELOG entry no longer name evals/ as left out, and no longer say that a line naming an input fixture stays INCOMPLETE; the docs say that the rest of evals/ is scanned. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ence rule The skillspector_reference_root and _validate_with_applicability docstrings said a scan without a known reference root accepts no missing reference. Since main 7ae25d2, reference_caveat_metadata still accepts a 2.13.3 report whose only gaps are missing references when no reference root is known, such as in the per-partition scans of tier1/plugin_checks.py. Say that the rule these docstrings describe is _skillspector_missing_reference_notes and that such a report passes as its caveat. No change in behavior. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The input-fixture case left this test when main 7ae25d2 started scanning authored evals/ files, so it now covers only Tier 3 output in the skill. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…reference tests Since 7ae25d2 the scan keeps authored evals/ files, so evals/ is not a directory left out of the scanned copy. Two tests still used evals/ files as left out. They passed only because the mocked 2.13.3 report was captured without those files, so they counted as unlisted files. - test_missing_reference_with_a_referenced_image[line-names-a-left-out-file] adds evals/results/notes.md instead of evals/notes.md. - test_directories_left_out_that_the_line_does_not_name_are_ignored keeps evals/results/run-1/ and .git as its left-out directories, in place of evals/evals.json and evals/files/input.csv. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Review found a standalone-glob gap in missing-reference coverage; fixing and adding regression coverage.
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Reviewed the full production diff, scanner/report trust checks, filesystem containment and omitted-file coverage, caller reference roots, and regression cases. Fixed the inline standalone-wildcard fail-open finding in b7a333b, with validator-level unlisted-helper cases and Markdown bullet controls (3 expected failures before the fix, 236 missing-reference tests passing after it under locked dependencies). Full src/tests Ruff lint passes. Current main ce52a09 merged without conflicts; signed-off fix pushed normally. The inherited fix is being propagated through dependent PRs #458→#459→#460. No remaining actionable finding; this PR remains open and unmerged.
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Resolved the actual CHANGELOG conflict from main 487910e while retaining the wildcard guard and every upstream entry. All 236 missing-reference contracts pass; full src/tests Ruff lint and Fern check pass (0 errors/1 existing warning). The PR was still open and the latest-main merge check was clean before the signed-off normal push. Updated actual-base merge checks for #458/#459/#460 are clean, so their finished/in-progress CI heads were preserved.
…for missing references (#458) * fix(tier1): accept SkillSpector 2.13.4 complete_with_caveats reports for missing references SkillSpector 2.13.4 reports a scan whose only gaps are missing references as complete_with_caveats instead of partial. The security check rejected that status as not recognized, so a skill naming a file it does not bundle was INCOMPLETE with 2.13.4 or later on PATH. Recognize the status from 2.13.4 on. Accept its caveats only when every one is a reference_missing row and they pass the missing-reference rule already applied to partial reports, then show the same warning. Anything else keeps the scan INCOMPLETE with an error naming up to three caveats. The report stays complete, so a LOW report must still say SAFE and its findings are checked as usual. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(tier1): describe how complete_with_caveats reports are checked Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier1): keep the findings of a caveats report whose caveats are rejected A complete_with_caveats report whose missing-reference caveats fail the rule for a partial report's missing references, for example because the scan does not cover its whole target, now marks the scan INCOMPLETE and keeps checking the report, as the partial branch does. Its findings stay in the result. Before, the report was dropped, so a skill with High findings in a folder target showed none of them with SkillSpector 2.13.4 while 2.13.3 showed all of them. A caveats report with no caveat, or with a caveat that is not a reference_missing row in reference_resolution, contradicts SkillSpector's own rule for the status. It is still not trusted, and its error now names the rows of another kind. The LOW-to-CAUTION recommendation check reads whether the result was incomplete on entry, so a rejected LOW caveats report, which SkillSpector keeps SAFE, is not also rejected for its recommendation. The near-miss tests now assert the exact error of each case. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier1): add the caveat warning only after the rest of the report passes The warning for accepted complete_with_caveats caveats says they do not mark the scan incomplete. It was added before the recommendation, issue, exit-code and components checks, so a report that one of those rejected showed INCOMPLETE beside that warning. The warning is now added just before the report is accepted. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(tier1): make the caveat path near misses reach the bundled-file rules The absolute, escaping, backslash, control-character, unlisted and directory near misses changed only the ledger row's path. The `missing` entry in `references` stayed on SKILL.md, so the reference check rejected each row before the path rules ran, and disabling those rules left every case green. Each path case now moves the `missing` reference with its row and, where the case needs it, the `components` entry. Where the platform allows it, the file the path would name without the rules holds the reference's line, and the absolute case uses `/SKILL.md`, which names SKILL.md once split at "/". A spy asserts that `_skillspector_bundled_file_bytes` refuses the row's path in every path and file case. Disabling the backslash, safe-text, path-part or listed-once rule now fails the backslash, control-character, absolute or unlisted case. SecureRoot also refuses the escaping and directory paths. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(tier1): pin that only complete keeps its status after transitive truncation A complete_with_caveats report with `is_complete: false` and a "Transitive traversal truncated: ..." limitation must fail the status marker check: SkillSpector rewrites a truncated caveats report to partial, so only `complete` may keep its status. No test held this; letting the exception also cover complete_with_caveats sent such a report to the partial branch, which kept its findings, and every test stayed green. The new near miss expects "has contradictory status markers" and fails under that change. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(changelog): name the phase of a trusted complete_with_caveats caveat The entry said a report is not trusted when it has a caveat that is not a nonfatal `reference_missing` row. A nonfatal `reference_missing` row in another phase is also not trusted: the code drops the report with "reports caveats other than missing references", and the docs require phase `reference_resolution`. The entry now says so. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(tier1): keep 2.13.4 caveats blocking for each skill of a validate catalog The stacked branch now judges each skill of a `validate <folder>` run against the folder. The caveat check reuses its missing-reference rule and reference root, so pin that a complete_with_caveats report for such a skill stays INCOMPLETE with the caveat error and no warning, with one and two workers, and that the same skill validated on its own passes. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(tier1): pin that a missing reference outside reference_resolution drops the caveats report A complete_with_caveats report whose reference_missing row is in another phase contradicts its status, so it must be untrusted and lose its findings, not only become INCOMPLETE. The only wrong-phase near miss used a report without findings, so checking the reason code alone kept those tests green. Parametrize the findings-dropped test with the instruction-override report's row moved to phase static. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * style(tests): keep the contradicting-caveats test within the line limit Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(tier1): set 2.13.4 caveats apart from the 2.13.3 reference caveat Main (7ae25d2) accepts a fully inspected SkillSpector 2.13.3 partial report whose only gaps are missing references as a reference caveat (reference_caveat_metadata): an INFO finding with skillspector_reference_caveats metadata, decided from the report alone when the scan has no known target. The paragraph and CHANGELOG entry before this branch's now describe that caveat, so "shows the same warning" no longer said which one a complete_with_caveats report gets. That rule reads only partial reports, so it never takes a complete_with_caveats report. Such a report is accepted only by _skillspector_reference_caveat_notes, which needs the scan's reference root to be its scanned root, and it carries the missing-reference warning. - docs/tier1-validation.mdx and the CHANGELOG entry say the caveats show the missing-reference warning, are never accepted from the report alone, so they leave a scan without a known target INCOMPLETE, and add no skillspector_reference_caveats entry. - New test_caveats_are_not_a_2_13_3_reference_caveat: in a direct scan without a reference root, the notes writer's 2.13.3 report passes as main's caveat and its 2.13.4 report stays INCOMPLETE; through validate_security_only the 2.13.4 report passes with the missing-reference warning and has neither the caveat finding nor its metadata. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(tier1): say which warning 2.13.4 caveats get in the report docstring The _validate_skillspector_report docstring now lists main's 2.13.3 reference-caveat rule (reference_caveat_metadata) beside the missing-reference notes, so "the same warning" for complete_with_caveats reports no longer named one. Name the warning of _skillspector_missing_reference_notes, and say that reference_caveat_metadata reads only partial reports, so it never accepts these caveats, even without a reference root. No change in behavior. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(changelog): name the missing-reference warning for 2.13.4 caveats The Unreleased > Fixed entry for complete_with_caveats said the caveats get "the same warning". The entry above it now also describes main's v2.13.3 reference-caveat INFO finding, so name the warning: the missing-reference warning, as docs/tier1-validation.mdx does. No change in behavior. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(changelog): rewrap the 2.13.4 caveats entry The previous commit left one 97-character line in the Unreleased > Fixed entry for complete_with_caveats. Rewrap the rest of the entry to 78 columns like its neighbours. Same words. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Signed-off-by: Narendran Raghavan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Current-head integration review: adopted the externally merged #458 head, preserving SkillSpector 2.13.4 complete_with_caveats support and the reviewed standalone-wildcard guard. Reconciled the actual CHANGELOG-only conflict with main b38b71b, preserving both sides and placing the full #457 and merged #458 entries after their separate stable anchors. Verification on this head: 238 missing-reference tests and 50 complete-with-caveats tests passed; Ruff src/tests passed; Fern check found 0 errors (1 existing warning). Fresh pre-push open/head/base/main and clean merge-tree guards passed. No PR merge performed.
chrisknvidia
left a comment
There was a problem hiding this comment.
LGTM. I checked that the new acceptance path stays fail-closed. _skillspector_missing_reference_notes returns None, so the scan stays INCOMPLETE, unless every reference_resolution row is a nonfatal single-line reference_missing row backed by a missing (never ambiguous) references entry. On top of that, the reference root must equal the scanned root, there must be no fatal scope exclusion, all counts and universal analyzers must check out, the source must be a single bundled regular file read through SecureRoot, the tree walk must stay within the entry and depth bounds, and each line must avoid every uninspected name within the match budget. The #453 caveat path now also requires these checks when the reference root is known, and the LOW to CAUTION recommendation check uses the state from before this scan. 1,456 tests pass and ruff check is clean. The only format diffs are the ones main already has.
chrisknvidia
left a comment
There was a problem hiding this comment.
I read all the src changes line by line (the new missing-reference helpers, the _validate_skillspector_report changes for both partial and complete_with_caveats, and the cli and tier1 plumbing for --catalog-root and target_root), ran tests/validators/test_security.py on this head (1297 pass), and probed the rule with the captured 2.11.2, 2.12.0, 2.13.3 and 2.13.4 reports plus edited copies.
What held up: a missing-reference scan inside a folder or plugin target stays INCOMPLETE; a direct scan with no reference root stays INCOMPLETE on 2.12.0 and 2.13.4; a symlink, an unlisted file or a left-out directory named on the line blocks acceptance; complete_with_caveats from before 2.13.4, with a non-reference row, with a fatal scope exclusion, with unequal finding counts, or with an ambiguous entry on the line stays INCOMPLETE; baselines cannot change the finding counts the rule requires to be equal; and a fuzz run of the line matcher found no exceptions and no missed plain names. The new tests use real captures and exercise the validator, so they are not vacuous.
One thing needs to change before merge. The line check only runs for ledger rows. A missing entry in references with no ledger row, or a report that says its ledger or references list was truncated, is accepted without anyone reading the line it points at. I reproduced both on 2.12.0, 2.13.3 and 2.13.4 with a second SKILL.md line that runs a script in versions/; they pass with the warning, and main before this PR (517b839) returns INCOMPLETE for all of them, and main today (cf325c8) still passes them. Please reject any truthy *_truncated key in analysis_completeness, and require every missing entry in references to match an accepted ledger row on the same path and line (and no ambiguous entry anywhere), with tests. That check does not reject any of the captured fixtures.
The rest is not blocking: 2.13.3 reports with nonfatal scope exclusions or unknown extra keys now pass where #453 returned INCOMPLETE, a backslash-escaped space hides a name, the INCOMPLETE message gives no reason, the PR description is stale about 2.13.4 and about 53 KB long, and one CHANGELOG bullet is stray. I'd also consider a much simpler matcher in a follow-up, since most shell syntax in prose already collapses to a match-everything pattern.
I saw that this merged while I was reading it, so the change in the second paragraph is best done as a follow-up PR against main.
Looked at this from the tests, docs, golden-file and CI side, on the head 4dfefb3 (it was merged as 81b2f30 while I was reading, so these are follow-ups, not merge blockers).
Tests: I ran tests/validators/test_security.py on the head (1297 passed on macOS) and then broke the code one piece at a time to see whether the tests notice. Dropping the extra gate on the 2.13.3 reference caveat fails 56 tests; not marking rejected 2.13.4 caveats incomplete fails 23; dropping the caveat warning fails 9; accepting complete_with_caveats before 2.13.4 fails 1; removing the reference_root == scanned_root rule fails 17; removing the target_root pass-through in validate fails the folder tests for both --workers 1 and 2, and dropping only the --catalog-root argv forwarding fails the --workers 2 ones. The folder tests really run the child argv through the CLI, so the new hidden option is covered.
Docs and golden: tests/golden/cli_surface.json has the hidden --catalog-root entry and matches the generated surface. test_commands lists it as not forwarded from ctx.params, which is right because it is forwarded explicitly. The docs conditions (50,000 entries and 64 levels, single-file root, .git layout, complete_with_caveats handling, 'never accepted from the report alone') match the code. The only drift is in the PR description: it still says 2.13.4 complete_with_caveats is not recognized and that the docs say so.
One real gap: with --llm, the new warning disappears whenever both stages report the same finding, because _deduplicate_skillspector_findings rebuilds the result and clears warnings. Verified with 2.11.2, 2.12.0 and 2.13.4; the pinned 2.13.3 keeps its INFO caveat finding. No current test covers --llm with a finding. Details in the inline comments.
Nit: stray unwrapped CHANGELOG bullet about standalone wildcards. Windows is not exercised by CI for this module.
|
Post-merge follow-up: #483 addresses the ledger/reference coverage bypass, unknown completeness fields and unmatched scope exclusions, escaped-space matching, rejected-reference guidance, the stray CHANGELOG bullet, and acceptance warnings lost during finding deduplication. It adds real duplicate-finding stage-merge cases and retains the captured 2.11.2–2.13.3 partial and 2.13.4 complete_with_caveats passing controls. Full verification: 1,341 passed, 1 skipped; Ruff and Fern passed; independent source review and 30 regression cases passed. Each inline point has a specific reply linking the fix. The closed PR's historical description is preserved; this comment and #483 give the concise current scope. I retained the existing bounded matcher rather than replacing its shell grammar in this corrective patch: the reported cases now have focused regressions, while a simpler matcher would change the accepted-report contract and needs a separate design review. #483 records the follow-up's current CI and merge state. |
…urate (#564) * fix(tier1): keep the missing-reference line check and its warning accurate Follow-up to #457. The missing-reference line check split each shell word at `=`, `:` and `,`, so the closing `**` of a bold label such as `**Note:**` or `**Step 1:**`, or the `*` of `*Tip:*`, became a piece of its own that matched every name left out of the scan, and a lone `$` in a shell prompt such as `$ python run.py` was read as a parameter expansion. Such a line stayed INCOMPLETE whenever anything, even .git, was left out. A bold or italic label outside code is now read as its text, and as a glob that is not split at its `:`, and a `$` before whitespace or the end of the line is read as written. A wildcard elsewhere, or a label inside code, still counts. Words were split at whitespace before quotes were removed, so `setup' 'helper.sh`, `setup" "helper.sh` or `setup\ h*.sh` never named the left-out file `setup helper.sh`. Words are now also read as a POSIX shell splits them. The line-check budget charges the extra reading. With `validate --workers` above 1, a catalog child detects a skill that holds .claude-plugin/plugin.json as a plugin, and the plugin root took precedence over --catalog-root when missing references were judged, so the skill passed where one worker kept it INCOMPLETE. The catalog root now comes first; finding scoping still uses the plugin root. An --llm-verify downgrade rebuilt the result from its findings and dropped every warning and error that no finding repeats: the accepted missing-reference warning, and the error that says why a scan is INCOMPLETE. They are now kept, as the deduplication of static and LLM findings already does. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier1): read no short name in a word part that holds whitespace The missing-reference line check also reads a word as a POSIX shell splits it, so an apostrophe or quotes in prose can join several words into one path part, such as "It's ~5 lines; don't" or "roughly ~200 words". A part with text after a ~ was then also read as a Windows short or Samba mangled name standing for any name that holds its first character, so such a line stayed INCOMPLETE whenever a left-out name, such as .git or results, held that letter. Those names never hold whitespace, so a part that does is no longer read as one. Real short names such as NODE_M~1 still come from the whitespace-split words. The docs and the docstring now say that each word of a bold or italic label is its own pattern, so **Step 1:** stands for names that end in step or start with 1:, not only for names that hold the label's text. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(changelog): wrap the missing-reference entry like the others Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier1): read a word joined at quotes as a shell reads it Follow-up to #457. The missing-reference line check also reads each word as a POSIX shell splits it, so that a quoted or escaped space keeps it one word. Such a word can join prose at its quotes, and it was then read like a word without spaces. Brace expansion from its first `{` to its last `}` turned quoted JSON or a template, such as '{"a": 1, "b": 2}' or "{name}, {score}", into `*`, and a cmd.exe variable spanned its spaces, so "%s %s" stood for every name that ends in `s`. Such a line stayed INCOMPLETE when .git, evals or node_modules was left out, although splitting at whitespace alone passed it. A quoted `{`, `,` or `.` in a word that holds a quoted space or delimiter now forms no brace expansion, as in a shell, and a cmd.exe variable is read only between spaces. Unquoted braces still expand, so setup{' ',}helper.sh names `setup helper.sh`. An apostrophe in prose, as in "Don't", paired with the quote of a later command, so `setup' 'helper.sh` after it was not read as one word. The words are now also split with each apostrophe between two letters removed. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier1): keep a stale-baseline error out of a passing --llm-verify result A downgrade restored every error that no finding repeats. One of them is the note that SkillSpector baseline fingerprints were ignored, which the scan adds only while blocking findings remain. Once the last blocker was downgraded, that note turned a passing scan into a failed one. Errors are now restored only when the scan is incomplete, where they say why. Warnings that no finding repeats, such as the accepted missing-reference warning, are still kept. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier1): read a label word joined at a quoted space as a shell word A bold or italic label was split only at whitespace. So in *a' 'b c:* the words *a' and 'b were read apart, and the glob a shell reads, *a b, was never formed. A line that names a left-out file through such a label passed. Each label is now also split as a POSIX shell splits it, as the rest of the line already is. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier1): read a $ before whitespace as a literal $ The missing-reference line check deleted each $ before whitespace or the end of the line, so that a shell prompt such as `$ python run.py` was not read as a wildcard. In a word with other shell syntax that also dropped a character the shell keeps: `sh *a$` was read as `*a`, so a left-out file named `xa$` was no longer named, although a shell glob matches it. Read that $ as a literal $ instead. It is swapped for a stand-in while the words of the line are split and read, and each pattern reads the stand-in as $ again, so `*a$` matches names that end in `a$` and a lone prompt $ still adds no pattern. A $ after another $ still ends the parameter $$, and a line that already holds the stand-in reads such a $ as an expansion. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier1): keep why a scan is INCOMPLETE after a policy severity override A severity override from --policy or --profile rebuilds the result from its findings, which dropped every error that no finding repeats. A skill in a folder whose SkillSpector 2.13.4 missing-reference caveats are not accepted then stayed INCOMPLETE with no error that says why. The rebuild now keeps those errors when the scan is incomplete, as an --llm-verify downgrade does. On a complete scan they are dropped, as before. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier1): keep %02 to %05 from changing how a reference line reads The missing-reference line check read a quoted `{`, `,` or `.` in a word joined at quotes, and a `$` before whitespace, through fixed control characters, the same ones that `%02` to `%05` decode to. A line holding one, such as `printf '{"h": "%02d", "m": "%02d"}' 3 4` or `$ printf '%05d' 7 > output/notes.md`, then read its quoted JSON as a brace expansion or its `$` prompt as an expansion, and stayed INCOMPLETE whenever anything was left out of the scan. The stand-ins are now the first private-use characters that the text being read does not hold: the word for the quoted braces, and every reading of the line for the `$`. Should none be left, the line is read as before, with quoted braces and such a `$` expanding. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(changelog): name the lines the missing-reference check now keeps INCOMPLETE Compact JSON outside shell quotes with a space in a quoted value, such as `{"title":"My note","tags":[]}`, is now read as one shell word, so it stands for any text and keeps the scan INCOMPLETE whenever anything is left out, and `["a b","c"]` stands for any one-character name. The work charged per character of a line has also doubled, so the line check reaches its bound with about half as many long lines. Say so in the entry, which listed only the lines that now pass. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(tier1): write private-use characters in the reference tests as escapes The stand-in tests held private-use characters (U+E000 to U+E003) as raw text, so some cases printed the same as their neighbours or looked empty. Write each one as its backslash-u escape in the same string literal. The tested values do not change. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier1): drop the quoted-name reading from the missing-reference check The missing-reference line check no longer reads a word as a POSIX shell splits it. `setup' 'helper.sh`, `setup" "helper.sh` and `setup\ h*.sh` are again split at whitespace, as on main, so they do not name `setup helper.sh`. The rules that existed only for that reading go with it: the second reading with each apostrophe between two letters removed, quoted `{`, `,` and `.` that form no brace expansion, cmd.exe variables read only between spaces, no short-name reading for a part that holds whitespace, and the doubled work charged per character of a line, which is 9,000 again. The literal `$` keeps its private-use stand-in, so the allocator now returns a single code point. Without that reading, a bold or italic label read as its text, or a `$` before whitespace read as written, would let some lines pass that main keeps INCOMPLETE: `*a' 'b c:*` is a glob that a shell joins at its quoted space, and `"a$ b*"` a word that continues past its `$`, and on main the label's closing `*` and that `$` stood for any text. A line with a space or shell delimiter between two of the same quote or after a backslash (_SKILLSPECTOR_QUOTED_SPLIT_RE) now keeps that reading of its labels and `$`, so it is read no more narrowly than on main. The label and `$` reading still applies to every other line, such as `**What's new:**`, `**Say "hi":**` or `$ printf '%05d' 7`. The docs and the CHANGELOG entry say so, and the docs now name the quoted or escaped space as something the check does not read. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier1): share one rebuild for --llm-verify downgrades and overrides The --llm-verify downgrade and a --policy or --profile severity override each rebuilt a result from its findings and then put back the errors and warnings that no finding repeats, by rules copied into each place. Both now call ValidationResult.recalculate_keeping_independent: every such warning is put back, and such an error only when the scan is incomplete, once, so a gate failure that the rebuild already lists is not repeated. A severity override behaves as before. After an --llm-verify downgrade, a warning that the result held twice is now listed twice, as it is without --llm-verify and after an override; it used to be listed once. The deduplication of SkillSpector findings keeps its own rule, which also keeps such errors on a complete scan, since it changes no severity. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(tier1): list the missing-reference word readings one family a line The bullet that says how the missing-reference check reads a word as a pattern held every shell, Windows and Markdown rule in one paragraph. Split it into sub-bullets: POSIX shells, zsh, bash and ksh, cmd.exe, PowerShell, Windows separators and short names, Markdown code spans, list markers and labels, shell prompts, lines with a quoted or escaped space, and wildcards and prose. The rules and examples are unchanged. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(tier1): split the reference-word bullet into one item per shell family The bullet that explains how a word in a reference line is read as a pattern had grown to about 3,900 characters on one line. Split it into one sub-bullet each for POSIX shells, zsh, bash and ksh, cmd.exe, PowerShell, the directory separator, short names, quoted and escaped spaces, Markdown code, the `$` prompt, labels and prose. The rules are unchanged; only the cmd.exe variable sentence now says which kind of word it applies to, since it moved away from the sentence it referred to. Signed-off-by: Christopher Kevin <[email protected]> * refactor(tier1): share the rebuild that keeps errors and warnings no finding repeats The LLM downgrade, the finding deduplication and the policy override each rebuilt a result from its findings and then put back, by hand, the errors and warnings that no finding repeats, each with slightly different rules. Add ValidationResult.recalculate_keeping_independent and call it from all three. Behavior is unchanged. The differences between the three are now named options: the deduplication keeps every error (keep_all_errors), the other two only for an incomplete scan, and the policy path still puts a repeated warning back as often as it was recorded (keep_repeated_warnings). Tests cover the helper and pin each call site's rule. Signed-off-by: Christopher Kevin <[email protected]> * fix(security): decide the quoted-split check once per reference line The missing-reference line check reads a line as written and decoded. A bold or italic label and a $ before a space are read narrowly only on a line without a quoted or escaped space or delimiter, but that was decided for each decoded text on its own. Removing Markdown escapes such as `\#` and `\ ` and then resolving an HTML reference could show a $ or a label in a text that no longer held the escaped space, while the text with the escaped space held neither. Such a line, like `Run &\#36; sh setup\ h*.sh now.`, passed with `setup helper.sh` left out, though a shell may read it as naming that file. Decide it once for all texts of the line, so a quoted or escaped split in any of them keeps labels and $ as globs and expansions in every one. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: word the quoted-split rule as the missing-reference check applies it The CHANGELOG said a label and a $ keep their meaning on a line with a quoted or escaped space. The check looks for a space or shell delimiter between two of the same quote or after a backslash, in the line as written or decoded, and that also covers quotes that a shell pairs otherwise, as in `"a" and "b"`. Say so in both places. A PowerShell backtick before a space does not count, as a backtick also ends Markdown code, so the line $ sh setup` h*.ps1 does not name `setup helper.ps1`. Note that in the docs, and reword a comment in the line-check table. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Signed-off-by: Narendran Raghavan <[email protected]> Signed-off-by: Christopher Kevin <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Christopher Kevin <[email protected]>
Summary
The closed plugin-evaluation PR #28 carried a version of this fix inside its larger change; this PR lands the generic part on its own.
A skill whose instructions name a file that SkillSpector did not scan, such as
output/notes.mdthat it writes at run time or a source file elsewhere in the repository, fails the Tier 1 security scan asINCOMPLETEwithskillspector JSON field 'analysis_completeness' reports incomplete analysis (status 'partial'). SkillSpector inspects every file it scanned and records the reference as a nonfatalreference_resolutionledger row.src/skillevaluator/validators/security.py: in theelif not complete_by_applicability:branch, a new_skillspector_missing_reference_notesruns before the existing raster-image note. When it accepts the report, the scan passes with this warning, which names the file and line of up to three rows:SkillSpector reported 1 reference(s) to files the skill does not bundle (SKILL.md:10 [reference_resolution; reference_missing]); SkillSpector reported no other gap for them, and those lines name no file left out of the scan, so they do not mark the scan incomplete. Files not in the scan, including any outside the scanned path, were not inspectedmain7ae25d2 (fix(ci): apply reviewed baselines and preserve scan completeness evidence #453) also accepts a SkillSpector 2.13.3 report whose only gaps arereference_missingrows, from the report alone (reference_caveat_metadata), as an INFO caveat finding withskillspector_reference_caveatsmetadata that keeps the scanner'spartialstatus. In the same branch, when the scan's reference root is known, that caveat now stands only when_skillspector_missing_reference_notesalso accepts the report; otherwise the scan keeps the incomplete-analysis error. Without a reference root, such as a direct_run_skillspectorcall outsidevalidate, fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's rule alone decides, as onmain. When both rules accept a report, it carries fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat finding instead of the warning above.fatal: false,outcome: partial, phasereference_resolution, with no analyzers, noerror_class, andend_lineequal tostart_line;reference_missing, orreference_unresolvedbefore SkillSpector 2.12.0;analysis_completeness.referenceslist has amissingentry on that line and noambiguousone, and eachmissingentry'sevidenceis part of the line, read from the file the way SkillSpector numbers lines (UTF-8 with replacement, split at\n);componentsentry and a regular, single-link file of at most 1,000,000 bytes under the scanned root, reached without following a link (SecureRoot.read_bytes). Absolute paths,.., empty or.parts, backslashes and control characters are rejected, and without a scan root nothing is accepted. A single-file scan root is read the same way, through its parent directory;_skillspector_unscanned_nameswalks the skill without following links. It finds every link, junction or other non-regular file, every regular file thatcomponentsdoes not list, and every directory that holds no listed file (such asevals/results/ornode_modules/, which SkillEvaluator leaves out of the scanned copy) with everything inside it. Every part of each such path is a name, so a directory that holds one is named too, even when it also holds listed files. A left-out.gitdirectory counts by its own name, by its hooks other than regular*.samplefiles, and by every other entry that is not part of Git's own layout, with everything inside it. Git's layout isHEAD,config,description,index,packed-refs,ORIG_HEADand the other*_HEADand state files, their.lockfiles (_SKILLSPECTOR_GIT_FILE_RE), and theobjects,refs,logs,infoand similar directories (_SKILLSPECTOR_GIT_DIRECTORIES) with what they hold. It does not count, because names such asconfig,HEADormainare common words. For a single-file scan root, such assecurity-scan path/to/SKILL.md, the walk starts at the file's directory and every other entry there counts, because SkillSpector scans that file alone. A tree over 50,000 entries or 64 levels is not accepted;_,-or.adjoins it (dots after it are skipped, as Windows drops them). Names are compared case-folded, as written and in NFC, in the line as written and after removing backslash escapes of any ASCII punctuation (as a Markdown renderer does, not only the five SkillSpector removes), resolving HTML character references and decoding percent-escapes, up to three of these steps in any order;_skillspector_shell_groups), once as written and once with its backticks removed (PowerShell escapes). A span between backticks is read as Markdown code, not as a command's output. A zsh group such as(v)loses its parentheses, also right after]([v](e)rsions); a group with|((v|x)), a bash or ksh extended glob (@(...),!(...),+(...),?(...),*(...)) and a zsh range such as<1-9>stand for any text. So does each run of non-space characters that holds a zsh globbing flag group (_SKILLSPECTOR_ZSH_FLAGS_RE:(#i),(#a2),(#c1,2),(#s),(#e),(#q...)and combinations), because the flag changes how the rest of the word matches, across/too;(#1)and(#setup), which zsh rejects, are not flags. Parentheses around whitespace,/,<,>,;or&still end a word. A word with*,?,[,{,$,%,!,^,#,~, a quote, a backslash or such a group is then read twice (_skillspector_shell_word). As a POSIX shell: quotes and backslashes are removed; everything from the first${to the last}after it, a brace expansion (from the first{to the last}when a,or..lies between) and any other parameter expansion such as$DIRor$(become*. As cmd.exe or PowerShell:",'and the^escape are removed;%DIR%,!DIR!,%1,%*,%~dp0and the same$expansions become*; and\separates directories. Each part between/, and each piece of it between=,:and,, is a glob that no left-out name may match. A part with~after its start is also read as the text before the~(zsha~bmatches whatamatches) and, with text after the~, as any name that holds its first character (*n*forNODE_M~1), which covers Windows 8.3 names, hashed short names such asNO3F2A~1and Samba mangled names, since each keeps the first character of the long name (_skillspector_tilde_forms). A~that starts a word is a home directory. The zshEXTENDED_GLOBoperators are then read outside bracket expressions (_skillspector_zsh_pattern):^makes the rest of the piece*(ver^xmatchesversions), andx#becomes*(verr#sions); as the whole piece, such asC#, it matches only names made ofx, through a repeat marker that_skillspector_glob_matcherreads._skillspector_glob_matchertranslates the glob in linear time: a bracket expression matches any one character and a stray]any text, so it accepts every name the shell would, and possibly more; a pattern with more fixed characters than the longest left-out name is skipped. A word made only of*, such as a list marker, is not read this way;_SkillspectorMatchBudget, 1,000,000,000 units of roughly one character compared). Decoding a line and reading its shell groups and words costs 9,000 per character (set so that the slowest lines take under 1 s per budget), each search of a decoded line for a name that is not a plain name run 100 plus the line's length, and each glob 20,000 plus 1,000 per character plus 300 and the name's length per name matched. A line that would overdraw the budget is not accepted;skillspector_reference_root(validatesets it to the plugin root for a plugin), or else the validator's newtarget_root, or else the target of the scan:_validate_with_applicability, whichvalidate_security_onlyandSecurityValidator.validaterun, records the resolved target while it walks it. A skill directory, a lone file and a folder with no skill (scanned as a whole) are their own target. A skill found inside a folder or plugin target, such as withsecurity-scan plugin/, is scanned on its own, and a line in it may name a file elsewhere in the target that its scan did not inspect, so its missing references areINCOMPLETE. (With 2.13.3, fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat passes them on 7ae25d2 from the report alone; this PR holds that caveat to these conditions.) In a_run_skillspectorcall outside that walk, this PR's rule accepts missing references only when the configuredskillspector_reference_rootis the scanned root, because that scan covers the whole root. Otherwise, as for the per-partition scans ofrun_plugin_validationintier1/plugin_checks.py, it accepts none. Such a call without a configured root has no known target, so with 2.13.3 fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat rule alone decides there, as onmain7ae25d2._validate_skillspector_reporttakes the root as a newreference_rootargument, and_skillspector_missing_reference_notesrequires it.validateon a folder of skills runs each skill as its own job, in process or as avalidate <skill>child process with--workersabove 1. Each job now gets the folder through a hidden--catalog-rootoption, set by_validate_catalogand by_catalog_child_argv_from_ctx.validatepasses it torun_validation(target_root=...), which gives it toSecurityValidator(target_root=...)for thesecuritycheck. So a skill of a catalog has its missing referencesINCOMPLETE, assecurity-scanon the same folder does. (On 7ae25d2 both pass them with 2.13.3 as fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat.) Finding scoping (skillspector_reference_root) is unchanged.findings_before_filtering == findings_after_filtering, no limitations, no fatal scope exclusion, every universal analyzer (static_patterns_*,static_yara,artifact_integrity) completed one work item per component, and every other analyzer iscompleted,not_applicableordisabled;_skillspector_passive_raster_noteaccepts on its own terms (it then accounts for the counts, analyzers and limitations). The scan carries the image warning as well.INCOMPLETEwith the existing error:reference_unresolvedfrom 2.12.0 (a reference that matches several bundled files), a pre-2.12.0 line with anambiguousentry, a row thereferenceslist does not confirm, a reference that may name a file left out of the scan, or any other gap. With 2.13.3, fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat passes some of these on 7ae25d2 from the report alone, such as a reference that names a left-out file; this PR keeps themINCOMPLETEwhenever the reference root is known._skillspector_bundled_file_bytesand_skillspector_report_path_is_bundled_file(path check),_skillspector_reference_row_is_advisory(row predicate),_skillspector_unscanned_names,_skillspector_name_keysand_skillspector_reference_line_avoids(left-out files; itsbudgetargument is optional), and_skillspector_missing_reference_warning(warning text).docs/tier1-validation.mdxnow allows missing references beside images. A new paragraph with a list states the reference conditions (including a lone file, a skill scanned on its own inside a folder or plugin,validateon a folder of skills,.gitand Git's own layout, escapes, character references, the POSIX, zsh, bash, cmd.exe, PowerShell and Windows short-name readings with an example of each, the prose that these readings keepINCOMPLETE, the work bound, and equal finding counts before and after filtering), what the check does not detect (a name on another line, or one that a command prints), the versions covered and the warning. It also says that Tier 3 output in the default<skill>/evals/resultscounts as not inspected while the rest ofevals/is scanned (see Why), and that a 2.13.3 report that fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's rule accepts carries its caveat finding under the same conditions. CHANGELOG entry under Unreleased > Fixed, placed in the middle of the section (see Open PR overlaps).tests/golden/cli_surface.jsonis regenerated withtests/golden/generate_cli_surface.py; the only change is the hidden--catalog-rootoption ofvalidate.SkillSpector versions this covers:
partialwithreference_missing. Public pins 2.13.3. A 2.13.3 report that fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's rule accepts carries its caveat finding instead of this PR's warning, under the same conditions.reference_unresolvedand list the reference with"status": "missing"(or"ambiguous") inreferences. I checked 2.10.0 and 2.11.2 with real runs.complete_with_caveatsstatus, which main does not recognize yet. Those scans stayINCOMPLETEuntil a separate change handles that status. The docs say so.Why
Naming a file the skill does not ship is common: an output path, a user's input file, a repository source. Each one blocks Tier 1 today, although SkillSpector inspected every file it was given.
That last point needs care. SkillEvaluator scans a copy of the skill without
results/(alsoevals/results/),versions/,.git/,.venv/andnode_modules/(since #453 it keeps the rest ofevals/in the scan), and SkillSpector leaves links out of its inventory with only a nonfatal scope exclusion. A loneSKILL.mdis scanned without the files beside it, and a skill found in a folder or plugin without the rest of it. A script in one of those places is never inspected. An instruction that names it is reported as a missing reference, also when it spells the path with escapes, globs, quotes, zsh groups, cmd.exe escapes or variables, or Windows short names. Accepting every missing reference would pass such an instruction, and #453's 2.13.3 rule, which reads only the report, does. This PR accepts a missing reference only when its line names nothing that was left out of the scan, and never for a skill scanned inside a larger artifact.What the rule does not do: it reads only the line that SkillSpector reports, in the spellings above, and runs no command. A name on another line (
DIR=node_moduleson one line,sh $DIR/$RUNon the next), or one that a command prints (printfoutput in backticks, a list piped intoxargs sh,find -exec, a PowerShell string joined with+), is not detected. So the rule keeps an instruction that names a left-out scriptINCOMPLETE, but it does not stop an author who sets out to hide one.maindoes not stop that author either: a skill that runs a left-out script from a line SkillSpector does not report passes onmainwhenever SkillSpector reports no missing reference in it. With this PR it also passes when every reported line is an ordinary missing reference such asoutput/notes.md. A command can print any name, so no further shell reading would close this; the docs and CHANGELOG state the limit instead.One limitation users will notice: Tier 3 output can turn a passing skill into
INCOMPLETE.validate <skill>runs all three tiers by default, and Tier 3 writes its results into the skill, under<skill>/evals/results. The scanned copy leaves that directory out, so its names count as not inspected. A line that namesresults, a file a run leaves there (such asreport.htmlorsummary.json) or, after a run with--harbor-keep-jobs, any bundled file (the kept Harbor tasks hold a copy of the skill) passes on the firstvalidateand isINCOMPLETEon the next. This PR does not drop these names, because an author can createevals/resultsby hand and keep a script there. The docs and CHANGELOG say so and name--results-dirandSKILLEVALUATOR_RESULTS_DIR, which keep results outside the skill. Before #453,mainkept these linesINCOMPLETEbefore and after a run. On 7ae25d2, #453's rule passes the captured 2.13.3 report for them before and after a run, because it reads only the report, so with 2.13.3 such a line now passes onmainafter a run and isINCOMPLETEhere.A second limitation: shell syntax in prose is read as shell syntax. A line with a price such as
$5, a brace list such as{a,b},%APPDATA%or a lone^staysINCOMPLETEwhen anything is left out of the scan, such asnode_modules/, andapprox~10staysINCOMPLETEwhen a left-out name holds ana. These lines wereINCOMPLETEonmainbefore #453; on 7ae25d2 #453's rule passes such a 2.13.3 report from the report alone, so with 2.13.3 they areINCOMPLETEhere and pass onmain. Code spans are read as code, so plurals and pairs such as "List the `topic`s" and "`GET`/`POST`" pass, and so do3~5,C#andnotes.md~besideevals/files/meeting.txt.I ran real offline SkillSpector
--no-llmscans throughSecurityValidator.validate_security_only, and through thevalidatecommand where noted. They were run before #453 merged, somainbelow meansmainbefore #453. On 7ae25d2, #453's rule passes from the report alone each 2.13.3 case below whose only gaps arereference_missingrows, including those that name a left-out script. This branch keeps thoseINCOMPLETEwhenever the scan has a known reference root (Tests has the 54 cases that show it), and a 2.13.3 case below that passes here now carries #453's caveat finding instead of the warning. The exception is the image-and-missing-reference case: #453's rule does not accept its image row, so it keeps this PR's missing-reference warning beside the image warning. Since #453, authored files inevals/are scanned, so theevals/install.shandevals/files/meeting.txtcases below no longer name a file left out of the scan.output/notes.md" isINCOMPLETEonmainwith 2.11.2, 2.12.0 and 2.13.3. On this branch it passes with the warning with 2.10.0, 2.11.2, 2.12.0 and 2.13.3. The same skill with anevals/directory and agit initcheckout also passes, with 2.11.2, 2.12.0 and 2.13.3. So does a skill in agit initcheckout that says "Read the config atconfig/settings.yaml".versions/install.sh" with that script present isINCOMPLETEonmainand on this branch, with 2.11.2, 2.12.0 and 2.13.3. So are, with 2.13.3, the same instruction fornode_modules/.bin/install.sh(and, before fix(ci): apply reviewed baselines and preserve scan completeness evidence #453, forevals/install.sh), a bareinstall.shkept inversions/or as an active hook in.git/hooks/, a Markdown link toversions/, and a reference to a symlinked file or directory.versions/install.shpresent (2.13.3): "run the setup script",(vers?ons/inst?ll.sh),(ver""sions/inst""all.sh), and "run `bash v*/*.sh` and write the summary to `output/notes.md`" areINCOMPLETEonmainand on this branch; an earlier head of this branch (55f18b9) passed all four. "run `bash v*/*.sh`" on its own line, with no missing reference, passes onmainand here, because SkillSpector reports no reference for it.INCOMPLETE, as onmain:versions/install.shpresent:[the setup script]((v)ersions/(i)nstall.sh), "run `sh (v|x)ersions/(i|j)nstall.sh`, then write the summary to `output/notes.md`",(ver^sions/inst^all.sh),(VERSIO~1/INSTAL~1.SH),(@(v)ersions/+(i)nstall.sh),(verr#sions/inst#all.sh),(ver^x/inst^x.sh),(v*\i*.sh)and a PowerShell line``& ./ver`sions/inst`all.sh``;node_modules/bootstrap.shpresent:(NODE_M~1/BOOTST~1.SH),(!DIR!/!RUN!), and(%DIR%/%RUN%)after a line that says "In cmd, `set DIR=node_modules` and `set RUN=bootstrap.sh` first." (the same skill with$DIR/$RUNwas alreadyINCOMPLETE);node_modules/run1.shpresent.versions/install.shpresent (2.13.3): "runsh [v](e)rsions/[i](n)stall.shin zsh", "runsh (#a2)virsions/(#a2)instell.shin zsh with extendedglob" and "runsh vers(i)(#c1)ons/inst(a)(#c1)ll.shin zsh", each with a missingoutput/notes.mdreference later on the line, passed with the warning on the previous head (c9cf82f) and are nowINCOMPLETE, as onmain. zsh 5.9 expands each toversions/install.sh. "runNO3F2A~1\BOOTST~1.SHin cmd" (a hashed short name) withnode_modules/bootstrap.shisINCOMPLETEhere, on the previous head and onmain.evals/evals.jsonandevals/files/meeting.txt(2.13.3): "Summarize in 3~5 sentences and write the summary to `output/notes.md`.", "Write the F# client notes to `output/notes.md`.", "Keep `notes.md~` backups out of `output/notes.md`.", "Call the API with `GET`/`POST` and write the summary to `output/notes.md`.", "List the `topic`s and write the summary to `output/notes.md`." and "See [Setup](#setup), then write the summary to `output/notes.md`." pass with the warning. All six areINCOMPLETEonmain; on the previous head the first five wereINCOMPLETEand the anchor link passed.``sh `printf '\166'`ersions/`printf '\151'`nstall.sh``, and a skill whose line 8 namesoutput/notes.mdwhile line 10 says "set `DIR=node_modules` and `RUN=bootstrap.sh` in sh, then run `sh $DIR/$RUN`". Each passes with the warning here and isINCOMPLETEonmain; bash runs each planted script. The double-backtick line wasINCOMPLETEon the previous head; the other three passed there too. Without its line 8, the last skill passes onmainas well, because SkillSpector then reports no reference..gitplants, Tier 3 output and fixtures) with 2.13.3 on this head and on the previous head: every result is the same..githoldsHEAD,configand a plantedinstall.sh(curl ... | sh), and whose SKILL.md says "Before you start, find and run `install.sh`", passed with the warning on ff2351c and is nowINCOMPLETE, as onmainand as the same skill withversions/install.sh(2.13.3).evals/evals.json, and "Read the config at `config/settings.yaml`" in agit initcheckout. The C# line and the checkout also pass with 2.11.2 and 2.12.0.scripts/run.py, keepsscripts/node_modules/.bin/setup(left out of the scanned copy) and says "Use the helpers in ./scripts" isINCOMPLETEon this branch with 2.11.2, 2.12.0 and 2.13.3.and namesoutput/notes.mdisINCOMPLETEonmainand passes here with both warnings (2.13.3).SKILL.mdscanned as one file, where SkillSpector reports every reference in it as missing: with nothing it names beside it, it passes with the warning (2.10.0, 2.11.2, 2.12.0 and 2.13.3; also inside agit initcheckout with 2.13.3). When it says "runscripts/install.sh" and that script is beside it, it staysINCOMPLETEwith the same four versions, and so does "Runscripts/summarize.py" with that file beside it, with 2.11.2, 2.12.0 and 2.13.3.scripts/install.shfrom the plugin root", with that script at the plugin root, staysINCOMPLETE([helper] ... SKILL.md:8 [reference_resolution; ...]) throughSecurityValidator(content_type="plugin", skillspector_reference_root=<plugin>)with 2.10.0, 2.11.2, 2.12.0 and 2.13.3. It also staysINCOMPLETEthroughSecurityValidator().validate_security_only(<plugin>), whichsecurity-scan <plugin>runs (2.13.3). So does the two-fileoutput/notes.mdskill inside a plain folder of skills, with 2.10.0, 2.11.2, 2.12.0 and 2.13.3, while the same skill scanned as its own directory passes.skillevaluator validate cat --tiers 1 --checks security --no-llm -r json, wherecat/skills/helper/SKILL.mdsays "runscripts/install.shfrom the plugin root" andcat/scripts/install.shexists, exits 1 with the skill's Security ScanINCOMPLETE(2.13.3,--workers 1), as onmain. An earlier head of this branch (55f18b9) passed it.validate cat/skills/helperon its own passes.versions/install.sh", with that script in the skill, wasINCOMPLETEthroughrun_plugin_validationwith thesecuritycheck before fix(ci): apply reviewed baselines and preserve scan completeness evidence #453 (2.13.3). On 7ae25d2 and on this branch it passes as fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat, because a 2.13.3 report whose only gaps arereference_missingrows is accepted there and those per-part scans have no reference root (read from the code; not re-run).run [the setup script](node\_modules/run\_all.sh)withnode_modules/run_all.shpresent, andrun [the setup script](versions/install.sh)withversions/install.shpresent, areINCOMPLETEonmainand on this branch (2.13.3).guide.mdwhile bundlinga/guide.mdandb/guide.mdstaysINCOMPLETEwith 2.11.2, 2.12.0 and 2.13.3.scripts/setup.shrunscurl ... | shand whose SKILL.md namesoutput/notes.md, scanned with a--skillspector-baselinethat suppresses all three findings, passes with the missing-reference warning and the baseline's suppression note (2.13.3, run before fix(ci): apply reviewed baselines and preserve scan completeness evidence #453 and not re-run since). Here it now carries fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat finding instead if that rule accepts its report, which depends on the report'slimitationsandscope_exclusions; those were not captured. SkillSpector 2.10.0 to 2.13.3 count every finding, up to the report cap, both before and after filtering, so a baseline does not change those counts.evals/evals.json, and areINCOMPLETEonceevals/results/<run>/holds what a default run keeps (result.json,run_config.json,report.html,what_to_fix.json, per-agentsummary.jsonand trial files). "Run `scripts/summarize.py` on the meeting text, then write the summary to `output/notes.md`." passes, and isINCOMPLETEonce the run also keeps_harbor-tasks/with a copy of the skill. A line that namesmeeting.txtpasses withoutevals/files/meeting.txtand, before fix(ci): apply reviewed baselines and preserve scan completeness evidence #453, wasINCOMPLETEwith it. The four that pass here areINCOMPLETEonmain.SecurityValidator(use_llm=False)._run_skillspector(skill)call staysINCOMPLETE; withskillspector_reference_root=skillthe same call passes with the warning (2.13.3). Since fix(ci): apply reviewed baselines and preserve scan completeness evidence #453 the direct call without a reference root passes as fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat with 2.13.3, onmainand here; with 2.12.0 it staysINCOMPLETEhere.INCOMPLETE. The shell readings make the slowest lines I could build (10,000 characters of nested escapes, groups and backtick spans) about 2.4 times slower to read than escapes alone, so reading a line costs 9,000 units per character. Those lines take about 0.65 s per full budget, as on the previous head; lines of~parts, flag groups or#repeats take 0.01 to 0.13 s. So a report that stays within the budget still takes under 1 s for all of its lines.Choices that differ from other versions of this fix:
reference_unresolvedadvisory on every version would also accept an ambiguous match from 2.12.0 on. This PR keeps it blocking there, as SkillSpector's own install gate does.reference_unresolvedalso covered ambiguous matches. Instead of accepting every such row, this PR accepts one only when the report'sreferenceslist says the reference on that line ismissing.reference_missing, so 2.10.x and 2.11.x users stayedINCOMPLETE, and its fixture labelled 2.11.2 carried areference_missingrow that released 2.11.2 never emits. This PR uses real captures from each version.validate <folder>,security-scan <folder>andvalidate <plugin>, those skills' missing references areINCOMPLETE, because their lines may name files elsewhere in the target. For example, take a repository withskills/notes-writerwhose SKILL.md says "Write the summary to `output/notes.md`".skillevaluator validate skills/notes-writerpasses it, and so does the public CI scanner, which runstier1 <skill>for each skill it finds (ci/run_tier1.py).skillevaluator validate skills/isINCOMPLETEhere; on 7ae25d2 it passes with 2.13.3 as fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat and isINCOMPLETEwith earlier versions. A follow-up could extend the lone-file handling of_skillspector_unscanned_namesto folder and plugin targets: walk the reference root and count every entry outside the scanned skill. That would accept these references forvalidate <folder>without weakening the rule.Kept from public
_skillspector_incomplete_analysis_errorand its runtime-limit hints, and every earlier validation step, are unchanged. The new check runs where the scan would otherwise beINCOMPLETE, and, when the reference root is known, where fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat would pass it. fix(ci): apply reviewed baselines and preserve scan completeness evidence #453'sreference_caveat_metadata, its caveat finding and metadata, and its tests are unchanged.partial_reportedis still set, so a LOW report must still sayCAUTION, which is what SkillSpector emits for these reports.validators/base.pyis unchanged. Its folder summary lists a passing skill asAll checks passedwithout its warnings, as it does for the image warning onmain. A skill found in a multi-skill target, throughsecurity-scan,validateortier1/commands.run_validation, never passes with a missing-reference warning, so the summary hides no new warning.scope_skillspector_issues) still uses only the configuredskillspector_reference_root; the scan target andtarget_rootare used only by the missing-reference rule.tier1/plugin_checks.pyis unchanged.test_catalog_child_argv_forwards_every_validate_optionlistscatalog_rootfirst among the options a child does not inherit, as set from the catalog the child belongs to, not forwarded from the parent's own value._is_filesystem_safe_path_text, the raster note's part rules,SecureRootno-follow reads,stat_is_link_or_reparseandMAX_SECURE_DIRECTORY_DEPTH.{"reason_code": "reference_unresolved", "fatal": false}rows still expectINCOMPLETE, and they still get it.main7ae25d2 merged in.security.pyconflicted in two places, both from fix(ci): apply reviewed baselines and preserve scan completeness evidence #453: the docstring of_validate_skillspector_report, which now names fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat rule, this PR's rule and the image note; and the partial-analysis branch, where the resolution keeps both rules (fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat first, then this PR's notes, then the image note, then the error). The follow-up commits hold fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat to this PR's conditions when the reference root is known, move the 2.13.3 tests that pass to fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat warning, and follow fix(ci): apply reviewed baselines and preserve scan completeness evidence #453 in scanning authoredevals/files.CHANGELOG.md,docs/tier1-validation.mdxandtests/validators/test_security.pymerged without conflict.git merge-tree --write-tree HEAD 7ae25d252reports no conflict.git merge-treeof the head with this branch merged into 1af2693 against the head with 1af2693 alone. For feat(quality): configure Reliability error handling in the quality config #336, feat(tier3): add fixed-source skill interaction evaluation #392, Enable public plugin assessment and saved-run reports #394, Add advisory enforcement mode to Tier 1 reusable workflow #431, feat(ci): add LLM security, gateway agents and benchmark PRs #439, fix(quality): share quality default across CLI and library gates #447 and Fix CLI output on legacy Windows code pages #449, whose heads are not in the local clone, I merged GitHub's versions of the shared files the same way, file by file withgit merge-file:CHANGELOG.md,cli.py,tier1/commands.py, the golden andtests/test_commands.py. All five merge cleanly with this branch, and the merged golden is valid JSON. It appends keyword arguments torun_validationand to its call invalidate; this PR putstarget_rootbesidecontent_typein both places. It adds eight entries after"output_dir"in thenot_forwardeddict oftest_catalog_child_argv_forwards_every_validate_option; this PR listscatalog_rootfirst in that dict, so unchanged lines separate the two hunks. Before 74c14b5, this branch addedcatalog_rootafter"output_dir"and conflicted there.else:error path in the samesecurity.pyblock. Its head already conflicts withmainin six places insecurity.pyand once each incli.py,CHANGELOG.mdanddocs/cli-reference.mdx. The merge with this branch gives the same counts and no new file, and itsdocs/tier1-validation.mdxhunks merge cleanly.docs/tier1-validation.mdxin the quality score (Reliability) part of the page, which merges cleanly. Its oneCHANGELOG.mdconflict is the same with and without this branch.tier1/commands.pyanddocs/tier1-validation.mdx; fix(tier1): retry an invalid rubric judge reply once and name the problem #415 (14028ff) editsdocs/tier1-validation.mdx; fix(reporting): name the skill in single-skill JSON reports and record the evaluator version #424 (a70d6b5) editscli.py,tier1/commands.pyandtests/test_commands.py; feat(tier3): add opt-in tolerance for baseline-only agent timeouts #430 (37af6a4) editscli.pyand the golden. Their hunks are disjoint from this PR's. fix(reporting): name the skill in single-skill JSON reports and record the evaluator version #424 is stacked on fix(tier1): report manifest checks as N/A when validate finds no supported artifact #410 and has the sameCHANGELOG.mdconflict with and without this branch.cli.pyor the golden, and merge cleanly.CHANGELOG.md: this PR's entry sits in the middle of Unreleased > Fixed, after the Tier 2 context deduplication entry and before the Measured Agent Resources entry.maind717f22 added nine Fixed entries at the top of the section and one at the end, and 7ae25d2 added three more at the top (fix(ci): apply reviewed baselines and preserve scan completeness evidence #453) and one after the--skip-with-skillentry (fix(reporting): let default Tier 3 runs with a baseline pass publication #332); this entry kept its slot. Only fix(tier2): chunk shell scripts in one pass instead of once per function header #423 (bc3cf2c) also adds an entry in that slot, so fix(tier2): chunk shell scripts in one pass instead of once per function header #423 and this PR conflict once inCHANGELOG.md. Every other open PR that editsCHANGELOG.mdmerges the same with and without this branch.evals/scanning as described above. fix(reporting): let default Tier 3 runs with a baseline pass publication #332 (reporting/base.py,reporting/benchmark.py, a CHANGELOG Fixed entry) and docs: point the plugin inventory reference at the module that exists #448 (two docstrings inplugin_mcp.pyandplugin_paths.py) merged without conflict.security.py, its test class, its paragraph indocs/tier1-validation.mdxand its CHANGELOG entry. Re-running the comparison against this head for the heads in the local clone (fix(tier2): chunk shell scripts in one pass instead of once per function header #423 bc3cf2c, fix(tier1): scope ownership email policy and retain completeness diagnostics #333 64894e4, fix(tier1): report manifest checks as N/A when validate finds no supported artifact #410 4463483, fix(tier1): report dependency advisories as structured findings #421 0971210, fix(tier1): retry an invalid rubric judge reply once and name the problem #415 14028ff) gives the same results as above.git merge-treeof each head in the local clone with this branch against the same head with d717f22 alone: fix(tier1): scope ownership email policy and retain completeness diagnostics #333 (64894e4), fix(tier1): report manifest checks as N/A when validate finds no supported artifact #410, fix(tier1): retry an invalid rubric judge reply once and name the problem #415, fix(tier1): report dependency advisories as structured findings #421, fix(reporting): name the skill in single-skill JSON reports and record the evaluator version #424, feat(tier3): add opt-in tolerance for baseline-only agent timeouts #430 (37af6a4), feat(tier3): add selectable NeMo Gym execution backend #225 (c58cf5a), feat(tier3): add fixed-source skill interaction evaluation #392 at its older local head 9283d83 (not GitHub's 4d71e51) and feat(tier3): report token usage per case and agent #427 (cd3f52b). Each of them conflicts withmainitself, at least inCHANGELOG.md. Each conflicts in the same files, as many times, with and without this branch. fix(tier2): chunk shell scripts in one pass instead of once per function header #423 (bc3cf2c) still conflicts once inCHANGELOG.mdwith this branch and not without it. The heads not in the local clone (feat(quality): configure Reliability error handling in the quality config #336, Enable public plugin assessment and saved-run reports #394, Add advisory enforcement mode to Tier 1 reusable workflow #431, feat(ci): add LLM security, gateway agents and benchmark PRs #439, fix(quality): share quality default across CLI and library gates #447 and Fix CLI output on legacy Windows code pages #449) were not re-checked against d717f22. None of these comparisons was re-run against 7ae25d2.opaque_content/bundled_execution_surface) branch is not part of this PR.Tests
--no-llmreports withskill.sourceset to/tmp/<name>:versions/install.sh(onlySKILL.mdincomponents), a loneSKILL.md, and a skill with a referenced PNG and a missing reference.TestSkillspectorMissingReferencesintests/validators/test_security.py(227 tests). Each 2.13.3 case below that passes carries fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat warning, not this PR's, except the image with a missing reference: fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's rule does not accept its image row, so it keeps this PR's warning beside the image warning:SKILL.mdwith nothing it names beside it passes; the skill withevals/results/and.gitfiles that its line does not name passes; a skill whose.githoldsconfig,HEAD,indexandrefs/heads/main, with or without a*.samplehook, passes although its line says "Read the config atconfig/settings.yaml" (2);INCOMPLETEwith the existing error;reference_missingon a 2.11.2 report is accepted;reference_unresolvedon a 2.12.0 report is not;INCOMPLETEthrough the real staged path (24):versions/install.sh,node_modules/.bin/install.sh,evals/results/install.sh,.venv/install.sh, a bareinstall.shinversions/, a Markdown link toversions/,node\_modules/run\_all.sh,versions/install.sh, and the link destinationsv*/*.sh,vers?ons/inst?ll.sh,ver""sions/inst""all.shandv[e]rsions/i[n]stall.sh; withversions/install.sh,(v)ersions/(i)nstall.sh,`sh (v|x)ersions/(i|j)nstall.sh`besideoutput/notes.md,@(v)ersions/+(i)nstall.sh,ver^sions/inst^all.sh,verr#sions/inst#all.sh,ver^x/inst^x.sh,v*\i*.sh, andsh [v](e)rsions/[i](n)stall.shandsh (#a2)virsions/(#a2)instell.shin zsh; and%DIR%/%RUN%,!DIR!/!RUN!andNODE_M~1/BOOTST~1.SHwithnode_modules/bootstrap.sh; a line naming./scriptswhenscripts/holds a listed file and also a left-outnode_modules/.bin/setup, an unlistedextra.pyor a symlink (3); a symlinked file and a symlinked directory; an unlistedoutput/notes.mdon disk; a bareinstall.shkept as an active hook in.git/hooks/, as.git/install.shor as.git/tools/install.sh(3); a loneSKILL.mdthat namesscripts/summarize.py, with that file,versions/summarize.pyorsummarize.pybeside it (3);evals/evals.jsonandevals/files/meeting.txt(5):3~5,F#,`notes.md~`,`GET`/`POST`and`topic`s. Since 7ae25d2 these skills are scanned in place, not staged; theirevals/files count as not inspected because the captured report does not list them;INCOMPLETEafter, a generated run tree inevals/results/<run>/(what a default run keeps, plus in one case the_harbor-tasks/copy of the skill that--harbor-keep-jobskeeps), for lines namingresults/summary.md,report.htmlandscripts/summarize.py. The input-fixture case was dropped: since fix(ci): apply reviewed baselines and preserve scan completeness evidence #453 a fixture inevals/filesis scanned;skillspector_reference_rootset to the folder above it, which holds the namedscripts/install.sh) staysINCOMPLETE, and the same skill passes when it is its own reference root;INCOMPLETEthroughvalidate_security_only,validateandrun_security_scan(6), and each time passes when scanned on its own;skillevaluator validate <folder> --tiers 1 --checks securitythroughCliRunner, with--workers 1and with--workers 2(parallel jobs run in process), exits nonzero with the skill's scan incomplete incatalog-summary.json, andvalidate <skill>passes (2); a direct_run_skillspectorcall staysINCOMPLETEbefore and after a passingvalidate_security_onlyof the same skill, with the 2.12.0 report (a 2.13.3 report in the same direct call passes as fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's caveat); a direct call passes withskillspector_reference_rootset to the skill and staysINCOMPLETEwith it set to the folder above; a folder with no skill is scanned as a whole and passes;versions/install.shreport passes_validate_skillspector_reportfrom the report alone, and staysINCOMPLETEthroughvalidate_security_only, both with the script left out of the scan and with the reference root set to a folder above;referenceslist does not confirm: evidence from another line, no evidence, a line past the end of the file (3);INCOMPLETE(5);INCOMPLETE: fatal row, wrong phase,skippedoutcome, named analyzer, error class, other reason, absolute path,../path, backslash,./part, control character, unlisted path, directory, missing file, symlinked file, symlinked directory, an addedruntime_limitrow, an unexplained limitation, a degraded analyzer, a fatal scope exclusion;end_line; the path helper (duplicate component, empty and dot parts, over 1,000,000 bytes, hard link, single-file root over 1,000,000 bytes or hard-linked);_skillspector_unscanned_names(unlisted files, left-out directories and the directories that hold them, links, a single-file root and the entries beside it, the entry limit,.gitwith its active and*.samplehooks and a.gitfile, Git's own layout (HEAD,config,description,index,packed-refs,COMMIT_EDITMSG,FETCH_HEAD,ORIG_HEAD,info/,logs/,objects/,refs/) not counted while a plantedinstall.shortools/run.shand a layout name of the wrong kind (a directory namedHEAD, a file namedobjects) are, and a reparse point that stats as a directory or regular file, by patchingstat_is_link_or_reparse); 99 line-matching cases, 72 that must match and 27 that must not. Must match: backticks, combining mark, backslash, percent-escapes, Markdown escapes, character references, case, trailing dot, NFC against NFD, directory link; the globs, expansions and quotesv*/*.sh(2),vers?ons/inst?ll.sh,ver""sions,v[e]rsions/i[n]stall.sh,v{e,x}rsions,$ROOT/setup,`ver\sions/setup`,v{e{r,x},y}sions,${X:-${Y:-v}}ersions,setup.sh,inst*.sh,v[[:alpha:]]rsions,`bash v*/*.sh`beside a missing reference, andoutput/*.mdagainstreadme.md; the zsh groups(v)ersions/(i)nstall.sh(2),(v|x)ersions,((v|w)|x)ersions,ver(|)sions,[it]((v|x)ersions),(install|setup)and[v](e)rsions/[i](n)stall.sh(2); the zsh globbing flags(#a2)virsions/(#a2)instell.sh(2),vers(i)(#c1)ons/inst(a)(#c1)ll.sh,ver(#a1)zions/inst(#a1)alk.shand(#ia1)VIRSIONS; the extended globs@(v),?(v)and!(x), the rangerun<1-1>.sh,ver^sions,^v^e^r^s^i^o^n^s,ver^x,v[a^e]rsions,verr#sions,F#againstff,v*~x,%DIR%,%~dp0setup.sh,%1/setup.sh,!DIR!; the short namesNODE_M~1/BOOTST~1.SH(2),CONFIG~1.YAMagainstconfig.yaml,NO3F2A~1andNABCDE~Fagainstnode_modules,VENV~1against.venv,3RD-PA~1.SHagainst3rd-party.shand--script=NODE_M~1/setup;v*\i*.sh, a PowerShell line with backtick escapes,`echo v`in a double-backtick code span (read with its backticks removed) and$(printf '\166'). Must not match: an unrelated escaped line,install.sh.bak,reinstall.sh,install.shx,output/*.mdagainstevals, a*list marker,**all**,output/{name}.md, an apostrophe andoutput/notes.mdagainstevals, "(optional)",render(notes), a##heading, a## Notes (#1):heading,[Setup](#setup)with[the guide](guide.md),C#againstevals,F#againstfiles,3~5againstmeeting.txt,`notes.md~`,--config=~/.config/x.toml, "~5 lines" with "50%",~/.config/notes.tomlwith a trailing!, two separate code spansyesandno(also in quotes),`topic`s,`GET`/`POST`, and`npm`'swith`--mode`=`fast`; 14 cases of_skillspector_glob_matcher(bracket expressions with!and POSIX classes, a 9,000-star pattern, an unclosed[, a 9,000-[pattern longer than every name, and the zsh repeat marker againstfffandfiles); line numbering at a bare\r, evidence checks and the line length limit; the work bound on one line (a 10,000-character escape line beside 15,000 spaced names is refused, an ordinary line beside them is not) and across a report (one budget serves several lines, and a report that would overdraw it staysINCOMPLETE); the three-row cap in the warning.INCOMPLETEfor a 2.13.3 report whose only gaps arereference_missingrows, which fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's rule passes from the report alone: the 24 left-out-file spellings, the six folder and plugin targets, the three loneSKILL.mdcases with a file beside it, the three./scriptscases, the three Tier 3 output cases, the twovalidate <folder>tests, the two.gitplants, the active.githook, the two caveat tests above, the missing-file and symlinked-file near misses, two rows thereferenceslist does not confirm (evidence from another line, no evidence), the unlistedoutput/notes.mdon disk, the reference-root test, the configured-reference-root test and the report-level budget test.src/from the previous head of this branch (c9cf82f), 21 of the 226 fail and 205 pass. The 21 are the two zsh staged-path spellings, the five prose staged tests, seven zsh line cases that must match ([v](e)rsions(2),(#a2)(2),(#c1),(#a1)and(#ia1)), six line cases that must not match (`topic`s,`GET`/`POST`,F#againstfiles,3~5,`notes.md~`and--config=~/...) and the matcher's zsh repeat case. The other 11 new cases pass there: the six short-name andF#-against-ffcases, which the wider earlier readings also caught, four lines that the earlier rules already passed (`npm`'s, quoted code spans, the(#1)heading and the anchor link), and the matcher case forfiles.src/from ff2351c, 54 of the 226 fail, and withsrc/from 55f18b9, 91 fail. Both sets hold 10 of the 21 above (the zsh and matcher cases) and the cases that later rounds added for what those heads missed. The other 11, the prose cases, pass there, because those heads did not yet read~,#or backtick spans.test_catalog_child_argv_forwards_every_validate_optionand the CLI surface golden test also fail with 55f18b9.main's raster-only call, 32 of the 226 fail and 194 pass. All 32 are cases that must pass, or that checkINCOMPLETEand then that the same skill passes on its own: the three real missing-reference reports, the LLM stage,reference_missingon 2.11.2, the loneSKILL.md, the skill withevals/and.git, the two.gitcases, the image with a missing reference, the folder with no skill, the reference-root test, the six folder and plugin targets, the two direct_run_skillspectortests, the four Tier 3 output cases, the twovalidate <folder>tests, the report-level budget test and the five prose staged tests. EveryINCOMPLETEassertion holds there.src/frommain, the module does not import, because the helpers do not exist there.tests/validators/test_security.py: 1235 passed, 1 skipped.security.py(tests/validators/test_scan_incomplete.py,test_security_validators.py,test_skillspector_scope.py,test_artifact_dir_exclusion.py,test_folder_validation.py,test_pii_grouping.py,test_pii_waivers.py,test_private_plugin_composition.py,test_scanner_path_resolution.py,test_static_requirements_audit.py,test_target_dependencies.py,test_url_policy.py,tests/test_skillspector_provenance.py,tests/models/test_result.py,tests/ci/test_secret_redaction.py,tests/reporting/test_reporters.py,tests/reporting/test_report_redesign.py,tests/test_commands.py,tests/test_publication_evidence.py, and fix(ci): apply reviewed baselines and preserve scan completeness evidence #453'stests/validators/test_security_reference_caveats.pyandtest_security_authored_evals.py): 1345 passed.tests/golden/,tests/cli/,tests/test_cli.py,tests/test_catalog_discovery.py,tests/test_catalog_results.py,tests/test_skip_checks.py,tests/test_progress_output.py,tests/test_benchmark_source_provenance.py,tests/test_evaluation_service.py,tests/test_publication_identity.py,tests/reporting/test_tier3_source_validation_reporting.py,tests/validators/test_hygiene_link_boundaries.py,tests/validators/test_quality_score.py,tests/tier3/test_decoy_commands.py,tests/tier3/test_decoy_workspace.py,tests/tier3/test_decoys.py): 1610 passed, 3 skipped.tests/test_ci_workflows.py,tests/test_oss_packaging.py,tests/test_ci_change_classifier.py,tests/test_harbor_claude_refusal_fallback.py,tests/ci/test_image_build.py,tests/tier3/test_private_loose_source.py): 231 passed.tests/ci/test_prepare_security_baselines.py,tests/ci/test_run_tier1.py,tests/ci/test_evaluate_workflow.py,tests/ci/test_gitlab_template.py,tests/golden/test_benchmark_card.py) and the Tier 3 security modules (tests/tier3/test_apply_patch_security.py,test_harbor_security_attribution.py,test_private_plugin_security.py): 1667 passed, 5 failed. The 5 are all oftest_prepare_security_baselines.py: they runci/prepare_security_baselines.pywithpython -I, which on this machine imports an older installedskillevaluatorwithoututils/structured_data.py. They fail the same way onmain7ae25d2.-n 6 tests): 27691 passed, 35 skipped, 10 failed. The 10 are the fivetest_prepare_security_baselines.pytests above and five that also fail onmainon this machine:tests/ci/test_all_tier_preflight.py::test_actual_workflow_bootstrap_ignores_consumer_pythonpath, the twotests/ci/test_feedback.py::test_isolated_feedback_launcher_uses_trusted_siblings_from_any_consumer_directorycases and twotests/test_harbor_secure_docker_environment.pysidecar tests.ruff checkis clean on the changed files.ruff format --checkreports the same pre-existing hunks insecurity.py(28) andtest_security.py(25) as onmain, none in new code, and none incli.py,tier1/commands.pyortests/test_commands.py.scripts/check_oss_boundary.pypassed.🤖 Generated with Claude Code