Repository navigation
Description
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:
- v0.2.26 (Release Epic: v0.2.26 — Roadmap Closure, Refinement & Automatic Release Cut #906, Size section): the release holds 16 items, all Ready, P1, and Value High except feat(cli):
devops ci testselects tests from a coverage index built on demand bydevops ci coverage --build-index#406, fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548 and refactor(ci): ci installs nothing on the runner, and live bubblewrap tests skip where bwrap is missing #832 (Value Medium); 17 if feat(ai): sequential pipeline stages carry a budgeted context, with the scratchpad appended once #859, a P0 feature, joins, which the trim keeps as it keeps every P0 feature while another item remains. At 16 the trim takes refactor(ci): ci installs nothing on the runner, and live bubblewrap tests skip where bwrap is missing #832, fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548, feat(cli):devops ci testselects tests from a coverage index built on demand bydevops ci coverage --build-index#406 and feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083; at 17 also fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982. The items' bodies record that refactor(ci): github ci runs the gate throughdevops cifrom one check table #843 depends on refactor(ci): ci installs nothing on the runner, and live bubblewrap tests skip where bwrap is missing #832 (lands after it), feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981 on feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 and feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 on fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982, and Release Epic: v0.2.26 — Roadmap Closure, Refinement & Automatic Release Cut #906's Ordering section has feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744 land after feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743. So the start keeps refactor(ci): github ci runs the gate throughdevops cifrom one check table #843 and feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981, and at 17 feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 and feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744 as well, while it sends what they wait on to v0.2.27. To prevent that, Release Epic: v0.2.26 — Roadmap Closure, Refinement & Automatic Release Cut #906 has the owner record a trim order by hand before the v0.2.25 cut. - When the dependency is recorded as a link, the next run's dependency descope (
_depends_outside,:1305-1315) moves each unstarted item the trim left behind to the next release. The release starts at 12, then shrinks by the number of items left behind. Its recorded size at start stays 12, and nothing refills it, because only a start tops a release up (_fill_or_trim,:1627-1648). - A critical fix whose dependency the trim takes stays in the release:
(STARTED, FIX_DEPENDS_OUTSIDE) -> KEEP(:337). It then sits in a release that its dependency can't ship in. A started item whose dependency the trim takes is judged only by the stall window from then on (_rule_event,:1375), so no rule moves it either. - The started release's cap descope has the same gap.
_cap_decisions(:1386-1416) picks the item a joining critical fix descopes ((STARTED, OVER_CAP)) and the items over the size at start ((STARTED, OVER_SIZE)) in the sameranks.lastorder (:1408), so a fix that takes the release over its cap can descope a dependency of an item that stays: two items leave for one fix once the next run descopes the dependent, or the dependent stays stranded when it has started or is a critical fix. - No issue in the repository has a blocked-by link on 2026-10-03.
issue_dependencies_summaryreads zero on every issue, open or closed, including feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743, feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744, refactor(ci): github ci runs the gate throughdevops cifrom one check table #843 and feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981. The dependencies exist only in "Depends on" lines and in the release epics' Ordering sections. So today nothing reports these items when the trim leaves them behind, and the descope above never fires. The rule below reads links only, so it takes effect once the links are recorded.
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) |
-
TRANSITIONSholds the new row, and one function picks the victims for both_fill_or_trimand_cap_decisions.MESSAGES.roadmap.reasonsgainsdepended_on, which names the staying items that depend on the item. Thetrimtext (lang/en/messages.py:1071-1074) becomes "...and this was its lowest-ranked unstarted item that no item staying in it depends on.", andcapandover_sizeend the same way. The module docstring and the command's help text (lang/en/help.py,reprioritize) say that the trim and the cap descope follow dependencies, anddevops docs generate --sync-readmeregeneratesdocs/commands/roadmap.md,docs/CLI_REFERENCE.mdand the README row. - The job reads blocked-by links (
RoadmapStore.dependencies) for a release's open items only when it is over the cap, so a start or a run within the cap makes no extra gh call. - A test on the in-memory store (
tests/test_roadmap_reprioritize.py) builds v0.2.26's shape: 16 Ready P1 items in the starting release, three of them Value Medium, with the links refactor(ci): github ci runs the gate throughdevops cifrom one check table #843 on refactor(ci): ci installs nothing on the runner, and live bubblewrap tests skip where bwrap is missing #832, feat(cli):devops ci testselects tests from a coverage index built on demand bydevops ci coverage --build-index#406 on refactor(ci): github ci runs the gate throughdevops cifrom one check table #843, feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981 on feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083, feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 on fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 and feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744 on feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 (their counterparts). The start trims the counterparts of fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548, feat(cli):devops ci testselects tests from a coverage index built on demand bydevops ci coverage --build-index#406, feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981 and feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083, which are the first four of the order Release Epic: v0.2.26 — Roadmap Closure, Refinement & Automatic Release Cut #906 proposes. It keeps every dependency of every kept item in the release, holds 12 items, and comments the trim reason on each trimmed item. The existingtest_a_starting_release_over_the_cap_is_trimmed_into_the_later_releasepasses with only its reason text changed. - A test where a started item and a critical fix each depend on one of the lowest-ranked unstarted items: the trim passes over both dependencies, takes the next items in order, and the release holds the cap.
- A test where a critical fix joins a started release at its cap and the lowest-ranked unstarted item is a dependency of an item that stays: the fix descopes the next item in order.
test_with_twelve_unstarted_items_a_critical_fix_descopes_the_lowest_ranked_onepasses with only its reason text changed. - A test with two unstarted items that depend on each other and nothing else left to trim: the release starts above the cap with both items, and its size at start is that size. The plan says which items held the release above the cap and which items depend on them.
- A test where a closed dependency, a dependency in the backlog, and a dependency in another repository whose number equals a trim candidate's each leave the trim order unchanged. The in-memory store's
link_dependencygains an optional repository for the last case, as itsdependenciesreports only same-repository links today (memory_store.py:594-605). - The lifecycle machine (
tests/test_roadmap_lifecycle_properties.py, which already has adependency_addedrule) gains two invariants, checked after every finished run. The machine computes both from its own record and the store's links, never from the job's plan or marks:- "Dependency: a release start never keeps an item whose dependency, open in that release before the start, it trimmed."
- "Current release: a release that starts above the cap holds, besides started items, only unstarted items that another item in it depends on."
- The machine's
sizeinvariant also allows, above the larger of the cap and the size at start, an unstarted item that another item in the release depends on, andtest_each_invariant_message_starts_with_a_term_context_md_definescounts 17 invariants. - A test like
test_the_machine_fails_without_the_cut_lock_row: with the trim patched back to the old fixed order, the gate replays the minimal sequence (a start over the cap where a kept item depends on the lowest-ranked one), and the Dependency invariant fails. With the rule in place, the same steps pass.DEVOPS_PROPERTY_PROFILE=deepfinds the failure by search and shrinks it to the same sequence. - A
trim-with-dependencyscenario joinsSWEPT. A start that stops at any gh call and runs again trims the same items, and every dependency the trim passed over stays in the release. - Tests use the in-memory store only and touch no network. Each new test takes well under 1 s with
--durations. The gate profile keeps its 12 examples × 8 steps. The change adds no dependency: the check is a set lookup over the release's own items.uv run devops cipasses. - Pending a person: record the dependencies named in the open items' "Depends on" lines and the release epics' Ordering sections as GitHub blocked-by links, starting with v0.2.26's (refactor(ci): github ci runs the gate through
devops cifrom one check table #843 on refactor(ci): ci installs nothing on the runner, and live bubblewrap tests skip where bwrap is missing #832, feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981 on feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083, feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 on fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982, feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744 on feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743), so that the store reads them. - Pending a person: at the next release start over the cap,
uv run devops roadmap reprioritize --dry-runlists trims, and no kept item depends on any of them.
Key questions
- Should the trim pass over a dependency, or take the items that depend on it along with it? Proposed: pass over it. Taking the dependent items along trims more than the cap needs (two items for one slot at refactor(ci): ci installs nothing on the runner, and live bubblewrap tests skip where bwrap is missing #832 and refactor(ci): github ci runs the gate through
devops cifrom one check table #843). It can also take a high-ranked item or a critical fix out of the release just because its dependency ranks lowest, and it needs a separate rule for started items that depend on it. Passing over keeps the release at the cap and keeps every dependency that a staying item needs. It needs oneKEEProw and no new reason for leaving. In effect, a dependency ranks as high as the highest-ranked item that depends on it, which is the rule feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882 sets for planned releases and the backlog. - Does the started release's cap descope follow the same rule? Proposed: yes, in this item.
_cap_decisionssorts by the sameranks.last, so one function serves both, and leaving it out keeps the same stranding for every critical fix that joins a full release. Where every unstarted item left has a staying dependent, the fix joins anyway, as it does today when nothing is left to descope. - Does a passed-over item get a comment? Proposed: no.
KEEPis silent, as(PLANNED, FIX_NEW_AT_START)already is. The trimmed item's comment says why it left. The plan names the passed-over items only when the release starts above the cap. - Where do dependencies come from? Proposed: GitHub blocked-by links only, read through
RoadmapStore.dependencies, the same way the descope rule and feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882 read them. The job does not parse "Depends on" lines. Recording links stays a person's step, as feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744 proposes (refine never writes blocked-by links). Until the links exist, the rule changes nothing. - What about items that depend on each other? Proposed: they are never trimmed, because each one has a staying item that depends on it. A cycle means a wrong link that a person should remove, and the plan's note about which items held the release above the cap points to it. The rule needs no cycle detection; should the plan ever name the cycle itself, the standard library's
graphlib.TopologicalSorterreports it (CycleError) instead of a hand-written search. - Should the start also handle dependencies the trim doesn't create? These are a kept item whose dependency is already outside the release, the items depending on a New or Blocked item the start clears, and a top-up candidate whose dependency stays in the backlog. Proposed: not in this item. The next run's dependency descope already moves those items with a reason comment. Ordering the backlog so that a dependency ranks at least as high as the items that need it belongs to feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882. A start-time dependency descope before sizing, so that the top-up refills the freed slot, would be a separate item if wanted.
- Is this a release fix? Proposed: no. v0.2.26's start keeps the order the owner records by hand (Release Epic: v0.2.26 — Roadmap Closure, Refinement & Automatic Release Cut #906), and while no links are recorded, the rule changes nothing. With the links above recorded, the rule's first four trims match Release Epic: v0.2.26 — Roadmap Closure, Refinement & Automatic Release Cut #906's proposed order; at 17 items its fifth is refactor(ci): github ci runs the gate through
devops cifrom one check table #843, where Release Epic: v0.2.26 — Roadmap Closure, Refinement & Automatic Release Cut #906 proposes feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744, so a person who prefers another fifth places that item by hand. It matters before release starts run unattended (feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981).
Strategic alignment
- Origin: feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740's release-start trim and cap descope. Same principle as feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882 ("an item that another item depends on ranks at least as high as that item"), applied to the trim at release start and to the cap descope, which feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882 leaves to feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 ("Ranking never adds an item to the current release or removes one from it"). - Related: Release Epic: v0.2.26 — Roadmap Closure, Refinement & Automatic Release Cut #906 (v0.2.26's trim order recorded by hand), feat(roadmap): run the roadmap jobs when they are due (
devops roadmap run) #981 (runs the roadmap jobs unattended), feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744 (a person records blocked-by links), feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742 (intake asks the sameTRANSITIONStable). - P2, Value High, Effort Medium. No milestone; the roadmap tooling places it.
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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 11, 2026
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)
fix(github): the release-start trim and the cap descope pass over dep…
feat(release): v0.2.35 (#1581)