Stage 1 review assessment for desloppify issue #565. Work in…
- User
Stage 1 review assessment for desloppify issue #565. Work in /Users/user_c042661f/Documents/desloppify. Read dev/review/prompts/1-review-agent.md and dev/review/schema.json. Use gh to read issue #565 body/comments and relevant code areas. Assess honestly per the prompt. Do not modify files. Return only the JSON object that should be written to dev/review/results/issue-565.json. Include all required fields, and include open_questions only if genuinely needed.
- Assistant
I’ll read the review prompt/schema first, then pull the issue context and inspect the implicated code paths without changing the worktree.
- Assistant
The issue is about suppression identity across file moves. I’m going to trace how suppressions are stored, matched, and reapplied during scan/show so the verdict rests on the actual path and state behavior.
- Assistant
I found a very close related issue: #558 describes the same suppression-transfer failure for Rust
#[path]test-module splits. Next I’m narrowing into the suppression command and scan/state merge code to confirm whether current suppressions are only path-pattern based. - Assistant
{"number":565,"type":"issue","title":"Suppress patterns are file-path-prefixed, so any refactor that renames or splits a file resurrects the same false positive under the new path","author":"Vuk97","stage1":{"verdict":"ACCEPT","summary":"The underlying problem is real: suppressions are persisted as config ignore patterns and matched against the generated issue id/file path only, so an exact suppression for
security::src/order.rs::...will not match the same detector finding after the code moves tosrc/order_tests.rs.cmd_suppressstores only the raw pattern,matched_ignore_patternperforms prefix/glob/file-path matching, and scan merge reapplies suppressions only through that matcher. There is no content fingerprint or moved-code correlation. This is worth fixing because it creates real refactor friction for false positives, although the existing glob support means one mitigation already exists if users know to use it.","confidence":"high","scope_estimate":"large","potential_duplicates":[558],"real_problem":true,"suggested_fix":"Add durable suppression identity for moved findings rather than relying only on exact path-prefixed ids. A pragmatic implementation would store suppression metadata with a normalized detector/kind plus a content or line-context fingerprint at suppression time, then during scan match new findings against both configured patterns and those fingerprints, with migration/backward compatibility for existing config/state. Also improve help or scan warnings to make wildcard suppressions discoverable, since is already supported by the current matcher."}}