Repository navigation
Description
Problem or Motivation
A plan can add a problem text to MESSAGES.roadmap and change no file that defines the message. The deterministic check accepts the plan, and the verification pass keeps the plan a draft but does not return it to the planner.
The plan of PR #3349 (for #3343) is an example. Task 1.2 said "Use the existing MESSAGES.roadmap entries for the text", and task 1.2 added no src/devops_cli/lang/en/messages.py line. The verification pass found the defect and typed it other at group 1. The stage comment named the finding, the draft stayed open, and a person had to edit the plan.
content_problems in src/devops_cli/roadmap/stage_change.py does not resolve a message name that a task text names. The verification pass does not return a plan for a file that a cited code change needs and the plan does not change.
Proposed Solution & Architectural Design
- In
content_problemsinsrc/devops_cli/roadmap/stage_change.py, when a task text names aMESSAGES.roadmapentry and no group changessrc/devops_cli/lang/en/messages.py, return a problem that names the file. - In
src/devops_cli/ai/tasks/roadmap_stage_verify.md, namemissing_pathfor a code change that needs a file that the plan does not change, so the verification pass returns the plan to the planner once. - Add a case in
tests/roadmap/test_roadmap_stage_plan.pyfor a plan that names a new message without the lang file, and one for a plan that names it with the lang file.
Target Subsystem
SDLC, Git & PR Governance
Existing Tool Considered
No open, maintained tool resolves a message name in the prose of a plan to the file that defines it. The stage check already reads the task texts, so the change extends content_problems. It deletes no internal code. Estimated cost: 5,000 tokens to build, 1,000 tokens to keep and fix, and 3 hours elapsed.
Proposed design
Problem statement
The stage check accepts a plan that names a MESSAGES.roadmap message but changes no src/devops_cli/lang/en/messages.py file. The verification pass keeps the plan a draft and does not return it to the planner. The change adds a deterministic problem and names missing_path in the verification prompt.
Acceptance criteria
Requirement: Stage check requires the message file
The stage check MUST return a problem that names src/devops_cli/lang/en/messages.py when a task text names a MESSAGES.roadmap entry and no task group changes that file.
Scenario: Task text names a message without the message file
- WHEN A plan has a task text that names
MESSAGES.roadmapand no group listssrc/devops_cli/lang/en/messages.pyinchanges. - THEN
content_problemsreturns a problem that namessrc/devops_cli/lang/en/messages.py.
Requirement: Stage check accepts the message file
The stage check MUST NOT return the message-file problem when a task group changes src/devops_cli/lang/en/messages.py.
Scenario: Task text names a message with the message file
- WHEN A plan has a task text that names
MESSAGES.roadmapand a group listssrc/devops_cli/lang/en/messages.pyinchanges. - THEN
content_problemsreturns no problem aboutsrc/devops_cli/lang/en/messages.py.
Requirement: Verification prompt names missing_path
The verification prompt MUST name missing_path for a code change that needs a file that the plan does not change.
Scenario: Prompt names the missing path type
- WHEN The verification prompt
src/devops_cli/ai/tasks/roadmap_stage_verify.mdis read. - THEN The prompt states that a code change needing an unchanged file is a
missing_pathfinding.
Requirement: Stage plan tests cover both message-file cases
The stage plan tests MUST cover a plan that names a message without the message file and a plan that names it with the message file.
Scenario: Both message-file cases run
- WHEN The tests in
tests/roadmap/test_roadmap_stage_plan.pyrun. - THEN They assert the problem when the file is absent and its absence when the file is present.
Existing Tool Considered
No alternatives check has run. No open, maintained tool resolves a message name in the prose of a plan to the file that defines it. The stage check already reads the task texts, so the change extends content_problems. The written cost is 5,000 tokens to build, 1,000 tokens to keep and fix, and 3 hours.
Key questions
- Which task text does the stage check scan for a
MESSAGES.roadmapname?: Scan the task texts that render intotasks.md:test,implementation,documentation,verifyandprocess. MatchMESSAGES.roadmapwith an optional dotted attribute. The bare group counts because the example task names it. (best practice) [sources: src/devops_cli/roadmap/stage_change.py, src/devops_cli/lang/en/messages.py]- Chosen: Scan the rendered task texts and match the bare group. The example task names
MESSAGES.roadmapand adds no message file line. - Rejected: Scan only dotted message names. The example task names no dotted attribute, so the check would miss it.
- Rejected: Scan the whole reply. A summary or a decision can mention the catalog without a code change.
- Chosen: Scan the rendered task texts and match the bare group. The example task names
- Which file must a plan change when a task text names a
MESSAGES.roadmapname?:src/devops_cli/lang/en/messages.py, which holds theRoadmapMessagescatalog. [sources: src/devops_cli/lang/en/messages.py, src/devops_cli/roadmap/stage_change.py] - How does the verification prompt classify a code change that needs a file that the plan does not change?: As
missing_path. The prompt names it so an evidence-backed finding returns the plan to the planner once. (best practice) [sources: src/devops_cli/ai/tasks/roadmap_stage_verify.md, src/devops_cli/roadmap/stage_change.py]- Chosen: Name
missing_path. The existingmissing_pathtype names the defect. - Rejected: Use
other. The example typed the defectother, and the pass did not return the plan. - Rejected: Add a new defect type. The prompt and the validator must name the same kinds, and a new type needs more code.
- Chosen: Name
- Where do the tests for both message-file cases go?:
tests/roadmap/test_roadmap_stage_plan.py, beside the existing stage plan tests. [sources: tests/roadmap/test_roadmap_stage_plan.py, src/devops_cli/roadmap/stage_change.py]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
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.
A plan passes validation when it should not, forcing manual review, but no data is lost.It removes a recurring class of plan defects that require a person to catch and fix.It extends one existing function, adds one prompt rule, and adds two test cases.Both extend content_problems in stage_change.py to validate file references in a plan, but #3010 checks that named paths exist on main while the candidate checks that a named message entry has a matching file modification.devops-cli-service commentedon Nov 4, 2026
Status set to Ready at 4e0e243 (see proposed design in issue body).
devops-cli-service commentedon Nov 4, 2026
Staged: branch
fix/3405-the-stage-check-names-the-message, draft pull request #3408. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:
A model review of the plan found these points. They stop no draft, and a person judges them:
verify_format group 2: The verify command runs a test file that the plan neither reads nor changes. Group 2 adds no test for the new prompt line, so a pass proves nothing about themissing_pathtext. Evidence: "uv run devops ci test tests/roadmap/test_roadmap_stage_task_verification.py"The plan run made 2 model request(s), and used 150955 input tokens and 5995 output tokens. The model made no tool call.
docs(openspec): plan #3405 name the message catalog file
docs(openspec): plan #3405 Require the message file a task names (#3408)
devops-cli-service commentedon Nov 4, 2026
Stopped at group 1.
Failure class:
ci_infra.Action taken: none.
Action left:
retry: run the item again.Reason:
Last message of the agent: Now I need to look at the test file for stage verification to understand how it's structured:
The item is Blocked, and the job will not run it. Fix the cause. Then comment
implement: retry. The Service also clears the stop one time when a new runner image rolls out.devops-cli-service commentedon Nov 4, 2026
Released in v0.55.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.55.1
devops-cli-service commentedon Nov 4, 2026
Live since 2026-11-04 13:27 UTC