Repository navigation
Description
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.pyholdsPROMPT_RULE_TEST(tests/roadmap/stage/test_roadmap_stage_prompt_rules.py). The stage check refuses a plan that changes aroadmap_stage_*.mdprompt and does not list that file asverify.src/devops_cli/ai/tasks/roadmap_stage_change.mdandroadmap_stage_split.mdgive the planner the same rule.openspec/specs/roadmap-stage/self-rules/spec.mdholds 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_TESTand 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
dan-petty commentedon Nov 25, 2026
Both touch the same test file and prompt rules, but #4657 reads rules from openspec while the candidate removes the sentence-test requirement and replaces it with eval replay proof.devops-cli-service commentedon Nov 25, 2026
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:
Sources: