Skip to content

feat(roadmap): every open p0 and p1 item sits in an open release (#882) - #1715

Merged
dan-petty merged 1 commit into
release/v0.2.37from
feat/882-p0-p1-releases
Oct 20, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.37from
feat/882-p0-p1-releases

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Task: Every Open P0 and P1 Item Sits in an Open Release (#882)

Issue: #882
Scope: scope/roadmap
Feasibility: Confirmed against board state and runtime transitions in reprioritize.py. Backlog P0 and P1 placement rules operate on open planned releases without requiring remote API calls.

Description

By the board's Priority field, open P0 and P1 items without milestones were previously left in the backlog indefinitely. devops roadmap reprioritize now ensures that every open P0 and P1 item that no person took out of a release sits in an open release.

  • Helper (roadmap/reprioritize.py): nearest_planned_release(run, plan, base_version, limit) returns the nearest open planned release after base_version holding fewer than limit open items.
  • Backlog Priority Sweep (_sweep_backlog_priority): In every run, after _plan_rules and _plan_start, sweeps backlog P0/P1 items in _Ranks.first order into the nearest open planned release holding fewer than release_cap + release_slots (16) items, recording the move with Reason.PRIORITY and event PRIORITY_IN_BACKLOG.
  • Displacement: A P0 meeting a full release (16 items) displaces its lowest-ranked unimplemented P3 item (no linked PR; Status New or Ready), moving the P3 to the next release with room or to the backlog. A P1 meeting a full release displaces nothing and goes to the next release with room.
  • Horizon expansion: When every planned release holds 16 items, the run creates the next patch release via _create_release and places the item there.
  • Start transitions: At release start, New and Blocked P0/P1 items go TO_NEXT with Event.PRIORITY_NEW_AT_START and Event.PRIORITY_BLOCKED_AT_START, rather than dropping to the backlog.
  • Person removals stand: An item a person took out of a release stays in the backlog, with its Left mark recorded at start.
  • Scope note: Step 4 (intake placement changes) moved to follow-up issue feat(roadmap): intake runs in its own triage lane on a fast devops-triage model, so a new p0 or p1 item gets its priority within one poll #1534 per owner decision.

Acceptance Criteria

  • Backlog P1 placement: A backlog P1 goes to the nearest planned release holding fewer than 16 items, with the priority reason comment. A P2 stays in the backlog.
  • Backlog P0 displacement: A backlog P0 meeting a release that holds 16 displaces its lowest-ranked unimplemented P3 to the next release with room; a P1 meeting 16 goes to the next release instead, displacing nothing; a P3 with a linked pull request is never displaced.
  • New patch release creation: With every planned release at 16 and no unimplemented P3 to displace, the run creates the next patch release and places the item there.
  • Start transitions for P0/P1: At a start, a New P1 goes to the next planned release, a New P2 still goes to the backlog, and a New critical fix still stays.
  • Person removals stand: A P1 that a person took out of a release stays in the backlog, and the plan lists it.
  • Idempotency: A second run with no change writes nothing.
  • Lifecycle invariant: The lifecycle machine (tests/test_roadmap_lifecycle_properties.py) gains invariant "priority_releases" asserting that after a finished run, every open P0/P1 item that no person took out of a release sits in an open release. The invariant count test is updated to 19.
  • Tests offline and fast: Targeted tests in tests/test_roadmap_reprioritize.py and tests/test_roadmap_lifecycle_properties.py pass.
  • Intake placement of new P0/P1 items as they arrive: deferred to feat(roadmap): intake runs in its own triage lane on a fast devops-triage model, so a new p0 or p1 item gets its priority within one poll #1534.

@dan-petty
dan-petty merged commit 38fc0e9 into release/v0.2.37 Oct 20, 2026
15 checks passed
@dan-petty
dan-petty deleted the feat/882-p0-p1-releases branch October 20, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant