Skip to content

fix(roadmap): P1 items pass the planned limit #3692

Description

@dan-petty

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-High item and a Ready P0-Critical item.
  • A test: at the limit, the job leaves out a Ready P2-Medium item with the reason of the limit, and the reason names the two priorities that pass.
  • A test: devops roadmap explain <n> says yes for a P1-High item at the limit and names the setting, the count and the priorities for a P2-Medium item.
  • A test: the line of devops roadmap inbox at 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.yaml and 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

Related: #3487, #3633

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-Critical item and a Ready P1-High item 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-Low and 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-Critical and P1-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-High item and one Ready P2-Medium item pass every other rule.
  • THEN The P1-High answer is yes, and the P2-Medium answer names roadmap.stage.planned_limit, the count, P0-Critical and P1-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-Critical and P1-High as 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 --item names a Ready P2-Medium item.
  • 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.yaml and the setting description.
  • THEN Each text names P0-Critical and P1-High as 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-Critical and P1-High in 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 --item still pass the planned limit?: Yes. --item takes 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_limit with 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.yaml and the description of roadmap.stage.planned_limit must 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 priorities P0-Critical and P1-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

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/high
    effort/low
    on Nov 5, 2026
  2. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P1-High. Eleven P1-High items are blocked from planning and the owner approved the fix on 2026-11-05.
    • Value: High. Unblocks all P1-High items from entering the Planned stage when the limit holds.
    • Effort: Low. One rule change in _queue_full plus tests and doc updates across known files.
    • Related: feat(roadmap): the stage job keeps a limit on Planned items #3487, which asks for a different change. Both concern the planned limit in the stage job, but #3487 created the limit while this candidate changes which priorities pass it.
  3. added
    priority/p1-high
    on Nov 5, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 5, 2026
  5. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at ed91c67 (see proposed design in issue body).

  6. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 5, 2026
  7. removed
    status/in-review
    on Nov 5, 2026
  8. added a commit that references this issue on Nov 6, 2026
  9. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor
  10. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-06 02:22 UTC

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

    effort/lowpriority/p1-highscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions