Skip to content

test(roadmap): record staged-item replay fixtures for the stage eval #5191

Open

Description

@devops-cli-service

Split from #3239.

ProblemnThe stage eval comparison needs replay inputs of real staged items. The plans reviewed on 2026-11-02 are the first cases. The plans live on GitHub and in the stage plan records, not in this repository.n## Why deferrednThe capture reads data outside the repository. A person must approve the capture of the real plans. The comparison command and its case loader ship without these fixtures.n## Acceptance criteria1. tests/fixtures/roadmap_eval/staged/ holds the plans reviewed on 2026-11-02 in the existing case format.2. Each fixture names its source issue and the date of the review.3. devops roadmap eval stage compare base extended includes each fixture case and runs it at least three times.4. A test asserts that each fixture case loads, has a non-empty plan, and names its source issue and review date.

Dependencies

None.

Proposed design

Problem statement

The stage eval has the golden set and one staged-item case. The plans of the 2026-11-02 review are real replay inputs, but they live on GitHub and in stage plan records, not in this repository. A person must name the plans and approve their capture. This item records the approved plans in the staged case format and makes the tests accept more than one case.

Acceptance criteria

Requirement: Staged review cases load

The repository SHALL hold one staged replay case folder for each plan that the 2026-11-02 review examined, under tests/fixtures/roadmap_eval/staged/.

Scenario: Each recorded review case loads

  • WHEN uv run pytest tests/roadmap/stage/test_roadmap_stage_eval_compare.py -k review_cases_load runs the review-case test.
  • THEN The test passes and reports one loaded StageCase for each name in the review-case list, with no ConfigurationError.

Requirement: Review case provenance and payload

Each case folder that this change records for the 2026-11-02 review MUST name its source issue in issue, record 2026-11-02 in a note of notes, hold a non-empty plan, and hold a base_commit other than NO_COMMIT.

Scenario: Each review case has its source, date, plan and commit

  • WHEN The review-case test reads the case names from its constant list and loads each case with load_staged_cases().
  • THEN The test passes and shows a positive issue, a notes entry with 2026-11-02, a non-empty plan and has_commit true for each case.

Requirement: Compare runs each staged case three times

devops roadmap eval stage compare base extended MUST include every case of tests/fixtures/roadmap_eval/staged/ and MUST run each case three times by default.

Scenario: Each recorded case appears in the compare table with three runs

  • WHEN uv run pytest tests/roadmap/stage/test_roadmap_stage_eval_compare.py -k review_cases_compare runs the compare test with the fake model, a temporary golden case and the default staged folder, without --runs.
  • THEN The test passes and the output holds a base/<case> line and an extended/<case> line for each recorded case, and each case line holds runs=3.

Requirement: The existing staged-item test selects its case by name

The staged-item case test MUST select the 3239-the-toolset-comparison case by name from load_staged_cases() and MUST NOT require the staged set to hold only that case.

Scenario: The staged-item test passes with the recorded review cases

  • WHEN uv run pytest tests/roadmap/stage/test_roadmap_stage_eval_compare.py -k staged_item_case runs.
  • THEN The test passes and reports the 3239-the-toolset-comparison case with its issue, change, commit, verdict, defects and tracked files.

Existing Tool Considered

No alternatives check has run for this item. The archived #3239 proposal considered promptfoo (MIT, maintained, https://github.com/promptfoo/promptfoo) and found that it partly covers repeated eval cases with cost and tokens. It lacks the stage case format (case.json, issue.txt, plan.json, facts.json), the staged replay folder that load_staged_cases reads, the stage gate and verification defect counts, and the AI spend pricing registry. This change records fixture data in the existing loader format and adds about 50 lines of test code, at about 6,000 tokens to build, keep and fix and about 3 hours of elapsed time. The capture of the plans and the person's approval are the larger cost.

Key questions

  • Which folder holds the staged replay fixtures?: tests/fixtures/roadmap_eval/staged/. The issue body names tests/fixtures/roadmap_eval/stage/, but that is the golden set. (best practice) [sources: src/devops_cli/roadmap/stage/stage_eval_cases.py:79, docs/roadmap/stage.md:70, tests/fixtures/roadmap_eval/staged/3239-the-toolset-comparison/case.json]
    • Chosen: tests/fixtures/roadmap_eval/staged/. The loader reads this folder by default, and the archived design gives it to staged replay cases.
    • Rejected: tests/fixtures/roadmap_eval/stage/. This is the golden set that load_cases reads, so a staged case there changes golden-set counts.
  • How does each fixture record the review date?: In a note of notes that holds 2026-11-02. The source issue is the existing issue field. (best practice) [sources: src/devops_cli/roadmap/stage/stage_eval_cases.py:139, src/devops_cli/roadmap/stage/stage_eval_cases.py:203, src/devops_cli/roadmap/stage/stage_eval_cases.py:219, tests/fixtures/roadmap_eval/staged/3239-the-toolset-comparison/case.json:18]
    • Chosen: Record the date in a note of notes. The loader returns notes, the existing staged case records provenance there, and the test needs no schema change.
    • Rejected: Add a review_date field to StageCase. It changes the shared case schema, its docs and its spec for a fixture-only item.
    • Rejected: Put the date in summary. summary states the plan, and a test cannot check a date in prose as a field.
  • Must each recorded case hold a commit?: Yes. The compare leaves out a case whose base_commit is NO_COMMIT, so a case with no commit is no replay input. (best practice) [sources: src/devops_cli/roadmap/stage/stage_eval_cases.py:82, src/devops_cli/roadmap/stage/stage_eval_cases.py:226, src/devops_cli/roadmap/stage/stage_eval_cases.py:327, docs/ROADMAP_WORKFLOW.md:381]
    • Chosen: Require each recorded case to hold a commit. The compare leaves out a case whose base_commit is NO_COMMIT, so a case with no commit cannot meet the third criterion.
    • Rejected: Allow a case with no commit. The compare leaves it out and names it in left_out, so the comparison cannot run it.
  • Does the compare command load staged cases and run each case three times by default?: Yes. _compare loads the golden cases and the staged-item cases, --runs defaults to 3, and --staged-cases names the staged folder. [sources: src/devops_cli/commands/roadmap_eval_stage.py:188, src/devops_cli/commands/roadmap_eval_stage.py:248, src/devops_cli/commands/roadmap_eval_stage.py:265, docs/roadmap/stage.md:66, tests/roadmap/stage/test_roadmap_stage_eval_compare.py:477]
  • How does the test find each fixture case?: It parametrizes over load_staged_cases() and keeps the 2026-11-02 case names in one constant list. It selects the existing 3239 case by name instead of asserting the set holds one case. (best practice) [sources: src/devops_cli/roadmap/stage/stage_eval_cases.py:298, tests/roadmap/stage/test_roadmap_stage_eval_compare.py, tests/fixtures/roadmap_eval/staged/3239-the-toolset-comparison/case.json]
    • Chosen: Parametrize over load_staged_cases() and keep the review-case names in one constant. A new case folder is checked for load, plan and issue with no test change, and the date check names only the 2026-11-02 cases.
    • Rejected: List each fixture file in the test. A new case file needs a test edit, and a forgotten edit hides a missing check.
    • Rejected: Assert the date for every staged case. The existing 3239 case was not reviewed on 2026-11-02, so the test would fail on a true fact.
  • Does the fixture work start before chore(roadmap): hold incremental stage and implement work #6521 closes?: No. The body's Dependencies section holds - #6521 (hold: ...), so the capture starts after chore(roadmap): hold incremental stage and implement work #6521 closes. (best practice) [sources: docs/roadmap/refine.md, docs/roadmap/refine.md:21, openspec/changes/archive/2026-11-20-6451-read-only-blockers-in-a-dependencies/design.md:8]

Fit

Fits in one pull request.

Suspected block

A person must name the plans of the 2026-11-02 review and approve their capture from GitHub and the stage plan records.

Dependencies

#6521

Activity

  1. added
    source/agent
    type/test
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 12, 2026
  2. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    ContributorAuthor
  3. added
    priority/p3-low
    on Nov 12, 2026
  4. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    ContributorAuthor

    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

  5. dan-petty commented on Nov 20, 2026

    @dan-petty
    Owner

    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.

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

    @devops-cli-service
    ContributorAuthor

    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

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

    @devops-cli-service
    ContributorAuthor

    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.

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

    @devops-cli-service
    ContributorAuthor

    Next step: this item cannot be built as written. Edit the body to run refine again.

    Reason: The item needs a person to name the plans of the 2026-11-02 review and approve their capture from GitHub and the stage plan records. The repository holds neither the plans nor the approval. No open person question answers this first.

    Evidence: Issue #5191, section 'Why deferred': 'The capture reads data outside the repository. A person must approve the capture of the real plans.' The body has no key question and no owner decision.

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/p3-lowscope/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