Skip to content

Match Only a Closing Reference When the Unattended Picker Excludes an Issue Fixed on develop #2351

Closed

Description

@ptr727

Problem

unattended-handoff's "Auto-Resolvable" section excludes an issue when:

No open pull request names it, and no pull request whose squash commit is in origin/main..origin/develop names it anywhere in its body, since a fix merged to develop leaves its issue open until it is promoted, whoever merged it.

"Names it anywhere in its body" also matches a pull request that only mentions the issue: one it filed along the way, a follow-up, or a cross-reference. Those mentions are routine, because worker step 7 has the lane report "what it filed along the way", and the pull request body tends to carry the same list. An issue filed by a lane's own pull request is therefore unpickable until the next promotion, although nothing has fixed it.

Observed

In ptr727/HomeAutomation-Config, PR #769 (feature -> develop) named #757 in its body as a follow-up it filed. #757 was then answered by the maintainer and had its decision label removed, which made it ordinary work. The next picker returned NONE, counting #757 among the issues "fixed on develop awaiting promotion". The fix #757 asks for is not on develop.

Possible fix

Match only a closing reference: Closes on promotion: #N, which worker step 3 already requires on every feature -> develop body, plus the Closes/Fixes/Resolves keywords. Ignore a bare #N mention. The open-pull-request half of the same clause has the same over-match and probably wants the same narrowing.

Activity

  1. added
    bug
    skills
    on Oct 4, 2026
  2. ptr727 commented on Oct 4, 2026

    @ptr727
    OwnerAuthor

    Refinement after consulting the hub session: the keyword set proposed above is too narrow.

    Attended pull requests into develop often write Addresses #N and leave the Closes lines to the promotion pull request. The hub's own lanes merged 19 fixes into develop that way. The proposed set (Closes on promotion: plus Closes/Fixes/Resolves) would let the picker take all 19 as unfixed and redo them. The two failure modes are not symmetric: a false exclusion only delays an issue until the next promotion, while a false inclusion duplicates work on an issue that is already fixed.

    Revised proposal:

    • Name an explicit fix-intent set in the skill: Closes/Fixes/Resolves in any form, Closes on promotion:, and Addresses. Pull request authors and the picker then share one definition.
    • Exclude an issue only when a reference from that set names it.
    • Apply the same narrowing to the open-pull-request half of the clause.

    A bare follow-up mention, such as "filed #757", then no longer excludes.

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

    bugskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions