Stage 1 review assessment for desloppify PR #582. Work in…
- User
Stage 1 review assessment for desloppify PR #582. Work in /Users/user_c042661f/Documents/desloppify. Read dev/review/prompts/1-review-agent.md and dev/review/schema.json. Use gh to read PR #582 diff, body, comments, and surrounding full files. Assess honestly per the prompt. Do not modify files. Return only the JSON object that should be written to dev/review/results/pr-582.json. Include all required fields, and include open_questions only if genuinely needed.
- Assistant
I’ll read the review prompt and schema first, then inspect PR #582 via
ghincluding the diff, discussion, and the touched files’ surrounding context. - Assistant
The diff is very small: one path-normalization change plus a regression test. I’m pulling the PR metadata and then I’ll inspect the full changed files and the surrounding discovery code path.
- Assistant
The relevant call path is
find_source_files()→_is_excluded_dir()/ file filtering →matches_exclusion(). The current base code really does callrel_path.lstrip("./"), so I’m checking the PR-head full files and validating whether the behavior is reachable from scan exclusions. - Assistant
{ "number": 582, "type": "pr", "title": "Preserve hidden path prefixes in exclusions", "author": "tristanmanchester", "stage1": { "verdict": "ACCEPT", "summary": "This PR fixes a real exclusion-matching bug in matches_exclusion(): full-path glob matching normalized relative paths with rel_path.lstrip("./"), which strips all leading dots and slashes, so a hidden path like .cache/subdir/file.py incorrectly matches a non-hidden exclusion pattern like cache/** and fails to match .cache/**. The code path is reachable through scan exclusion handling: CLI/config exclusions are applied via set_exclusions(), find_source_files() prunes directories and files through _is_excluded_dir() and matches_exclusion(), and dependency graph finalization also filters nodes through matches_exclusion(). Replacing the broad lstrip with exact removeprefix("./") preserves hidden directory names while still handling explicit ./ prefixes. The added regression directly covers the hidden-directory glob distinction. No state format or layering concerns.", "confidence": "high", "scope_estimate": "small", "potential_duplicates": [], "real_problem": true } }