Repository navigation
Description
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_minutesandroadmap.<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 checkpasses 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
dan-petty commentedon Nov 13, 2026
Both change roadmap row intervals, but #4426 set a fixed constant while the candidate adds a queue-size-driven dynamic interval with settings.devops-cli-service commentedon Nov 13, 2026
Released in v0.131.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.131.0
devops-cli-service commentedon Nov 13, 2026
Live since 2026-11-13 19:26 UTC