Repository navigation
Description
Problem or Motivation
An implement step that does more than its group, and ticks the tasks of a later group, loses all its work. On 2026-10-30 the Service staged #2745, a person merged the plan (docs(openspec): plan #2745 ..., PR 2761), and the Service submitted Job devops-cli-runner-20261030-041331-2e0b. The agent wrote the fix: _write_content in settings.py and _copy in write_history.py now set the mode, and two test files pass. The step then stopped:
Stopped at group 1. Reason: Group 2 changed. A step may change only its own group.
The discarded diff in the stop comment shows the agent changed tasks.md for more than its group. _tasks_failure in implement_step.py compares each other group with its base text (_whole) and stops on any difference. The job then resets the checkout, so the fix is gone.
Ticking a checkbox is bookkeeping that the job owns. A model that finished more than its group did nothing unsafe: the later groups verify their own work in their own steps. The rule costs a whole step of correct work for a checkbox.
Related: the staged tasks.md of #2745 reads "Reads: None.. Changes: None.." for the group. The stage job wrote no file lists, so the step packed no files, and the double period shows the writer prints the list with a stray stop. That is a separate defect; this item does not fix it.
Proposed Solution & Architectural Design
- After the run, the job restores the checkboxes of every other group to their base state, and goes on with the checks of its own group. It logs one line that names the groups it restored. A change of another group beyond its checkboxes (a task text, a heading, a verification command, a group added or removed) still stops the step, as today.
- The step's own group keeps its rule: its checkboxes may change, its text may not.
- The step prompt says: tick only the tasks of your group, and say why (a later group runs in its own step and ticks its own).
- A later step whose group's work is already in the checkout runs its verification commands, finds them passing, and ticks its tasks. The existing rule that skips a ticked group stays.
Target Subsystem
src/devops_cli/roadmap/implement_step.py (_tasks_failure), src/devops_cli/ai/tasks/roadmap_implement_step.md, src/devops_cli/lang/en/messages.py.
Existing Tool Considered
The task parser the step already uses (parse_task_groups). Nothing new is built.
Acceptance criteria
- With the model faked as a pydantic-ai
FunctionModel, a step that ticks the tasks of its group and of a later group ends done, the commit holds the work of the step, and the later group is unticked intasks.md. - A step that edits the text of a task of another group still stops with the group named.
- A step that ticks a task of an earlier group (already ticked at the base) and unticks it is restored the same way.
uv run devops cipasses, anddevops docs generate --sync-readmeis run.
Evidence: Job devops-cli-runner-20261030-041331-2e0b and the stop comment on #2745 at 04:18 UTC.
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 bug loses a full step of correct agent work but does not crash or corrupt data.It wastes agent time and delays delivery, but a person can re-run the step.The fix is bounded to _tasks_failure, one prompt file, and one message file, with three test cases.Both target the implement step that runs one task group, but 2664 builds the step while the candidate fixes its tick-validation rule.chore(main): release 0.22.2 (#2771)