Skip to content

Constrain dedupe candidates to canonical open issues#29461

Open
vishnukannaujia wants to merge 1 commit intoanthropics:mainfrom
vishnukannaujia:fix-dedupe-candidate-constraints
Open

Constrain dedupe candidates to canonical open issues#29461
vishnukannaujia wants to merge 1 commit intoanthropics:mainfrom
vishnukannaujia:fix-dedupe-candidate-constraints

Conversation

@vishnukannaujia
Copy link

Why

Duplicate-bot suggestions can create noisy/circular duplicate webs and can point to poor canonical targets.

This is described in:

What changed

Updated .claude/commands/dedupe.md with explicit required candidate constraints before posting duplicate suggestions:

  • candidate must be open
  • candidate must be older than base issue
  • candidate must not be labeled duplicate
  • candidate must not be the base issue itself
  • if no candidates satisfy constraints, do not post duplicate comment

Also added canonical preference guidance to avoid unstable targets (e.g. stale/autoclose).

Impact

  • Reduces duplicate-of-duplicate chains.
  • Prevents suggesting non-canonical or low-signal targets.
  • Improves reliability of duplicate comments used by downstream auto-close flow.

Related

@vishnukannaujia
Copy link
Author

Requesting maintainer review for this dedupe change: @ddworken @bogini @ashwin-ant . Could one of you please take a look when possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants