Skip to content

fix(review): a dependency advisory the base revision's pins already have is listed as pre-existing #1353

Closed

Description

@dan-petty

Problem

This is a Copilot thread on release PR #1283, verified at b57ef7f. base_fingerprints comes only from rerunning the static scanners on the base revision [code: src/devops_cli/ai/review/pipeline.py:2911]. So every dependency advisory is listed as introduced, with SARIF baselineState: new, even when the base revision pins the same vulnerable version. This fails safe, since nothing gates on the label. The v0.2.28 release notes say so. #1289 and #1304 introduced this.

Acceptance criteria

  • _audit_file_dependencies extracts the base revision's pins and reuses its advisory cache, so it makes no extra OSV requests. It admits them against the base content and adds those fingerprints to base_fingerprints.
  • A test fails today: an advisory the base revision already has is listed under Pre-existing, and a new pin's advisory under Introduced.
  • uv run devops ci passes.

Strategic alignment

Activity

  1. added
    type/bug
    scope/review
    priority/p2-medium
    on Oct 7, 2026
  2. dan-petty-bot commented on Oct 8, 2026

    @dan-petty-bot
    Collaborator

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Priority: P2-Medium. The mislabeling is visible in reports but explicitly fails safe (nothing gates on the label), so it is a correctness issue without functional or security impact.
    • Value: Medium. Users see inaccurate Introduced vs Pre-existing classification for dependency advisories, which undermines trust in the review report but does not block or misdirect any action.
    • Effort: Medium. Requires modifying _audit_file_dependencies to extract base pins, reuse the advisory cache, admit against base content, update base_fingerprints, and add a failing-then-passing test.
  3. dan-petty commented on Oct 8, 2026

    @dan-petty
    OwnerAuthor

    Linked: #1302 and #1146 share the advisory path (ai/review/pipeline.py:2881-2959), which #1146 replaces. The pre-existing match (review/admission.py:175) is reliable only with #1141's purl@version. Found by the 2026-10-08 backlog review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/reviewtype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions