Repository navigation
Description
Problem or Motivation
devops roadmap eval stage --replay runs the recorded plans through check_proposal and reads no git, as the docstring of src/devops_cli/roadmap/stage_eval_cases.py states: "A replay cannot assume a deep clone, so it reads no git."
The reference check of #3373 reads the hits that the job probes from the staging commit. The replay has no such hits, so it passes an empty list and cannot judge the new check. A plan that misses a reference hit passes the replay after #3373 lands.
The golden set is the measure that keeps the stage gates honest (#3028). A gate that the replay cannot judge leaves the check without a regression case.
Proposed Solution & Architectural Design
- Add a
referenceskey tofacts.jsonof each stage case: the paths of the files that hold the old module path or its dotted name, or an empty list. - Give
PlanUnderTestofsrc/devops_cli/roadmap/stage_eval_gates.pythe recorded paths, and pass them tocheck_proposal. - Add one case that moves a module and leaves a string literal in
tests/, with amissing_pathdefect and the gatepaths. - A case with no
referenceskey reads an empty list, so every existing case keeps its verdict.
Target Subsystem
src/devops_cli/roadmap/stage_eval_cases.py, src/devops_cli/roadmap/stage_eval_gates.py, tests/fixtures/roadmap_eval/stage/
Existing Tool Considered
The case schema and the replay already carry the facts of a case in facts.json, so the change extends that file and adds no new tool. The cost is about 3k tokens and 45 minutes.
Proposed design
Problem statement
The replay of the stage golden set cannot judge the reference check of #3373. The check reads the reference hits that the job probes from the staging commit, and the replay passes none. A plan that misses a reference hit passes the replay. The change records the hits in each case and passes them to check_proposal.
Acceptance criteria
Requirement: A case records its reference hits
The facts.json of a stage case SHALL hold a references key that lists the paths of the files that hold the old module path or its dotted name.
Scenario: Recorded hits reach the plan
- WHEN the replay loads a case whose
facts.jsonholds two reference paths - THEN
PlanUnderTest.of_caseholds the same two paths in itsreferencesfield.
Requirement: The replay passes the reference hits to the check
The paths gate SHALL pass the reference hits of the case to check_proposal.
Scenario: The check receives the hits
- WHEN the replay runs the
pathsgate on a case with two recorded reference paths - THEN
check_proposalreceives the same two paths as its reference hits.
Requirement: A case with no reference hits keeps its verdict
A case whose facts.json has no references key SHALL read an empty list.
Scenario: An existing case replays as before
- WHEN the replay runs the whole golden set with a case that has no
referenceskey - THEN that case reads an empty list and the report lists no failure for it.
Requirement: The golden set holds a missed reference hit
The golden set SHALL hold a case that moves a module and leaves a string literal in tests/, with a missing_path defect and the gate paths.
Scenario: The replay catches the missed reference
- WHEN the replay runs the new case
- THEN the
pathsgate refuses the plan and the report marks the defectcaught.
Existing Tool Considered
No alternatives check has run. The change builds no new tool: the case schema and the replay already carry the facts of a case in facts.json, and the change extends that file. The written cost is about 3k tokens and 45 minutes.
Key questions
- Where does a stage case record its reference hits?: In
facts.json, as areferencestuple onCaseFacts. That file holds what the gates need of the tree, astrackedandcapabilitiesdo. (best practice) [sources: src/devops_cli/roadmap/stage_eval_cases.py, openspec/changes/3308-the-plan-check-compares-a-number/design.md]- Chosen:
facts.jsonasCaseFacts.references. The facts file already holds what the gates need of the tree, and a case with no field reads a default. - Rejected:
case.json.case.jsonholds the review of the plan, not the facts of the tree. - Rejected: A new
references.jsonin each case folder. It adds a file to about 165 case folders, and no rule needs it.
- Chosen:
- What does a case with no
referenceskey read?: An empty tuple, from a field default. Every existing case keeps its verdict. (best practice) [sources: src/devops_cli/roadmap/stage_eval_cases.py, openspec/changes/3308-the-plan-check-compares-a-number/tasks.md]- Chosen: A field with an empty default. A recorded case keeps no hits, and an empty list leaves its verdict as it is.
- Rejected: A required field. It fails every existing case until each
facts.jsongets the key.
- How do the recorded hits reach
check_proposal?: Add areferencesfield toPlanUnderTestwith an empty default. Set it fromcase.facts.referencesinof_case, and pass it from_path_gate. (best practice) [sources: src/devops_cli/roadmap/stage_eval_gates.py, openspec/changes/3308-the-plan-check-compares-a-number/tasks.md]- Chosen: A
referencesfield onPlanUnderTest. The gate takes aPlanUnderTest, and a reply has no hits, so the field has an empty default. - Rejected: Read
case.facts.referencesin_path_gate._path_gatetakes aPlanUnderTestand never sees the case.
- Chosen: A
- Which case does the golden set add?: One case that moves a module and leaves a string literal in
tests/. It holds amissing_pathdefect with the gatepathsand names the test file that holds the old path. (best practice) [sources: src/devops_cli/roadmap/stage_eval_cases.py]- Chosen: A new case with a string literal in
tests/. The check reads a hit outside the changed paths, and no recorded case has one. - Rejected: Reuse a case that holds a
missing_pathdefect. Those cases record no reference hit, so the check cannot refuse them.
- Chosen: A new case with a string literal in
- Does the replay read git?: No. A replay cannot assume a deep clone, so it reads no git. The case files hold what the gates need. [sources: src/devops_cli/roadmap/stage_eval_cases.py, docs/ROADMAP_WORKFLOW.md:254]
- What does the
pathsgate pass tocheck_proposaltoday?: The proposal, the known capabilities, the tree and the requirement names. It passes no reference hits, so the change waits on feat(roadmap): Require a move plan to cover each reference #3373. [sources: src/devops_cli/roadmap/stage_eval_gates.py, src/devops_cli/roadmap/stage_change.py]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
Alternatives check of 2026-11-06: none.
Tool: none found.
Activity
devops-cli-service commentedon Nov 4, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The replay cannot judge the reference check, so a regression in that gate has no golden-set case, but no user-facing feature is blocked.Closes a coverage gap for one gate in the golden set, keeping the stage checks honest.The body states the cost is about 3k tokens and 45 minutes, touching two source files and one fixture.Both add a new recorded field to facts.json so the replay can judge a specific gate, but #3390 records constant values while this records file paths that hold an old module name.devops-cli-service commentedon Nov 4, 2026
Status set to Ready at 1643cc7 (see proposed design in issue body).
devops-cli-service commentedon Nov 6, 2026
Alternatives check: none
Tool: none found
Lacks:
referenceskey in each case'sfacts.json, areferencesfield onPlanUnderTest, and a pass-through in thepathsgate ofstage_eval_gates.py. No external tool supplies that schema.devops roadmap eval stage --replay; the replay must feed the recorded reference paths into the project's owncheck_proposal.Searches run:
Sources:
Checked on 2026-11-06. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 9, 2026
Released in v0.100.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.100.0
devops-cli-service commentedon Nov 9, 2026
Live since 2026-11-09 10:07 UTC