Repository navigation
Description
Problem
roadmap.stage.planned_limit (default 20, #3487) stops the stage job from planning new items when the count of open Planned items is at the limit. The last selection rule of the job, _queue_full in src/devops_cli/roadmap/stage.py, lets only P0-Critical items pass.
Evidence, measured on 2026-11-05:
- About 39 to 41 items were Planned against the limit of 20. Delivery runs at about 2 items a day, so the count will not fall below the limit soon.
- The stage job has opened no plan for an item below P0 while the limit holds. At 14:24Z, the limit left out 23 of 69 Ready items.
- A later count of open items by label gives Ready: 0 P0-Critical, 11 P1-High, 58 P2-Medium, 1 P3-Low. Planned: 0 P0-Critical, 1 P1-High, 34 P2-Medium, 2 P3-Low. No Ready item is P0-Critical, so the rule lets no item pass now.
The owner approved this change on 2026-11-05: keep the planned limit, and let P1 items pass it as P0 items pass it now.
Expected
At the limit, the stage job takes P0-Critical and P1-High items, and it leaves out P2-Medium, P3-Low and items with no priority, with the reason of the limit. --item still passes the limit. The limit and its default stay. No new setting. devops roadmap explain, devops roadmap inbox, the setting description and the documents state the same rule.
Acceptance criteria
- A test: at the limit, the job takes a Ready
P1-Highitem and a ReadyP0-Criticalitem. - A test: at the limit, the job leaves out a Ready
P2-Mediumitem with the reason of the limit, and the reason names the two priorities that pass. - A test:
devops roadmap explain <n>saysyesfor aP1-Highitem at the limit and names the setting, the count and the priorities for aP2-Mediumitem. - A test: the line of
devops roadmap inboxat the limit says that the job plans only the two priorities. openspec/specs/roadmap-stage/spec.md,openspec/specs/roadmap-inbox/spec.md,docs/ROADMAP_WORKFLOW.md,docs/roadmap/stage.md,docs/roadmap/inbox.md,k8s/README.md,k8s/devops/configmap.example.yamland the description of the setting state the rule.
Existing tool considered
No outside tool applies. The change uses the existing _queue_full rule and the priority constants of src/devops_cli/config/constants.py. It adds no setting and no module.
Related
Proposed design
Problem statement
The planned limit stops new plans when 20 items are Planned, but only P0-Critical items pass it. The queue is over the limit and no Ready P0-Critical item exists, so the stage job plans nothing. The change lets P1-High items pass with P0-Critical items. It keeps the limit, its default and the --item bypass.
Acceptance criteria
Requirement: Both passing priorities pass the planned limit
At roadmap.stage.planned_limit or more open Planned items, the stage job SHALL take a Ready P0-Critical item and a Ready P1-High item.
Scenario: Both priorities are taken at the limit
- WHEN The count of open Planned items is at the limit and a Ready
P0-Criticalitem and a ReadyP1-Highitem pass every other rule. - THEN The selection holds both items.
Requirement: Other priorities stop at the planned limit
At the limit, the stage job SHALL leave out a Ready P2-Medium, P3-Low or no-priority item, and the reason SHALL name the count, the setting and both passing priorities.
Scenario: A medium, a low and an unprioritized item are left out
- WHEN The count is at the limit and Ready
P2-Medium,P3-Lowand no-priority items pass every other rule. - THEN The selection holds none of them, and each reason names the count,
roadmap.stage.planned_limit,P0-CriticalandP1-High.
Requirement: Explain reports the passing priorities
devops roadmap explain SHALL say yes for a P1-High item at the limit and SHALL name the setting, the count and both passing priorities for a P2-Medium item.
Scenario: Explain at the limit
- WHEN The count is at the limit and one Ready
P1-Highitem and one ReadyP2-Mediumitem pass every other rule. - THEN The
P1-Highanswer isyes, and theP2-Mediumanswer namesroadmap.stage.planned_limit, the count,P0-CriticalandP1-High.
Requirement: Inbox states the two passing priorities
The devops roadmap inbox line at the limit SHALL say that the stage job plans only P0-Critical and P1-High items.
Scenario: Inbox at the limit
- WHEN The count of open Planned items is at the limit.
- THEN The inbox line names
P0-CriticalandP1-Highas the only priorities that the stage job plans.
Requirement: A named item still passes the planned limit
--item SHALL take the Ready item that it names at the planned limit.
Scenario: A named medium item at the limit
- WHEN The count is at the limit and
--itemnames a ReadyP2-Mediumitem. - THEN The selection holds the named item.
Requirement: The planned limit and its default stay
The change SHALL keep roadmap.stage.planned_limit and its default 20, and SHALL add no setting.
Scenario: The default planned limit
- WHEN No config file and no variable sets
roadmap.stage.planned_limit. - THEN The setting is 20, and the settings hold no new planned-limit key.
Requirement: The specs and documents state the same rule
The two roadmap specs, the four documents and the description of roadmap.stage.planned_limit SHALL state that only P0-Critical and P1-High pass the limit.
Scenario: The specs and documents agree
- WHEN A test reads
openspec/specs/roadmap-stage/spec.md,openspec/specs/roadmap-inbox/spec.md,docs/ROADMAP_WORKFLOW.md,docs/roadmap/stage.md,docs/roadmap/inbox.md,k8s/README.md,k8s/devops/configmap.example.yamland the setting description. - THEN Each text names
P0-CriticalandP1-Highas the passing priorities and names no other priority as passing.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers the need. The change uses the existing _queue_full rule and the priority constants in src/devops_cli/config/constants.py. Cost to build: about 30k tokens and 2 hours, including the tests and the document updates.
Key questions
- Which priorities pass the planned limit?: P0-Critical and P1-High pass the limit. P2-Medium, P3-Low and items with no priority do not pass it. (best practice) [sources: src/devops_cli/roadmap/stage.py, openspec/specs/roadmap-stage/spec.md, src/devops_cli/config/constants.py]
- Rejected: Keep only P0-Critical. The queue is over the limit and no Ready P0-Critical item exists, so the stage job plans nothing.
- Chosen: Add P1-High beside P0-Critical. The owner approved it, and P1-High is the next priority that delivery needs.
- Rejected: Remove the planned limit. The owner kept the limit.
- How should stage, explain, inbox and the reason text share the passing set?: Use one shared constant or helper for
P0-CriticalandP1-Highin the stage selection, and use it in explain, inbox and the reason text. (best practice) [sources: src/devops_cli/roadmap/stage.py, src/devops_cli/roadmap/explain.py, src/devops_cli/lang/en/messages.py]- Rejected: Duplicate the condition in each reader. The copies drift and the reason can disagree with the selection.
- Chosen: One shared constant or helper. One rule keeps the stage, explain, inbox and message in agreement.
- Does
--itemstill pass the planned limit?: Yes.--itemtakes the Ready item that it names at the limit. [sources: src/devops_cli/roadmap/stage.py, openspec/specs/roadmap-stage/spec.md] - Should the planned limit, its default or a new setting change?: No. Keep
roadmap.stage.planned_limitwith default 20 and add no setting. (best practice) [sources: openspec/specs/roadmap-stage/spec.md, src/devops_cli/roadmap/stage.py]- Chosen: Keep the setting and default. The owner kept the limit, and the body adds no setting.
- Rejected: Change the default. The body keeps the default.
- Rejected: Add a setting for passing priorities. The body adds no setting.
- Which files must state the new rule?:
openspec/specs/roadmap-stage/spec.md,openspec/specs/roadmap-inbox/spec.md,docs/ROADMAP_WORKFLOW.md,docs/roadmap/stage.md,docs/roadmap/inbox.md,k8s/README.md,k8s/devops/configmap.example.yamland the description ofroadmap.stage.planned_limitmust state the new rule. [sources: openspec/specs/roadmap-stage/spec.md, openspec/specs/roadmap-inbox/spec.md, docs/ROADMAP_WORKFLOW.md, docs/roadmap/stage.md, docs/roadmap/inbox.md, k8s/README.md, k8s/devops/configmap.example.yaml, src/devops_cli/config/settings.py] - What must the reason text contain when the limit leaves an item out?: The reason names the count of Planned items, the setting
roadmap.stage.planned_limit, and both passing prioritiesP0-CriticalandP1-High. [sources: src/devops_cli/lang/en/messages.py, src/devops_cli/roadmap/stage.py]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 5, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.Eleven P1-High items are blocked from planning and the owner approved the fix on 2026-11-05.Unblocks all P1-High items from entering the Planned stage when the limit holds.One rule change in _queue_full plus tests and doc updates across known files.Both concern the planned limit in the stage job, but #3487 created the limit while this candidate changes which priorities pass it.devops-cli-service commentedon Nov 5, 2026
Status set to Ready at ed91c67 (see proposed design in issue body).
chore(main): release 0.64.0 (#3708)
devops-cli-service commentedon Nov 6, 2026
Released in v0.64.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.64.0
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 02:22 UTC