Skip to content

fix(roadmap): fail the plan run when the window ends the tools too soon - #3923

Merged
dan-petty merged 5 commits into
mainfrom
fix/3880-stage-window-starves-planner
Nov 7, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/3880-stage-window-starves-planner

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage job failed every item because the planner window of 65,536 tokens ended the tools after a few calls, and the model answered with the placeholder x. A plan run whose window ends its tools before 8 tool calls now fails the item at once, with an error that names ai.tasks.stage.context_window and ai.tasks.analysis.context_window. The example ConfigMap sets the analysis window to 256000, and a test fails when that window is below what the first request and the least calls need. docs/roadmap/stage.md states what the model does. The window of the task verification moved to #3911.

Closes #3880

Change: openspec/changes/archive/2026-11-07-3880-stage-window-starves-planner/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence for the pull request.

fail-to-pass (uv run devops ci fail-to-pass --base origin/main): 5 tests fail on the base and pass on the branch.

  • test_roadmap_stage_toolbox::test_a_plan_run_whose_tools_the_window_ends_too_soon_fails_and_names_the_window_setting (DID NOT RAISE RoadmapStageError)
  • test_roadmap_stage_toolbox::test_a_plan_run_whose_window_ends_the_tools_after_the_minimum_calls_gives_its_plan
  • test_roadmap_stage_window::test_the_documented_window_of_analysis_and_its_source_are_the_files_values (65536, expected 256000)
  • test_roadmap_stage_window::test_the_planner_window_of_the_example_configmap_fits_the_first_request_and_the_minimum_calls
  • test_roadmap_stage_window::test_a_window_that_ends_the_tools_too_soon_fails_the_item_and_names_the_setting

Full uv run devops ci (before the last test row and the rebase): every check passed except the test row. One test failed, test_roadmap_limit_classes::test_every_numeric_limit_of_the_roadmap_jobs_has_a_class, because the new constant had no class. The row CONST_ROADMAP_STAGE_MIN_TOOL_CALLS is now in the table, and the file passes alone (17 passed). The test row took 8m54s on a loaded host (known, #3593); the coverage row did not run because of the test failure. The full run was not repeated after the one-row fix.

Scope: the window of the task verification moved to #3911, because the pull request of #3874 edits the lines of that task in the same file. The cluster is untouched; the live ConfigMap already holds context_window 256000.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 04:44
@dan-petty
dan-petty merged commit e71144a into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/3880-stage-window-starves-planner branch November 7, 2026 04:44
dan-petty pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.77.1](v0.77.0...v0.77.1)
(2026-11-07)


### Bug Fixes

* **roadmap:** a rebase stop names the conflicted files
([#3922](#3922))
([dd0cca7](dd0cca7))
* **roadmap:** an unchanged refine item reads no comments
([#3918](#3918))
([38420cb](38420cb))
* **roadmap:** fail the plan run when the window ends the tools too soon
([#3923](#3923))
([e71144a](e71144a))
* **roadmap:** the plan reader reports a criterion of group 0
([#3933](#3933))
([8a5ca70](8a5ca70))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): the stage job fails when the window starves the planner

1 participant