Repository navigation
feat(tier1): attach SkillSpector reference-gap reasons to AE1 findings and summarize affected artifacts - #460
Merged
rng1995 merged 20 commits intoNov 12, 2026
Conversation
… not inspected SkillSpector reports a High AE1 (incomplete referenced artifact analysis) finding at each line that names a file it did not completely inspect. The finding said only "Referenced artifact was not completely inspected", so the reason had to be matched by hand against the incomplete-analysis error. With SkillSpector before v2.12.0 it was titled "Unknown (AE1)" and suggested making the file available although SkillSpector had read part of it. The new skillspector_references module projects the finding's evidence: the target, its disposition and up to 16 reasons, read from the ledger rows of earlier releases, with bounded, redacted text and paths kept only inside the scan. The suggestion names the file and each reason, and the result counts the files and reference lines in skillspector_reference_summary and one message, also across the --llm stage and a folder of skills. Severities, completeness and gates are unchanged. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…led Tier 1 reports When the security check fails, the full and compact terminal output, the Markdown report and the HTML report add one line that counts the files SkillSpector did not completely inspect and the lines that name them. The JSON report records the counts in skillspector_reference_summary, with only its three count fields. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ings Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
A reason's limit that is an integer beyond the float range raised OverflowError in math.isfinite, so the scan returned no result. Check the type and range first and call math.isfinite only for floats, so such a limit is left out like any other out-of-range value. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The count of incompletely inspected referenced artifacts was also added to the result's messages. A policy that lowers the AE1 findings, or --verify-llm, can pass a complete scan, and reporters list a passing result's messages as passed checks, so the Markdown, HTML and terminal reports showed the count as a success. Every reporter already renders the line from the skillspector_reference_summary metadata, and only for a failed result, so the message is dropped. JSON still records the counts for every result. Also pin that a severity override for a SkillSpector report before v2.12.0 matches the rule's name, not "Unknown (AE1)". Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eport Every reference line and reason of every AE1 finding went through redaction, and every absolute path resolved the scan root again. A report with thousands of AE1 findings that repeat the same lines took seconds instead of a fraction of one. ReportNormalizer keeps, for one report, the redacted form of each distinct text and the in-scan form of each distinct path, and resolves the scan root at most once. _process_skillspector_cli_result builds one and passes it to the ledger index and to every issue it converts. report_path keeps its behavior for a single path. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
… results merge_with_prefix put the skill's [name] prefix on each finding's path and on the PII scan's metadata occurrences, but not on the skillspector_occurrences of an AE1 finding. In a folder report a JSON reader could not tell which skill a listed reference line was in without the finding's own path. Prefix those lines the same way; the referenced file's target_path stays relative to the named skill. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
… gave The count line ended "each AE1 finding names the artifact and why its analysis stopped", but a finding counts whenever SkillSpector names its file, even with an empty reason list and no ledger row for the file. Say instead that each finding names the artifact and any reasons SkillSpector gave. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…kdown use it The module-level imports in reporting/cli.py and reporting/markdown.py sat in the same import slot that several open pull requests also add to, so each of those merges would conflict on one line. Import reference_summary_message inside the method that uses it, as html.py already does. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
With SkillSpector before v2.12.0 the AE1 check name changes from "Unknown (AE1)" to "Incomplete referenced artifact analysis (AE1)", so a severity_overrides entry keyed on the old name no longer matches and the SARIF rule ID changes. Say so in the CHANGELOG and the Tier 1 docs, and soften "gates are unchanged" to the one case where a gate can change. Also say that JSON records the counts for every result, while the other reports show them only for a failed one. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…environment Two sibling port branches add a filter after skip_reason, where this branch also added one, so each merge conflicted on one line. Register skillspector_reference_summary before the other filters instead. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
A finding's suggestion is part of its finding_id, which the docs say stays the same across runs. The AE1 suggestion listed every limit of a reason, including observed_seconds, the wall-clock time SkillSpector records with a runtime_limit reason. Each run of a scan that hit the runtime budget gave the finding a new finding_id, and with --llm the two stages' copies of one reference line counted as two unique findings when the second stage was incomplete. The suggestion now leaves out observed_seconds; the finding's metadata still records it. Reasons that differ only in the run time are described once. The CHANGELOG notes that AE1 finding_id values change once because the suggestion text is new. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ined JSON CI renders its HTML and Markdown reports again from the JSON report through retained_results, which rebuilds each result's metadata from named fields. skillspector_reference_summary was not one of them, so a failed Tier 1 result lost the count line in every report that CI published, although the docs and the CHANGELOG say the Markdown and HTML reports show it. retained_results now copies the record through reference_summary_record, so only valid counts are kept and a malformed record is dropped. The hunk sits after the scanners block, apart from the lines that open PRs #333 and #349 change in this function. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…into naren/port-tier1-skillspector-ae1-diagnostics Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ostics Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
SkillSpector sets a runtime_limit reason's limit_seconds to the part of the scan's time budget left when the step began: for each file that YARA did not reach and for the dependency analysis of a lockfile. The value differs from run to run like observed_seconds, so an AE1 finding with such a reason got a new finding_id on every run. Leave every *_seconds limit out of the suggestion and its grouping key. The finding's metadata keeps both values. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
… them The sentence on the AE1 counts followed the paragraph on reference and target roots, so "the same way" read as the target-root rule. It now sits in the paragraph on the applicability counters. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…into naren/port-tier1-skillspector-ae1-diagnostics The base branch now contains public main d717f22. Conflicted: CHANGELOG.md only. Under Unreleased > Added, main's entry on repository CI onboarding (#443) and this branch's AE1 entry were both appended after the OpenClaw entry. Both are kept, main's first and this branch's AE1 entry after it. Released sections match main. Merged without conflict although both sides changed them: docs/tier1-validation.mdx, src/skillevaluator/reporting/cli.py, reporting/html.py, reporting/markdown.py and reporting/templates/report.html.j2. This branch's additions there are unchanged on top of main's reporting changes. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n/port-tier1-skillspector-ae1-diagnostics The base branch now contains public main 7ae25d2, with #453 (reviewed baselines and the SkillSpector 2.13.3 missing-reference caveat), #332 and #448. Conflicted, each only in the import block: - src/skillevaluator/validators/security.py: main's import of reference_caveat_metadata and this branch's import of the AE1 helpers from skillspector_references are both kept, in sorted order. - src/skillevaluator/reporting/json_reporter.py and reporting/retained.py: main's import of sanitize_reference_caveat_metadata and this branch's import of reference_summary_record (and REFERENCE_SUMMARY_KEY) are both kept. The code below the imports merged without conflict. main's export and retained-report check of skillspector_reference_caveats and this branch's skillspector_reference_summary lines are both kept, a few blocks apart in each file. The caveat finding has no AE1 evidence, so the AE1 counts do not include it. Merged without conflict although both sides changed them: CHANGELOG.md (main's #453 and #332 entries under Unreleased > Fixed, this branch's AE1 entry under Added, where it was) and docs/tier1-validation.mdx. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995
requested review from
chrisknvidia,
mosheabr and
rmalani-nv
as code owners
November 11, 2026 16:49
This was referenced Nov 12, 2026
Merged
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
commented
Nov 12, 2026
rng1995
left a comment
Collaborator
Author
There was a problem hiding this comment.
Reviewed the full production diff, AE1 evidence/path normalization and bounds, legacy-ledger indexing, stable finding identities, stage/folder aggregation, retained JSON reconstruction and all report consumers. No additional actionable findings. Merged the updated #459 base without conflicts, carrying the #457 wildcard coverage fix and repaired docs link. All109 selected AE1 diagnostics/reporting/wildcard tests pass under locked dependencies; full src/tests Ruff lint passes. Pinned Fern5.121 check passes with0errors and1existing configuration warning. Opt-in live SkillSpector integration contracts were not run. Signed-off integration pushed normally; remains stacked on #459 and open/unmerged.
rng1995
merged commit Nov 12, 2026
dc65c95
into
naren/port-tier1-skillspector-unmodeled-hook-critical
25 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #459; merge that first.
The branch includes that base branch at 89ac385, which contains public
mainat 7ae25d2, by merge commits.SkillSpector reports a High Incomplete referenced artifact analysis (AE1) finding at each line that names a file it did not completely inspect. From v2.12.0 the issue's
evidencenames the file, its disposition and the reasons the analysis stopped.maindrops that evidence: the finding's suggestion is onlyReferenced artifact was not completely inspectedplus SkillSpector's remedy, and its metadata keeps onlyskillspector_confidence. With SkillSpector before v2.12.0, which leavespatternempty, the finding is titledUnknown (AE1)and tells the user to make the file available, although SkillSpector read part of it.src/skillevaluator/skillspector_references.py:issue_diagnosticsprojects an AE1 issue's evidence into finding metadata:skillspector_evidence(target_path,target_disposition, up to 16reasonswithreason_code,phase,message,analyzers, lines and knownlimits, andreasons_truncated) andskillspector_occurrences(up to 128 reference lines, withskillspector_occurrences_truncated). Text with control characters is dropped, text is redacted withutils.redaction.redact_sensitive_text, and a path is kept only when it stays inside the scan (report_path, a lexical check, because the file may be missing). Limits are range-checked before any float check, so an integer too large for a float is dropped.ReportNormalizerkeeps, for one report, the redacted form of each distinct text and the in-scan form of each distinct path, and resolves the scan root at most once. A report whose many AE1 findings repeat the same lines and reasons is not redacted again for each one.findingtext, such asscripts/helper.pl (partial), only when the issue's own location is inside the scan, and the reasons come from the ledger rows for that file.index_legacy_reference_reasonsreads the ledger once per report. Without a matching row the finding keeps SkillSpector's suggestion and gets no evidence metadata; its name is still the rule's.reference_suggestionnames the file, its disposition and each reason, with reasons that differ only in the analyzer, the run time or the time budget joined into one. It leaves out the run time and the time budget (observed_seconds,limit_seconds) that SkillSpector records with aruntime_limitreason. SkillSpector setslimit_secondsto the part of the scan's time budget left when a step began, such as each file YARA did not reach or the dependency analysis of a lockfile, so both values differ from run to run. The suggestion is part offinding_id, which must stay the same across runs; the metadata keeps both values. SkillSpector's remedy is kept unless it is missing or the generic pre-v2.12.0 text; then a parse limit, a read error or any other reason gets its own remedy, and a truncated reason list never gets a specific one.reference_summary,combine_reference_summaries,reference_summary_recordandreference_summary_messagecount the files and distinct reference lines, total them over a folder, keep only the three count fields, and format the one line. The line says each finding names the artifact and any reasons SkillSpector gave, because a finding counts even when SkillSpector gave no reason.src/skillevaluator/validators/security.py:_convert_skillspector_issuenames an AE1 with an empty or non-textpatternIncomplete referenced artifact analysis (AE1), adds the metadata above and uses the new suggestion when there is evidence. Other rules keepUnknown (...)and their metadata._process_skillspector_cli_resultbuilds oneReportNormalizerand passes it, the report'sanalysis_completenessand the ledger index to each issue, then_record_skillspector_reference_summarysetsskillspector_reference_summary(affected_artifacts,reference_occurrences,reference_occurrences_truncated)._run_skillspectorrecords it again after merging the--llmstage, so a line reported by both stages counts once._validate_with_applicabilitytotals the counts of a folder's skills, as it does forskillspector_applicability.--verify-llmcan pass a complete scan with AE1 findings.src/skillevaluator/reporting/retained.py:retained_resultscopiesskillspector_reference_summarythroughreference_summary_record, so the HTML and Markdown reports that CI renders again from the JSON report keep the count line of a failed result, and a malformed record is dropped.src/skillevaluator/models/result.py:merge_with_prefixputs the skill's[name]prefix onskillspector_occurrences[].file, as it already does foroccurrences, so a folder's JSON names the skill of each reference line.target_pathstays relative to that skill.reporting/cli.pyprints it after the status line,console_ui.summarize_tier1adds areferencesrow,markdown.pyadds a list item, andhtml.pyadds a Jinja filter thatreport.html.j2uses for a line above the Tier 1 results.cli.py,markdown.pyandhtml.pyimport the formatter inside the method that uses it.json_reporter.pyexportsskillspector_reference_summaryfor every result, passed or failed, throughreference_summary_record.docs/tier1-validation.mdxand a sentence in its Troubleshooting entry for valid helper scripts. CHANGELOG: an entry under Unreleased > Added. Both say that with SkillSpector before v2.12.0 the check name changes, so aseverity_overridesentry keyed onSECURITY.Unknown (AE1)must useSECURITY.Incomplete referenced artifact analysis (AE1), and the SARIF rule ID changes with it. Both say the suggestion leaves out the run time and the time budget (observed_seconds,limit_seconds), and the CHANGELOG says each AE1finding_idchanges once because the suggestion text is new.Why
Each AE1 finding names the line that references the file and SkillSpector's generic remedy, but not why the analysis stopped. Users had to match it by hand against the
INCOMPLETEerror, which lists at most three ledger rows.skillevaluator security-scanwith SkillSpector v2.13.3 onPATH, on a skill whose Perl helper prints a string of 2,000 words (SkillSpector recordsstatic_parse_limit):mainand the base branch:Fix: Referenced artifact was not completely inspected Review the reported expression and analyzer's parsing limitation; ...Fix: Referenced artifact scripts/helper.pl was not completely inspected (partial). static_parse_limit (static_patterns_tool_misuse): A security-relevant expression exceeded a bounded static parser's span limit. Review the reported expression ..., and the lineskillspector could not completely inspect 1 referenced artifact(s) across 2 reference occurrence(s); each AE1 finding names the artifact and any reasons SkillSpector gavein the terminal, Markdown and HTML reports. The JSON report records the counts and the evidence. The result is still failed, with the sameINCOMPLETEerror.scripts/helper.pltwice: onmainthe findings areUnknown (AE1)withMake the referenced artifact locally available and fully analyzable, or remove the reference.Here they are named, givestatic_parse_limit (static_patterns_tool_misuse)from the ledger row, and suggest checking the installed SkillSpector release.Kept from public
INCOMPLETEerror from_skillspector_incomplete_analysis_erroris unchanged, and the partial branch of_validate_skillspector_reportis not touched. A gate changes only where a policy loweredSECURITY.Unknown (AE1)and that override was what let the check pass.utils.redaction.redact_sensitive_text, as the other report boundaries do. The path check does not reuseskillspector_scope.normalize_report_path, which requires the file to exist, and that function is unchanged.Unknown (...)fallback name._validate_with_applicabilityas the applicability counters. Inmerge_with_prefixonly the loop that prefixes metadata locations changes.validatefolder run against that folder (target_root, set in_validate_with_applicability). This PR keeps that design and adds no second walker or path check for it: the AE1 counts use the same method, and AE1 target paths are still checked against the scanned skill. The first merge of the base branch conflicted only in that method's docstring. It keeps the base branch's paragraph, and this PR's sentence on the counts sits in the paragraph on the applicability counters.src/skillevaluator/skillspector_diagnostics.pyfor completeness records and editssecurity.py,json_reporter.py,models/result.pyandreporting/retained.py. This PR keeps its helpers in a separate module, with its own text helper (diagnostic_text, which usesredact_sensitive_text; fix(tier1): scope ownership email policy and retain completeness diagnostics #333's usesredact_printable_text), and its hunks apart from fix(tier1): scope ownership email policy and retain completeness diagnostics #333's: atmain1af2693,git merge-treeof this branch with fix(tier1): scope ownership email policy and retain completeness diagnostics #333 gave the same conflicted files and the same number of regions as the base branch merged with thatmain(6 insecurity.py, 1 each inCHANGELOG.md,docs/cli-reference.mdxandcli.py), and none injson_reporter.py,models/result.pyorretained.py. The new import insecurity.pysits next to the import line fix(tier1): scope ownership email policy and retain completeness diagnostics #333 changes, so that existing region is 11 lines longer. No local copy of fix(tier1): scope ownership email policy and retain completeness diagnostics #333's head is available to repeat the check at a latermain. Holding this PR until fix(tier1): scope ownership email policy and retain completeness diagnostics #333 merges and moving the helpers intoskillspector_diagnostics.pyis the alternative; otherwise the two modules can be merged once both land.retained.pythe new lines sit after thescannersblock, apart from fix(tier1): scope ownership email policy and retain completeness diagnostics #333'ssanitize_completenesslines. Atmain1af2693,git merge-treegave no conflict inretained.pywith fix(tier1): scope ownership email policy and retain completeness diagnostics #333. feat(ci): add three-tier onboarding and private report feedback #349, which changed the field map and Tier 3 lines there, has merged intomain.main, accepts a fully inspected SkillSpector v2.13.3 report whose only gaps are missing references as a caveat: an INFOskillspector_reference_caveatsfinding and a JSON field of that name, whichjson_reporter.pyexports andretained.pychecks. That finding has no AE1 evidence, so the AE1 counts leave it out. In both reporters this PR's import sits next to fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's. Itsskillspector_reference_summarylines are a few blocks away from fix(ci): apply reviewed baselines and preserve scan completeness evidence #453'sskillspector_reference_caveatslines: above them injson_reporter.py, afterskillspector_applicability, and below them inretained.py, afterscanners.cli.py,markdown.pyandhtml.pyimport the new module inside the method that uses it, because PRs feat(tier3): reuse a compatible retained no-skill baseline #384, feat(tier3): compare a run against a prior skill version #387, feat(tier3): add a lift history view over retained runs #388, feat(reports): name Skill Lift as the headline and label pass@k as supporting reliability #397, feat(datasets): record how a dataset was generated and show it on reports #405 and feat(reports): show how many cases and attempts each score rests on #406 added an import at the slot where a module-level one would go. All but feat(datasets): record how a dataset was generated and show it on reports #405 have merged intomain, and this branch sits on their code. feat(datasets): record how a dataset was generated and show it on reports #405 is open, and no local copy of its head is available to check it again. For each of the 27 open PRs with a local copy of its head,git merge-treewith this branch gives the same conflicted files and the same number of regions as with the base branch at 89ac385. feat(quality): configure Reliability error handling in the quality config #336 and fix(reporting): stop validate from repeating its header in short terminals #368 have no local copy and were not checked; by its file list feat(quality): configure Reliability error handling in the quality config #336 edits the CHANGELOG anddocs/tier1-validation.mdx. Atmain1af2693, fix(reporting): stop validate from repeating its header in short terminals #368 conflicted withmainitself inconsole_ui.py, and with this branch in that file only. fix(reporting): let default Tier 3 runs with a baseline pass publication #332, feat(ci): add three-tier onboarding and private report feedback #349, fix(quality): derive instruction tokens from parsed frontmatter #356, fix(tier2): retain trailing shell comments in deduplication #357, feat(tier3): reuse a compatible retained no-skill baseline #384, feat(tier3): compare a run against a prior skill version #387, feat(tier3): add a lift history view over retained runs #388, fix(tier3): end feedback chat URL spans where a path after them can start #389, feat(plugin): recognize native OpenClaw manifests in the private plugin helpers #391, feat(reports): name Skill Lift as the headline and label pass@k as supporting reliability #397, feat(reports): show how many cases and attempts each score rests on #406, docs: point the plugin inventory reference at the module that exists #448 and fix(ci): apply reviewed baselines and preserve scan completeness evidence #453 have merged intomain. The merge of the base branch at 89ac385, which broughtmain7ae25d2 (fix(ci): apply reviewed baselines and preserve scan completeness evidence #453, fix(reporting): let default Tier 3 runs with a baseline pass publication #332 and docs: point the plugin inventory reference at the module that exists #448), conflicted only in the import blocks ofsecurity.py,json_reporter.pyandretained.py, where fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's imports and this PR's are both kept. The CHANGELOG merged without conflict: fix(ci): apply reviewed baselines and preserve scan completeness evidence #453's and fix(reporting): let default Tier 3 runs with a baseline pass publication #332's entries are under Unreleased > Fixed, and this PR's AE1 entry stays under Added after docs: simplify repository CI onboarding #443's.git merge-treeof the branch withmain7ae25d2 is clean.Tests
--no-llmreports withskill.sourceset to/fixture/<name>: v2.11.2 for a skill that names a Perl helper twice, v2.12.0 for a skill that names three helpers, and v2.13.3 for the 2,000-word Perl helper.tests/validators/test_skillspector_reference_diagnostics.py(77 tests): the three captured reports (names, suggestions, metadata and counts, with the 13 analyzers of one reason joined), with no count message inresult.messages; the scan staysINCOMPLETEand failed; the--llmstage counts each reference once; rule naming for empty, blank and non-text patterns, and other rules unchanged; bounds and sanitization of reasons, limits and occurrences, including limits beyond the count or float range, and a scan whose limit is10**400still returns its result; tworuntime_limitreasons that differ only inobserved_secondsandlimit_seconds(a fixed limit, a lockfile's budget left, and a YARA budget left with a run time of 0) give the same suggestion andfinding_id, the metadata keeps both values, a size limit beside them stays in the suggestion, and such reasons are described once; redaction; one report of 50 AE1 findings with 128 absolute reference lines and 16 reasons each redacts each distinct text once and resolves the scan root once; a finding with no reasons is counted and the line claims none; paths outside the scan, absolute paths under and outside the scan root, and unknown dispositions; ledger reasons only for an in-scope target and source, read-error remedies, unreadable structured targets, and one ledger pass for 100 repeated findings; truncated reasons never claim one remedy and keep SkillSpector's.tests/reporting/test_skillspector_reference_summary.py(24 tests): the line appears once in the CLI, compact terminal, Markdown and HTML reports of a failed skill and folder, and JSON exports the counts; the result thatretained_resultsrebuilds from the JSON report keeps the counts, and its Markdown report and therender_retained_reportHTML show the line once, while four malformed records are dropped there; two copies of one reference line whose reasons differ only in the run time and the time budget are one unique finding in the JSONfinding_groups; in a folder each exported reference line carries its skill's prefix; a cut occurrence list readsat least 256; a passing result shows no line, including a complete scan whose AE1 findingsapply_policylowers, where JSON still has the counts; for a report before v2.12.0 an override ofSECURITY.Incomplete referenced artifact analysis (AE1)passes the check and one ofSECURITY.Unknown (AE1)does not; malformed counts are neither shown nor exported; the export keeps only the count fields; folder totals skip malformed children.tests/validators/test_skillspector_ae1_contract.py(3 tests,integrationmarker, skipped unlessskillspector.graphv2.13.1 or later is importable): an inert Perl help string,system("rm -rf /")and the 2,000-word string. The default run deselects them, and with-m integrationthey are skipped here because the test environment has no SkillSpector. The same three cases, run throughskillspector.graphv2.13.3 and_process_skillspector_cli_resultin a script, give the expected results.skillspector_references.pyadded to the base branch'ssrc/and a no-op_record_skillspector_reference_summary, they give 61 failed and 40 passed. Of the 40, 11 call the new module's helpers directly; the other 29 pin what stays the same: an AE1 with an out-of-scope, unreadable or unknown-disposition target gets no evidence, malformed counts show nothing, other rules and a given AE1 pattern keep their names, and two copies of a line that differ only in the run time and the time budget stay one unique finding, as onmain. On the branch before the time-budget fix (8bef506), 6 of the 101 fail: the three run-time and time-budget cases, the size-limit test, the described-once test and the unique-finding test. On the branch before the run-time and retained-report fixes (1153394), 8 fail: those 6, the limits assertion of the sanitization test and the retained report test; the four malformed retained records were already dropped there.integrationcases; with-m integration, 3 skipped).tests/validators/test_skillspector_hook_surface.py,test_security.py,test_skillspector_scope.py,test_base.py,tests/test_commands.py,tests/golden/;-n 4): 2067 passed, 1 skipped.tests/reporting,tests/validators, which holds everytest_security*module and this branch's two validator modules,tests/models/test_result.py,tests/golden,tests/test_commands.py,tests/ci/test_prepare_security_baselines.py,test_run_tier1.py,test_evaluate_workflow.py,test_gitlab_template.py,tests/test_ci_workflows.py,tests/test_oss_packaging.py,tests/test_ci_change_classifier.py;-n 4): 7292 passed, 2 skipped, 5 failed. The 5 are thetests/ci/test_prepare_security_baselines.pycases that startpython -I(below).-n 6): 27950 passed, 35 skipped, 10 failed. The 10 fail the same way onmain7ae25d2. Five are thetests/ci/test_prepare_security_baselines.pycases from fix(ci): apply reviewed baselines and preserve scan completeness evidence #453 that runci/prepare_security_baselines.pywithpython -I: here that imports the installed SkillEvaluator, which has noskillevaluator.utils.structured_data. Three aretests/ci/test_all_tier_preflight.py::test_actual_workflow_bootstrap_ignores_consumer_pythonpathand the two cases oftests/ci/test_feedback.py::test_isolated_feedback_launcher_uses_trusted_siblings_from_any_consumer_directory. They startpython -I, which ignoresPYTHONPATH, so here they cannot import the checkout'scipackage. The other two are sidecar cases intests/test_harbor_secure_docker_environment.py, which here stop withDocker Compose interpolation variable ... requires protected execution state(HELPER_IMAGE,CUSTOM_HOST_IP).ruff check(0.15.20) is clean on the changed Python files.ruff format --checkpasses on every changed file exceptsecurity.py, where it reports the same 27 hunks as the base branch at 89ac385 (main7ae25d2 reports 28), none in this PR's lines.scripts/check_oss_boundary.pypassed.🤖 Generated with Claude Code