Skip to content

feat(roadmap): a prompt change states a live eval score #3830

Closed

Description

@dan-petty

Problem or Motivation

A plan task can ask for evidence that its own command cannot give. The plan of #3309 (PR #3805) held task 3.1: "Run uv run devops roadmap eval stage --replay and state the score of the model before and after the prompt change." --replay calls no model: it runs recorded plans through the gates, so a change to the stage prompt cannot move its score. The implement job marked the task done and recorded no score. The review of #3805 found the gap. docs/ROADMAP_WORKFLOW.md requires the score before and after a prompt change, and #3398 plans a readiness check that the pull request body holds the replay command and a score. That check would accept a replay score that proves nothing for a prompt change.

Proposed Solution & Architectural Design

  1. In the stage prompt and in check_proposal, refuse a task that pairs a prompt change with roadmap eval stage --replay as the measure of that change. A prompt change names the live run, with --case or --limit to bound the cost: uv run devops roadmap eval stage --limit <n>.
  2. In the implement job, mark a task done only when the evidence that the task names is in the comment of the job. A task that asks for a score and records none stays open and stops the item.
  3. Test both offline.
  4. Coordinate with fix(pr): Require a replay score in stage-change PRs #3398: the readiness rule there accepts the live command for a prompt path and the replay command for a gate path.

Target Subsystem

src/devops_cli/roadmap/stage_change.py, src/devops_cli/ai/tasks/roadmap_stage_change.md, the implement job.

Existing Tool Considered

No open tool covers this project-specific rule. The change extends the plan check and the implement job; about 80 lines and two tests.

Proposed design

Problem statement

#3309 planned a prompt change, and its plan asked for uv run devops roadmap eval stage --replay. The replay calls no model, so its score cannot move with the prompt. The implement job ticked the task and recorded no score, and the review of #3805 found the gap. The plan check and the stage prompt must name the live run for a prompt change. A gate change keeps the replay.

Acceptance criteria

Requirement: Prompt change needs the live eval

check_proposal SHALL refuse a plan that changes the stage prompt and names uv run devops roadmap eval stage --replay as the score command.

Scenario: Prompt change with the replay command

  • WHEN A plan changes src/devops_cli/ai/tasks/roadmap_stage_change.md and its score task holds uv run devops roadmap eval stage --replay with the words score, before and after.
  • THEN check_proposal returns a problem that names uv run devops roadmap eval stage --limit.

Requirement: Live eval command with a bound

check_proposal SHALL accept a plan that changes only the stage prompt when a task holds the live command with --limit <n> or --case <n> and the words score, before and after.

Scenario: Prompt change with a bounded live run

  • WHEN A plan changes only src/devops_cli/ai/tasks/roadmap_stage_change.md and a task holds uv run devops roadmap eval stage --limit 3 with score, before and after.
  • THEN check_proposal returns no problem for the eval rule.

Requirement: Gate change keeps the replay

check_proposal SHALL accept a plan that changes only a gate module when a task holds uv run devops roadmap eval stage --replay with the words score, before and after.

Scenario: Gate-only change

  • WHEN A plan changes only src/devops_cli/roadmap/stage/stage_form.py and a task holds the replay command with the three words.
  • THEN check_proposal returns no problem for the eval rule.

Requirement: Both paths need both commands

check_proposal MUST refuse a plan that changes the stage prompt and a gate module when its tasks hold only one of the two commands.

Scenario: Prompt and gate in one plan

  • WHEN A plan changes src/devops_cli/ai/tasks/roadmap_stage_change.md and src/devops_cli/roadmap/stage/stage_change.py, and one task holds the replay command with the three words.
  • THEN check_proposal returns a problem that names the live command.

Requirement: The stage prompt states both commands

The stage prompt SHALL name the live command for a prompt change and the replay command for a gate change.

Scenario: Prompt text

  • WHEN A test reads src/devops_cli/ai/tasks/roadmap_stage_change.md.
  • THEN The text holds uv run devops roadmap eval stage --limit and uv run devops roadmap eval stage --replay.

Requirement: The workflow document states the rule

docs/ROADMAP_WORKFLOW.md SHALL state the live command for a prompt change and the replay command for a gate change.

Scenario: Workflow document rule

  • WHEN A test reads the rule paragraph of docs/ROADMAP_WORKFLOW.md.
  • THEN The text holds uv run devops roadmap eval stage --limit for the prompt change and uv run devops roadmap eval stage --replay for the gate change.

Requirement: The live run takes a case limit

devops roadmap eval stage SHALL accept --limit <n> and plan the first n cases of the set.

Scenario: Live run with a limit

  • WHEN A test runs uv run devops roadmap eval stage --limit 2 --dry-run.
  • THEN The command lists two cases and calls no model.

Existing Tool Considered

No alternatives check has run. No open, maintained tool or library covers a rule of this project's plan check. The change builds its own code: 80k tokens to build, keep and fix it, and 4 hours.

Key questions

  • Which command states the score of a prompt change?: The live run uv run devops roadmap eval stage, bounded by --limit <n> or --case <n>, with the words score, before and after. The replay measures a gate change only. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:312, docs/ROADMAP_WORKFLOW.md:314]
    • Chosen: Live run with a case limit. It calls the model, so the prompt can move its score, and the limit bounds the spend.
    • Rejected: Replay. It calls no model, so a prompt change cannot move its score.
    • Rejected: Live run on the whole set. A run costs at least one model call for each case, and a prompt change needs two runs.
  • How does check_proposal tell a prompt change from a gate change?: By the paths in changes of the groups. The prompt file alone needs the live command, a gate module needs the replay, and a plan with both needs both. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:314, src/devops_cli/roadmap/stage/stage_change.py]
    • Chosen: By the changed paths. The paths are exact and a machine reads them.
    • Rejected: By the task text. A person writes the text, so a check of its words is fragile.
    • Rejected: By the plan title. The title names no path of the change.
  • Does the replay call a model?: No. It runs the recorded plans through the gates and reads no git. [sources: docs/ROADMAP_WORKFLOW.md:312]
  • Which options does devops roadmap eval stage name for a live run?: The workflow page names --model, --no-toolbox, --case, --dry-run and --replay. It names no --limit. [sources: docs/ROADMAP_WORKFLOW.md]
  • Where does the implement job get the live score of a prompt change?: From outside the runner. The step shell holds no key, and the local command table holds only commands that need no key. The check moves to a new issue that waits on fix(pr): Require a replay score in stage-change PRs #3398. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, docs/ROADMAP_WORKFLOW.md:314]
  • What test does a plan that adds a rule of the plan check need?: A test that builds the plan's own StageProposal and asserts that content_problems returns no problem for it. [sources: src/devops_cli/ai/tasks/roadmap_stage_change.md]
  • Which tests hold the plan rules and the workflow page?: tests/roadmap/stage/test_roadmap_stage_prompt_rules.py holds the rules of the prompt, and tests/invariants/test_roadmap_workflow_doc.py keeps the workflow page in step with the code. [sources: tests/roadmap/stage/test_roadmap_stage_prompt_rules.py, tests/invariants/test_roadmap_workflow_doc.py]
  • Does the delivery of this issue state a live score?: Yes. The rule in force requires a pull request that changes the stage prompt to state the score of one model before and after. [sources: docs/ROADMAP_WORKFLOW.md:314]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Alternatives check of 2026-11-08: none.
Tool: none found.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 6, 2026
  2. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

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

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The workflow accepts evidence that proves nothing for prompt changes, but it is a process-correctness gap, not a security or outage risk.
    • Value: Medium. It prevents false evidence from closing a task, improving trust in the roadmap gate, but it affects an internal workflow rather than end users.
    • Effort: Low. The body scopes the work to about 80 lines and two offline tests across three files.
    • Related: fix(pr): Require a replay score in stage-change PRs #3398, which asks for a different change. Both govern evidence for stage-change PRs, but #3398 adds a PR-level readiness check for a replay score while the candidate changes the plan-level rule to require a live run for prompt changes and adds implement-job verification.
  3. added
    priority/p2-medium
    on Nov 6, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 7, 2026
  5. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 734e060 (see proposed design in issue body).

    Moved to new items: #4005.

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

    @devops-cli-service
    Contributor

    Alternatives check: none

    Reason: Searches turned up general prompt-evaluation frameworks such as promptfoo, which can compare prompt variants against a live model and report scores, but no open tool enforces a rule inside this repository's plan check, stage prompt and implement job. The need is a project-specific policy (a prompt change must name the live eval, a gate change the replay), which has to be built in check_proposal and the implement job, so no tool covers it.

    Tool: none found

    Lacks:

    • No tool refuses a plan task that pairs a stage-prompt change with uv run devops roadmap eval stage --replay as its score command.
    • No tool tells a stage-prompt change from a gate change by the changed paths and requires the live or replay command accordingly.
    • No tool edits the stage prompt, check_proposal or the implement job, or holds a task open until the named evidence is in the job comment.
    • promptfoo is a separate general prompt-eval harness; it does not replace the repository's own devops roadmap eval stage or add the plan-check rule.

    Tools considered:

    Searches run:

    • open source tool evaluate prompt changes with live model run, regression testing LLM prompts, results: 5
    • promptfoo compare prompt versions live model evaluation CLI limit cases, results: 5
    • promptfoo github prompt regression testing framework, results: 5
    • LangSmith Braintrust prompt version evaluation open source alternative, results: 5
    • promptfoo, results: 5
    • promptfoo compare two prompts side by side eval score, results: 5
    • promptfoo docs getting started evaluate prompts, results: 5

    Sources:

    Checked on 2026-11-08. A person decides what this means for the item. The check changes no label and closes no issue.

  7. added
    status/in-review
    and removed
    status/ready
    on Nov 14, 2026
  8. removed
    status/in-review
    on Nov 14, 2026
  9. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 21:08 UTC

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/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions