Skip to content

fix(roadmap): an implement step that also ticks a later group's tasks loses all its work #2767

Description

@dan-petty

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

Evidence: Job devops-cli-runner-20261030-041331-2e0b and the stop comment on #2745 at 04:18 UTC.

Activity

  1. added
    source/agent
    type/bug
    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. The bug loses a full step of correct agent work but does not crash or corrupt data.
    • Value: Medium. It wastes agent time and delays delivery, but a person can re-run the step.
    • Effort: Medium. The fix is bounded to _tasks_failure, one prompt file, and one message file, with three test cases.
    • Related: feat(roadmap): devops roadmap implement runs one task group of a staged change in one 128k context with the pydantic-ai-harness Coder #2664, which asks for a different change. Both target the implement step that runs one task group, but 2664 builds the step while the candidate fixes its tick-validation rule.
  3. added
    priority/p2-medium
    status/in-review
    and removed
    status/new
    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/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