Skip to content

feat(roadmap): the stage job keeps a limit on Planned items #3487

Description

@dan-petty

Problem

The stage job plans each item that the filter gives, and no limit stops it while Planned does not drain. Plans merge much faster than the Service delivers them, so the Planned queue grows. Each plan also takes the time of a person or an agent session: 25 of the 31 plan pull requests in the window hold a correction commit by dan-petty, which can be either.

Evidence from the window 2026-11-03T15:05Z to 2026-11-04T15:05Z:

This item does not add a share of places for product work. Items do not compete for places: priority_order (src/devops_cli/roadmap/stage.py:462) and store.py:692 take the lowest number first within a priority.

80 New items are outside scope/roadmap. They wait for other reasons, and this item does not change those reasons:

Expected

The stage job takes no new plan while the count of Planned items is at or over a set limit. The limit is the setting roadmap.stage.planned_limit, with a default that the plan of this issue states and explains. An item with the highest priority label passes the limit. devops roadmap explain names the limit for an item that it holds. devops roadmap inbox states when the limit holds. This item sets no limit on issue filing.

Acceptance criteria

  • A test: roadmap.stage.planned_limit has a default in RoadmapStageConfig, and README.md documents it.
  • A test: at the limit, the job opens no plan and gives the limit as its reason.
  • A test: under the limit, the job takes items as it does today.
  • A test: an item with the highest priority label gets a plan at the limit.
  • A test: devops roadmap explain <n> names the setting and the count for an item that the limit holds.
  • A test: devops roadmap inbox states when the limit holds.

Existing tool considered

StageFilter (src/devops_cli/roadmap/stage.py:180), its left-out reasons, which explain already reads, and priority_order. RoadmapStageConfig (src/devops_cli/config/settings.py:859) holds the setting. No new tool is necessary. #1127 can later propose groups of items.

Related

Related: #1127, #3385, #3027, #2478, #2613, #2740

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 4, 2026
  2. dan-petty commented on Nov 4, 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/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The Planned queue grows and wastes person or agent sessions each cycle, but no delivery is blocked.
    • Value: Medium. It stops the stage job from spending sessions on plans that cannot be delivered for weeks.
    • Effort: Medium. It adds one config value, one gate in the stage loop, and two CLI command updates, all in identified files.
    • Related: feat(roadmap): the stage job plans every Ready item and the implement job takes every Ready item of low effort #2906, which asks for a different change. Both change the stage job's planning scope, but #2906 widens which items it selects while the candidate caps how many Planned items it may create.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 4, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 5, 2026
  5. added a commit that references this issue on Nov 5, 2026
  6. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-05 01:17 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/mediumpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions