Repository navigation
Description
Problem
#3331 adds a stage rule that refuses a plan which changes the stage prompt or a stage check unless one group task holds uv run devops roadmap eval stage --replay and the words score, before and after. The rule checks words only. A task such as "run uv run devops roadmap eval stage --replay and give the score before and after" passes with no before number, no after number and no model name, so a plan can still reach implementation without the evidence that docs/ROADMAP_WORKFLOW.md:254 asks for.
Proposed change
- In
check_proposalinsrc/devops_cli/roadmap/stage_change.py, read the same group task text and require two numbers beside the score words, one before and one after. - When the task names
--model, require the model name too, and refuse a task whose two scores do not name the same model. - Add the cases to
tests/roadmap/test_roadmap_stage_form.py: the words only are refused, one number is refused, and two numbers with a model pass.
Acceptance criteria
- A test asserts that a replay task with the command and the score words but no before and after number is refused.
- A test asserts that a replay task that names the model and the before and after numbers passes.
Existing Tool Considered
No open, maintained tool or library covers a project-specific rule of a stage plan. The change extends the rule that #3331 adds in check_proposal, so it builds no new tool. Cost: about 2,000 tokens to build, about 1,000 tokens a year to keep and fix, and about 2 hours of elapsed time.
Source: #3331
Proposed design
Problem statement
The stage rule of #3331 refuses a plan that changes the stage prompt or a stage check. The plan must give a group task with the replay command and the words score, before and after. The rule reads words only. A task with no before number, no after number and no model name passes. The change makes check_proposal require two numbers beside the score words and one model name.
Acceptance criteria
Requirement: A replay task gives the before and the after score
check_proposal SHALL refuse a replay task that gives the words before and after with no number beside each word.
Scenario: The score words with no numbers
- WHEN a plan changes a stage check, and a group task holds the replay command and the words
score,beforeandafterwith no number - THEN
check_proposalreturns one problem that names the group and asks for the before score and the after score as numbers
Requirement: One score is refused
check_proposal SHALL refuse a replay task that gives only one of the two scores.
Scenario: Only the before score
- WHEN the replay task holds
before 0.62and the wordafterwith no number after it - THEN
check_proposalreturns one problem that names the missing after score
Requirement: A replay task with two scores and one model passes
check_proposal SHALL accept a replay task that names one model and gives a number beside before and a number beside after.
Scenario: The model and both scores
- WHEN the replay task holds
--model qwen3-coder,before 0.62andafter 0.71 - THEN
check_proposalreturns no problem for the task
Requirement: The two scores name the same model
check_proposal SHALL refuse a replay task that names two different models.
Scenario: Two models in one task
- WHEN the replay task gives
--model qwen3-coderfor the before score and--model gpt-ossfor the after score - THEN
check_proposalreturns one problem that states that both scores must name the same model
Requirement: A model flag with no name is refused
check_proposal SHALL refuse a replay task whose --model flag names no model.
Scenario: The flag at the end of the task
- WHEN the replay task ends with
--modeland gives the two scores - THEN
check_proposalreturns one problem that asks for the name of the model
Requirement: The stage prompt states the score form
The stage prompt roadmap_stage_change.md SHALL ask for a number after each score word and for one --model name.
Scenario: The text of the stage prompt
- WHEN the test reads the stage prompt
roadmap_stage_change.md - THEN the text holds
beforeandafterwith a number after each, and one--modelname
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers a project-specific rule of a stage plan. The change extends the rule that #3331 adds in check_proposal, so it builds no new tool. Cost: about 2,000 tokens to build, about 1,000 tokens a year to keep and fix, and about 2 hours of elapsed time.
Key questions
- Where does the check of the two scores live?: In
check_proposalinsrc/devops_cli/roadmap/stage_change.py, besidecontent_problems, so the replay'spathsgate judges the same rule. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:254, src/devops_cli/roadmap/stage_change.py]- Chosen: Extend
check_proposalinstage_change.py. Thepathsgate of the replay ischeck_proposal, and the issue names it. - Rejected: Add the rule to
form_problemsinstage_form.py. The issue namescheck_proposal, and the change extends the rule that feat(roadmap): stage requires an eval replay task when a plan edits the stage prompt or gates #3331 puts there. - Rejected: Add the rule to
stage_eval_gates.py. That module runs the replay over the cases, and it holds no rule of a plan.
- Chosen: Extend
- What form must the before and the after score take?: The task gives a number within 20 characters after each of
beforeandafter. The two numbers are different occurrences, as inbefore 0.62 and after 0.71. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:255]- Chosen: A number after each score word, within a short span. It ties each number to its word, and the problem text gives one form to copy.
- Rejected: Any two numbers in the task. A task with two numbers that are no scores passes, so the rule stays weak.
- Rejected: A fixed sentence with no other words. It refuses the model name and the run details that the same rule asks for.
- How does the check treat the model name?: A
--modelflag must hold a name, and every--modelvalue in the task must be the same. The check asks for no model name when the task names no flag, because a free-text name has no fixed form. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:255]- Chosen: Require the value of
--modeland one model in the task. The doc asks for one model, and the flag gives a form that a check reads. - Rejected: Require a model name in every replay task. A name in prose has no fixed form, and the check would refuse valid names.
- Rejected: Check no model. Two runs of different models give scores that do not compare.
- Chosen: Require the value of
- Does the stage prompt state the same form as the check?: Yes. The change states the number form and the one model name in the stage prompt
roadmap_stage_change.md. The model then reads the form before it writes the task. (best practice) [sources: tests/roadmap/test_roadmap_stage_form.py, docs/ROADMAP_WORKFLOW.md:255]- Chosen: State the form in the stage prompt. The model reads the prompt before it writes the task, and the project keeps the prompt and the check in step.
- Rejected: Teach the form only in the problem text. The model must fail once before it reads the form.
- Where does the new problem text live?: In
MESSAGES.roadmap, beside the other stage problems. Every problem thatcheck_proposalreturns is a message, and the test asserts the exact sentence. (best practice) [sources: src/devops_cli/roadmap/stage_change.py, tests/roadmap/test_roadmap_stage_form.py]- Chosen: Add a key to
MESSAGES.roadmap. Every problem thatcheck_proposalreturns comes fromMESSAGES.roadmap, and the test asserts the text. - Rejected: Write the sentence in
stage_change.py. It splits the stage problems across two places, and no other problem does that.
- Chosen: Add a key to
- Does the change wait on feat(roadmap): stage requires an eval replay task when a plan edits the stage prompt or gates #3331?: Yes. feat(roadmap): stage requires an eval replay task when a plan edits the stage prompt or gates #3331 adds the replay-task rule that this change extends.
check_proposalin this commit holds no such rule. [sources: src/devops_cli/roadmap/stage_change.py, docs/ROADMAP_WORKFLOW.md:255]
Fit
Fits in one pull request.
Suspected block
None.
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.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.A validation gap that lets weak plans pass, but the system still functions and no data is lost.Closes a bypass in the stage gate so plans carry real evidence before implementation.The body states about 2 hours and the change is one function plus three test cases.Both edit check_proposal in stage_change.py for the replay-task rule; #3331 adds the word check, the candidate adds a number check on top.devops-cli-service commentedon Nov 4, 2026
Status set to Ready at 999a4fb (see proposed design in issue body).
dan-petty commentedon Nov 4, 2026
The premise is false, so this item closes as not planned. It asks a plan task to hold the before number and the after number of a replay. A plan is written before the change, so no true after number exists at that time. The refine scenarios show this:
before 0.62andafter 0.71stand in a plan task, and only a model that invents the numbers can write them. The planner has a read-only toolbox and cannot run the measure (docs/ROADMAP_WORKFLOW.md:257).The newer work that holds this function is #3398 and the plan of #3331. Task 3.2 of
openspec/changes/3331-stage-requires-an-eval-replay-task/tasks.md:27runs the replay on the base and on the branch at implementation and states the values. Line 39 leaves the model run to a person.docs/ROADMAP_WORKFLOW.md:260puts the rule on a pull request, and #3398 checks that pull request. The plan of #3331 is on the default branch, and its code is not on it yet.What moved, in the section
Scope from #3397of #3398: the refusal of words only, of one number, of two different models and of a model flag with no name, and their tests.This item has no change folder, no open pull request and no parent issue.