Skip to content

fix(roadmap): a stage group names its files and its tasks - #2775

Merged
dan-petty merged 6 commits into
mainfrom
fix/2772-stage-group-files
Oct 30, 2026
Merged

dan-petty merged 6 commits into
mainfrom
fix/2772-stage-group-files

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage job wrote a plan for #2745 with Reads: None.. Changes: None.. in each task group and tasks that start with a comma. This change fixes the writer.

  • A group must change at least one file. A group may list creates: the paths of changes that do not exist yet. The line shows (new) after them.
  • A group with no reads shows Reads: none. and not None...
  • The text of title, test, implementation, documentation and verify cannot be blank. A task text cannot be only full stops, and it loses its final full stops, so no task starts with a comma.
  • A path cannot hold a backtick or a control character, so it cannot break the line of its group.
  • A reply that breaks a rule fails the schema. The model gets one correction with the field of the violation. A second bad reply stops the item.
  • The stage comment names each changed path that is no file on the default branch and that no group creates. It never stops the item.
  • The prompts for the plan and for the split say what a group names.

The implement step does not read the Reads: and Changes: lines, so plans written before this change still read as before.

Closes #2772

@dan-petty

Copy link
Copy Markdown
Owner Author

Test results

  • Full uv run devops ci passed. The test check took 192 s (3m 12s).
  • Fail-to-pass against origin/main: 45 tests fail on the base and pass here (devops ci fail-to-pass --base origin/main).

Review findings fixed (test first)

  • A task text of only full stops was valid and rendered a task that starts with a comma. The new Sentence type strips the final full stops and refuses a text with nothing left. group_text no longer calls rstrip.
  • A path with a new line or a backtick could break the Reads: and Changes: line, or add a task. _repository_path now refuses both.
  • The proposal call asked for two corrections. It now asks for one (max_retries=1), as the issue says.
  • The retry tests built their own model double and patched time.sleep. They now use ModelFake.checking_replies() in tests/support/fakes/model.py. It runs the real chat_structured retry with backoff_seconds=0.

Review finding declined

  • The stop reason holds the count of violations, not the field path. chat_structured keeps field paths out of its error on purpose, because a path can be a key the model invented and the message reaches logs. The correction request to the model does name the field (groups[0].changes), and a test asserts it. The proposal and the spec now say this.

@dan-petty
dan-petty marked this pull request as ready for review October 30, 2026 13:40
@dan-petty
dan-petty merged commit 15ca3a3 into main Oct 30, 2026
19 checks passed
@dan-petty
dan-petty deleted the fix/2772-stage-group-files branch October 30, 2026 13:42
dan-petty pushed a commit that referenced this pull request Oct 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.22.3](v0.22.2...v0.22.3)
(2026-10-30)


### Bug Fixes

* **roadmap:** a stage group names its files and its tasks
([#2775](#2775))
([15ca3a3](15ca3a3)),
closes [#2772](#2772)

---
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 staged task group may name no files and renders Reads: None..

1 participant