Skip to content

fix(github): the release-start trim and the cap descope pass over an item that a staying item depends on, so the job never keeps an item whose dependency it moved #1123

Closed

Description

@dan-petty

Problem

devops roadmap reprioritize (#740, merged in 132ecc5) trims a starting release that holds more than its cap (release_cap, 12) in one fixed order: unstarted items only, lowest Priority, then lowest Value, then highest number, with critical fixes and P0 features last (roadmap/reprioritize.py:807-811, :1644-1648; row (PLANNED, OVER_CAP_AT_START) -> TO_NEXT, TRIM at :351). That order ignores dependencies, although the store already reads them as GitHub blocked-by links (RoadmapStore.dependencies, store.py:743; github_store.py:1086, which reads issues/{n}/dependencies/blocked_by; the in-memory store's link_dependency, memory_store.py:284). A start can therefore trim an item and keep another item in the release that depends on it:

Acceptance criteria

The rule: the trim repeatedly takes the lowest-ranked unstarted item, in the existing order, that no item staying in the release depends on. It passes over an item that a staying item depends on, and looks again after each trim, so a dependency can be trimmed once every item depending on it has left. Only open items in the starting release count, matched by repository and number as _depends_outside matches them. As rows of TRANSITIONS:

State Event Action Reason
PLANNED OVER_CAP_AT_START: the lowest-ranked unstarted item that no staying item depends on TO_NEXT TRIM (existing row; its text changes)
PLANNED DEPENDED_ON_AT_START (new): passed over because a staying item depends on it KEEP DEPENDED_ON (new)
STARTED OVER_CAP, OVER_SIZE: chosen the same way among unstarted items that are not critical fixes TO_NEXT CAP, OVER_SIZE (existing rows; their text changes)

Key questions

Strategic alignment

Update 2026-10-08: refinement

The trim and descope still sort by ranks.last (roadmap/reprioritize.py:839-843). Blocked-by links now exist (#983, #1312), and #1360 starts releases without a person. v0.2.26 shipped and release epics are retired, so drop the v0.2.26 criterion and 'Is this a release fix?'. Keep the linked-PR and #1349 person filters; the gate test is tests/test_roadmap_lifecycle_properties.py:1185.

Activity

  1. added
    type/bug
    scope/github
    priority/p2-medium
    on Oct 3, 2026
  2. added this to the v0.2.35 milestone on Oct 11, 2026
  3. dan-petty commented on Oct 11, 2026

    @dan-petty
    OwnerAuthor

    Moved to v0.2.35: v0.2.35 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)

  4. added a commit that references this issue on Oct 13, 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/p2-mediumscope/githubtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions