Skip to content

fix(roadmap): the stage check names the message file a plan must change #3405

Closed

Description

@dan-petty

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

  1. In content_problems in src/devops_cli/roadmap/stage_change.py, when a task text names a MESSAGES.roadmap entry and no group changes src/devops_cli/lang/en/messages.py, return a problem that names the file.
  2. In src/devops_cli/ai/tasks/roadmap_stage_verify.md, name missing_path for a code change that needs a file that the plan does not change, so the verification pass returns the plan to the planner once.
  3. Add a case in tests/roadmap/test_roadmap_stage_plan.py for 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.roadmap and no group lists src/devops_cli/lang/en/messages.py in changes.
  • THEN content_problems returns a problem that names src/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.roadmap and a group lists src/devops_cli/lang/en/messages.py in changes.
  • THEN content_problems returns no problem about src/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.md is read.
  • THEN The prompt states that a code change needing an unchanged file is a missing_path finding.

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.py run.
  • 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.roadmap name?: Scan the task texts that render into tasks.md: test, implementation, documentation, verify and process. Match MESSAGES.roadmap with 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.roadmap and 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.
  • Which file must a plan change when a task text names a MESSAGES.roadmap name?: src/devops_cli/lang/en/messages.py, which holds the RoadmapMessages catalog. [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 existing missing_path type names the defect.
    • Rejected: Use other. The example typed the defect other, 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.
  • 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

  1. added
    type/bug
    source/agent
    scope/roadmap
    on Nov 4, 2026
  2. added
    status/new
    value/medium
    effort/low
    on Nov 4, 2026
  3. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Priority: P2-Medium. A plan passes validation when it should not, forcing manual review, but no data is lost.
    • Value: Medium. It removes a recurring class of plan defects that require a person to catch and fix.
    • Effort: Low. It extends one existing function, adds one prompt rule, and adds two test cases.
    • Related: fix(roadmap): the stage job refuses a plan that names a path that does not exist #3010, which asks for a different change. 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.
  4. added
    priority/p2-medium
    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 4e0e243 (see proposed design in issue body).

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

    @devops-cli-service
    Contributor

    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:

    1. Return the message-file problem from the stage content check: 33297 tokens
    2. Name missing_path in the verification prompt: 11918 tokens

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

    • verify_form at 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 the missing_path text. 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.

  7. added 2 commits that reference this issue on Nov 4, 2026
  8. added
    status/planned
    owner/service
    status/in-progress
    and removed
    status/ready
    status/planned
    on Nov 4, 2026
  9. added
    status/in-review
    and removed
    status/in-progress
    on Nov 4, 2026
  10. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Stopped at group 1.

    Failure class: ci_infra.
    Action taken: none.
    Action left: retry: run the item again.

    Step Status Attempts Tokens in/out Last failing command
    group 1 stopped 1 420537/32384 -

    Reason:

    OutputCapReached: The model reply reached the output cap of 32000 tokens, so the call ended.
    

    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.

  11. removed
    status/in-review
    owner/service
    on Nov 4, 2026
  12. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-04 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/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions