Repository navigation
Description
Problem or Motivation
#3207 added the task ai.tasks.stage, and the tokens and spend in the report of devops roadmap eval stage. It did not run a full cloud baseline. A sample of 4 cases (2116, 2130, 2147, 2152) with the toolbox on 2026-11-05 shows why the full run waits.
| Model | Avoided | Ended (staged, refused, over budget, failed) | Tokens in, out | Spend |
|---|---|---|---|---|
claude-sonnet-5-5 |
3 of 9 | 1, 1, 0, 2 | 430,546, 21,157 | 1.07 USD |
deepseek-v4.1-flash-1017 |
2 of 9 | 1, 3, 0, 0 | 543,766, 17,535 | no price in genai-prices |
A probe of one case (2116) with deepseek-v4.1-flash-1017 shows how the toolbox runs. Each plan run made 2 tool calls in its first request and offered no tool in its second request, because the messages reached the limit of the window (49,152 of 65,536 tokens). A plan run therefore has one round of tools. One of the two probe runs gave a plan with the placeholder x in every text field, which the checks refused.
A full run of 40 cases costs about 9.5 USD with claude-sonnet-5-5 at these token counts (4,379,040 input and 77,440 output tokens by extrapolation). The cost of eval verify is not measured.
Proposed Solution & Architectural Design
- Let a person decide to spend about 10 USD for the full baseline of
claude-sonnet-5-5, with and without--no-toolbox, asdocs/ROADMAP_WORKFLOW.mddescribes. - Before it, run with a larger window for the baseline, so the planner can make more than one round of tools: the task
stagenow takes its owncontext_window. A person sets it in the deployed config. - Store the three reports (toolbox, no toolbox, verify) and compare them with the current model.
Related: #3207, #3489, #3529, #3066, #3060.
Target Subsystem
docs/ROADMAP_WORKFLOW.md, devops roadmap eval stage, devops roadmap eval verify.
Existing Tool Considered
The eval commands and the golden set exist. This item builds no code. The cost is the model calls above.
Alternatives check of 2026-11-30: not-applicable.
Class: test, no model call.
Tool: none found.
Proposed design
Problem statement
The stage eval has no full cloud baseline. This item records a full baseline of claude-sonnet-5-5 with and without the toolbox. It records a verify run and the gap to deepseek-v4.1-flash-1017 in docs/ROADMAP_WORKFLOW.md. It adds one invariant test. The work waits on the owner's approval of about 10 USD of model spend. It also waits on a person's run of the live eval commands.
Acceptance criteria
Requirement: Baseline model row
The baseline table of docs/ROADMAP_WORKFLOW.md SHALL hold one row for claude-sonnet-5-5 with its stage score with the toolbox, its stage score without the toolbox and its verify recall.
Scenario: The baseline model row
- WHEN
uv run pytest tests/docs/test_roadmap_workflow_doc.pyruns on the merged baseline record. - THEN The test passes and finds the row whose first cell is
claude-sonnet-5-5, with a number in the toolbox column, a number in the no-toolbox column and a number in the verify-recall column.
Requirement: Window of the baseline run
The baseline record SHALL state the setting ai.tasks.stage.context_window, the variable DEVOPS_CLI_AI_TASK_STAGE_CONTEXT_WINDOW and the window value that the run used.
Scenario: The window of the baseline run
- WHEN
uv run pytest tests/docs/test_roadmap_workflow_doc.pyreads the baseline table and the text that follows it. - THEN The test passes and finds the setting name, the variable name and a token count for the window.
Requirement: Gap to the current model
The baseline record SHALL state the difference between the stage score of claude-sonnet-5-5 and the stage score of deepseek-v4.1-flash-1017 as a number.
Scenario: The gap row
- WHEN
uv run pytest tests/docs/test_roadmap_workflow_doc.pyreads the baseline table. - THEN The test passes and finds the gap as a number, with
claude-sonnet-5-5anddeepseek-v4.1-flash-1017named as the model of each score.
Requirement: Cost and report of each baseline run
The baseline record SHALL state the spend in USD of each claude-sonnet-5-5 stage run, the input tokens of the verify run and the report path of each of the three runs.
Scenario: The cost and report rows
- WHEN
uv run pytest tests/docs/test_roadmap_workflow_doc.pyreads the baseline table and the text that follows it. - THEN The test passes and finds two spend values in USD, one input-token count, two paths under
roadmap_eval/stage/and one path underroadmap_eval/verify/.
Requirement: Commands and date of the baseline
The baseline record SHALL state the date of the baseline and the exact commands that produced the three reports.
Scenario: The commands of the baseline
- WHEN
uv run pytest tests/docs/test_roadmap_workflow_doc.pyreads the baseline section. - THEN The test passes and finds the date,
uv run devops roadmap eval stage --model claude-sonnet-5-5, the same command with--no-toolbox, anduv run devops roadmap eval verify --model claude-sonnet-5-5 --source <repository>.
Existing Tool Considered
The alternatives check of 2026-11-30 in the issue body gives not-applicable for class test. The block records Tool: none found. No open, maintained tool covers a full cloud baseline of this project's stage plans. The golden set, the gates and the reports are the project's own. The commands devops roadmap eval stage and devops roadmap eval verify already do the measurement. This item adds no eval code. It adds one Markdown record and one invariant test. The written cost is about 20,000 tokens to write the test. It is about 10,000 tokens a year to keep and fix it, and about 2 hours of elapsed work. It also costs about 10 USD of model spend for the stage baseline of claude-sonnet-5-5, less without the toolbox. The verify and current-model gap runs are not measured.
Key questions
- Which commands produce the three baseline reports, and where does each command store its report?: The commands are
uv run devops roadmap eval stage --model claude-sonnet-5-5, the same command with--no-toolbox, anduv run devops roadmap eval verify --model claude-sonnet-5-5 --source <repository>. The stage command writes JSON under<data dir>/roadmap_eval/stage/. The verify command writes under<data dir>/roadmap_eval/verify/. [sources: docs/ROADMAP_WORKFLOW.md, openspec/specs/roadmap-stage-eval/spec.md] - Which context window does the stage plan run read, and how is it set?: The stage task reads
ai.tasks.stage.context_window. It falls back to the analysis task when the field is unset. The variableDEVOPS_CLI_AI_TASK_STAGE_CONTEXT_WINDOWsets the stage window alone. The run removes the tools when the messages and one quarter of the window reach the window. [sources: src/devops_cli/config/settings.py, docs/ENV_VARS.md, tests/config/test_ai_task_settings_paths.py, src/devops_cli/roadmap/stage/stage_agent.py] - Which model gives the baseline?:
claude-sonnet-5-5. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, openspec/specs/roadmap-stage-eval/spec.md]- Chosen: claude-sonnet-5-5. It is the hosted model that the issue measured, and its measured cost gives the baseline.
- Rejected: deepseek-v4.1-flash-1017. It is the current model, so its score gives the gap and not the baseline. The price registry holds no price for it.
- Rejected: A local model. The project holds no price and no full-set score for a local model.
- Which window value does the baseline run use?: The run uses the largest context window that
claude-sonnet-5-5supports. A person sets it throughDEVOPS_CLI_AI_TASK_STAGE_CONTEXT_WINDOW. The value MUST exceed 65,536 tokens. The baseline record states the exact value that the run used. (best practice) [sources: docs/ENV_VARS.md, tests/roadmap/stage/test_roadmap_stage_window.py, src/devops_cli/roadmap/stage/stage_agent.py]- Chosen: Largest supported window, recorded. It allows more than one tool round, and the record keeps the exact value.
- Rejected: 65536. The probe at this window made one tool round and failed the item.
- Rejected: 1048576. Each tool round sends the whole earlier text, so the spend grows with no bound.
- Which run gives the stage score of the current model for the gap?: A full run of
uv run devops roadmap eval stage --model deepseek-v4.1-flash-1017at the same window, with the toolbox. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, openspec/specs/roadmap-stage-eval/spec.md]- Chosen: A full run of eval stage with the current model. It uses the same command and window as the baseline, so the two scores compare.
- Rejected: The sample of 4 cases. It scores 4 cases and not the 40 of the set, so the two scores do not compare.
- Rejected: No gap row. The issue asks to compare the baseline with the current model.
- Where does the baseline record live, and what form does it take?: One Markdown table in
docs/ROADMAP_WORKFLOW.md, with one row for each model. The new testtests/docs/test_roadmap_workflow_doc.pyreads it. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, openspec/specs/roadmap-stage-eval/spec.md]- Chosen: A Markdown table in
docs/ROADMAP_WORKFLOW.md. The workflow document already defines the baseline, and a test finds a value by the first cell of its row. - Rejected: Prose in the section. A test cannot find a value in prose that has no fixed shape.
- Rejected: The JSON reports only. A reader of the page finds no score, and the reports live under the data directory of one machine.
- Chosen: A Markdown table in
- Which model does the stage planner use now, and does its report state a spend?: The deployed config sets
deepseek-v4.1-flash-1017for the stage task. The report states a null spend when the price registry holds no price for the model. [sources: docs/CLUSTER.md, k8s/devops/configmap.yaml]
Fit
Fits in one pull request.
Suspected block
The owner approves about 10 USD of cloud spend for the baseline runs. A person runs the three live eval commands.
Dependencies
None.
Activity
dan-petty commentedon Nov 5, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
testprefix of the title gives the type.(roadmap)scope of the title gives the scope.It gates the tuning and model-choice decisions for the roadmap pipeline but blocks no user-facing feature.The baseline data lets the team choose the model and window size from evidence instead of guesswork.The commands and golden set exist; the work is running them, storing reports, and comparing them.Both items evaluate the stage pipeline with a cloud model, but #3207 added the scoring task while the candidate runs the full baseline and stores three comparison reports.devops-cli-service commentedon Nov 6, 2026
Refine cannot set this item to Ready at 7496693 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
ai.tasks.stage.context_windowin the deployed config? (a person decides)The next refine round also looks at the item again when a commit on the default branch changes one of these files:
k8s/devops/configmap.example.yaml,docs/ROADMAP_WORKFLOW.md.devops-cli-service commentedon Nov 6, 2026
Refine cannot set this item to Ready at 9fc5d8f until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 7, 2026
Alternatives check: not-applicable
Class: test. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-07. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 13, 2026
Refine cannot set this item to Ready at 4ef7c6f until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
dan-petty commentedon Nov 14, 2026
Returned to New: this item builds no code and needs a person's spend decision and live model runs. The design asks for a full cloud baseline of
claude-sonnet-5-5(about 9.5 USD by the issue's extrapolation) with the toolbox, without the toolbox and foreval verify, and for the three reports and scores indocs/ROADMAP_WORKFLOW.md. An agent cannot approve the spend, and a test cannot record live scores: the acceptance scenarios read the baseline table that only such a run fills. The setting it needs exists on main:ai.tasks.stage.context_windowthrough_TASK_PARENTSinsrc/devops_cli/config/settings.py:735andcontext_windowat line 673. A person runs the baseline and records the table, as the issue says.devops-cli-service commentedon Nov 14, 2026
Refine cannot set this item to Ready at 9f9fa49 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 14, 2026
Owner question: Does the owner approve the cloud spend for the baseline runs, and who runs the commands? (a person decides)
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
dan-petty commentedon Nov 20, 2026
Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.
devops-cli-service commentedon Nov 20, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 21, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Dec 1, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence