Skip to content

feat(roadmap): rows with a large backlog run on a shorter loop #5470

Closed

Description

@dan-petty

Problem or Motivation

The owner asked on 2026-11-13 to shorten the loops of the roadmap jobs that have a large backlog. On 2026-11-13 at 17:20Z the open items were: Ready 177 (the stage queue), New 583 (the refine queue), Blocked 20, plan PRs with plan/needs-fix 3. Stage made 11 attempts and refine 55 results in 24 hours, so the stage queue alone is about 16 weeks of work at today's rate.

The interval of each Service row is a constant in src/devops_cli/roadmap/run.py (stage 37 min, refine 17 min, fix-plan 53 min, alternatives 719 min, intake 29 min, from src/devops_cli/config/defaults.py). A person cannot shorten a loop without a release, and a row runs at the same interval whether its queue holds 0 items or 500.

Proposed Solution

  • Make the interval of each row a setting of its section (roadmap.<row>.interval_minutes), with today's value as the default, read at each round (no restart).
  • Add a backlog rule for each row: roadmap.<row>.backlog_interval_minutes and roadmap.<row>.backlog_threshold. While the queue of the row (the items that its selection would take, counted from the listing that the round already reads) holds at least the threshold, the row uses the short interval. Log the queue size and the interval in use at each round, and export the queue size as a gauge for each row.
  • Defaults that keep today's behavior until a person sets the values; the shepherd then sets them in the live ConfigMap (proposed start: stage 13 min at 50 or more Ready items, refine 7 min at 100 or more New items, fix-plan 23 min at 3 or more plans with plan/needs-fix, alternatives 181 min at 50 or more unchecked items).
  • Keep the nested order and the request budget: a row interval is never below its longest round limit of a tool or a step, and the GitHub self-cap of the Service still applies, so a shorter loop cannot exceed the budget.

Acceptance Criteria

  • A test proves that each row interval and backlog rule loads from settings with today's default, and that a queue at or above the threshold makes the row due at the short interval.
  • A test proves that a queue below the threshold keeps the normal interval.
  • uv run devops docs check passes with the new settings.
  • Live proof after release: with the ConfigMap values set, the Service log shows the queue size and the short interval for stage and refine, and the rounds per hour of each rise without a GitHub budget hold.

Existing Tool Considered

pydantic settings and the existing row scheduler. A queue-driven autoscaler such as KEDA is the later form (ADR 0021 rejects it for the engine phase in favor of Argo semaphores, and the pipeline split makes units due by predicate). Cost to build (estimate): 0.3 M tokens and 2 hours.

Related

#4559 (stage Jobs; roadmap.stage.jobs is the parallel lever for stage), #4568 (refine in its own pod), #5440 (attempt limits as settings), the approved pipeline split (the sweep makes units due by predicate).

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/high
    effort/medium
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    on Nov 13, 2026
  4. removed
    owner/agent
    on Nov 13, 2026
  5. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 13, 2026
  6. removed
    status/in-review
    on Nov 13, 2026
  7. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 19:26 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/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions