Skip to content

fix(roadmap): a critical fix joins the current release while its release pull request is open, so the release branch holds every change before it merges #1294

Closed

Description

@dan-petty

Problem

On 2026-10-07, devops roadmap reprioritize moved #1290 from v0.2.28 to v0.2.29 with the comment "v0.2.28 is cut, so nothing joins it until its release pull request is closed; a critical fix goes first into the next release."

Acceptance criteria

  • While a release's pull request is open, a critical fix joins that release and stays in it, so its pull request merges into the release branch before the release pull request merges.
  • Only a critical fix joins a cut release. Every other item still waits for the next release, as it does today.
  • devops pr check-readiness accepts a pull request into a cut release's branch when the item it closes is a critical fix of that release.
  • The reprioritize message and RELEASE_CYCLE.md say how a critical fix reaches a cut release. CONTEXT.md's Critical fix entry still holds.
  • Tests cover a critical fix joining a cut release, and a non-critical item being kept out of one.
  • changelog.d/<n>.md records the change; CHANGELOG.md and docs/ROADMAP.md are not edited.
  • uv run devops ci passes.

Key questions

  • Does a critical fix joining a cut release need the release pull request re-reviewed? (proposed) No new cut. The fix merges into the release branch, the release pull request picks it up, and its checks run again.
  • Should a published release (merged and tagged) take a critical fix? (proposed) No. Once shipped, a release is closed, and the fix goes to the next one, as today.

Strategic alignment

Update 2026-10-08: amended to match #1349's owner decision

Criterion 2 ("Every other item still waits for the next release, as it does today") now reads: every other item still waits for the next release, except an item a person joins after the cut, which #1349 admits with one comment. This item still owns only the critical-fix path. It must not move a person's join out of a cut release.

Update 2026-10-08: delivered scope

Activity

  1. added
    type/bug
    priority/p1-high
    scope/release
    on Oct 7, 2026
  2. added this to the v0.2.29 milestone on Oct 8, 2026
  3. dan-petty commented on Oct 8, 2026

    @dan-petty
    OwnerAuthor

    Placed in v0.2.29 by the owner on 2026-10-08. The owner's instruction was to pull every issue that keeps the roadmap service from working into the current milestone and complete them. This is a person's placement and should stay in the release (#1349). Implementation started the same day, so the board Status is In Progress.

  4. dan-petty-bot commented on Oct 8, 2026

    @dan-petty-bot
    Collaborator

    What changed

    #1442, merged into release/v0.2.29 as 43d0bf4.

    Closes #1294

    A critical fix filed while a release's pull request is open now joins that release, so its own pull request merges into release/vX.Y.Z before the release pull request does. On 2026-10-07 the reprioritize job moved #1290, a P0 fix for a regression in v0.2.28, out of cut v0.2.28, and the owner had to put it back by hand.

    • A new ReleaseState.MERGED covers a release whose pull request has merged but which is not published yet. It used to read as cut, so simply flipping the cut row would have admitted fixes into a release already in main.
    • (CUT, FIX_JOINED) admits the fix with the cut reason. (MERGED, FIX_JOINED) sends every critical fix to the next release with the new merged reason, including one a person placed (owner decision, 2026-10-08). Every other row is unchanged.
    • Intake reads a shipped release as merged, so it places a critical-fix candidate the same way.
    • devops pr check-readiness already accepted the fix's pull request, because it compares only the issue's milestone with the base branch. No change to it.
    • Docs:
    • Scope: this covers the critical-fix path only. A person's join of any other item into a…

    11 file(s) changed.

    How it was verified

    Check runs at 4fff1a4:

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

    Acceptance Criteria of docs/agent/tasks/task-1294-critical-fix-joins-cut-release.md:

    • While a release's pull request is open, a critical fix joins that release and stays in it: decide(CUT, FIX_JOINED) is ADMIT (test_a_critical_fix_joins_a_cut_release_until_its_release_pull_request_merges in tests/test_roadmap_reprioritize.py); a fix filed while a draft release pull request is open is admitted with the cut comment and stays when the pull request is closed unmerged (test_a_fix_filed_while_a_draft_release_pull_request_is_open_joins_and_stays_when_uncut); a stopped admission finishes after a cut and moves on after a merge (test_a_fix_whose_release_was_cut_before_the_rerun_is_admitted_until_its_pull_request_merges); intake places a critical fix in the cut release and in the next one once the release pull request has merged, published or not (test_a_critical_fix_joins_the_current_release_until_its_release_pull_request_merges in tests/test_roadmap_intake.py).
    • Only a critical fix joins a cut release on the jobs' own placement; every other item waits for the next release, except an item a person joins after the cut, which fix(roadmap): an item a person places in a release stays there, and the roadmap jobs comment on a rule it breaks instead of moving it out #1349 admits. Intake places a feature and a P0 feature with no milestone in the backlog while the release pull request is open (test_a_candidate_that_is_not_a_critical_fix_stays_out_of_a_cut_release), and the start of a release a person cut before it, its pull request open or merged, pulls nothing in (test_a_release_cut_before_its_start_is_topped_up_with_nothing). Once the release pull request has merged, a critical fix goes to the next release (test_a_merged_release_pull_request_locks_the_release_until_it_is_published).
    • devops pr check-readiness accepts a pull request into a cut release's branch when the item it closes is in that release. This already held: _closes_an_item_of_its_release in src/devops_cli/commands/pr.py compares only the closed issue's milestone with the base branch and reads no release pull request (test_a_pr_into_a_release_branch_is_blocked_unless_it_closes_an_item_of_that_release[its-release] in tests/test_pr_cmd.py). No change was needed.
    • The reprioritize messages and RELEASE_CYCLE.md ("A Critical Fix While the Release PR Is Open", in section 7) say how a critical fix reaches a cut release. CONTEXT.md's Cut entry is rewritten, and its Critical fix entry still holds.
    • The lifecycle machine: its cut invariant says a release cut before its start pulls nothing in, and that no critical fix joins once the release pull request has merged. With the (MERGED, FIX_JOINED) row removed, the minimal sequence start, cut, merge unpublished, critical fix filed fails it (test_the_machine_fails_without_the_merged_release_lock_row). A fix filed while the release pull request is open joins, and ships where it is if the release pull request merges first (test_a_fix_filed_while_the_release_pull_request_is_open_joins_and_ships_where_it_is). The seeded scenarios that relied on the old lock now merge the release pull request first, so they still cover a lock move that a run stops part-way through.
    • An admitted fix that takes a cut release over its cap descopes its lowest-ranked unstarted item, as in a started release (test_a_fix_that_takes_a_cut_release_over_its_cap_descopes_its_lowest_ranked_unstarted_item).
    • Tests run through the in-memory store and the lifecycle machine, with no network. Each new or changed test's call phase is under 1 s; the slowest, the intake case with the release pull request open, took 0.51 s (--durations, run serially).
    • changelog.d/1294.md records the change; CHANGELOG.md and docs/ROADMAP.md are untouched.
    • Pending a person: after the Service runs a release image with this fix, the next time a critical fix is filed while a release pull request is open, run uv run devops roadmap intake --plan and uv run devops roadmap reprioritize --plan. Both show the fix kept in that release with the "is cut, and a critical fix still joins it" reason, and the reprioritize plan prints "Current release: vX.Y.Z (cut)."
    • Pending a person: before merging a release pull request that took a late critical fix, run uv run devops gh milestones status <version> and see no open item; then collect the fix's changelog.d/<issue>.md into the version's CHANGELOG.md section with a chore/open-vX.Y.Z-collate-<issue> pull request into release/vX.Y.Z. If the release pull request merged while the fix was still open, set the fix's milestone to the next release and run uv run devops pr edit <pr> --base release/vNEXT.
    • No check stops a release pull request from merging while its milestone holds an open item, so a fix still open then stays in the shipped release, whose milestone release.yml closes: moved to fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425, which also makes check-readiness refuse a pull request into a release branch whose release pull request has merged.
  5. added a commit that references this issue on Oct 8, 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/releasetype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions