Skip to content

feat(roadmap): the first pass of the alternatives check runs 20 items a day #2947

Closed

Description

@dan-petty

What happened

At 5 items a day, the first pass over 141 open issues takes about a month, and nothing shows how much is left.

What should happen

  • While items have no check, the row checks roadmap.alternatives.first_pass_limit items a round (20 by default). When every open item has a check, it goes back to roadmap.alternatives.limit (5) for the rechecks.
  • The model-lane budget and the request budget of the Service hold; the setting and its default are in configmap.example.yaml, defaults.py and the documents, as other settings are.

Evidence (2026-10-31)

Tracker: #2908 (one issue workflow). Owner request of 2026-10-31: confirm that all issues are vetted for open alternatives.

Acceptance criteria

  • A test shows 20 items in a round while 25 have no check, and 5 once all have one.
  • The round respects the Service budget and lane order.
  • uv run devops ci passes.

Proposed design

Problem statement

The alternatives check processes at most 5 items per round. With 141 open issues, the first pass takes about a month. The first pass needs a higher per-round limit so that every open item gets a check in a reasonable time, while rechecks keep the lower limit to protect the model-lane budget.

Acceptance criteria

Requirement: First-pass limit applies while items lack a check

While at least one open item has no check, the alternatives row SHALL check at most roadmap.alternatives.first_pass_limit items per round.

Scenario: 25 open items have no check

  • WHEN The alternatives row runs and 25 open items have no check
  • THEN The row checks at most 20 items in that round

Requirement: Recheck limit applies when all items have a check

When every open item has a check, the alternatives row SHALL check at most roadmap.alternatives.limit items per round.

Scenario: All open items have a check

  • WHEN The alternatives row runs and every open item already has a check
  • THEN The row checks at most 5 items in that round

Requirement: Budget and lane order hold

The alternatives row SHALL respect the Service model-lane budget and the lane order of the model lane.

Scenario: Round runs within the model lane

  • WHEN The alternatives row runs in the model lane after refine
  • THEN The row does not exceed the model-lane request budget and runs in the lane order

Requirement: CI passes

The change SHALL pass uv run devops ci.

Scenario: Full CI run

  • WHEN A developer runs uv run devops ci on the branch
  • THEN All checks pass

Existing Tool Considered

No check has run. This change modifies the project's own roadmap service row. No open, maintained tool or library provides a configurable first-pass batch limit for an internal service row. The project builds this in its own code. The written cost is small: add one integer setting to defaults.py and configmap.example.yaml, change the item-selection logic of the alternatives row to pick the limit by whether any open item lacks a check, and write one test. The tokens to build, keep and fix this code are a few hundred tokens of logic and one test, well under one step of the implement job.

Key questions

  • What is the name and default of the new setting?: The setting is roadmap.alternatives.first_pass_limit with a default of 20. It follows the naming pattern of the existing roadmap.alternatives.limit setting. [sources: k8s/README.md:610]
  • What is the switching logic between the first-pass limit and the recheck limit?: If at least one open item has no check, the row uses first_pass_limit (20). When every open item has a check, the row uses limit (5). This is a two-state switch based on whether any item still lacks a check. (best practice) [sources: k8s/README.md:610]
    • Chosen: Two-state switch: any item lacks a check vs all have a check. The body states this logic directly. It is simple, testable, and matches the acceptance criteria.
    • Rejected: Gradual ramp: reduce the limit as more items get a check. More complex, not stated in the body, and harder to test. Rejected.
    • Rejected: Always use the higher limit. Would waste the model-lane budget on rechecks. The body explicitly keeps the lower limit for rechecks. Rejected.
  • Where does the new setting live in the repository?: The setting and its default go in configmap.example.yaml, defaults.py, and the documents, following the pattern of other roadmap.alternatives settings. [sources: k8s/README.md:610]
  • Does the model-lane budget and the Service request budget hold with the higher first-pass limit?: Yes. The body states that the model-lane budget and the request budget of the Service hold. The first-pass limit of 20 is within the existing budget because the budget is per-round, not per-item, and the row already runs within the model lane after refine. [sources: k8s/README.md:610]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Oct 31, 2026
  2. dan-petty commented on Oct 31, 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 owner requested faster vetting of 141 open issues, but the current 5-per-day process still runs.
    • Value: Medium. Reduces first-pass time from about a month to about a week, but the check still functions either way.
    • Effort: Low. Add one setting, one conditional branch in the row, and update three config files.
    • Related: feat(roadmap): the Service runs the alternatives job once a day, and refine reads the recorded tool verdict #2652, which asks for a different change. Both configure the alternatives job throughput; #2652 set a fixed limit of 5, the candidate adds a separate first-pass limit of 20 that reverts to 5 after every item is checked.
  3. added
    priority/p2-medium
    on Oct 31, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 1, 2026
  5. devops-cli-service commented on Nov 1, 2026

    @devops-cli-service
    Contributor

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

  6. devops-cli-service commented on Nov 2, 2026

    @devops-cli-service
    Contributor

    Staged: branch feat/2947-the-first-pass-of-the-alternatives, draft pull request #3174. The pull request plans the item and closes no issue.

    The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:

    1. placeholder: 3587 tokens

    The plan run made 17 model request(s), and used 454276 input tokens and 2409 output tokens. The tool calls, in order:

    1. read_spec({"capability":"roadmap-alternatives"})
    2. search_code({"text":"alternatives.limit"})
    3. read_spec({"capability":"roadmap-alternatives","requirement":"The limit of a round is a setting"})
    4. search_code({"text":"alternatives_limit"})
    5. read_file({"path":"src/devops_cli/config/settings.py","start_line":920,"end_line":1000})
    6. read_file({"path":"src/devops_cli/config/defaults.py","start_line":700,"end_line":740})
    7. search_code({"text":"recheck_days"})
    8. repo_map({"directory":"src/devops_cli/roadmap"})
    9. file_symbols({"path":"src/devops_cli/roadmap/alternatives.py"})
    10. read_file({"path":"src/devops_cli/roadmap/alternatives.py","start_line":400,"end_line":540})
    11. read_file({"path":"src/devops_cli/roadmap/alternatives.py","start_line":820,"end_line":880})
    12. read_file({"path":"src/devops_cli/roadmap/alternatives.py","start_line":496,"end_line":530})
    13. search_code({"text":"plan_alternatives"})
    14. search_code({"text":"alternatives"})
    15. search_code({"text":"alternatives.limit"})
    16. search_code({"text":"alternatives"})
    17. search_code({"text":"alternatives"})
    18. list_files({"directory":"src/devops_cli/roadmap"})
    19. read_file({"path":"src/devops_cli/roadmap/alternatives.py"})
    20. file_symbols({"path":"src/devops_cli/roadmap/alternatives.py"})
    21. search_code({"text":"alternatives.limit"})
    22. read_file({"path":"src/devops_cli/roadmap/alternatives.py","start_line":420,"end_line":540})
    23. read_file({"path":"src/devops_cli/roadmap/alternatives.py","start_line":820,"end_line":960})
    24. search_code({"text":"plan_alternatives"})
    25. search_code({"text":"class AlternativesSettings"})
    26. search_code({"text":"alternatives"})
    27. search_code({"text":"DEFAULT_ROADMAP_ALTERNATIVES"})
  7. added 2 commits that reference this issue on Nov 2, 2026
  8. 6 remaining items

  9. added
    status/blocked
    and removed
    status/in-progress
    on Nov 3, 2026
  10. devops-cli-service commented on Nov 3, 2026

    @devops-cli-service
    Contributor

    The runner Job devops-cli-runner-20261103-085143-60d9 ended: succeeded.
    Image digest: sha256:ef0d0ace3359daaf57e2bb1904dd131a16eca5fd52c54ffdcfeb5cf25f2c41f8

    The last lines of its log:

    Tool call: read_file, ok.
    Tool call: read_file, ok.
    Tool call: read_file, ok.
    Tool call: edit_file, retry (old_text not found in src/devops_cli/config/settings.py. No changes were written.).
    Tool call: grep, ok.
    Tool call: read_file, ok.
    Tool call: edit_file, ok.
    Tool call: read_file, ok.
    Tool call: grep, ok.
    Tool call: edit_file, ok.
    Tool call: edit_file, retry (old_text not found in src/devops_cli/roadmap/alternatives.py. No changes were written.).
    Tool call: read_file, ok.
    Tool call: edit_file, ok.
    Tool call: read_file, ok.
    Tool call: edit_file, ok.
    Tool call: read_file, ok.
    Tool call: edit_file, retry (old_text not found in src/devops_cli/roadmap/run.py. No changes were written.).
    Tool call: edit_file, retry (old_text not found in src/devops_cli/roadmap/run.py. No changes were written.).
    Tool call: read_file, ok.
    Tool call: edit_file, ok.
    Tool call: grep, ok.
    Tool call: read_file, ok.
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: read_file, ok.
    Tool call: edit_file, ok.
    Tool call: edit_file, ok.
    Tool call: read_file, ok.
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: edit_file, retry (old_text not found in tests/roadmap/test_roadmap_limit_classes.py. No changes were written.).
    Tool call: read_file, ok.
    Tool call: edit_file, ok.
    Tool call: read_file, retry (Offset 1950 exceeds file length (1880 lines). Path: tests/roadmap/test_roadmap_alternatives.py).
    Tool call: read_file, ok.
    Tool call: grep, ok.
    Tool call: grep, ok.
    Failure class ci_infra. Action left: retry.
    ✓ Took 0 item(s) to a ready pull request, stopped 1.
    Elapsed: 28m 3s
    
  11. added
    status/planned
    and removed
    owner/service
    status/blocked
    on Nov 3, 2026
  12. devops-cli-service commented on Nov 3, 2026

    @devops-cli-service
    Contributor

    Cleared the stop at group 1 by the rule digest: the runner image changed since the stop, from sha256:ef0d0ace3359daaf57e2bb1904dd131a16eca5fd52c54ffdcfeb5cf25f2c41f8 to sha256:71484cc064d6ab241bf53e6464dad843cc76f71025f0e46dc59adee51ae9b14f. The item is Planned again, and the Service takes it in the next round. The Service clears a stop one time for each runner image. A new stop on this image waits for a comment implement: retry.

  13. added
    status/in-progress
    status/in-review
    and removed
    status/planned
    status/in-progress
    on Nov 3, 2026
  14. removed
    status/in-review
    on Nov 3, 2026
  15. devops-cli-service commented on Nov 3, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-03 17:30 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/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