Skip to content

fix(roadmap): an implement step that finished its work but left a task unticked loses the work #2721

Description

@dan-petty

Problem or Motivation

The first live implement run stopped at group 1 although the agent wrote the fix. The Service staged #2656 (pull request 2719) at 23:56 UTC on 2026-10-30 and submitted Job devops-cli-runner-20261029-235701-c084 at 23:57. The Job ran 4 minutes 47 seconds and printed "Took 0 item(s) to a ready pull request, stopped 1". The comment of the Service on #2656 says:

Stopped at group 1. Reason: A task of the group is not ticked: [ ] 1.1 Write a test in tests/test_round_trip.py ... and verify that uv run devops ci test tests/test_round_trip.py fails on the base

The last message of the agent says it changed src/devops_cli/config/round_trip.py and "created and ran a test", but it does not say that it ticked a task in tasks.md. The job then reset the checkout, so nothing was committed or pushed. The pull request still has its one plan commit, and the person cannot see what the agent wrote.

Two things in the design caused the stop to cost the whole step:

  1. The job needs the model to tick each task in tasks.md. A model that does the work and forgets the tick loses the work.
  2. A stopped step keeps nothing. The diff the agent made is gone, so a person cannot judge whether the work was good.

Proposed Solution & Architectural Design

  • The step prompt gives the exact path of tasks.md in the checkout and the exact form of a tick (- [ ] to - [x]), and says that the step ends only when every task of the group is ticked.
  • When the group's verification passes and only ticks are missing, the step gets one more model turn that asks only for the ticks, with the list of the unticked tasks. This is the same step, not a second fix on a fix: no file other than tasks.md may change in that turn, and the job checks it.
  • A step that stops keeps its diff: the job pushes nothing, but it posts the diff of the discarded work (cut to a fixed size, secrets masked) in the stop comment, or writes it to the job log. A person can then judge the work and retry with implement: retry.

Target Subsystem

src/devops_cli/roadmap/implement_step.py, src/devops_cli/ai/tasks/roadmap_implement_step.md, src/devops_cli/roadmap/implement_run.py.

Existing Tool Considered

pydantic-ai UsageLimits and the Coder capability, already in use. The extra turn uses the same agent run. Nothing new is built.

Acceptance criteria

  • With the model faked, a step whose verification passes and whose agent forgot the ticks gets one extra turn, ends done, and changed only tasks.md in that turn.
  • A step whose extra turn changes another file stops.
  • A stopped step puts a masked, size-limited diff of its work in the stop comment.
  • uv run devops ci passes, and devops docs generate --sync-readme is run.

Evidence: Job devops-cli-runner-20261029-235701-c084, the stop comment on #2656 and the job record implement.stopped "group 1".

Activity

  1. added
    source/agent
    type/bug
    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 candidate fixes a defect where completed work is lost when the agent forgets to tick a task.
    • Priority: P1-High. A real production run already lost completed work, and the loss repeats on every unticked task.
    • Value: High. Users lose all agent work in a step, which costs a full re-run and hides the result from review.
    • Effort: Medium. Three files change: the step prompt, the extra-turn logic, and the diff-preservation path, but the scope is bounded.
    • 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 concern the implement step, but 2664 builds the step while the candidate fixes a data-loss defect in it.
  3. added
    priority/p1-high
    scope/roadmap
    status/in-progress
    and removed
    status/new
    on Oct 30, 2026
  4. removed
    status/in-progress
    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