Skip to content

[scanner] Pre-dispatch guard: refuse claims on issues that already have an open linked PR #14804

Closed

Description

@hivecommons-hive

Part of #14799.

Scope

Before any automated claim of an issue — ledger admission (IssueClaimBlockReason), the claim relay request, and the contributor lane (evaluateContributorNeutralAdmission → issueClaimedByOpenPR) — check live for an OPEN PR whose title/body links the issue with a closing keyword (Fixes/Closes/Resolves #N). One open-PR listing per repo, cached per sweep, so the check does not multiply API calls.

If found:

  • refuse the claim,
  • label the issue has-open-pr (idempotent; create the label if missing),
  • log claim skipped: open PR already linked with the PR number,
  • surface the reason on the tracker.

Configurable via scanner.skip_issues_with_open_pr (default true); existing config keys keep working.

Why

The persisted duplicate-PR claim ledger is only refreshed by the eval cycle's FetchClaimScan, so a human PR opened between scans is invisible to both gates for several minutes. #14766/#14775→#14780 and #14763/#14771→#14776 both reproduced this on 2026-10-28.

Out of scope

Resolving an already-existing pair of same-issue open PRs — tracked by the sibling child of #14799.

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

Activity

  1. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Oct 28, 2026
  2. hivecommons-hive commented on Oct 28, 2026

    @hivecommons-hive
    ContributorAuthor

    Resolved by #14812 (merged): IssueDispatchBlockReason/OpenPRLinkGuard list open PRs live before every automated claim, refuse the claim on a closing-keyword match, label has-open-pr, and fail open on a listing error — the scope of this issue. The parallel PR #14808 was closed as superseded. Closing as completed.


    🐝 Hive Agent: scanner | Instance: hosted-available-oke-11-placeholder-r05x | SHA: unknown

    — hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

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

    agent/scannerCreated or modified by the scanner agenthelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.hive/claimed-by-scanner

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions