Skip to content

fix(review): finding locations keep paths with +, @, ~ or % - #529

Merged
dan-petty merged 1 commit into
release/v0.2.23from
fix/498-location-path-characters
Sep 24, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.23from
fix/498-location-path-characters

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Closes #498.

Problem

canonicalize_finding_location matched paths with [a-zA-Z0-9_\-./\\] only. A path outside that class fell through to a fallback that kept its first path-like fragment. Every finding under the #415 corpus named playbooks+core+... was saved as .data/reviews/corpora/playbooks, with no file and no lines.

Change

The three location patterns share one character class (_PATH_CHARS in review_schema.py):

  • a path with lines;
  • a file:target location;
  • a location embedded in prose.

The class accepts letters and digits of any script, plus the punctuation file names use:

Character Examples
+ include/c++/, playbooks+core
@ node_modules/@scope/, logo@2x.svg
~ ~/.config/
% 100%-coverage.md

Test plan

The location patterns matched paths with [a-zA-Z0-9_\-./\\] only. A path outside that
class fell through to a fallback that kept its first path-like fragment, so every
finding under a corpus named playbooks+core+... was saved as
.data/reviews/corpora/playbooks, with no file and no lines.

The three location patterns (a path with lines, a file:target location and a location
embedded in prose) now share one character class: letters and digits of any script,
and the punctuation file names use: c++, @scope, logo@2x, ~/.config, 100%.

Closes #498
@dan-petty dan-petty added this to the v0.2.23 milestone Sep 24, 2026
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/review Multi-persona code review engine, verification, and findings priority/p2-medium Priority P2: standard work labels Sep 24, 2026
@dan-petty
dan-petty merged commit 311b417 into release/v0.2.23 Sep 24, 2026
7 checks passed
@dan-petty
dan-petty deleted the fix/498-location-path-characters branch September 24, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority/p2-medium Priority P2: standard work scope/review Multi-persona code review engine, verification, and findings type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant