Repository navigation
Description
Problem or Motivation
An implement step that edits tasks.md beyond its own checkboxes still stops, and the job discards correct code. On 2026-10-30 Job devops-cli-runner-20261030-170945-1b28 ran on #2745 with the 0.22.4 image. The agent fixed _write_content and _copy and added tests for both. The step then stopped:
Group 2 changed. A step may change only its own group.
The discarded diff shows the agent ticked every task of groups 1 and 2, and it also changed the third task of group 2 from - [ ] 2.3 , run ... to - [x] , run ...: it deleted the number "2.3". #2767 restores the checkboxes of other groups, and #2774 restores the text of the own group. A text edit of another group still stops the step.
The verification commands are read from the text of tasks.md as it was before the run, so no edit of the file can change which command judges the work. The file is the job's bookkeeping. The step has no reason to stop because a model edited it.
Proposed Solution & Architectural Design
- After each turn, the job writes
tasks.mdback to its text from before the run, and applies only the checkboxes of the step's own group that the agent set. Every other edit, in any group, in a heading or in a line outside the groups, is undone. The job prints one line that names what it restored. - The step never stops because of an edit of
tasks.md. The checks that remain are the ones that judge the work: the original verification commands, the static checks, and the unticked-task check for the own group. - The fix step ("Make check ... pass") still may change no task: its edit is undone the same way, and it ticks nothing.
_tasks_failure,_whole,_shapeand the reasons that only exist for the stop (implement_stop_group_changed,implement_stop_tasks_edited) go. The restore of fix(roadmap): an implement step that also ticks a later group's tasks loses all its work #2767 and fix(roadmap): a step that edits the text of its own task loses all its work #2774 becomes the one rule.- A step that did the work of a later group does not lose it. The later group's own step runs its verification commands, finds the work done, and ticks its tasks.
Target Subsystem
src/devops_cli/roadmap/implement_step.py, src/devops_cli/lang/en/messages.py, the roadmap-implement-step spec.
Existing Tool Considered
The restore code of #2767 and #2774 and the task parser. Nothing new is built, and code is deleted.
Acceptance criteria
- A step that ticks groups 1 and 2, and removes "2.3" from a task of group 2, ends done with the base text of
tasks.mdand only the ticks of group 1 in the commit. - A step that rewrites a verification command to one that passes is judged by the original command, as today.
- A step that adds a group, removes a group or reorders the tasks ends done with the base structure.
- The fix step's edit of a task is undone and does not stop the step.
uv run devops cipasses, anddevops docs generate --sync-readmeis run.
Evidence: Job devops-cli-runner-20261030-170945-1b28 and the stop comment on #2745 at 17:14 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 discards completed and correct agent work, blocking delivery of fixes.Every occurrence loses a full agent run of correct code and tests, wasting time and delaying delivery.Removes stop reasons and related code, unifies the restore path, and updates messages and spec across three files.Both deal with restoring tasks.md to its base text, but #2779 fixes a gap in the restore for lines outside groups while the candidate removes the stop behaviour entirely and simplifies the restore to one rule.chore(main): release 0.22.6 (#2793)