Skip to content

fix(roadmap): tick turn and kept diff for implement steps - #2744

Merged
dan-petty merged 9 commits into
mainfrom
fix/2721-implement-tick-turn
Oct 30, 2026
Merged

dan-petty merged 9 commits into
mainfrom
fix/2721-implement-tick-turn

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

An implement step that forgot to tick its tasks stopped the item. Now the step gets one extra turn that asks only for the ticks. A stopped step also keeps a masked diff of the work that it discards, and the stop comment shows it.

What changes:

  • After the checks pass, a step with unticked tasks gets one more turn in the same conversation and under the same limits. The turn may change only tasks.md. Git checks this. Every exit check runs again after the turn.
  • The inputs of a step name the tasks file of the change.
  • A stopped step reads the diff of its discarded work. It masks secrets in the first 80000 characters, cuts the result to 20000 characters, and reports it in StepOutcome. The stop comment shows it in a fenced block that no line of the diff can close.
  • The reason of a stop is bounded. The extra turn names at most 20 changed paths. The stop comment cuts a reason to 4000 characters.
  • The process runner decodes the output of a text command with a replacement character. A file that is not UTF-8 no longer ends the job.

Closes #2721

@dan-petty

Copy link
Copy Markdown
Owner Author

Test results and review notes.

Checks: the full devops ci passed on this branch. The test check took 5m 46s on a host that three agents shared.

Fail-to-pass (devops ci fail-to-pass --base origin/main): 32 tests failed on base and pass on this branch. They are in tests/test_process_contract.py, tests/test_roadmap_implement_step.py and tests/test_roadmap_implement_job.py.

Review findings fixed:

  • Major: the real process runner decoded text output as strict UTF-8, so a Latin-1 file in the discarded work raised UnicodeDecodeError and ended the job. Fixed in the runner (errors="replace"), with a contract test.
  • Major: the reason of the extra turn named every changed path, so a stop comment could pass the 65,536 character limit of GitHub. The turn now names at most 20 paths and counts the rest. The stop comment also cuts any reason to 4000 characters.
  • Minor: masking a very large diff took time and memory out of proportion. The step now masks only the first 80000 characters (four times the limit). diff_cut is true when git printed more.

Review finding not fixed:

  • Minor: a model call that fails on the first or the extra turn keeps no diff. A fix needs the partial result of the failed turn, so the step can build a stopped outcome. This is outside the three acceptance criteria and changes the contract of run_step. Filed as fix(roadmap): keep the diff when a model call fails in an implement step #2731. The memory held by run_subprocess for the raw git diff output stays as it is; the masking cost is what the cut bounds.

@dan-petty
dan-petty marked this pull request as ready for review October 30, 2026 01:42
@dan-petty
dan-petty merged commit 890d2a6 into main Oct 30, 2026
18 checks passed
@dan-petty
dan-petty deleted the fix/2721-implement-tick-turn branch October 30, 2026 01:42
dan-petty pushed a commit that referenced this pull request Oct 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.21.4](v0.21.3...v0.21.4)
(2026-10-30)


### Bug Fixes

* **ai:** name each prewarm server by host and port
([#2737](#2737))
([2e2e4fa](2e2e4fa)),
closes [#2676](#2676)
* **ai:** the mcp benchmark tool takes no file path
([#2738](#2738))
([5d5da15](5d5da15)),
closes [#2704](#2704)
* **config:** redact a removed credential in the config copies
([#2734](#2734))
([f663344](f663344)),
closes [#2645](#2645)
* **rag:** name the Qdrant server by host and port
([#2733](#2733))
([39aca9d](39aca9d)),
closes [#2709](#2709)
* **roadmap:** tick turn and kept diff for implement steps
([#2744](#2744))
([890d2a6](890d2a6)),
closes [#2721](#2721)
* **security:** refuse the gh and kubectl keys that run a program
([#2732](#2732))
([ad0bdf1](ad0bdf1)),
closes [#2672](#2672)
* **security:** refuse the keys that make a child write a file
([#2746](#2746))
([1cd187e](1cd187e)),
closes [#2674](#2674)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant