Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem
A tool answer of the stage planner that passes the limit of 8,000 characters is cut in the middle of a line, with no notice. cut in src/devops_cli/roadmap/refine/refine_investigation.py adds the notice (more lines are left out) only when the line limit (240) dropped a line. The character limit drops text with no notice. The model then reads a partial answer as a whole one and guesses the lines it did not see.
Evidence: a live stage run of #3387 on 2026-11-10 with deepseek-v4.1-flash-1017 and the trace of its plan run (58 requests, 79 tool calls):
- 17 of 79 answers reached the character limit. In 11 of them the answer is exactly 8,000 characters, so the cut gave no notice. Examples:
file_symbolsofsrc/devops_cli/roadmap/stage/stage.py(2,926 lines) gave 8,000 characters,read_fileof lines 100 to 150 ofdocs/ROADMAP_WORKFLOW.mdgave 8,000 characters for 51 lines, andread_fileofdocs/roadmap/stage.mdlines 1 to 70 gave 8,000 characters. - The model read
stage.py9 times with guessed ranges (560-740, 1700-1900, 1859-2010, 2110-2420, 2296-2560, 2583-2740, 1438-1580, 959-1070, 2010-2110) afterfile_symbolsshowed it only the start of the file. - The answers are 337,000 characters, about 105,000 of the 190,000 tokens of the last request.
Expected
- An answer that the character limit shortens ends at a whole line and carries the notice
(more lines are left out), as an answer that the line limit shortens does. - A line that is longer than the limit alone is cut and marked.
Acceptance criteria
- A test with 100 lines of 100 characters shows that
cutends with the notice and holds no partial line. It fails today. - A test shows that an answer under both limits has no notice.
-
devops roadmap eval stage --replaykeeps its result (81 of 317 defects caught, 0 missed, 5 of 5 good plans accepted).
Existing tool considered
None: cut is a 5-line function of the project. The change edits it. Cost: about 15,000 tokens to build, 2,000 to keep, 1 hour.
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 10, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The bug degrades model output quality in 17 of 79 live tool calls but does not crash the pipeline.The model guesses unseen lines, which lowers plan quality but the run still completes.The cut function is 5 lines and the change adds one notice branch plus two tests.Both deal with tool answer caps in the stage planner, but 3241 tunes the cap values while the candidate adds a truncation notice in the cut function.dan-petty commentedon Nov 10, 2026
Correction of the evidence in the description: the
file_symbolsanswer forsrc/devops_cli/roadmap/stage/stage.pywas 8,000 characters, but it lists 159 of 162 symbols, so it lost only 3. It is not the cause of the nine reads ofstage.pyin that run. The claim that the cut made the model guess its line ranges is not shown. What the trace does show: 11 of 79 answers were cut to exactly 8,000 characters with no notice, andread_fileof 51 lines ofdocs/ROADMAP_WORKFLOW.mdwas one of them. The model could not know that it had read less than it asked for. The pull request and its change folder state this.devops-cli-service commentedon Nov 10, 2026
Released in v0.107.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.107.0
devops-cli-service commentedon Nov 10, 2026
Live since 2026-11-10 07:20 UTC