Repository navigation
fix(tier1): keep image-only SkillSpector reports incomplete when reference evidence is unmatched - #476
Merged
chrisknvidia merged 5 commits intoNov 13, 2026
Conversation
…es INCOMPLETE The missing-reference rule only read the lines of reference_resolution ledger rows. A "missing" entry in analysis_completeness.references with no ledger row, and a report that flags a list as truncated (a key ending in _truncated), skipped that line check, so the scan passed with a warning even when the unread line names a file left out of the scanned copy, such as versions/install.sh. After the ledger rows are accepted, the rule now also returns None, which keeps the scan INCOMPLETE, when any _truncated key of analysis_completeness is set, when a "missing" reference is not on the line of an accepted row, or when any reference is "ambiguous". The truncation check shares one helper with the provider-outage rule. Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia
marked this pull request as ready for review
November 13, 2026 08:01
chrisknvidia
requested review from
mosheabr,
rmalani-nv and
rng1995
as code owners
November 13, 2026 08:01
…ference has no row A partial report whose only ledger rows were referenced images skipped the missing-reference checks, so a `missing` or `ambiguous` entry in `references` with no row, or a list flagged as truncated, still passed with only the image warning. Refuse that case the same way as a report with reference rows. The image-only test case now drops the missing reference together with its row, as SkillSpector does, and new cases cover an unmatched missing reference, an ambiguous one and a truncated list. Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
rng1995
reviewed
Nov 13, 2026
rng1995
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed fd691399b629, tracing missing-reference correspondence, caveats, truncation, and raster fallback into incomplete-scan status. The full security test file passed locally (1,340 passed, 1 skipped), including the new missing-reference cases. No new actionable finding. These tests use captured scanner reports/mocks; no live SkillSpector run was performed.
Main now has the stricter reference rules this branch was adding: every missing reference needs an accepted ledger row at its source location, an ambiguous reference or a truncation marker is refused, and unknown completeness fields are not accepted. Take main's version of the docs and of the missing-reference code, and keep this branch's tests on top of it. One case is still open on main: a partial report whose only ledger row is a referenced image is accepted even when its references list a missing reference without a row, an ambiguous reference or a truncated list. Keep the check for that case, built on main's reference helper, and keep the changelog entry, now in the Unreleased section. Drop the test that expected a truncation key set to false or null to be ignored, since main refuses any such key, and update the expected error text to include main's acceptance hint. Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia
deleted the
fix/christopherk/skillspector-reference-ledger-check
branch
November 13, 2026 17:42
rng1995
added a commit
that referenced
this pull request
Nov 13, 2026
Picks up #476 and #479; #476's entry is already under Unreleased. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
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
Main already keeps a SkillSpector
partialorcomplete_with_caveatsreport INCOMPLETE when amissingreference has no ledger row, anambiguousreference exists, or a list is flagged truncated, but only on the path where a missing-reference row exists. Apartialreport whose only ledger row was a referenced image still passed with the image warning alone, even with those three conditions present. This PR closes that gap: the image path now checks the report'sreferenceslist and truncation keys first, and a non-objectreferencesentry counts as unmatched. It shares one reference-row helper with main's check.Verification
missingreference, anambiguousreference and a truncated list stay INCOMPLETE; they fail on main)make lint(ruff check src testspasses)make build(python -m build: sdist and wheel built)Release Impact
CHANGELOG.md