Skip to content

duplicate_fixes_check compares open PRs only, so an open PR re-doing a MERGED fix reports clean #2983

Closed

Description

@bong-water-water-bong

Found live on 2026-11-20, and it is a hole in the gate that went hard this afternoon (#2962/#2971/#2974).

duplicate_fixes_check --gate compares open PRs against open PRs. When one of a pair merges, the pair stops existing from the gate's point of view, so the row reports clean and says nothing.

Instance: #2982 (Fixes #2978, opened 15:09) duplicated #2979, which merged edb31b29f at 15:10 with the identical fix (pos[m] != have && pos[m] != 0). Measured after the fact:

open #2982 claims #2978, already merged as #2979 at 2026-11-20T15:10
open PRs: 5   merged PRs scanned: 76   duplicate-of-merged hits: 1

Fix (in the PR that closes this): a third pass comparing an open PR's closing claims against PRs merged within a time window (default 2 days), as a twin only when the two touch a shared file.

Two design constraints learned from the fail modes this tool already had today:

This is the third way this tool could be blind, all found today: it could not look at all (owner/name → skip, #2971), it could not tell a failure-to-look from a clean (#2974), and it only looks at half the population (this).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions