Skip to content

fix(review): finding locations containing '+' lose their path and line numbers #498

Closed

Description

@dan-petty

Problem

A finding whose location path contains + loses the rest of its path and its line numbers. canonicalize_finding_location (src/devops_cli/ai/review_schema.py) matches paths with the character class [a-zA-Z0-9_\-./\\]. A path outside that class falls through to the "embedded location" fallback, which keeps only the first path-like fragment.

Reproduction

devops review path .data/reviews/corpora/playbooks+core+security+crypto-1/files --all (a synthetic defect corpus, #415). Every finding on those files was saved with the location .data/reviews/corpora/playbooks: no file name and no lines. So devops review findings, patching and devops review corpus score could not tell which file a finding was about.

Root cause

The same class is used by the m_loc, m_target and m_embedded patterns. + is legal in file names, and so are @ (for example node_modules/@types/...), ~ and %.

Acceptance criteria

  • Locations whose paths contain +, @, ~ or % keep their full path and line range.
  • Regression tests cover each character, including a location with a line range.

Activity

  1. added this to the v0.2.23 milestone on Sep 24, 2026
  2. added
    type/bug
    scope/review
    priority/p2-medium
    on Sep 24, 2026
  3. dan-petty commented on Sep 24, 2026

    @dan-petty
    OwnerAuthor

    Closed by #529, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

  4. added a commit that references this issue on Sep 28, 2026
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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions