Skip to content

fix(roadmap): a step that edits the text of its own task loses all its work #2774

Description

@dan-petty

Problem or Motivation

A step that edits the text of its own tasks in tasks.md stops, and the job discards all its work. On 2026-10-30 Job devops-cli-runner-20261030-130645-dc17 ran about 30 tool calls on #2656 and wrote a fix and a test. It stopped with:

The tasks of group 1 changed. A step may only tick them.

The discarded diff shows the agent rewrote task 1.1. The staged plan named tests/test_round_trip.py for the test, and the agent's own summary says it wrote the test in tests/config/test_config_key_removal.py, so it probably changed the text to match. The rule protects something real: a model must not weaken the verification command of its own task, for example by naming a command that always passes. But the stop costs the whole step for a text edit.

Proposed Solution & Architectural Design

  • The job treats tasks.md as its own file, as fix(roadmap): an implement step that also ticks a later group's tasks loses all its work #2767 does for the other groups. After the run it writes the base text of the step's own group back, keeping only the state of the checkboxes that the agent set, and goes on. It logs one line that names the group.
  • The job then runs the verification commands of the group from the base text, as it does now (the commands are read from the tasks as they were before the run). A verification command that names a file the agent did not create fails, and the stop reason says so. The integrity check stays: the agent cannot change which command judges its work.
  • A change of the number of tasks, the order of the tasks or the heading of the group still stops the step.
  • The prompt says: do not edit the text of a task; if the file path a task names is wrong, write the file at that path anyway, or say in your last message why you did not.
  • The stage plan names real paths: see fix(roadmap): a staged task group may name no files and renders Reads: None.. #2772, which asks the stage job to flag a changes path that is neither on the default branch nor new. This item adds no check of that.

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 and the restore of #2767 (_restore_ticks). Nothing new is built.

Acceptance criteria

  • With the model faked, a step that rewrites the text of a task of its own group and ticks it ends with the base text in the commit, the tick kept, and the original verification command run.
  • A step that rewrites the verification command to one that passes, while the original fails, stops with the original command named.
  • A step that adds, removes or reorders a task, or changes the group heading, still stops.
  • uv run devops ci passes, and devops docs generate --sync-readme is run.

Evidence: Job devops-cli-runner-20261030-130645-dc17 and the stop comment on #2656 at 13:14 UTC.

Activity

  1. added
    type/bug
    source/agent
    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. A job run is lost and a person must re-run the step, but the trigger is a narrow agent behaviour and a prompt rule can reduce it.
    • Value: Medium. Prevents loss of a completed step for a specific but realistic agent action.
    • Effort: Medium. Requires changing the step logic, the prompt, the messages file, and adding tests for the new restore path.
    • Related: fix(roadmap): an implement step that also ticks a later group's tasks loses all its work #2767, which asks for a different change. Both items stop an implement step and discard work when tasks.md changes; #2767 restores ticks for a later group while this item restores base text for the step's own group.
  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
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