Skip to content

fix(roadmap): restore the own group text in an implement step - #2780

Merged
dan-petty merged 6 commits into
mainfrom
fix/2774-own-task-text
Oct 30, 2026
Merged

dan-petty merged 6 commits into
mainfrom
fix/2774-own-task-text

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

An implement step no longer stops when the model edits the text of its own tasks. The step writes the text of its own group back and keeps the ticks of the model.

The step keeps the raw lines of the region of the own group from before the run. The region runs from the heading of the group to the heading of the next numbered group. After each turn, the step writes these lines over the region in tasks.md. Then it writes the checkboxes that the model set. So a section that the model adds inside or after the group does not reach the commit. A tick keeps the trailing spaces and the line ends of the group. The step prints one line when the file changed.

The step still stops when the model changes the number, the order or the heading of the tasks of its group. The step runs the verification commands of the text from before the run. A fix step may change no task. The prompt tells the model not to edit the text of a task.

Closes #2774

… step (#2774)

The restore replaced the lines of the group that the parser cut at the next
heading. A section that the model added inside the group stayed in the commit,
and a line of the group was repeated. The text of the group was rebuilt from a
stripped copy, so a tick lost trailing spaces and changed line ends.

The step now keeps the raw lines of the region from before the run. The region
runs from the heading of the group to the next numbered group. The step writes
these lines back, then the checkboxes of the run.
…2774)

The archived change now says that the restore writes the raw lines of the
region of the group, from its heading to the next numbered group. The
requirement has three new scenarios. The impact lists the test file that the
change adds.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results and review findings for #2774.

Local devops ci: all 19 checks pass. The test check took 247 s (4m 7s). The whole run took 258 s.

Fail-to-pass (devops ci fail-to-pass --base origin/main): 16 of the 23 tests in tests/test_roadmap_implement_step_own_text.py fail on the base and pass here. The 7 that pass on the base guard rules that did not change: stop on an added, removed, reordered or retitled task, no note for a tick only, and the prompt text.

Findings fixed:

  • Major (integrity): the restore replaced only the lines up to the next ## heading. A section that the model added inside the group stayed in the commit and repeated a line. Now the restore covers the region up to the next numbered group. Tests: a section inside the group, a section after the group.
  • Minor (integrity): the restore rebuilt the lines from a stripped copy. A tick lost trailing spaces, and line ends changed. Now StepInputs.region holds the raw lines from before the run, and the step writes them. Tests: trailing spaces after a tick (no note) and after a rewrite, a CRLF file, a CRLF heading with LF lines.
  • Minor (standards): the docstring of _tasks_failure had a line of 159 columns. It is re-wrapped.
  • Minor (standards): the proposal now lists tests/test_roadmap_implement_step_own_text.py as the changed test file. The end_line field of TaskGroup had no more use and is removed.

Finding declined:

@dan-petty
dan-petty marked this pull request as ready for review October 30, 2026 14:29
@dan-petty
dan-petty merged commit 163a840 into main Oct 30, 2026
19 checks passed
@dan-petty
dan-petty deleted the fix/2774-own-task-text branch October 30, 2026 15:19
dan-petty-release Bot added a commit that referenced this pull request Oct 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.22.4](v0.22.3...v0.22.4)
(2026-10-30)


### Bug Fixes

* **pr:** pr create adds the labels of the title
([#2782](#2782))
([7183af3](7183af3)),
closes [#2748](#2748)
* **roadmap:** refused shell programs name their replacement
([#2783](#2783))
([0458f8f](0458f8f)),
closes [#2773](#2773)
* **roadmap:** restore the own group text in an implement step
([#2780](#2780))
([163a840](163a840)),
closes [#2774](#2774)
* **security:** lock joserfc at 1.7.7
([#2787](#2787))
([0b9f9e5](0b9f9e5)),
closes [#2786](#2786)

---
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): a step that edits the text of its own task loses all its work

1 participant