Skip to content

fix(roadmap): The first stage request overflows its window #6103

Description

@dan-petty

Problem

Tests & Coverage of main fails at 2b4ae1f (run 43995284368), so every pull request and release 0.169.3 (#6093) fail Tests on Main:

tests/roadmap/stage/test_roadmap_stage_window.py::test_a_first_request_of_code_with_the_context_and_the_body_at_their_caps_offers_the_tools: assert (True, False) == (True, True).

The first plan request, with code at the context and body caps, counts 49,193 tokens; the limit where the run offers no tool is 49,152 (window 65,536). #6091 added 243 tokens to src/devops_cli/ai/tasks/roadmap_stage_change.md (6,289 to 6,532). Each pull request passed alone: #6091 ran on be2b4c1, before #6078 and the other merges, and the test passes at f592ce7, the commit before #6091. Strict up-to-date is off on purpose (merge skew).

Expected behavior

  • The first request at the caps stays under the limit with room for a small prompt change: lower CONST_ROADMAP_STAGE_CONTEXT_MAX_TOKENS (the repository context, which the tools can read on demand), and correct the stale count in its comment.
  • Main passes Tests & Coverage again.

Activity

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

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. The failure blocks every pull request and release on main, which is a CI failure. The failed run 43995284368 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.
    • Possible duplicate: fix(roadmap): Keep the first stage request under the window limit #6101, which may ask for the same change. The model names Lower CONST_ROADMAP_STAGE_CONTEXT_MAX_TOKENS so the first stage request at the caps stays under the window limit and the test passes as the change that both ask for. Both items ask to lower the context token cap so the first stage request fits the window and the same test passes. A person closes one of the two if that is so.
  3. added
    priority/p1-high
    status/in-progress
    and removed
    status/new
    on Nov 17, 2026
  4. removed
    status/in-progress
    on Nov 17, 2026
  5. devops-cli-service commented on Nov 17, 2026

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

    @devops-cli-service
    Contributor

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