Skip to content

fix(roadmap): an implement step stops when it edits tasks.md, a file the job owns #2790

Description

@dan-petty

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.md back 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, _shape and 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.md and 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 ci passes, and devops docs generate --sync-readme is run.

Evidence: Job devops-cli-runner-20261030-170945-1b28 and the stop comment on #2745 at 17:14 UTC.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/high
    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: P1-High. The bug discards completed and correct agent work, blocking delivery of fixes.
    • Value: High. Every occurrence loses a full agent run of correct code and tests, wasting time and delaying delivery.
    • Effort: Medium. Removes stop reasons and related code, unifies the restore path, and updates messages and spec across three files.
    • Related: fix(roadmap): an implement step commits an edit outside every numbered group #2779, which asks for a different change. 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.
  3. added
    priority/p1-high
    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/p1-highscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions