Skip to content

fix(roadmap): a staged task group may name no files and renders Reads: None.. #2772

Description

@dan-petty

Problem or Motivation

The stage job writes a task group that names no files, and the implement step then packs no files for it. The plan that the Service staged for #2745 (merged as PR 2761, openspec/changes/2745-config-files-and-their-copies-keep/tasks.md) shows three defects of the writer in roadmap/stage_change.py:

  1. A double period. Each group has the line Reads: None.. Changes: None... stage_group_files is "Reads: {reads}. Changes: {changes}." and stage_none is "None.", so the empty value ends in two periods.
  2. No files. StageGroup.reads and StageGroup.changes default to empty lists, so a reply may leave them out and still validate. The model did, though the tasks name settings.py and write_history.py. _packed_tokens packs [*group.reads, *group.changes], so the step's inputs hold no file, and the budget check measures nothing. A group that changes code always changes at least one file.
  3. A stray comma. StageGroup.documentation accepts an empty string, so the task renders as - [ ] 1.3 , run .... test, implementation, documentation and verify are plain str.

Proposed Solution & Architectural Design

  • StageGroup.changes needs at least one path, and test, implementation, documentation and verify need at least one non-blank character (min_length=1 after strip). A reply that breaks these goes back to the model once, as the other structured violations do (the existing bounded retry of the proposal call). A group with no reads is still valid.
  • The line reads Reads: <paths>. Changes: <paths>. where a missing reads shows none without a period of its own. The text for an empty value and the format string never both end a sentence.
  • Every path of reads and changes is a form-valid repository path (the type already checks the form). The writer records, in the stage comment, any changes path that does not exist on the default branch and is not marked as new, so a person sees a plan that names a path that is not there. Keep this check to a warning line; a new file is legitimate.
  • The stage prompt (roadmap_stage_change.md) says that each group names the files it changes (at least one) and the files it needs to read, and that the documentation task has a text.

Target Subsystem

src/devops_cli/roadmap/stage_change.py, src/devops_cli/ai/tasks/roadmap_stage_change.md, src/devops_cli/lang/en/messages.py.

Existing Tool Considered

pydantic's field constraints on StageGroup, and the structured-reply retry that chat_structured already gives. Nothing new is built.

Acceptance criteria

  • A reply whose group has no changes, or a blank test, implementation, documentation or verify, fails validation and is asked for again once; a second invalid reply stops the item with the violation named.
  • A rendered group never contains a double period or a task that starts with a comma.
  • A group with reads empty and changes set renders Reads: none. Changes: ....
  • The stage comment names a changes path that is neither on the default branch nor new.
  • uv run devops ci passes, and devops docs generate --sync-readme is run.

Evidence: PR 2761 and the merged tasks.md of #2745.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Oct 30, 2026
  2. dan-petty commented on Oct 30, 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: P2-Medium. The output is wrong but the system still runs; it misleads a person about which files a group touches.
    • Value: Medium. A group that names no files hides the real work and breaks the budget check.
    • Effort: Medium. It needs validation changes, a render fix, a prompt update, and a new warning for missing paths.
    • Related: feat(roadmap): devops roadmap stage writes the change of a Ready item in context-sized task groups and opens its draft pull request #2654, which asks for a different change. Both work on the stage writer in stage_change.py, but 2654 built the feature and the candidate fixes its output defects.
  3. added
    priority/p2-medium
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Oct 30, 2026
  4. removed
    status/in-review
    on Oct 30, 2026
  5. added a commit that references this issue on Oct 30, 2026
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/mediumpriority/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