Repository navigation
Description
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.
- Add
RoadmapConfig.release_slots: int = Field(default=DEFAULT_ROADMAP_RELEASE_SLOTS, ge=0), withDEFAULT_ROADMAP_RELEASE_SLOTS = 4inconfig/defaults.py. Document it in the defaults block of.github/roadmap.toml, besiderelease_cap.release_capkeeps its meaning, the size a start fills to. A release's limit becomesrelease_cap + release_slots, which is 16. _fill_or_trimtops up below 12, as today, and trims only the items above 16._cap_decisionsuses 16 both for a joining fix's descope and for the over-size check, which becomesmax(16, size at start).- In
lang/en/messages.py, thecap,over_sizeandtrimreasons print the limit.top_upkeeps printing the cap. - Docs:
- the
reprioritizehelp text (lang/en/help.py); docs/commands/roadmap.md, regenerated withdevops docs generate --sync-readme;- the CONTEXT.md Reprioritization entry;
- a
changelog.dfragment.
- the
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_slotsis read from.github/roadmap.tomland 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_releaseandtest_with_twelve_unstarted_items_a_critical_fix_descopes_the_lowest_ranked_oneare updated to the new numbers. - The lifecycle machine's size invariant (
tests/test_roadmap_lifecycle_properties.py) checks againstrelease_cap + release_slots. - A second run with no change writes nothing.
- Tests are offline and each takes under 1 s (
--durations).uv run devops cipasses.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 9, 2026
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.
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.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.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.dan-petty-bot commentedon Oct 9, 2026
Moved to the backlog: it was New, not Ready, when v0.2.33 started. (devops roadmap reprioritize)
dan-petty commentedon Oct 9, 2026
Constraint for the build (2026-10-09)
RoadmapConfigusesextra="forbid"(roadmap/config.py:40), and the jobs read.github/roadmap.tomlfrom the default branch. If this item adds arelease_slotskey 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_slotstoRoadmapConfigwith its default of 4 and document it in the file only as a comment besiderelease_cap; do not set the key in.github/roadmap.tomlin 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 = 16in.github/roadmap.tomlkeeps 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.dan-petty-bot commentedon Oct 9, 2026
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)
chore(roadmap): release_cap 16 until the Service runs #1514's 4 relea…
feat(roadmap): a release keeps 4 slots above its cap of 12, so a star…
dan-petty-bot commentedon Oct 9, 2026
What changed
#1528, merged into
release/v0.2.33as e014475.20 file(s) changed.
How it was verified
Check runs at 84e9da9:
Acceptance Criteria of
docs/agent/tasks/task-1514-release-slots.md:release_slotsis read from.github/roadmap.tomland 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_keyandtest_a_releases_limit_is_its_cap_plus_its_slotsintests/test_roadmap_config.py).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_releasetrims 20 items to 16, andtest_a_milestone_closed_by_hand_starts_nothing_until_its_release_shipstrims 17 to 16.test_a_critical_fix_that_joins_a_release_within_its_limit_descopes_nothing[12]and[15], which replacestest_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 fromtest_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, andtest_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 fromtest_with_twelve_started_items_..._holds_thirteen, andtest_with_fifteen_started_items_and_an_admitted_fix_a_second_fix_joins_without_descoping, renamed fromtest_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).size_beyond_the_limit_is_only_critical_fixesintests/test_roadmap_lifecycle_properties.py, checks againstrelease_cap + release_slots(CAP = 3,SLOTS = 1). Itsstartrule holds up toLIMIT + 1items, 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).[].test_the_first_run_records_the_admitted_set_and_a_second_run_writes_nothing, which held 16).test_a_run_that_stops_at_any_write_is_finished_by_the_next_run) runs withrelease_slots=0, so its trim and rules scenarios still trim and descope.runTest, took 0.65 s (--durations, run serially).release_cap = 16bridge from.github/roadmap.tomlif it is on the default branch, then runuv run devops roadmap reprioritize --planand see no trim or descope for a release holding 13 to 16 items. A later change may setrelease_slotsin the file once every Service that reads it runs this version.feat(release): v0.2.33 (#1537)