From 71a1c325f74d405ddc7b2cb06b0dbfd3b62b9b15 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Mon, 5 Jan 2026 05:54:32 -0800 Subject: [PATCH] refactor(code-review): add rename detection to git change discovery MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Step-01 substep-4: - Use git diff -M to detect renamed/moved files - Include deleted, renamed files in git_changed_files - Adversarial reviewer needs to see deletions (e.g., critical code removed) - Downstream steps will handle these appropriately (documented in implementation-notes) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 --- .../code-review/steps/step-01-load-story.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/bmm/workflows/4-implementation/code-review/steps/step-01-load-story.md b/src/modules/bmm/workflows/4-implementation/code-review/steps/step-01-load-story.md index d402fb9d..63223380 100644 --- a/src/modules/bmm/workflows/4-implementation/code-review/steps/step-01-load-story.md +++ b/src/modules/bmm/workflows/4-implementation/code-review/steps/step-01-load-story.md @@ -70,11 +70,11 @@ Check if git repository exists. ```bash git status --porcelain -git diff --name-only -git diff --cached --name-only +git diff -M --name-only +git diff -M --cached --name-only ``` -Compile `git_changed_files` = union of modified, staged, and new files. +Compile `git_changed_files` = union of modified, staged, new, deleted, and renamed files. ### 5. Cross-Reference Story vs Git