Skip to content

feat(roadmap): a release keeps 4 slots above its cap of 12, so a start still fills to 12 and nothing is trimmed or descoped until it holds more than 16 #1514

Closed

Description

@dan-petty

Requested by the owner, 2026-10-09 (roadmap Service improvements).

Problem

Checked at release/v0.2.32 (a9d7fd8) and on board 2 (read-only, 2026-10-09).

The owner asked (2026-10-09):

add 4 slots for issue allocations per milestone to ensure p0/p1 issues can be allocated to a milestone as soon as possible without causing unnecessary milestone reassignments.

A release has one size number, release_cap. It is 12 (config/defaults.py:820, roadmap/config.py:43), and .github/roadmap.toml leaves it at that default and describes it as "Ready items a starting release is filled to". The same number serves as both the fill target and the limit:

  • At a start, the job tops the release up to 12 from Ready items. It then moves every item above 12 to the next planned release, taking the lowest-ranked unstarted item first (_fill_or_trim, roadmap/reprioritize.py:1711; row (PLANNED, OVER_CAP_AT_START) -> TO_NEXT, :370).
  • After a start, a critical fix that takes the release over 12 descopes its lowest-ranked unstarted item. Items above the larger of 12 and the size at start also leave (_cap_decisions, :1445; rows (STARTED, OVER_CAP) and (STARTED, OVER_SIZE), :347-348).

So any P0/P1 item placed in a release that already holds 12 pushes another item out. Since its first write on 2026-10-05, the job has made only 3 size-driven moves, all start trims: #900 when v0.2.29 started with 13 items, and #1338 and #1383 when v0.2.30 started with 14. Today people's sessions make most placements: 203 of the 212 milestone assignments between 2026-10-02 and 10-09. v0.2.33 and v0.2.34 hold 10 items each, and v0.2.35 holds 7.

Owner decisions (2026-10-09):

  • Plan 12 items per release ahead of time (release_cap).
  • A P0 or P1 item in the backlog without a milestone is assigned to the nearest open release with fewer than 16 items (release_cap + release_slots).
  • When that release holds 16, a P0 displaces the lowest-ranked P3 in it that is not yet implemented (no linked pull request; Status New or Ready). The P3 moves to the next open release with room, or to the backlog when every release is full. A P1 never displaces anything; it goes to the next release with room.
  • A P0/P1 item a person took out of a release stays out (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, ADR 0002); the plan lists it.

Proposed remedy

One new setting and two changed thresholds. No new job, record or schedule.

  1. Add RoadmapConfig.release_slots: int = Field(default=DEFAULT_ROADMAP_RELEASE_SLOTS, ge=0), with DEFAULT_ROADMAP_RELEASE_SLOTS = 4 in config/defaults.py. Document it in the defaults block of .github/roadmap.toml, beside release_cap. release_cap keeps its meaning, the size a start fills to. A release's limit becomes release_cap + release_slots, which is 16.
  2. _fill_or_trim tops up below 12, as today, and trims only the items above 16.
  3. _cap_decisions uses 16 both for a joining fix's descope and for the over-size check, which becomes max(16, size at start).
  4. In lang/en/messages.py, the cap, over_size and trim reasons print the limit. top_up keeps printing the cap.
  5. Docs:
    • the reprioritize help text (lang/en/help.py);
    • docs/commands/roadmap.md, regenerated with devops docs generate --sync-readme;
    • the CONTEXT.md Reprioritization entry;
    • a changelog.d fragment.

The slots take P0/P1 items without moving anything else. People's placements use them as soon as this lands. Intake's new P0/P1 placements use them once #882 (as amended 2026-10-09) lands after this item. #1123 edits the same two functions, so whichever of the two lands second rebases onto the other's one-line threshold change.

Acceptance criteria

  • release_slots is read from .github/roadmap.toml and defaults to 4. A negative value fails with an error naming the key.
  • On the in-memory store:
    • a release that starts with 14 items trims nothing;
    • one that starts with 17 trims its lowest-ranked unstarted item to the next planned release, with a reason naming 16;
    • one that starts with 10 is topped up to 12.
  • A critical fix that joins a started release holding 12 or 15 items descopes nothing. One that takes the release to 17 descopes its lowest-ranked unstarted item. test_a_starting_release_over_the_cap_is_trimmed_into_the_later_release and test_with_twelve_unstarted_items_a_critical_fix_descopes_the_lowest_ranked_one are updated to the new numbers.
  • The lifecycle machine's size invariant (tests/test_roadmap_lifecycle_properties.py) checks against release_cap + release_slots.
  • A second run with no change writes nothing.
  • Tests are offline and each takes under 1 s (--durations). uv run devops ci passes.

Activity

  1. added
    type/feature
    scope/roadmap
    on Oct 9, 2026
  2. dan-petty-bot commented on Oct 9, 2026

    @dan-petty-bot
    Collaborator

    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.

    • Priority: P2-Medium. The owner explicitly requested this on 2026-10-09 to reduce unnecessary milestone reassignments for P0/P1 items, but the system functions without it and no data loss or outage is at stake.
    • Value: Medium. It prevents churn on P0/P1 placements and reduces unnecessary reassignments, but the release cap mechanism already works; the slots are a comfort buffer rather than a correctness fix.
    • Effort: Low. The candidate describes one new config field, two threshold changes in existing functions, message updates, and doc regeneration with no new job, record, or schedule.
  3. added this to the v0.2.33 milestone on Oct 9, 2026
  4. added
    priority/p1-high
    on Oct 9, 2026
  5. removed this from the v0.2.33 milestone on Oct 9, 2026
  6. dan-petty-bot commented on Oct 9, 2026

    @dan-petty-bot
    Collaborator

    Moved to the backlog: it was New, not Ready, when v0.2.33 started. (devops roadmap reprioritize)

  7. added this to the v0.2.33 milestone on Oct 9, 2026
  8. dan-petty commented on Oct 9, 2026

    @dan-petty
    OwnerAuthor

    Constraint for the build (2026-10-09)

    RoadmapConfig uses extra="forbid" (roadmap/config.py:40), and the jobs read .github/roadmap.toml from the default branch. If this item adds a release_slots key to .github/roadmap.toml, every roadmap job of a Service still running the previous version fails to parse the file the moment the release merges, before Image Updater rolls the new image (the GitHub Release is published before the image is pushed).

    So: add release_slots to RoadmapConfig with its default of 4 and document it in the file only as a comment beside release_cap; do not set the key in .github/roadmap.toml in this item. A later change may set it once every Service that reads the file runs this version.

    Bridge until this is live (proposed to the owner): release_cap = 16 in .github/roadmap.toml keeps the current code from trimming v0.2.34 (16 items) at its start; it is set back to 12 (the default) once the Service runs this item.

  9. dan-petty-bot commented on Oct 9, 2026

    @dan-petty-bot
    Collaborator

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

  10. dan-petty-bot commented on Oct 9, 2026

    @dan-petty-bot
    Collaborator

    What changed

    #1528, merged into release/v0.2.33 as e014475.

    Closes #1514

    20 file(s) changed.

    How it was verified

    Check runs at 84e9da9:

    • Prune PR DevContainer Images: pass
    • CodeQL: pass
    • Analyze (actions): pass
    • Changed-Test Independence: 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-1514-release-slots.md:

    • release_slots is read from .github/roadmap.toml and defaults to 4; a negative value fails with an error naming the key (test_omitted_keys_take_their_defaults, test_every_key_can_be_set, test_a_negative_release_slots_fails_and_names_the_key and test_a_releases_limit_is_its_cap_plus_its_slots in tests/test_roadmap_config.py).
    • On the in-memory store, a release that starts with 10 items is topped up to 12, one that starts with 14 trims nothing, and one that starts with 17 trims its lowest-ranked unstarted item to the next planned release with a reason naming 16 (test_a_start_fills_to_the_cap_and_trims_only_above_the_limit[topped-up-to-the-cap], [within-the-limit] and [over-the-limit]). test_a_starting_release_over_the_cap_is_trimmed_into_the_later_release trims 20 items to 16, and test_a_milestone_closed_by_hand_starts_nothing_until_its_release_ships trims 17 to 16.
    • A critical fix that joins a started release holding 12 or 15 items descopes nothing (test_a_critical_fix_that_joins_a_release_within_its_limit_descopes_nothing[12] and [15], which replaces test_with_ten_items_a_critical_fix_descopes_nothing). One that takes the release to 17 descopes its lowest-ranked unstarted item (test_with_sixteen_unstarted_items_a_critical_fix_descopes_the_lowest_ranked_one, renamed from test_with_twelve_unstarted_items_..., test_an_item_with_a_pull_request_is_not_descoped_when_a_critical_fix_takes_release_over_its_limit, renamed from ..._over_cap, and test_a_fix_that_takes_a_cut_release_over_its_limit_descopes_its_lowest_ranked_unstarted_item, renamed from ..._over_its_cap_...). With nothing unstarted but critical fixes, the fix joins and the release holds 17 (test_with_sixteen_started_items_a_critical_fix_joins_and_the_release_holds_seventeen, renamed from test_with_twelve_started_items_..._holds_thirteen, and test_with_fifteen_started_items_and_an_admitted_fix_a_second_fix_joins_without_descoping, renamed from test_with_eleven_started_items_...). The size check descopes above the larger of 16 and the size at start (test_an_item_moved_back_to_ready_once_a_fix_filled_the_release_makes_room, 17 to 16).
    • The lifecycle machine's size invariant, size_beyond_the_limit_is_only_critical_fixes in tests/test_roadmap_lifecycle_properties.py, checks against release_cap + release_slots (CAP = 3, SLOTS = 1). Its start rule holds up to LIMIT + 1 items, and the replays that fill a release to make a fix descope fill it to the limit; the room-made sweep still counts (40, 20).
    • A second run with no change writes nothing: the start and fix tests above assert the second run's writes are [].
    • A first run records a release over its limit as it stands, 17 items with no move and no comment (test_the_first_run_records_the_admitted_set_and_a_second_run_writes_nothing, which held 16).
    • The stop-at-any-write sweep (test_a_run_that_stops_at_any_write_is_finished_by_the_next_run) runs with release_slots=0, so its trim and rules scenarios still trim and descope.
    • Tests run through the in-memory store and the lifecycle machine, with no network. Each test's call phase in the three files is under 1 s; the slowest, the lifecycle machine's runTest, took 0.65 s (--durations, run serially).
    • Pending a person: once the Service runs a release image with this item, remove the release_cap = 16 bridge from .github/roadmap.toml if it is on the default branch, then run uv run devops roadmap reprioritize --plan and see no trim or descope for a release holding 13 to 16 items. A later change may set release_slots in the file once every Service that reads it runs this version.
  11. added a commit that references this issue on Oct 10, 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/roadmaptype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions