Skip to content

fix(roadmap): closure does not close again an item a person reopened in the current release #1417

Closed as not planned

Description

@dan-petty

Problem

Closure closes as completed each open issue named with a closing keyword in the body of a pull request merged into the current release's branch (_closings, src/devops_cli/roadmap/close.py:270, called from _plan_current, :433). Nothing tells it a person reopened the issue after an earlier run closed it. The next run closes it again with a comment claiming delivery, and does so on every run while that pull request's body names it. The item then also counts as completed toward the release's cut. That reverts a person's change, which ADR 0002 rules out for every job.

#1362 skips such an item in a closed release's reads: an open issue whose state_reason is reopened (_reopened, :343) is named and left open. The current release's read, unchanged since #743, does not skip it.

Proposed remedy

  • Apply the same rule to the current release's read. A reopened item is not a target of _closings and stays in open_items, so it holds the cut on OPEN_ITEMS until a person closes or moves it.
  • Decide whether a pull request merged after the reopen may close it. The issue listing keeps state_reason at reopened while the issue is open and does not say when it was reopened. Telling a later delivery apart needs the issue's timeline (GitHubRoadmapStore.closures, src/devops_cli/roadmap/github_store.py:1580) and the pull request's merge time, which MergedPullRequest does not carry yet. That is one more read per reopened item a merged pull request names. Without it, a person closes such an item by hand. The same choice applies to the closed-release reads fix(roadmap): closure closes the items delivered into a release whose milestone has already closed #1362 added.

Acceptance criteria

  • tests/test_roadmap_close.py: an item of the current release that closure closed and a person then reopened stays open on the next run. The run writes nothing for it, names it, and holds the cut on OPEN_ITEMS.
  • If the timeline is read: a pull request merged after the reopen closes the item, and the dry run lists the timeline read under its own condition.
  • Tests are offline, each call phase stays under 1 s, and uv run devops ci passes.

Found in the review of #1362. Related: #1362, #743.

Activity

  1. added
    type/bug
    scope/release
    source/agent
    on Oct 8, 2026
  2. dan-petty-bot commented on Oct 8, 2026

    @dan-petty-bot
    Collaborator

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Priority: P2-Medium. It reverts a person's intentional action on every run, but a manual close or PR-body edit provides a workaround, so it is not a full blocker.
    • Value: Medium. It undermines trust in the closure job and forces manual intervention, but the project remains usable with a workaround.
    • Effort: Medium. The core fix is applying the existing state_reason check to the current-release read, but the optional timeline read to distinguish reopen timing adds a non-trivial API call and data-model change.
  3. dan-petty commented on Oct 23, 2026

    @dan-petty
    OwnerAuthor

    Not planned: roadmap/close.py is deleted by #1952, and GitHub closes issues natively.

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

    scope/releasesource/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions