Skip to content

feat(roadmap): eval stage leaves out one research section #5512

Open

Description

@dan-petty

Problem or Motivation

The research steps (alternatives, references, standards, suggestions) spend tokens on each item. No measure shows that a research section makes a better plan. The approved pipeline split design (tracker #5482) lets a research step leave mode plan only when E5 shows a lift.

Proposed Solution & Architectural Design

  • Add --without <section> to devops roadmap eval stage. It removes one research section from the planner input.
  • On the 51 commit cases, run the input with and without each section. The measure is the E1 primary measure (feat(roadmap): eval stage compares planner input with guide text #5501).
  • Use the A/A pass, the power limit (a lift of about 21 points or more can show) and the decision rule of E1.

Target Subsystem

Roadmap Service and roadmap jobs (src/devops_cli/roadmap/stage/, the eval commands).

Acceptance Criteria

  • Test first: with a fake model, --without references removes that section from the planner input. The test fails on the base.
  • A comment on this issue gives the A/A result, then the lift of each section with its p value and the decision for each step.
  • No live proof applies: this item is an offline eval. A step that leaves mode plan gets its live proof in its own item.

Existing Tool Considered

The E1 harness, pydantic-evals and scipy. Build: 100,000 to 200,000 agent tokens and 0.5 day. Model spend: approved by the owner from the A/A pass.

Related

Tracker #5482, Phase 6 (first). Depends on #5501. #5513, #5514, #4672.

Source: #5482

Alternatives check of 2026-11-29: in-use.
The repository already uses this tool.
Tool: pydantic-evals (https://pypi.org/project/pydantic-evals), MIT, last activity 2026-11-28, maintained.
Reason: pydantic-evals runs a case dataset through a task and reports per-case and aggregate analyses, and the project already uses it. It gives no --without ablation flag, no A/A pass, no power limit and no per-section lift p value.

Covers:

  • Runs a fixed dataset of cases against one task
  • Per-case results and experiment-wide report evaluators
  • Built-in statistical and table analyses, such as KS and ROC AUC
  • Serializable dataset and report for a fixed score table

Lacks:

  • No --without flag to drop one research section
  • No A/A pass or power limit
  • No per-section lift with its p value
  • No E1 decision rule that keeps a step in plan

Proposed design

Problem statement

The research steps spend tokens on each item, and no measure shows that a research section makes a better plan. The approved pipeline split lets a research step leave mode plan only when E5 shows a lift. The eval command has no flag that drops one research section from the planner input, so the lift cannot be measured. This change adds --without <section>, filters the planner input and tests the filter with a fake planner. The 51-case real-model run and its report go to a new issue, because the run needs model spend that the owner approves. No live proof applies.

Acceptance criteria

Requirement: Ablation flag drops one research section

devops roadmap eval stage SHALL accept --without <section> and remove that research section from the planner input that the stage planner reads.

Scenario: Named section removed from the body and the comments

  • WHEN A test calls eval_stage_cmd with --without references on a fixed case whose body holds a references list and whose comments hold a references comment, with a fake planner.
  • THEN The planner input that the fake planner receives holds no references list and no references comment, and its alternatives, standards and suggestions text is the same as without the flag.

Requirement: Case comments reach the planner input

The stage eval SHALL read the comments of each case and give them to the planner with the item body.

Scenario: Case comments reach the planner input

  • WHEN A test loads a case whose comments.json holds one references comment and runs the case with a fake planner.
  • THEN The planner input that the fake planner receives holds the references comment.

Requirement: Unknown section name is a usage error

The command MUST reject a section name outside alternatives, references, standards and suggestions as a usage error.

Scenario: Unknown section name

  • WHEN A test calls eval_stage_cmd with --without bogus and a fake planner.
  • THEN The command exits 2, the message names the four valid sections, and the fake planner receives no call.

Existing Tool Considered

pydantic-evals (verdict in-use; its block in the alternatives check of 2026-11-29 in the issue body states what it covers and lacks). This proposal adds the missing --without filter at the planner request, over the item body and its comments. The deferred run uses the E1 harness of #5501 for the A/A pass, the power limit and the decision rule. The issue body estimates 100,000 to 200,000 agent tokens and 0.5 day for the eval work.

Key questions

  • Where does the eval remove the named research section from the planner input?: The eval removes the section where the stage builds the planner request. _Planner._request puts the item body and the item comments into the StageRequest (stage.py:2486, stage_request.py:38), and the job holds the comments before that call (stage.py:1668). The alternatives block holds the references lists (alternatives.py:1111), and the check comment holds them too (alternatives.py:1126). A filter on the item body in item_of (stage_eval_run.py:116) leaves the comment text in the input. The eval passes the section name and the case comments through plan_item (stage.py:3680). The real job passes no filter. (best practice) [sources: src/devops_cli/roadmap/stage/stage.py:2486, src/devops_cli/roadmap/stage/stage_request.py:38, src/devops_cli/roadmap/stage/stage.py:1668, src/devops_cli/roadmap/alternatives.py:1111, src/devops_cli/roadmap/alternatives.py:1126, src/devops_cli/roadmap/stage/stage_eval_run.py:116, src/devops_cli/roadmap/stage/stage.py:3680]
    • Chosen: Filter the planner request, over the body and the comments. One filter point covers the body block and the check comment, which both hold the research text.
    • Rejected: Filter the item body in item_of. The eval item holds no comments, so the check comment keeps the references text.
    • Rejected: Skip the research step in the pipeline. The run would change which steps run, so it would not measure the section text.
    • Rejected: Remove the section from the rendered prompt text. A text edit is brittle and hides the section boundary from the test.
  • How does the command reject an unknown section name?: The option takes an enum of the four section names, as --toolset takes StageToolset (roadmap_eval_stage.py:242). Click refuses a value outside the enum with exit code 2 and names the valid values. A ValidationError from the command body gives exit 1 (exceptions/base.py:35), so it is no usage error. (best practice) [sources: src/devops_cli/commands/roadmap_eval_stage.py:242, src/devops_cli/exceptions/base.py:35]
    • Chosen: Typer enum option. Click gives exit 2 and names the valid values, as --toolset does.
    • Rejected: Raise ValidationError in the command. The base error class gives exit 1, so the command would not report a usage error.
  • Does this pull request run the 51 commit cases, or does a new issue run them?: A new issue runs the 51 commit cases. This pull request adds the flag, the filter and the case comments, and tests them with a fake planner. The 51 planner runs need model spend, and the owner approves that spend from the A/A pass. The eval commands are on demand and are no part of devops ci (roadmap_eval.py:5). (best practice) [sources: src/devops_cli/commands/roadmap_eval.py:5, src/devops_cli/commands/roadmap_eval_stage.py:234, src/devops_cli/roadmap/stage/stage_eval_run.py:116]
    • Chosen: Fake-planner tests here, the 51-case run in a new issue. The 51 planner runs need model spend, and the owner approves it. A pull request holds no model spend.
    • Rejected: The 51-case run in this pull request. The eval commands are on demand and need model spend. A pull request has no approval for that spend.
    • Rejected: The 51-case run in a CI check. roadmap_eval.py:5 says the eval is no part of devops ci.
  • Which library computes the A/A result, the lift and the p values?: The deferred run uses the E1 harness of feat(roadmap): eval stage compares planner input with guide text #5501. This item adds no statistics library. The repository declares statsmodels at pyproject.toml:73 and uses it for intervals at src/devops_cli/roadmap/job_grade.py:198. (best practice) [sources: pyproject.toml:73, src/devops_cli/roadmap/job_grade.py:198]
    • Chosen: E1 harness of feat(roadmap): eval stage compares planner input with guide text #5501. It owns the primary measure, the A/A pass, the power limit and the decision rule. The repository already declares statsmodels for intervals.
    • Rejected: scipy. The issue body names it, but pyproject.toml does not declare it.
    • Rejected: pydantic-evals. The alternatives block lists no A/A pass, power limit or per-section p value.
    • Rejected: Own normal approximation. It is code to keep and test for a result that statsmodels gives.
  • Which measure, power limit and decision rule does the eval apply?: The item applies no measure of its own. The deferred run applies the E1 primary measure, the A/A pass, the power limit and the decision rule that feat(roadmap): eval stage compares planner input with guide text #5501 owns, and feat(roadmap): eval stage compares planner input with guide text #5501 is a declared dependency. The approved tracker feat(roadmap): track the roadmap pipeline split into jobs #5482 records that the E1 budget comes from the A/A pass and that the research caps come after an E5 lift (fetched 2026-12-01). (best practice) [sources: https://github.com/feat(roadmap): track the roadmap pipeline split into jobs #5482]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#5501

Activity

  1. added
    source/agent
    on Nov 13, 2026
  2. added
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 13, 2026
  3. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 13, 2026
  5. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: Searches found no tool that runs an input ablation over the 51 cases and applies the E1 decision rule; pydantic-evals, already named in the issue, covers the case runs, metrics and report, but not the section flag or statistics.

    The repository already uses this tool.

    Tool: pydantic-evals (https://pypi.org/project/pydantic-evals), MIT, last activity 2026-11-17, maintained.

    Covers:

    • Dataset of the 51 commit cases with typed inputs
    • Per-case evaluators for the E1 primary measure
    • Report and comparison of two runs

    Lacks:

    • Flag that drops one research section from the planner input
    • A/A pass, power limit and p values per section
    • The E1 decision rule per research step
    Searches (6)

    Tools considered:

    Searches run:

    • pydantic-evals dataset evaluation framework evaluators, results: 5
    • scipy statsmodels statistical power and p-value for A/B test comparison, results: 5
    • scipy.stats.ttest_ind statistical significance test documentation, results: 5
    • pydantic evals github pydantic/pydantic-ai evaluation library, results: 5
    • pydantic-evals, results: 5
    • promptfoo ablation variant comparison prompt evaluation open source, results: 5

    Sources:

    A person decides what this check of 2026-11-17 means for the item.

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

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 86358b6 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  7. 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.

  8. 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 and Watched files in the section Proposed design of the body.

  9. devops-cli-service commented on Nov 23, 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.

  10. devops-cli-service commented on Dec 1, 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.

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/mediumpriority/p2-mediumscope/roadmapsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions