Repository navigation
Description
Problem or Motivation
The stage job renders the ## Impact section of proposal.md from the paths in the group changes (_impact in src/devops_cli/roadmap/stage_change.py). The model also writes what_changes as free text. Nothing compares the two.
The plan of #3379 for #3373 named src/devops_cli/lang/en/messages.py in What Changes, but no group listed it in changes. The rendered Impact omitted the file, and every gate accepted the plan. A reader of the plan cannot see that the file changes, and the implement step has no group that edits it.
The same gap hides a path that a What Changes item names but no group changes or creates. The check reads the paths of the groups, and not the text of the proposal.
Proposed Solution & Architectural Design
- Add a check to
check_proposalinsrc/devops_cli/roadmap/stage_change.pythat reads each repository path in a code span of awhat_changesitem, and refuses a path that no group lists inchangesorcreates. - A What Changes item with no path stays accepted, because the item can describe behavior with no file.
- Add a scenario to the
roadmap-stagespec and a case to the stage golden set. - The check reads the reply alone, so the replay runs it with no git call.
Target Subsystem
src/devops_cli/roadmap/stage_change.py, tests/roadmap/test_roadmap_stage_content.py
Existing Tool Considered
No tool checks one text of a reply against its structured fields. The path check of src/devops_cli/roadmap/stage_paths.py covers the group paths and their code spans, so the change extends that rule to the text of the proposal. The cost is about 2k tokens and 30 minutes.
Proposed design
Problem statement
The stage job renders the Impact section of proposal.md from the paths in the task groups. It does not compare the code spans in What Changes with those groups. A plan can name a file in What Changes that no group changes or creates. The rendered Impact then omits the file, and every gate accepts the plan. This change adds a reply-only check that refuses such a plan.
Acceptance criteria
Requirement: Refuse an unlisted What Changes path
The proposal check SHALL return a problem when a repository path in a code span of a What Changes item is in neither the changes nor the creates list of any task group.
Scenario: What Changes names a path that no group lists
- WHEN A proposal has a What Changes item with the code span
src/devops_cli/lang/en/messages.py, and no group lists that path inchangesorcreates. - THEN
check_proposalreturns a problem that names the unlisted path.
Requirement: Accept a changed What Changes path
The proposal check SHALL accept a repository path in a What Changes code span when a task group lists that path in changes.
Scenario: What Changes names a path that a group changes
- WHEN A proposal has a What Changes item with the code span
src/devops_cli/roadmap/stage_change.py, and a group lists that path inchanges. - THEN
check_proposalreturns no problem for that path.
Requirement: Accept a created What Changes path
The proposal check SHALL accept a repository path in a What Changes code span when a task group lists that path in creates.
Scenario: What Changes names a path that a group creates
- WHEN A proposal has a What Changes item with the code span
src/devops_cli/roadmap/new_check.py, and a group lists that path increates. - THEN
check_proposalreturns no problem for that path.
Requirement: Accept a What Changes item without a path
The proposal check SHALL accept a What Changes item that contains no repository path in a code span.
Scenario: What Changes item describes behavior only
- WHEN A proposal has a What Changes item with no code span that is a repository path.
- THEN
check_proposalreturns no problem for that item.
Requirement: Ignore a non-path code span
The proposal check SHALL ignore a code span in What Changes that is not a repository path.
Scenario: What Changes names a command in a code span
- WHEN A proposal has a What Changes item with the code span
uv run devops ci test. - THEN
check_proposalreturns no problem for that code span.
Requirement: Run the What Changes check without git
The proposal check SHALL compare What Changes paths with the group lists without a git call or a file read.
Scenario: Replay runs the check on a reply only
- WHEN The replay calls
check_proposalwith a proposal and no access to a checkout. - THEN The replay returns the path problem and makes no git call.
Requirement: Document the What Changes path rule
The roadmap-stage spec SHALL include a scenario that states the What Changes path rule.
Scenario: Roadmap-stage spec covers What Changes paths
- WHEN A reader opens
openspec/specs/roadmap-stage/spec.md. - THEN The spec holds a scenario that refuses a What Changes path that no group lists.
Requirement: Add the stage golden case
The stage golden set SHALL include a case where a What Changes item names a path that no group lists.
Scenario: Golden case for an unlisted What Changes path
- WHEN The stage golden set runs its cases.
- THEN The new case reports the path problem.
Existing Tool Considered
No alternatives check has run. No open, maintained tool checks the code spans of a free-text plan against its structured task groups. The change extends the existing path rule in src/devops_cli/roadmap/stage_paths.py to what_changes. The written cost is about 2k tokens to build, keep and fix the check, and 30 minutes.
Key questions
- Where does the What Changes path check run?: Add the check in
src/devops_cli/roadmap/stage_change.pyand call it fromcontent_problems, so the stage job and the replay run it throughcheck_proposalwithout a git call. (best practice) [sources: src/devops_cli/roadmap/stage_change.py, src/devops_cli/roadmap/stage_eval_run.py, tests/roadmap/test_roadmap_stage_content.py]- Chosen: content_problems in stage_change.py. It already judges reply text and runs in both the job and the replay.
- Rejected: stage_paths.path_problems. It checks paths against the staged tree and needs git state.
- Rejected: render_change. It writes files and does not run in the replay gate.
- How does the check find a repository path in a What Changes item?: Extract each code span with the same code-span path rule that
stage_pathsuses for group texts. Do not add a second path grammar. (best practice) [sources: src/devops_cli/roadmap/stage_paths.py, src/devops_cli/roadmap/stage_change.py, tests/roadmap/test_roadmap_stage_paths.py]- Chosen: Reuse the stage_paths code-span rule. It keeps one definition of a repository path and covers the group paths already.
- Rejected: Add a new regex in stage_change.py. It creates a second path grammar that can drift from the group check.
- Rejected: Split What Changes on whitespace. It treats commands and prose as paths and refuses valid plans.
- Which message does the check return?: Add a new entry to
RoadmapMessagesinsrc/devops_cli/lang/en/messages.py. The message names the path and says that no group lists it inchangesorcreates. (best practice) [sources: src/devops_cli/lang/en/messages.py, src/devops_cli/roadmap/stage_change.py]- Chosen: New RoadmapMessages entry. The project keeps user-facing text in the message catalog.
- Rejected: Reuse stage_problem_path. It speaks of a group, a staged commit and a place, not of What Changes.
- Rejected: Hard-code the text in stage_change.py. It breaks the message catalog convention.
- How does the golden set exercise the check?: Add a golden case whose proposal has a What Changes code span for a path that no group lists. The replay expects the path problem. (best practice) [sources: tests/roadmap/test_roadmap_stage_content.py, tests/roadmap/test_roadmap_stage_eval_run.py, src/devops_cli/roadmap/stage_eval_run.py]
- Chosen: Add the case to the stage golden set. The issue asks for a golden case and the replay already runs
check_proposal. - Rejected: Add only a unit test. It does not exercise the replay gate that the issue names.
- Chosen: Add the case to the stage golden set. The issue asks for a golden case and the replay already runs
- Does the replay run
check_proposalwithout a git call?: Yes.stage_eval_runcallscheck_proposalon the reply and its fixtures, so a reply-only check runs in the replay. [sources: src/devops_cli/roadmap/stage_eval_run.py, src/devops_cli/roadmap/stage_change.py, tests/roadmap/test_roadmap_stage_eval_run.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.
It closes a validation gap that lets inconsistent plans pass all gates, but it does not block a release or expose a security risk.It prevents a reader from missing a file change and stops the implement step from having no group for a named file.The body estimates about 2k tokens and 30 minutes of work in one file plus one test.Both add path validation in check_proposal in stage_change.py, but #3010 checks that named paths exist in the repo while the candidate checks that what_changes paths are covered by a group.devops-cli-service commentedon Nov 4, 2026
Status set to Ready at 1643cc7 (see proposed design in issue body).
devops-cli-service commentedon Nov 4, 2026
Staged: branch
feat/3411-refuse-a-what-changes-item-that, draft pull request #3436. 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:
otherat what_changes, last item: The plan namesopenspec/specs/roadmap-stage/spec.mdin a code span, but no group lists it inchangesorcreates. The new rule would refuse this plan. Evidence: "openspec/specs/roadmap-stage/spec.mdgains the scenario of the What Changes path rule, written byopenspec archive"otherat group 3: The golden cases load from CASES_DIRECTORY as data. Group 3 changes only the eval-run test file and creates no case file, so the golden case has no task. Evidence: "Add a golden case whose proposal names a repository path in What Changes that no group lists, and record the defect that the replay must report for it."The plan run made 1 model request(s), and used 75337 input tokens and 4293 output tokens. The model made no tool call.
The stage job read the open pull requests and their files in 1 GraphQL request(s).
docs(openspec): fix the #3411 plan for the tree rule and the living spec
docs(openspec): mark the new golden case files in the #3411 plan
docs(openspec): plan #3411 Refuse a What Changes path no group lists (#…
1 remaining item
devops-cli-service commentedon Nov 5, 2026
Pull request #3586 is ready for review. The checks passed.
Spend: 182 model requests, 18697920 input tokens, 71979 output tokens.
devops-cli-service commentedon Nov 5, 2026
The runner Job devops-cli-runner-20261105-030340-834d ended: succeeded.
Image digest: sha256:65ddae4ab7e02eb61aaf58a2e8842f5e879df79a7609976ab3efbfdef7e4dcfa
The last lines of its log:
devops-cli-service commentedon Nov 5, 2026
Released in v0.60.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.60.0
devops-cli-service commentedon Nov 5, 2026
Live since 2026-11-05 04:27 UTC
docs(openspec): plan #3445 Derive stage golden set counts from fixtures
docs(openspec): plan #3445 Derive stage golden set counts from fixtur…