Skip to content

fix(roadmap): the path problem names the (new) mark of a plan folder #3449

Closed

Description

@dan-petty

Problem or Motivation

A plan pull request holds the change folder only. plan_check reads the Changes: line of tasks.md and marks a path as created only when it carries the (new) mark. When a plan names a new file without the mark, path_problems returns "Name a file that exists, or make the group that creates it list it in creates." That advice fits the stage reply, which has a creates list. It does not fit the change folder, which has no creates list: the reader must add the (new) mark to the Changes: line.

The plan of PR #3436 for #3411 is the case. Its group 3 adds four new case files. The first revision named them in Changes: without the mark, and devops roadmap plan-check refused all four. The fix was the (new) mark, and the message named neither the mark nor the change folder.

Proposed Solution & Architectural Design

Use one message that names both forms: "Name a file that exists, or list it in creates in the reply, or mark it (new) in the Changes: line." A plan folder reader then knows the mark, and a reply reader still knows the list.

Target Subsystem

src/devops_cli/lang/en/messages.py, src/devops_cli/roadmap/stage_paths.py

Existing Tool Considered

No tool. The change edits one message string and deletes no product code. The cost is about 300 tokens to build, keep and fix, and 10 minutes.

Source: #3436

Proposed design

Problem statement

A plan pull request holds the change folder only, and that folder has no creates list. When a plan names a new file with no (new) mark on its Changes: line, path_problems tells the reader to list the file in creates. That advice fits the stage reply only. One message must name both forms, so that each reader knows the fix.

Acceptance criteria

Requirement: The missing-path message names both forms

The message of a path that the staged tree lacks SHALL name the creates list of a stage reply and the (new) mark of the Changes: line.

Scenario: A group names a missing file

  • WHEN path_problems judges a group that names src/devops_cli/new_module.py and no group creates it
  • THEN the problem holds creates, (new) and Changes:

Requirement: The message keeps its hint

The missing-path message SHALL keep the hint that names the tracked files of the same name, or states that no file has the name.

Scenario: A tracked file has the same name

  • WHEN the tree holds src/devops_cli/roadmap/stage.py and a group names src/devops_cli/new/stage.py
  • THEN the problem ends with the text of stage_path_same_name for stage.py

Requirement: The plan check gives the same message

The plan check SHALL report the same message for a change folder whose Changes: line names a new file with no (new) mark.

Scenario: A plan omits the mark

  • WHEN the plan check reads a change folder whose group 3 Changes: line names four new case files with no (new) mark
  • THEN each of the four problems holds (new) and Changes:

Requirement: A later creator keeps its own message

The message of a path that a later group creates SHALL stay unchanged.

Scenario: A later group creates the path

  • WHEN group 1 names src/devops_cli/new_module.py and group 3 lists it in creates
  • THEN the problem names group 3 and holds neither creates nor (new)

Requirement: The module docstring names both readers

The module docstring of stage_paths.py SHALL state that path_problems judges the stage reply and the change folder.

Scenario: A reader opens the module

  • WHEN a test reads the module docstring of src/devops_cli/roadmap/stage_paths.py
  • THEN the docstring holds change folder and reply

Existing Tool Considered

No alternatives check has run. No open, maintained tool or library covers this need: the change edits one message string and deletes no product code. The written cost to build, keep and fix that text is about 300 tokens and 10 minutes.

Key questions

  • Where does the text of a missing path come from?: MESSAGES.roadmap.stage_problem_path in src/devops_cli/lang/en/messages.py holds the text. _problem in src/devops_cli/roadmap/stage_paths.py formats it with the group, the path, the place and the hint. [sources: src/devops_cli/lang/en/messages.py, src/devops_cli/roadmap/stage_paths.py]
  • Which text does the missing-path message give?: The message reads Name a file that exists, or list it in createsin the reply, or mark it (new)in theChanges: line. It keeps the placeholders {group}, {path}, {place} and {hint}. (best practice) [sources: src/devops_cli/lang/en/messages.py, src/devops_cli/roadmap/stage_paths.py]
    • Chosen: One message that names creates and the (new) mark. path_problems serves the stage reply and the change folder from one rule set, and each reader follows the form that its own file allows.
    • Rejected: A message that a parameter of path_problems selects. It adds a parameter that each caller must set, and the two forms are alternatives that either reader can use.
  • Which forms mark a new file in each reader?: A stage reply lists the file in creates. The Changes: line of tasks.md carries the (new) mark, and stage_group_new holds that mark with its leading space. [sources: src/devops_cli/lang/en/messages.py, src/devops_cli/roadmap/stage_paths.py]
  • Does the hint stay in the message?: The hint stays. The new forms join it, and no text leaves it. (best practice) [sources: src/devops_cli/lang/en/messages.py, src/devops_cli/roadmap/stage_paths.py]
    • Chosen: Keep the same-name hint and add the two forms. The hint names the tracked file of the same name, which is the fastest fix, so the new forms join it.
    • Rejected: Replace the hint with the two forms. The reader loses the list of the tracked files that have the same name.
  • Which tests cover the message?: tests/roadmap/test_roadmap_stage_paths.py asserts the problems of path_problems. tests/roadmap/test_roadmap_plan_check.py asserts the problems that the plan check reports for a change folder. [sources: tests/roadmap/test_roadmap_stage_paths.py, tests/roadmap/test_roadmap_plan_check.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/low
    effort/low
    on Nov 4, 2026
  2. dan-petty commented on Nov 4, 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/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P3-Low. The error message misleads the reader but does not block delivery; a person can still find the fix.
    • Value: Low. It removes one source of confusion for a plan-folder reader, but the user can work around it.
    • Effort: Low. The body states the change edits one message string and costs about 10 minutes.
    • Related: fix(roadmap): the stage check names the message file a plan must change #3405, which asks for a different change. Both fix a message in the roadmap plan/stage check, but #3405 names the message file while this candidate names the (new) mark.
  3. added
    priority/p3-low
    on Nov 4, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 4, 2026
  5. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 46cf288 (see proposed design in issue body).

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

    @devops-cli-service
    Contributor

    Staged: branch fix/3449-the-path-problem-names-the-new, draft pull request #3475. 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:

    1. Name both forms in the missing-path message: 26090 tokens
    2. Assert the message through the plan check: 9200 tokens

    A model review of the plan found these open findings. The stage keeps this pull request a draft with the label plan/needs-fix until a later round clears them:

    • spec_delta_wrong at specs, requirement "The missing-path message keeps its hint", scenario "A later group creates the path": The scenario says the later-creator problem holds no creates. That message says "group 3 creates it", so it holds creates and no test can assert the scenario. The scenario also sits under the hint requirement. The issue's separate requirement "A later creator keeps its own message" is missing from the delta. Evidence: "assert "group 3 creates it after group 1" in problem"

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • other at group 1: The new message drops the text "make the group that creates it list it in creates". An existing test asserts that text, and the plan does not say to update it. The test then fails, and the verify command fails with it. Evidence: "assert "make the group that creates it list it in creates" in problem"

    The plan run made 2 model request(s), and used 153572 input tokens and 6091 output tokens. The model made no tool call.

    The stage job read the open pull requests and their files in 1 GraphQL request(s).

  7. added
    owner/service
    status/in-progress
    and removed
    status/ready
    on Nov 5, 2026
  8. 3 remaining items

  9. added
    status/in-review
    and removed
    status/in-progress
    on Nov 5, 2026
  10. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Pull request #3475 is ready for review. The checks passed.

    Spend: 92 model requests, 6720005 input tokens, 23010 output tokens.

  11. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    The runner Job devops-cli-runner-20261105-042901-008e ended: succeeded.
    Image digest: sha256:3e20abf5974c5e90a219f2770e6d312b0b2c1fa67d920df7822d8be80b86c1d7

    The last lines of its log:

    Tool call: read_file, ok.
    Tool call: read_file, ok.
    Tool call: read_file, ok.
    Tool call: read_file, ok.
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: read_file, ok.
    Tool call: grep, retry (context must be between 0 and 20. Path: src/devops_cli/roadmap/stage_change.py).
    Tool call: read_file, ok.
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: grep, retry (context must be between 0 and 20. Path: src/devops_cli/roadmap/stage_change.py).
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: list_files, ok.
    Tool call: read_file, ok.
    Tool call: grep, ok.
    Tool call: shell, started: uv run devops ci test tests/roadmap/test_roadmap_plan_check.py
    Tool call: shell, program uv, ok.
    Tool call: edit_file, ok.
    Tool call: shell, started: uv run devops ci test tests/roadmap/test_roadmap_plan_check.py
    Tool call: shell, program uv, ok.
    Tool call: shell, started: git log --oneline -3
    Tool call: shell, program git, ok.
    Tool call: shell, started: git show 42c016c6:src/devops_cli/lang/en/messages.py
    Tool call: shell, program git, ok.
    Tool call: shell, started: git grep -n -A5 <masked> 42c016c6 ...
    Tool call: shell, program git, ok.
    Tool call: edit_file, ok.
    Tool call: shell, started: uv run ruff check tests/roadmap/test_roadmap_plan_check.py
    Tool call: shell, started: uv run devops ci test tests/roadmap/test_roadmap_plan_check.py
    Tool call: shell, program uv, ok.
    Tool call: shell, program uv, ok.
    Tool call: shell, started: git status --short
    Tool call: shell, program git, ok.
    Tool call: shell, started: git log --oneline -2 --stat
    Tool call: shell, program git, ok.
    ✓ Took 1 item(s) to a ready pull request, stopped 0.
    Elapsed: 28m
    
  12. removed
    owner/service
    on Nov 5, 2026
  13. removed
    status/in-review
    on Nov 5, 2026
  14. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor
  15. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-05 13:27 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/p3-lowscope/roadmapsource/agenttype/bugvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions