Repository navigation
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
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:
- A double period. Each group has the line
Reads: None.. Changes: None...stage_group_filesis"Reads: {reads}. Changes: {changes}."andstage_noneis"None.", so the empty value ends in two periods. - No files.
StageGroup.readsandStageGroup.changesdefault to empty lists, so a reply may leave them out and still validate. The model did, though the tasks namesettings.pyandwrite_history.py._packed_tokenspacks[*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. - A stray comma.
StageGroup.documentationaccepts an empty string, so the task renders as- [ ] 1.3 , run ....test,implementation,documentationandverifyare plainstr.
Proposed Solution & Architectural Design
StageGroup.changesneeds at least one path, andtest,implementation,documentationandverifyneed at least one non-blank character (min_length=1after 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 noreadsis still valid.- The line reads
Reads: <paths>. Changes: <paths>.where a missingreadsshowsnonewithout a period of its own. The text for an empty value and the format string never both end a sentence. - Every path of
readsandchangesis a form-valid repository path (the type already checks the form). The writer records, in the stage comment, anychangespath 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 blanktest,implementation,documentationorverify, 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
readsempty andchangesset rendersReads: none. Changes: .... - The stage comment names a
changespath that is neither on the default branch nor new. uv run devops cipasses, anddevops docs generate --sync-readmeis run.
Evidence: PR 2761 and the merged tasks.md of #2745.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Oct 30, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The output is wrong but the system still runs; it misleads a person about which files a group touches.A group that names no files hides the real work and breaks the budget check.It needs validation changes, a render fix, a prompt update, and a new warning for missing paths.Both work on the stage writer in stage_change.py, but 2654 built the feature and the candidate fixes its output defects.chore(main): release 0.22.3 (#2776)