fix: include both committed rename paths in diff selection - #219
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 2:57 AM ET / 06:57 UTC. ClawSweeper reviewWhat this changesInclude both committed rename paths when selecting features for review, CI, and revalidation, with regression tests and documentation updates. Merge readiness✅ Ready for maintainer review This PR remains necessary: current main and v0.8.1 still omit rename source paths. The focused fix, regression coverage, and reported built-CLI verification support landing it; no blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherClawpatch matches Git changes against mapped feature files to choose what to review or revalidate. The shared changed-path collector feeds this selection for both direct commands and the CI workflow. flowchart LR
A[Git reference and project root] --> B[Collect committed changes]
B --> C[Include both rename paths]
C --> D[Match mapped feature files]
E[Existing feature records] --> D
D --> F[Review and CI selection]
D --> G[Finding revalidation]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep rename endpoint expansion in the shared Git collector so every diff-scoped command consistently selects affected features without changing stored mappings. Do we have a high-confidence way to reproduce the issue? Yes: map a feature, commit a rename of its owned file with rename detection enabled, then select using --since. Current-main source explains the omission, and the contributor reports before/after CLI output; this review did not execute a reproduction. Is this the best way to solve the issue? Yes: disabling rename collapsing in the existing collector restores both endpoints for all callers while preserving project scoping and filename safety. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e2d57da24f3c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Committed renames could make
clawpatch review --since <ref>report “no features touched by diff” even when the old path belongs to mapped features. Git's name-only rename output contains only the destination, so the shared diff filter silently skipped those features during review, CI, and revalidation.Disable rename collapsing when collecting changed paths. Both endpoints are now included as deletion/addition paths, while NUL-delimited filenames and project-relative filtering remain intact. Updated the review guide and Unreleased changelog.
Validation:
review --since <base> --dry-run --json. Before:no features touched by diff. After:wouldReview: 3, including the original CLI feature.