Repository navigation
Description
Problem
More than half of the failures of the stage job in 7 days are replies that hold only placeholders, and the cause is not known.
In the failure texts of the stage job (Loki, service_name=roadmap-service, 2026-11-04 to 2026-11-09), 84 of 161 failures that the checks caused hold the sentence "The text of why is the placeholder x" or "... placeholder" (or test) for why, existing_tool, feasibility and the implementation of group 1, with "skip_specs is false, and the reply gives no spec delta". The latest ones are from 2026-11-09 at 16:24 (#3570) and 12:47 (#3717, #3727). #4204 made the job stop such an item at once, with no second request, and #4260 and #4269 keep the refused replies. Nothing records why the model answers with a placeholder.
Candidates that the code allows, none shown by evidence: the tools end when the messages fill the context window (#3037) and the run is forced to answer; a request after the limit of tool calls; a gateway fallback to another model. The logs of one refusal say "request=71 input_tokens=188657 tools_offered=True" for #3414 on 2026-11-09, so a long run is real.
Expected
- The log line of a degenerate reply (
_note_refusedwith resultdegenerate) also gives the stop reason of the run, the number of tool calls, whether the tools were ended for the context window, and the model that answered (served_by). - With that line, one more day of logs shows which cause holds, and a later change fixes it at the source.
Acceptance criteria
- A test of a degenerate reply shows the new fields in the log record. It fails today.
-
uv run devops roadmap eval stage --replaykeeps its result.
Existing tool considered
RunTrace in src/devops_cli/roadmap/agent_run.py already holds the counts. The change prints them. Cost: about 15 000 tokens to build, 2 000 to keep, and 45 minutes.
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.It unblocks diagnosis of the top failure mode but is not itself a user-facing fix.It enables identification of the root cause of 84 of 161 stage failures.The body states about 45 minutes and 15 000 tokens to build.Both address placeholder stage replies; #4205 fixes the cause, the candidate adds log fields to diagnose it.dan-petty commentedon Nov 10, 2026
Evidence for #4313 (Loki and Prometheus, read 2026-11-10 02:00Z)
What the logs show.
x55,placeholder28, other 3) from 2026-11-04 to 2026-11-09 16:24Z. The same item fails again at each retry (for example fix(k8s): the coder tier serves no second chat model #3485, fix(ci): host state fails four tests and one case #3585, fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593, feat(roadmap): metrics for the pipeline outcomes #3069, feat(roadmap): Evaluate a research toolset with web search for the planner #3243, feat(roadmap): a run console: follow a run and read its history #3076: 4 times each), so the input of the item drives the fault more than chance does.deepseek-v4.1-flash-1017(or the earlier stage model), not from Sonnet.devops_cli_ai_model_answers_totalhas onlyasked == answeredseries since 2026-11-09 (nofallback="true"series). A gateway fallback is not the cause.stage reply refusedholds 16 refused replies and 0 degenerate ones. At the rate before (84 of 161 failures), 0 of 16 has a chance of about 1 in 100 000.What changed at that time. #4238 (merged 16:57Z, deployed some time after it) made the window estimate follow the real input. Before it, the estimate was about 1.4 times the real input, so the run took the function tools from the model at about 105 000 real tokens.
devops_cli_roadmap_tool_limit_hits_total{limit="window"}was 20 to 37 per 3 hours until 16:47Z and fell to 7.8 and then 2.1 per 3 hours after it.Finding. The placeholder replies most likely come from a forced answer: the run withdrew the tools too early, and the model had to fill the output tool before it had read the code. The proof needs the new line:
limit=windowwithresult=degenerate. If the line shows another stop reason, the cause is another one. This pull request adds the facts; it does not change the planner.Not checked.
tool_choiceandmax_tokensof the gateway request are not in the logs;finish_reasonwill show a stop at the length.devops-cli-service commentedon Nov 10, 2026
Released in v0.106.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.106.0
devops-cli-service commentedon Nov 10, 2026
Live since 2026-11-10 03:32 UTC