Skip to content

fix(roadmap): the eval replay task gives the before and after numbers #3397

Closed as not planned

Description

@dan-petty

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

  1. In check_proposal in src/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.
  2. When the task names --model, require the model name too, and refuse a task whose two scores do not name the same model.
  3. 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

  1. A test asserts that a replay task with the command and the score words but no before and after number is refused.
  2. 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, before and after with no number
  • THEN check_proposal returns 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.62 and the word after with no number after it
  • THEN check_proposal returns 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.62 and after 0.71
  • THEN check_proposal returns 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-coder for the before score and --model gpt-oss for the after score
  • THEN check_proposal returns 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 --model and gives the two scores
  • THEN check_proposal returns 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 before and after with a number after each, and one --model name

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_proposal in src/devops_cli/roadmap/stage_change.py, beside content_problems, so the replay's paths gate judges the same rule. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:254, src/devops_cli/roadmap/stage_change.py]
  • What form must the before and the after score take?: The task gives a number within 20 characters after each of before and after. The two numbers are different occurrences, as in before 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 --model flag must hold a name, and every --model value 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 --model and 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.
  • 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 that check_proposal returns 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 that check_proposal returns comes from MESSAGES.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.
  • 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_proposal in 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.

Dependencies

#3331

Activity

  1. added
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 4, 2026
  2. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. A validation gap that lets weak plans pass, but the system still functions and no data is lost.
    • Value: Medium. Closes a bypass in the stage gate so plans carry real evidence before implementation.
    • Effort: Low. The body states about 2 hours and the change is one function plus three test cases.
    • Related: feat(roadmap): stage requires an eval replay task when a plan edits the stage prompt or gates #3331, which asks for a different change. 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.
  3. added
    priority/p2-medium
    status/ready
    and removed
    status/new
    on Nov 4, 2026
  4. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 999a4fb (see proposed design in issue body).

  5. dan-petty commented on Nov 4, 2026

    @dan-petty
    OwnerAuthor

    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.62 and after 0.71 stand 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:27 runs 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:260 puts 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 #3397 of #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.

  6. removed
    status/ready
    on Nov 4, 2026
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/lowpriority/p2-mediumscope/roadmaptype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions