Skip to content

test(roadmap): run the cloud baseline of the stage eval #3566

Open

Description

@dan-petty

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

  1. Let a person decide to spend about 10 USD for the full baseline of claude-sonnet-5-5, with and without --no-toolbox, as docs/ROADMAP_WORKFLOW.md describes.
  2. Before it, run with a larger window for the baseline, so the planner can make more than one round of tools: the task stage now takes its own context_window. A person sets it in the deployed config.
  3. 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.py runs 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.py reads 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.py reads the baseline table.
  • THEN The test passes and finds the gap as a number, with claude-sonnet-5-5 and deepseek-v4.1-flash-1017 named 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.py reads 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 under roadmap_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.py reads 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, and uv 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, and uv 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 variable DEVOPS_CLI_AI_TASK_STAGE_CONTEXT_WINDOW sets 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-5 supports. A person sets it through DEVOPS_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-1017 at 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 test tests/docs/test_roadmap_workflow_doc.py reads 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.
  • Which model does the stage planner use now, and does its report state a spend?: The deployed config sets deepseek-v4.1-flash-1017 for 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

  1. added
    source/agent
    type/test
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 5, 2026
  2. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/test. The test prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It gates the tuning and model-choice decisions for the roadmap pipeline but blocks no user-facing feature.
    • Value: Medium. The baseline data lets the team choose the model and window size from evidence instead of guesswork.
    • Effort: Low. The commands and golden set exist; the work is running them, storing reports, and comparing them.
    • Related: test(roadmap): score the stage pipeline with a cloud model first #3207, which asks for a different change. 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.
  3. added
    priority/p2-medium
    owner/agent
    on Nov 5, 2026
  4. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    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.

    • Who approves the cloud spend of the baseline and of the gap run? (a person decides)
    • Who sets ai.tasks.stage.context_window in 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.

  5. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    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.

    • The owner approves the cloud spend of about 10 USD for the baseline runs and the verify run before any run starts.
  6. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    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.

  7. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    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.

    • Does the owner approve the cloud spend for the baseline runs? (a person decides)
  8. dan-petty commented on Nov 14, 2026

    @dan-petty
    OwnerAuthor

    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 for eval verify, and for the three reports and scores in docs/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_window through _TASK_PARENTS in src/devops_cli/config/settings.py:735 and context_window at line 673. A person runs the baseline and records the table, as the issue says.

  9. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    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.

    • Does the owner approve the cloud spend for the baseline runs, and who runs the three commands? (a person decides)
  10. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Owner question: Does the owner approve the cloud spend for the baseline runs, and who runs the commands? (a person decides)

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  11. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    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.

  12. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  13. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    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.

  14. devops-cli-service commented on Dec 1, 2026

    @devops-cli-service
    Contributor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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/lowowner/agentpriority/p2-mediumscope/roadmapsource/agentstatus/newtype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions