Skip to content

fix(roadmap): the stage check asks no prompt sentence test #7246

Backlog

Description

@dan-petty

Problem or Motivation

The stage job asks each plan that changes a stage prompt for a prompt sentence test.

  • src/devops_cli/roadmap/stage/stage_change.py holds PROMPT_RULE_TEST (tests/roadmap/stage/test_roadmap_stage_prompt_rules.py). The stage check refuses a plan that changes a roadmap_stage_*.md prompt and does not list that file as verify.
  • src/devops_cli/ai/tasks/roadmap_stage_change.md and roadmap_stage_split.md give the planner the same rule.
  • openspec/specs/roadmap-stage/self-rules/spec.md holds the requirement.

Owner direction of 2026-11-25: remove the tests that hold a sentence of a real document or prompt, because each edit of the text then needs an edit of a test. #7243 removes the sentence tests. While the rule above stays, the planner adds new ones. #6080 removed the same kind of rule for config value tests.

Other living specs still say that a test reads a document and finds a sentence, for example scenarios of openspec/specs/agent-instructions/spec.md. #7243 corrects five requirements. The others are not read yet.

Proposed Solution

Disposition: change the code, the prompts and the specs.

  • Remove PROMPT_RULE_TEST and its check from the stage job, and the rule from the two prompts.
  • A plan that changes a prompt names a replay or an evaluation run as its proof (devops roadmap eval), or a contract test that compares the prompt with a value of the source code (model fields, enum values, limits).
  • Read the living specs for scenarios whose proof is a sentence test, and give each a command proof or remove it.

Proof: tests of the stage check with a plan that changes a prompt and names no sentence test. uv run devops ci --check --only openspec,docs passes.

Existing Tool Considered

devops roadmap eval replays recorded cases with no model call. No new mechanism.

Alternatives check of 2026-11-25: partly.
Tool: promptfoo/promptfoo (https://github.com/promptfoo/promptfoo), MIT, last activity 2026-11-25, maintained.
Reason: Searches found promptfoo, an open prompt-evaluation tool that runs declarative test cases with assertions and cached responses, so it covers the eval proof; it cannot remove the stage rule, edit the prompts or fix the living specs, and the repo's own replay already exists.

Covers:

  • Declarative test cases for prompt changes
  • Deterministic assertions such as contains, equals, regex, JSON
  • Cached responses avoid repeated model calls in CI

Lacks:

  • Cannot remove PROMPT_RULE_TEST or its stage check
  • Does not edit the two planner prompts or spec scenarios
  • Adds a Node eval path beside the in-repo replay
  • No check of prompt text against source-code constants

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    on Nov 25, 2026
  2. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor
  3. added
    status/new
    value/medium
    effort/medium
    priority/p2-medium
    on Nov 25, 2026
  4. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (7)

    Tools considered:

    Searches run:

    • promptfoo evaluate prompts assertions CI test cases, results: 5
    • open source prompt regression testing replay recorded cases without model call, results: 5
    • "promptfoo" assertions cached responses replay, results: 5
    • promptfoo github prompt evaluation test cases, results: 5
    • deepeval prompt evaluation pytest assertions, results: 5
    • promptfoo, results: 5
    • promptfoo docker image testing evaluating red-teaming LLM apps, results: 5

    Sources:

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/mediumpriority/p2-mediumscope/roadmapsource/agentstatus/newtype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions