Repository navigation
Description
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
_closingsand stays inopen_items, so it holds the cut onOPEN_ITEMSuntil a person closes or moves it. - Decide whether a pull request merged after the reopen may close it. The issue listing keeps
state_reasonatreopenedwhile 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, whichMergedPullRequestdoes 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 onOPEN_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 cipasses.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 8, 2026
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.
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.It undermines trust in the closure job and forces manual intervention, but the project remains usable with a workaround.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.dan-petty commentedon Oct 23, 2026
Not planned: roadmap/close.py is deleted by #1952, and GitHub closes issues natively.