Repository navigation
refactor(agents): mark draft PR ready when its checks pass - #7218
Merged
Merged
Conversation
Rule 6 gives a duty: always mark the draft ready when checks pass and no agent work remains. The template of devops ai agents, CONTRIBUTING.md, the devops-pr-ci skill and the OpenSpec apply guidance say the same. The snapshot of the implement step changed because it holds the rendered template.
The refine result test compared the context size with the literal 765. The size follows the text of the instructions, so each change of that text failed the test. The test now checks that the two sizes agree and are above zero.
dan-petty
marked this pull request as ready for review
November 25, 2026 19:10
dan-petty-release Bot
added a commit
that referenced
this pull request
Nov 25, 2026
🤖 I have created a release *beep* *boop* --- ## [0.221.4](v0.221.3...v0.221.4) (2026-11-25) ### Code Refactoring * **agents:** mark draft PR ready when its checks pass ([#7218](#7218)) ([089e577](089e577)) --- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rule 6 of
AGENTS.mdsaid "mark it ready only after the checks pass". The rule gave a limit and no duty, so an agent could complete its work, see the checks pass, and leave the pull request as a draft for a person. The rule also did not name agent work, so a pull request could become ready while a review or a repair still ran.Rule 6 now says: always mark the draft ready when checks pass and no agent work remains. The template of
devops ai agents,CONTRIBUTING.md, thedevops-pr-ciskill and the OpenSpec apply guidance give the same condition.CONTRIBUTING.mdsays what agent work is, and that the agent that does the last step marks the pull request ready. No command changes:devops pr readyrefuses a pull request while a check runs or fails, as before.Closes #7217
Change:
openspec/changes/archive/2026-11-25-7217-mark-complete-draft-ready/