Skip to content

fix(tier1): keep image-only SkillSpector reports incomplete when reference evidence is unmatched - #476

Merged
chrisknvidia merged 5 commits into
mainfrom
fix/christopherk/skillspector-reference-ledger-check
Nov 13, 2026
Merged

chrisknvidia merged 5 commits into
mainfrom
fix/christopherk/skillspector-reference-ledger-check

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Main already keeps a SkillSpector partial or complete_with_caveats report INCOMPLETE when a missing reference has no ledger row, an ambiguous reference exists, or a list is flagged truncated, but only on the path where a missing-reference row exists. A partial report 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's references list and truncation keys first, and a non-object references entry counts as unmatched. It shares one reference-row helper with main's check.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests (image-only reports with an unmatched missing reference, an ambiguous reference and a truncated list stay INCOMPLETE; they fail on main)
  • Updated documentation for user-visible changes
  • Ran make lint (ruff check src tests passes)
  • Ran make build (python -m build: sdist and wheel built)
  • Ran the security, validators and SkillSpector scope tests locally (1714 passed); the full suite runs in CI
  • Did not add credentials, private datasets, or proprietary benchmark content

Release Impact

  • Updated CHANGELOG.md

…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
chrisknvidia marked this pull request as ready for review November 13, 2026 08:01
devin-ai-integration[bot]

This comment was marked as resolved.

…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]>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 chrisknvidia changed the title fix(tier1): keep SkillSpector reports with unmatched missing references INCOMPLETE fix(tier1): keep image-only SkillSpector reports incomplete when reference evidence is unmatched Nov 13, 2026
@chrisknvidia
chrisknvidia merged commit a5df6cb into main Nov 13, 2026
27 checks passed
@chrisknvidia
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants