Repository navigation
Description
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_loadruns the review-case test. - THEN The test passes and reports one loaded
StageCasefor each name in the review-case list, with noConfigurationError.
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, anotesentry with2026-11-02, a non-emptyplanandhas_committrue 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_compareruns 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 anextended/<case>line for each recorded case, and each case line holdsruns=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_caseruns. - THEN The test passes and reports the
3239-the-toolset-comparisoncase 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 namestests/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 thatload_casesreads, so a staged case there changes golden-set counts.
- Chosen:
- How does each fixture record the review date?: In a note of
notesthat holds2026-11-02. The source issue is the existingissuefield. (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 returnsnotes, the existing staged case records provenance there, and the test needs no schema change. - Rejected: Add a
review_datefield toStageCase. It changes the shared case schema, its docs and its spec for a fixture-only item. - Rejected: Put the date in
summary.summarystates the plan, and a test cannot check a date in prose as a field.
- Chosen: Record the date in a note of
- Must each recorded case hold a commit?: Yes. The compare leaves out a case whose
base_commitisNO_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_commitisNO_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.
- Chosen: Require each recorded case to hold a commit. The compare leaves out a case whose
- Does the compare command load staged cases and run each case three times by default?: Yes.
_compareloads the golden cases and the staged-item cases,--runsdefaults to 3, and--staged-casesnames 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.
- Chosen: Parametrize over
- 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]- Chosen: Wait on chore(roadmap): hold incremental stage and implement work #6521. The body names chore(roadmap): hold incremental stage and implement work #6521 as a hold, and the hold rule keeps the item back.
- Rejected: Record the fixtures now. The item is incremental work on jobs under re-architecture, and the hold is open.
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.
Activity
devops-cli-service commentedon Nov 12, 2026
The item adds test fixtures and blocks no product path.Both items concern the stage golden set. #3028 builds the set and scoring command; the candidate records the 2026-11-02 plans.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
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 23, 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 28, 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
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.