Repository navigation
Description
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.pyfails 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:
- 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. - 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.mdin 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.mdmay 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.mdin 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 cipasses, anddevops docs generate --sync-readmeis run.
Evidence: Job devops-cli-runner-20261029-235701-c084, the stop comment on #2656 and the job record implement.stopped "group 1".
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.
The candidate fixes a defect where completed work is lost when the agent forgets to tick a task.A real production run already lost completed work, and the loss repeats on every unticked task.Users lose all agent work in a step, which costs a full re-run and hides the result from review.Three files change: the step prompt, the extra-turn logic, and the diff-preservation path, but the scope is bounded.Both concern the implement step, but 2664 builds the step while the candidate fixes a data-loss defect in it.chore(main): release 0.21.4 (#2741)