Skip to content

feat(roadmap): do not move issues to backlog if they have an open or merged pull request #1244

Closed

Description

@dan-petty

Problem

When a pull request (open or merged) is in-flight or completed for an issue in the active release milestone, the roadmap service (roadmap-service / devops roadmap reprioritize / intake) may demote the issue to the backlog with a comment such as:

Moved to the backlog: after started, only a critical fix can join it. A person can place it in a planned release, and that placement stands. (devops roadmap reprioritize)

This disrupts active development by unexpectedly removing items that have in-flight or merged implementations.

Solution

  1. Update pull request queries in roadmap store to index both OPEN and MERGED pull requests.
  2. In reprioritize.py, guard admission and descoping so that any issue with an open or merged pull request is kept/admitted (Action.ADMIT / Action.KEEP) and not moved to the backlog.
  3. In intake.py, ensure items with open or merged pull requests remain in the release rather than demoted.
  4. Add unit and integration test coverage.

Activity

  1. added this to the v0.2.27 milestone on Oct 6, 2026
  2. added
    type/feature
    scope/github
    priority/p1-high
    on Oct 6, 2026
  3. dan-petty-bot commented on Oct 6, 2026

    @dan-petty-bot
    Collaborator

    What changed

    #1245, merged into release/v0.2.27 as 4e40d1b.

    Resolves #1244

    9 file(s) changed.

    How it was verified

    Check runs at ad0a74c:

    • Prune PR DevContainer Images: pass
    • CodeQL: pass
    • Analyze (actions): pass
    • Static Analysis: pass
    • Analyze (python): pass
    • Tests & Coverage: pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1244-keep-issues-with-prs-out-of-backlog.md:

    • _OPEN_PULL_REQUESTS_QUERY queries states: [OPEN, MERGED] and MemoryStore.open_pull_requests() returns open and merged PRs.
    • An issue joining a started release that has an open pull request is admitted (Action.ADMIT) and kept in the release.
    • An issue joining a started release that has a merged pull request is admitted (Action.ADMIT) and kept in the release.
    • An issue with an unmerged (closed) pull request is moved to the backlog as before.
    • An issue with an open or merged pull request is not descoped as an over-cap victim when a critical fix takes the release over cap.
    • A New or Blocked item with an open or merged pull request stays in the release at release start.
    • Full unit and regression test coverage in tests/test_roadmap_reprioritize.py and tests/test_roadmap_github_store.py.
    • uv run devops ci passes with 100% checks passing.
    • changelog.d/1244.md exists and documents the feature.
  4. added a commit that references this issue on Oct 6, 2026
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

    priority/p1-highscope/githubtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions